Fixed a typo.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10607 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2017-09-17 07:50:13 +00:00
parent 16224e72a4
commit 400e809f4f
12 changed files with 27 additions and 27 deletions

View File

@ -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".

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);
}
}
}