#include <stdint.h>
#include <string.h>
#include "board.h"
#include "periph_conf.h"
#include "timex.h"
Go to the source code of this file.
|
- Note
- These parameters are BOARD and CPU specific. Values can't be taken directly from OpenWSN since they do not necessarily use the same BSP configuration (timers, clock speed, etc.) For precise synchronization these values should be measured and tuned for every BOARD. To understand the relationship between these values and OpenWSN state machine as well as how they can be measured refer to:
|
#define | SLOTDURATION 20 /* in milliseconds */ |
|
|
Used for synchronization in heterogeneous networks (different BOARDs)
Not supported yet, dummy value needs to be provided.
|
#define | SYNC_ACCURACY (1) /* ticks */ |
|
◆ DISABLE_INTERRUPTS
#define DISABLE_INTERRUPTS |
( |
| ) |
|
Value:
MAYBE_INLINE unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.
Definition at line 49 of file board_info.h.
◆ ENABLE_INTERRUPTS
#define ENABLE_INTERRUPTS |
( |
| ) |
|
Value:
MAYBE_INLINE void irq_restore(unsigned state)
This function restores the IRQ disable bit in the status register to the value contained within passe...
Definition at line 50 of file board_info.h.
◆ INTERRUPT_DECLARATION
#define INTERRUPT_DECLARATION |
( |
| ) |
|
◆ PORT_RADIOTIMER_WIDTH
#define PORT_RADIOTIMER_WIDTH uint32_t |
◆ PORT_SIGNED_INT_WIDTH
#define PORT_SIGNED_INT_WIDTH int32_t |
◆ PORT_TICS_PER_MS
#define PORT_TICS_PER_MS (SCTIMER_FREQUENCY / MS_PER_SEC) |
◆ PORT_TIMER_WIDTH
#define PORT_TIMER_WIDTH uint32_t |
◆ PORT_US_PER_TICK
#define PORT_US_PER_TICK (US_PER_SEC / SCTIMER_FREQUENCY) |
◆ SCHEDULER_ENABLE_INTERRUPT
#define SCHEDULER_ENABLE_INTERRUPT |
( |
| ) |
|
◆ SCHEDULER_WAKEUP
#define SCHEDULER_WAKEUP |
( |
| ) |
|
◆ SCTIMER_FREQUENCY
#define SCTIMER_FREQUENCY (32768U) |
◆ SLOTDURATION
#define SLOTDURATION 20 /* in milliseconds */ |
◆ SYNC_ACCURACY
#define SYNC_ACCURACY (1) /* ticks */ |