projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comment
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
ser_simple_avr.c
diff --git
a/bertos/cpu/avr/drv/ser_simple_avr.c
b/bertos/cpu/avr/drv/ser_simple_avr.c
index 8cd92712bcfed11e4d6bf6c7bf7b32a7629a075e..66a00222c225c1f63dc0f7c2bdf5cf84b78e93e5 100644
(file)
--- a/
bertos/cpu/avr/drv/ser_simple_avr.c
+++ b/
bertos/cpu/avr/drv/ser_simple_avr.c
@@
-45,7
+45,7
@@
#include <cfg/compiler.h>
#include <appconfig.h>
#include <cfg/macros.h> /* BV() */
#include <cfg/compiler.h>
#include <appconfig.h>
#include <cfg/macros.h> /* BV() */
-#include
"hw/hw_cpu.h"
+#include
<hw/hw_cpufreq.h>
#include <avr/io.h>
#include <avr/io.h>
@@
-111,7
+111,7
@@
void _ser_settimeouts(void)
void _ser_setbaudrate(unsigned long rate)
{
/* Compute baud-rate period */
void _ser_setbaudrate(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;
UBRR0H = (period) >> 8;
UBRR0L = (period);
UBRR0H = (period) >> 8;
UBRR0L = (period);