mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-16 07:28:57 +00:00
Reduce RIME max time to fit in 16 bit timer
This commit is contained in:
parent
52feb47d5e
commit
f2f7c169ea
@ -43,12 +43,20 @@
|
|||||||
#ifndef __CONTIKI_CONF_H__
|
#ifndef __CONTIKI_CONF_H__
|
||||||
#define __CONTIKI_CONF_H__
|
#define __CONTIKI_CONF_H__
|
||||||
|
|
||||||
/* MCU, Clock rate, ticks per second */
|
/* MCU and clock rate */
|
||||||
|
#define MCU_MHZ 8
|
||||||
#define PLATFORM PLATFORM_AVR
|
#define PLATFORM PLATFORM_AVR
|
||||||
#define RAVEN_REVISION RAVEN_D
|
#define RAVEN_REVISION RAVEN_D
|
||||||
#define MCU_MHZ 8
|
|
||||||
|
/* Clock ticks per second */
|
||||||
#define CLOCK_CONF_SECOND 125
|
#define CLOCK_CONF_SECOND 125
|
||||||
|
|
||||||
|
/* Since clock_time_t is 16 bits, maximum interval is 524 seconds */
|
||||||
|
#define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL /*Default uses 600*/
|
||||||
|
|
||||||
|
/* Maximum time interval (used for timers) */
|
||||||
|
#define INFINITE_TIME 0xffff
|
||||||
|
|
||||||
/* COM port to be used for SLIP connection */
|
/* COM port to be used for SLIP connection */
|
||||||
#define SLIP_PORT RS232_PORT_0
|
#define SLIP_PORT RS232_PORT_0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user