diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-08 01:38:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-08 01:38:08 +0000 |
commit | 03ab71774443c9c45135f0834d571a6cd2399bfa (patch) | |
tree | b6c2d6968251b898bb6e4c6541c9d2442099a13a /nuttx/arch/avr/src/at91uc3 | |
parent | 1b177f7d57d5f290cc435f344a512f735d5a0e8f (diff) | |
download | px4-nuttx-03ab71774443c9c45135f0834d571a6cd2399bfa.tar.gz px4-nuttx-03ab71774443c9c45135f0834d571a6cd2399bfa.tar.bz2 px4-nuttx-03ab71774443c9c45135f0834d571a6cd2399bfa.zip |
typos
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2976 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr/src/at91uc3')
-rw-r--r-- | nuttx/arch/avr/src/at91uc3/at91uc3_serial.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c b/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c index ae0dd1453..f5d80ebf9 100644 --- a/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c +++ b/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c @@ -1,7 +1,7 @@ /**************************************************************************** - * arch/arm/src/stm32/avr32_serial.c + * arch/avr/src/at91uc3/at91uc3_serial.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -422,10 +422,8 @@ static int up_setup(struct uart_dev_s *dev) regval = up_serialout(priv, AVR32_USART_MR_OFFSET, regval); - - /* Enable interrupts at the UART */ + /* Disable interrupts at the UART */ #warning "Not Implemented" -/* priv->ie = */ /* Configure hardware flow control -- Not yet supported */ #warning "Not Implemented" @@ -437,6 +435,9 @@ static int up_setup(struct uart_dev_s *dev) #warning "Not Implemented" #endif + /* Initialize the IMR shadow register */ + + priv->ie = up_serialout(priv, AVR32_USART_IMR_OFFSET, regval);; return OK; } |