From 400e809f4fcf0a6f280cd6ac8ecefdcffaa1a56c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 17 Sep 2017 07:50:13 +0000 Subject: Fixed a typo. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10607 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h | 4 ++-- testhal/STM32/multi/PAL/main.c | 8 ++++---- 11 files changed, 24 insertions(+), 24 deletions(-) (limited to 'testhal/STM32') diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h index 39dd2e553..67dd54ae7 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED3 #define PORTAB_LINE_LED2 LINE_LED4 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h index f7deb54e5..7055e7408 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED #define PORTAB_LINE_LED2 LINE_USB_DISC -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h index 0fbe3f9d1..554731819 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED4_BLUE #define PORTAB_LINE_LED2 LINE_LED3_RED -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h index 4c2ceb4a9..8f3e9bdff 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED1 #define PORTAB_LINE_LED2 LINE_LED2 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_WKUP_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h index 39dd2e553..67dd54ae7 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED3 #define PORTAB_LINE_LED2 LINE_LED4 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h index cef82d6bd..4c14f7032 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 GPIOG_LED3_GREEN //LINE_LED3 #define PORTAB_LINE_LED2 GPIOG_LED4_RED //LINE_LED4 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h index acd22f70f..e5e652cc3 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_ARD_D13 //#define PORTAB_LINE_LED2 LINE_LED4 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON_USER #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h index bb3239d9c..02eff388b 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED_GREEN #define PORTAB_LINE_LED2 LINE_LED_RED -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h index a79d01e5c..14719359a 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 GPIOB_LED3 #define PORTAB_LINE_LED2 GPIOB_LED4 -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_BUTTON #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h b/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h index 72538b587..8e7c1cdcf 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h +++ b/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h @@ -31,8 +31,8 @@ #define PORTAB_LINE_LED1 LINE_LED_GREEN #define PORTAB_LINE_LED2 LINE_LED_RED -#define PORTAB_LEN_OFF PAL_LOW -#define PORTAB_LEN_ON PAL_HIGH +#define PORTAB_LED_OFF PAL_LOW +#define PORTAB_LED_ON PAL_HIGH #define PORTAB_LINE_BUTTON LINE_JOY_CENTER #define PORTAB_BUTTON_PRESSED PAL_HIGH diff --git a/testhal/STM32/multi/PAL/main.c b/testhal/STM32/multi/PAL/main.c index bc1489cb2..84aba0857 100644 --- a/testhal/STM32/multi/PAL/main.c +++ b/testhal/STM32/multi/PAL/main.c @@ -74,10 +74,10 @@ int main(void) { /* Action depending on button state.*/ if (palReadLine(PORTAB_LINE_BUTTON) == PORTAB_BUTTON_PRESSED) { - palWriteLine(PORTAB_LINE_LED1, PORTAB_LEN_ON); + palWriteLine(PORTAB_LINE_LED1, PORTAB_LED_ON); } else { - palWriteLine(PORTAB_LINE_LED1, PORTAB_LEN_OFF); + palWriteLine(PORTAB_LINE_LED1, PORTAB_LED_OFF); } } } @@ -144,10 +144,10 @@ int main(void) { events = chEvtWaitOne(EVENT_MASK(0) | EVENT_MASK(1)); if (events & EVENT_MASK(0)) { - palWriteLine(PORTAB_LINE_LED1, PORTAB_LEN_ON); + palWriteLine(PORTAB_LINE_LED1, PORTAB_LED_ON); } if (events & EVENT_MASK(1)) { - palWriteLine(PORTAB_LINE_LED1, PORTAB_LEN_OFF); + palWriteLine(PORTAB_LINE_LED1, PORTAB_LED_OFF); } } } -- cgit v1.2.3