aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F37x/ADC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F37x/ADC/main.c')
-rw-r--r--testhal/STM32/STM32F37x/ADC/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F37x/ADC/main.c b/testhal/STM32/STM32F37x/ADC/main.c
index fb6f5c8f4..063683a3d 100644
--- a/testhal/STM32/STM32F37x/ADC/main.c
+++ b/testhal/STM32/STM32F37x/ADC/main.c
@@ -111,13 +111,12 @@ static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("blinker");
- while (TRUE) {
+ while (true) {
palClearPad(GPIOC, GPIOC_LED1);
chThdSleepMilliseconds(500);
palSetPad(GPIOC, GPIOC_LED1);
chThdSleepMilliseconds(500);
}
- return 0;
}
/*
@@ -163,7 +162,7 @@ int main(void) {
/*
* Normal main() thread activity, in this demo it does nothing.
*/
- while (TRUE) {
+ while (true) {
if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON)) {
adcStopConversion(&ADCD1);
}