diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-03 12:28:32 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-03 12:28:32 +0000 |
commit | 9df81dc0eee83e286cb96d51b2c3bdc245056b50 (patch) | |
tree | 201c6bff09ed539073117812af773c94c77a2546 /demos/STM32/RT-STM32F303K8-NUCLEO32 | |
parent | c1d68c3bfd34701893feb8f4b938e3ff9a2df1e8 (diff) | |
download | ChibiOS-9df81dc0eee83e286cb96d51b2c3bdc245056b50.tar.gz ChibiOS-9df81dc0eee83e286cb96d51b2c3bdc245056b50.tar.bz2 ChibiOS-9df81dc0eee83e286cb96d51b2c3bdc245056b50.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8429 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32/RT-STM32F303K8-NUCLEO32')
-rw-r--r-- | demos/STM32/RT-STM32F303K8-NUCLEO32/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c b/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c index 9ef7db5a8..15b0bcbd4 100644 --- a/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c +++ b/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c @@ -26,11 +26,11 @@ static THD_FUNCTION(Thread1, arg) { (void)arg;
chRegSetThreadName("blinker");
- palSetPadMode(GPIOB, GPIOB_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
while (true) {
- palClearPad(GPIOB, GPIOB_ARD_D13);
+ palClearLine(LINE_LED_GREEN);
chThdSleepMilliseconds(500);
- palSetPad(GPIOB, GPIOB_ARD_D13);
+ palSetLine(LINE_LED_GREEN);
chThdSleepMilliseconds(500);
}
}
@@ -65,7 +65,7 @@ int main(void) { * sleeping in a loop and check the button state.
*/
while (true) {
- if (!palReadPad(GPIOB, GPIOB_ARD_D3))
+ if (!palReadLine(LINE_ARD_D3))
TestThread(&SD2);
chThdSleepMilliseconds(500);
}
|