#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "thsq-conf-const.h"
#include "rf233.h"
Macros | |
#define | CC_CONF_DOUBLE_HASH 0 |
#define | CC_CONF_FASTCALL |
#define | CC_CONF_FUNCTION_POINTER_ARGS 1 |
#define | CC_CONF_INLINE inline |
#define | CC_CONF_NO_VA_ARGS 0 |
#define | CC_CONF_REGISTER_ARGS 0 |
#define | CC_CONF_UNSIGNED_CHAR_BUGS 0 |
#define | CC_CONF_VA_ARGS 1 |
#define | CC_NO_VA_ARGS 0 |
#define | CCIF |
#define | CLIF |
#define | CLOCK_CONF_SECOND 128 |
#define | EXT_HEADER_1 1 |
#define | EXT_HEADER_2 2 |
#define | EXT_HEADER_3 3 |
#define | F_CPU 48000000ul |
#define | MULTICHAN_CONF_READ_RSSI(x) 0 |
#define | MULTICHAN_CONF_SET_CHANNEL(x) rf_set_channel(x) |
#define | REB233XPRO_HEADER SAMR21_SIP |
#define | RTIMER_ARCH_SECOND 31250 |
#define | RTIMER_CLOCK_LT(a, b) ((signed short)((a)-(b)) < 0) |
#define | SAMR21_SIP 4 |
Typedefs | |
typedef unsigned long | clock_time_t |
typedef uint32_t | rtimer_clock_t |
typedef unsigned short | uip_stats_t |
Functions | |
void | clock_adjust_ticks (clock_time_t howmany) |
Adjust the system current clock time. More... | |
#define CC_CONF_DOUBLE_HASH 0 |
#define CC_CONF_FASTCALL |
#define CC_CONF_FUNCTION_POINTER_ARGS 1 |
#define CC_CONF_INLINE inline |
#define CC_CONF_NO_VA_ARGS 0 |
#define CC_CONF_REGISTER_ARGS 0 |
#define CC_CONF_UNSIGNED_CHAR_BUGS 0 |
#define CC_CONF_VA_ARGS 1 |
#define CC_NO_VA_ARGS 0 |
#define CCIF |
#define CLIF |
#define CLOCK_CONF_SECOND 128 |
Referenced by rtimer_adjust_ticks().
#define EXT_HEADER_1 1 |
#define EXT_HEADER_2 2 |
#define EXT_HEADER_3 3 |
#define F_CPU 48000000ul |
#define MULTICHAN_CONF_READ_RSSI | ( | x | ) | 0 |
#define MULTICHAN_CONF_SET_CHANNEL | ( | x | ) | rf_set_channel(x) |
#define REB233XPRO_HEADER SAMR21_SIP |
#define RTIMER_ARCH_SECOND 31250 |
Referenced by duty_cycle(), phase_wait(), powercycle(), rtimer_adjust_ticks(), and rtimer_arch_sleep().
#define RTIMER_CLOCK_LT | ( | a, | |
b | |||
) | ((signed short)((a)-(b)) < 0) |
Referenced by phase_wait(), powercycle(), rtimer_arch_schedule(), schedule_powercycle(), schedule_powercycle_fixed(), send_one_packet(), and send_packet().
#define SAMR21_SIP 4 |
typedef unsigned long clock_time_t |
typedef uint32_t rtimer_clock_t |
typedef unsigned short uip_stats_t |
void clock_adjust_ticks | ( | clock_time_t | howmany | ) |
Adjust the system current clock time.
dt | How many ticks to add |
Typically used to add ticks after an MCU sleep clock_seconds will increment if necessary to reflect the tick addition. Leap ticks or seconds can (rarely) be introduced if the ISR is not blocked.
References CLOCK_SECOND, seconds, sleepseconds, and ticks.
Referenced by rtimer_adjust_ticks().