projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sam3 serial: define and generalize peripheral assignement (A, B, C,...) to serial...
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
ser_sam3.c
diff --git
a/bertos/cpu/cortex-m3/drv/ser_sam3.c
b/bertos/cpu/cortex-m3/drv/ser_sam3.c
index d9c2bc65c4693787a85e3dc00566b1fb55a92000..8c2f764ecbda7097466a3fb6e5083c4919aec9d4 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/ser_sam3.c
+++ b/
bertos/cpu/cortex-m3/drv/ser_sam3.c
@@
-91,7
+91,7
@@
#endif
#define SER_UART0_BUS_TXINIT do { \
PIOA_PDR = BV(RXD0) | BV(TXD0); \
#endif
#define SER_UART0_BUS_TXINIT do { \
PIOA_PDR = BV(RXD0) | BV(TXD0); \
- PIO_PERIPH_SEL(PIOA_BASE, BV(RXD0) | BV(TXD0),
PIO_PERIPH_A
); \
+ PIO_PERIPH_SEL(PIOA_BASE, BV(RXD0) | BV(TXD0),
USART0_PERIPH
); \
} while (0)
#endif
} while (0)
#endif
@@
-133,7
+133,7
@@
#endif
#define SER_UART1_BUS_TXINIT do { \
PIOA_PDR = BV(RXD1) | BV(TXD1); \
#endif
#define SER_UART1_BUS_TXINIT do { \
PIOA_PDR = BV(RXD1) | BV(TXD1); \
- PIO_PERIPH_SEL(PIOA_BASE, BV(RXD1) | BV(TXD1),
PIO_PERIPH_A
); \
+ PIO_PERIPH_SEL(PIOA_BASE, BV(RXD1) | BV(TXD1),
USART1_PERIPH
); \
} while (0)
#endif
} while (0)
#endif