diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-31 11:19:38 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-31 11:19:38 +0000 |
commit | 73666c78a03f8db1c8b2eda4ccb0a54c72949c03 (patch) | |
tree | 4c372834a00d42d2b9abd10471ed25ece3e87a13 /testhal/STM32/multi/PAL/main.c | |
parent | dec86b7716e83a621113988045e344eb73b2b2e1 (diff) | |
download | ChibiOS-73666c78a03f8db1c8b2eda4ccb0a54c72949c03.tar.gz ChibiOS-73666c78a03f8db1c8b2eda4ccb0a54c72949c03.tar.bz2 ChibiOS-73666c78a03f8db1c8b2eda4ccb0a54c72949c03.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10512 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/multi/PAL/main.c')
-rw-r--r-- | testhal/STM32/multi/PAL/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testhal/STM32/multi/PAL/main.c b/testhal/STM32/multi/PAL/main.c index 232fcf0b6..c57a75f02 100644 --- a/testhal/STM32/multi/PAL/main.c +++ b/testhal/STM32/multi/PAL/main.c @@ -22,6 +22,7 @@ /* Generic code. */
/*===========================================================================*/
+#if defined(PORTAB_BLINK_LED2)
/*
* LED blinker thread, times are in milliseconds.
*/
@@ -31,12 +32,13 @@ static THD_FUNCTION(Thread1, arg) { (void)arg;
chRegSetThreadName("blinker");
while (true) {
- palClearLine(PORTAB_BLINK_LED1);
+ palClearLine(PORTAB_BLINK_LED2);
chThdSleepMilliseconds(500);
- palSetLine(PORTAB_BLINK_LED1);
+ palSetLine(PORTAB_BLINK_LED2);
chThdSleepMilliseconds(500);
}
}
+#endif
/*
* Application entry point.
@@ -53,10 +55,12 @@ int main(void) { halInit();
chSysInit();
+#if defined(PORTAB_BLINK_LED2)
/*
* Creates the blinker thread.
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
+#endif
/*
* Normal main() thread activity.
|