aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/adc_temperature_sensor/adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/other/adc_temperature_sensor/adc.c')
-rw-r--r--examples/stm32/f1/other/adc_temperature_sensor/adc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/stm32/f1/other/adc_temperature_sensor/adc.c b/examples/stm32/f1/other/adc_temperature_sensor/adc.c
index 4180e4e..1f2f9ef 100644
--- a/examples/stm32/f1/other/adc_temperature_sensor/adc.c
+++ b/examples/stm32/f1/other/adc_temperature_sensor/adc.c
@@ -31,7 +31,7 @@ void usart_setup(void)
/* Setup GPIO pin GPIO_USART1_TX/GPIO9 on GPIO port A for transmit. */
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
- GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_USART1_TX);
+ GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_USART1_TX);
/* Setup UART parameters. */
usart_set_baudrate(USART1, 115200, rcc_ppre2_frequency);
@@ -52,9 +52,9 @@ void gpio_setup(void)
/* Set GPIO6/7 (in GPIO port B) to 'output push-pull' for the LEDs. */
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ,
- GPIO_CNF_OUTPUT_PUSHPULL, GPIO6);
+ GPIO_CNF_OUTPUT_PUSHPULL, GPIO6);
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ,
- GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
+ GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
}
void adc_setup(void)
@@ -93,8 +93,8 @@ void my_usart_print_int(u32 usart, int value)
char buffer[25];
if (value < 0) {
- usart_send(usart, '-');
- value = value * -1;
+ usart_send(usart, '-');
+ value = value * -1;
}
while (value > 0) {