aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L1xx/ADC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32L1xx/ADC/main.c')
-rw-r--r--testhal/STM32/STM32L1xx/ADC/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L1xx/ADC/main.c b/testhal/STM32/STM32L1xx/ADC/main.c
index d00652432..9ca096a51 100644
--- a/testhal/STM32/STM32L1xx/ADC/main.c
+++ b/testhal/STM32/STM32L1xx/ADC/main.c
@@ -100,7 +100,7 @@ static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("blinker");
- while (TRUE) {
+ while (true) {
palSetPad(GPIOB, GPIOB_LED4);
chThdSleepMilliseconds(500);
palClearPad(GPIOB, GPIOB_LED4);
@@ -154,7 +154,7 @@ int main(void) {
/*
* Normal main() thread activity, in this demo it does nothing.
*/
- while (TRUE) {
+ while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) {
adcStopConversion(&ADCD1);
adcSTM32DisableTSVREFE();