summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-15 16:09:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-15 16:09:23 +0000
commit1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf (patch)
tree1bb5d252da85c4c2ceab262322217ec58803b854
parent84b10fdbd5fabcd3c84814260d85ba983b582f36 (diff)
downloadpx4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.tar.gz
px4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.tar.bz2
px4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.zip
Fix AVR parity setup
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3703 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--misc/buildroot/configs/README.txt3
-rw-r--r--nuttx/TODO12
-rw-r--r--nuttx/arch/avr/src/at90usb/at90usb_lowconsole.c2
-rw-r--r--nuttx/arch/avr/src/atmega/atmega_lowconsole.c4
4 files changed, 9 insertions, 12 deletions
diff --git a/misc/buildroot/configs/README.txt b/misc/buildroot/configs/README.txt
index 45fdeab55..5239c1354 100644
--- a/misc/buildroot/configs/README.txt
+++ b/misc/buildroot/configs/README.txt
@@ -41,7 +41,8 @@ arm7tdmi-defconfig-4.3.3
(armv4t). These are udates to *-defconfig-4.2.4 (see notes above).
avr-defconfig-4.3.3
- Builds an AVR toolchain using gcc 4.3.3. This configuration
+avr-defconfig-5.4.2
+ Builds an AVR toolchain using gcc 4.3.3 or 4.5.2. This configuration
builds both gcc and g++ for the AVR (armv4t). This toolchain
is intended to support the NuttX ATmega128 port.
diff --git a/nuttx/TODO b/nuttx/TODO
index 64cb151fa..8faa88de6 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -1,4 +1,4 @@
-NuttX TODO List (Last updated June 10, 2011)
+NuttX TODO List (Last updated June 13, 2011)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nuttx/
@@ -17,7 +17,7 @@ nuttx/
(1) Graphics subystem (graphics/)
(1) Pascal add-on (pcode/)
(1) Documentation (Documentation/)
- (5) Build system / Toolchains
+ (4) Build system / Toolchains
(7) Linux/Cywgin simulation (arch/sim)
(4) ARM (arch/arm/)
(1) ARM/C5471 (arch/arm/src/c5471/)
@@ -506,10 +506,6 @@ o Documentation (Documentation/)
o Build system
^^^^^^^^^^^^
- Description: configs/pjrc-8051 should be configs/pjrc-87c52
- Status: Open
- Priority: Low
-
Description: Dependencies do not work correctly under configs/<board>/src
(same as arch/<arch>/src/board).
Status: Open
@@ -526,7 +522,7 @@ o Build system
Status: Open
Priority: Low
- Descritpion: Logic in most setenv.sh files can create the following problem
+ Description: Logic in most setenv.sh files can create the following problem
on many platforms:
$ . ./setenv.sh
@@ -1225,7 +1221,7 @@ o NuttShell (NSH) (apps/nshlib)
Status: Open
Priority: Med-High
- Descripton: The ifconfig command will not behave correctly is an interface
+ Descripton: The ifconfig command will not behave correctly if an interface
is provided and there are multiple interfaces. It should only
show status for the single interface on the command line; it will
still show status for all interfaces.
diff --git a/nuttx/arch/avr/src/at90usb/at90usb_lowconsole.c b/nuttx/arch/avr/src/at90usb/at90usb_lowconsole.c
index 5360eb44d..bbba4478b 100644
--- a/nuttx/arch/avr/src/at90usb/at90usb_lowconsole.c
+++ b/nuttx/arch/avr/src/at90usb/at90usb_lowconsole.c
@@ -199,7 +199,7 @@ void usart1_configure(void)
#if CONFIG_USART1_PARITY == 1
ucsr1c |= ((1 << UPM11) | (1 << UPM10)); /* Odd parity */
-#else
+#elif CONFIG_USART1_PARITY == 2
ucsr1c |= (1 << UPM11); /* Even parity */
#endif
diff --git a/nuttx/arch/avr/src/atmega/atmega_lowconsole.c b/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
index bd49a0491..c1fda6244 100644
--- a/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
+++ b/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
@@ -280,7 +280,7 @@ void usart0_configure(void)
#if CONFIG_USART0_PARITY == 1
ucsr0c |= ((1 << UPM01) | (1 << UPM00)); /* Odd parity */
-#else
+#elif CONFIG_USART0_PARITY == 2
ucsr0c |= (1 << UPM00); /* Even parity */
#endif
@@ -357,7 +357,7 @@ void usart1_configure(void)
#if CONFIG_USART1_PARITY == 1
ucsr1c |= ((1 << UPM11) | (1 << UPM10)); /* Odd parity */
-#else
+#elif CONFIG_USART1_PARITY == 2
ucsr1c |= (1 << UPM11); /* Even parity */
#endif