From 4a1f9d06d27fc5e76bfdd6d533f7c7fa9103473f Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 3 Nov 2015 22:34:40 +0000 Subject: f4: proper float/int temp readings --- tests/adc-power/main-stm32f4-disco.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/adc-power/main-stm32f4-disco.c') diff --git a/tests/adc-power/main-stm32f4-disco.c b/tests/adc-power/main-stm32f4-disco.c index f02e610..47a0b3f 100644 --- a/tests/adc-power/main-stm32f4-disco.c +++ b/tests/adc-power/main-stm32f4-disco.c @@ -31,19 +31,19 @@ int main(void) rcc_periph_clock_enable(RCC_GPIOA); gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO0); - gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO1); + gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO5); adc_power_init(); while (1) { adc_power_task_up(); gpio_toggle(LED_DISCO_GREEN_PORT, LED_DISCO_GREEN_PIN); - for (i = 0; i < 0x1000000; i++) { /* Wait a bit. */ + for (i = 0; i < 0x800000; i++) { /* Wait a bit. */ __asm__("NOP"); } adc_power_task_down(); gpio_toggle(LED_DISCO_GREEN_PORT, LED_DISCO_GREEN_PIN); - for (i = 0; i < 0x1000000; i++) { /* Wait a bit. */ + for (i = 0; i < 0x800000; i++) { /* Wait a bit. */ __asm__("NOP"); } } -- cgit