projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing dependencies.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
ser_avr.c
diff --git
a/bertos/cpu/avr/drv/ser_avr.c
b/bertos/cpu/avr/drv/ser_avr.c
index 9da5d5a2d5eff51e00cbd26e65d44e712045d33f..d3cc743d0d6ca0e32d7d492832bccfd301a509b5 100644
(file)
--- a/
bertos/cpu/avr/drv/ser_avr.c
+++ b/
bertos/cpu/avr/drv/ser_avr.c
@@
-40,7
+40,7
@@
*/
#include "hw/hw_ser.h" /* Required for bus macros overrides */
*/
#include "hw/hw_ser.h" /* Required for bus macros overrides */
-#include
"hw/hw_cpu.h" /* CLOCK
_FREQ */
+#include
<hw/hw_cpufreq.h> /* CPU
_FREQ */
#include "cfg/cfg_ser.h"
#include "cfg/cfg_ser.h"
@@
-377,7
+377,7
@@
static void uart0_enabletxirq(struct SerialHardware *_hw)
static void uart0_setbaudrate(UNUSED_ARG(struct SerialHardware *, _hw), unsigned long rate)
{
/* Compute baud-rate period */
static void uart0_setbaudrate(UNUSED_ARG(struct SerialHardware *, _hw), unsigned long rate)
{
/* Compute baud-rate period */
- uint16_t period = DIV_ROUND(C
LOCK
_FREQ / 16UL, rate) - 1;
+ uint16_t period = DIV_ROUND(C
PU
_FREQ / 16UL, rate) - 1;
#if !CPU_AVR_ATMEGA103
UBRR0H = (period) >> 8;
#if !CPU_AVR_ATMEGA103
UBRR0H = (period) >> 8;
@@
-430,7
+430,7
@@
static void uart1_enabletxirq(struct SerialHardware *_hw)
static void uart1_setbaudrate(UNUSED_ARG(struct SerialHardware *, _hw), unsigned long rate)
{
/* Compute baud-rate period */
static void uart1_setbaudrate(UNUSED_ARG(struct SerialHardware *, _hw), unsigned long rate)
{
/* Compute baud-rate period */
- uint16_t period = DIV_ROUND(C
LOCK
_FREQ / 16UL, rate) - 1;
+ uint16_t period = DIV_ROUND(C
PU
_FREQ / 16UL, rate) - 1;
UBRR1H = (period) >> 8;
UBRR1L = (period);
UBRR1H = (period) >> 8;
UBRR1L = (period);
@@
-783,7
+783,7
@@
SIGNAL(USART1_UDRE_vect)
*
* \sa port 0 TX complete handler.
*/
*
* \sa port 0 TX complete handler.
*/
-SIGNAL(
SIG_UART1_TRANS
)
+SIGNAL(
USART1_TX_vect
)
{
SER_STROBE_ON;
{
SER_STROBE_ON;