projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
STM32: USB full-speed device driver
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
ser_avr.h
diff --git
a/bertos/cpu/avr/drv/ser_avr.h
b/bertos/cpu/avr/drv/ser_avr.h
index 90791e4f22b7d2bcff9d7749d5bea92b3da4400a..5f3c9fb87e437f008a15efeab60d56e76e2bff8c 100644
(file)
--- a/
bertos/cpu/avr/drv/ser_avr.h
+++ b/
bertos/cpu/avr/drv/ser_avr.h
@@
-26,13
+26,13
@@
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2007
, 2010
Develer S.r.l. (http://www.develer.com/)
*
* -->
*
*
* -->
*
- * \version $Id: timer_arm.h 18273 2007-10-11 14:53:02Z batt $
*
* \author Daniele Basile <asterix@develer.com>
*
* \author Daniele Basile <asterix@develer.com>
+ * \author Luca Ottaviano <lottaviano@develer.com>
*
* \brief Low-level serial module for AVR (interface).
*
*
* \brief Low-level serial module for AVR (interface).
*
@@
-86,11
+86,17
@@
typedef uint8_t serstatus_t;
*/
enum
{
*/
enum
{
-#if CPU_AVR_ATMEGA
64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
+#if CPU_AVR_ATMEGA
1280
SER_UART0,
SER_UART1,
SER_UART0,
SER_UART1,
+ SER_UART2,
+ SER_UART3,
SER_SPI,
SER_SPI,
-#elif CPU_AVR_ATMEGA103 || CPU_AVR_ATMEGA8
+#elif CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
+ SER_UART0,
+ SER_UART1,
+ SER_SPI,
+#elif CPU_AVR_ATMEGA103 || CPU_AVR_ATMEGA8 || CPU_AVR_ATMEGA168 || CPU_AVR_ATMEGA328P
SER_UART0,
SER_SPI,
#else
SER_UART0,
SER_SPI,
#else