projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error on short hptime_t CPU.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
timer_avr.h
diff --git
a/bertos/cpu/avr/drv/timer_avr.h
b/bertos/cpu/avr/drv/timer_avr.h
index 89d0dd76d134c9d5ff8ebb595838e4e0fa9fa2b2..1288057f6d01e3e3f89f08fea6340c43944ad09c 100644
(file)
--- a/
bertos/cpu/avr/drv/timer_avr.h
+++ b/
bertos/cpu/avr/drv/timer_avr.h
@@
-83,6
+83,7
@@
/// Type of time expressed in ticks of the hardware high-precision timer
typedef uint8_t hptime_t;
/// Type of time expressed in ticks of the hardware high-precision timer
typedef uint8_t hptime_t;
+ #define SIZEOF_HPTIME_T 1
INLINE hptime_t timer_hw_hpread(void)
{
INLINE hptime_t timer_hw_hpread(void)
{
@@
-100,6
+101,7
@@
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
+ #define SIZEOF_HPTIME_T 2
INLINE hptime_t timer_hw_hpread(void)
{
INLINE hptime_t timer_hw_hpread(void)
{
@@
-121,6
+123,7
@@
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint8_t hptime_t;
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint8_t hptime_t;
+ #define SIZEOF_HPTIME_T 1
INLINE hptime_t timer_hw_hpread(void)
{
INLINE hptime_t timer_hw_hpread(void)
{
@@
-138,6
+141,7
@@
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
/// Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
+ #define SIZEOF_HPTIME_T 2
INLINE hptime_t timer_hw_hpread(void)
{
INLINE hptime_t timer_hw_hpread(void)
{