diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-09-17 07:50:13 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-09-17 07:50:13 +0000 |
commit | 400e809f4fcf0a6f280cd6ac8ecefdcffaa1a56c (patch) | |
tree | 9ce0968713c51b4a51790ba2673b8aa720e58bac | |
parent | 16224e72a4a567fa5b2f829ffc38917af9fd7a1a (diff) | |
download | ChibiOS-400e809f4fcf0a6f280cd6ac8ecefdcffaa1a56c.tar.gz ChibiOS-400e809f4fcf0a6f280cd6ac8ecefdcffaa1a56c.tar.bz2 ChibiOS-400e809f4fcf0a6f280cd6ac8ecefdcffaa1a56c.zip |
Fixed a typo.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10607 35acf78f-673a-0410-8e92-d51de3d6d3f4
12 files changed, 27 insertions, 27 deletions
diff --git a/readme.txt b/readme.txt index dd844a4e3..eeb145313 100644 --- a/readme.txt +++ b/readme.txt @@ -89,6 +89,9 @@ *****************************************************************************
*** Next ***
+- NEW: Added a multi-target demo applications for PAL, SPI and USB-CDC
+ showcasing how to manage a project with multiple target boards/devices
+ and handle portability issues.
- NEW: Added to the HAL USB driver a new function usbWakeupHost() for
standby exit.
- NEW: SPI driver improvements, now it is possible to select different
@@ -107,9 +110,6 @@ those each time a new workspace is created, just import the global
ChibiOS project in it. The configurations will appear under the
Eclipse Tools menu.
-- NEW: Added an USB_CDC multi-target demo application showcasing how to
- manage a project with multiple target boards/devices and handle
- portability issues.
- NEW: Improved the various rules.mk to handle "touching" of all
included makefiles, now the makefile is no more assumed to
be called "Makefile".
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);
}
}
}
|