aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/STM32/RT-STM32F303K8-NUCLEO32/main.c8
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);
}