aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32L476RG-NUCLEO
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 14:14:22 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 14:14:22 +0000
commita4d9054506f3d1fedfd7d8436e12bb45ae8e6e3e (patch)
tree160eba5b36ea5a37496311e261a7dda59711c03b /demos/STM32/RT-STM32L476RG-NUCLEO
parent8beb4eb16652a07f602e07d17153d63ddba3d73f (diff)
downloadChibiOS-a4d9054506f3d1fedfd7d8436e12bb45ae8e6e3e.tar.gz
ChibiOS-a4d9054506f3d1fedfd7d8436e12bb45ae8e6e3e.tar.bz2
ChibiOS-a4d9054506f3d1fedfd7d8436e12bb45ae8e6e3e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8481 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32/RT-STM32L476RG-NUCLEO')
-rw-r--r--demos/STM32/RT-STM32L476RG-NUCLEO/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/STM32/RT-STM32L476RG-NUCLEO/main.c b/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
index bd50f191d..1f0f6c84b 100644
--- a/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
@@ -27,9 +27,9 @@ static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("blinker");
while (true) {
- palClearPad(GPIOA, GPIOA_LED_GREEN);
+ palClearLine(LINE_LED_GREEN);
chThdSleepMilliseconds(500);
- palSetPad(GPIOA, GPIOA_LED_GREEN);
+ palSetLine(LINE_LED_GREEN);
chThdSleepMilliseconds(500);
}
}
@@ -64,7 +64,7 @@ int main(void) {
* sleeping in a loop and check the button state.
*/
while (true) {
- if (!palReadPad(GPIOC, GPIOC_BUTTON))
+ if (!palReadLine(LINE_BUTTON))
TestThread(&SD2);
chThdSleepMilliseconds(500);
}