# board.h File Reference

## Detailed Description

Interface for Board Definitions.

Definition in file board.h.

Go to the source code of this file.

## Defines
#define | DBG_CLR() do{}while(0)
#define | DBG_INIT() do{}while(0)
#define | DBG_SET() do{}while(0)
#define | DBG_TOGGLE() do{}while(0)
#define | DELAY_MS(x) _delay_ms(x)
| Macro for delays with ms resolution.
#define | DELAY_US(x) _delay_ms(x/1000.0)
| Macro for delays with us resolution.
#define | HIF_IO_ENABLE() do{}while(0)
#define | HIF_TYPE (HIF_NONE)
#define | HIF_TYPE_IS_UART ((HIF_TYPE >= HIF_UART_0) && ( HIF_TYPE <= HIF_UART_1))
#define | HIF_TYPE_IS_USB ((HIF_TYPE == HIF_FT245) || (HIF_TYPE == HIF_AT90USB))
#define | NO_HIF (1)
#define | PULLUP_KEYS (0)
#define | SLEEP_ON_IDLE()
#define | TRX_RESET_HIGH() PORT_TRX_RESET |= MASK_TRX_RESET
#define | TRX_RESET_INIT() DDR_TRX_RESET |= MASK_TRX_RESET
#define | TRX_RESET_LOW() PORT_TRX_RESET &= ~MASK_TRX_RESET
#define | TRX_SLPTR_HIGH() PORT_TRX_SLPTR |= MASK_TRX_SLPTR
#define | TRX_SLPTR_INIT() DDR_TRX_SLPTR |= MASK_TRX_SLPTR
#define | TRX_SLPTR_LOW() PORT_TRX_SLPTR &= ~MASK_TRX_SLPTR

## Define Documentation

#define DELAY_MS | ( | x |  | ) | _delay_ms(x)

Macro for delays with ms resolution.

Definition at line 68 of file board.h.

#define DELAY_US | ( | x |  | ) | _delay_ms(x/1000.0)

Macro for delays with us resolution.

The avr-libc internal _delay_us() function allows delays up to 255us. Since the radio needs some delays, which are above this value, _delay_ms is used. As long as the argument for the DELAY_US macro is a compile time constant, no large overhead is produced, because the compiler performs the division.

Definition at line 64 of file board.h.

#define HIF_IO_ENABLE | ( |  | ) | do{}while(0)

Thiis macro is used to enable the interface circuit of the HIF

Definition at line 104 of file board.h.

#define NO_HIF (1)

Macro is defined, if there is no HIF definition in apropriate board*.h

Definition at line 98 of file board.h.

#define PULLUP_KEYS (0)

The internal pull-up resistors in the MCU are used, if this macro is defined to 1 in the board definition file

Definition at line 74 of file board.h.

#define SLEEP_ON_IDLE | ( |  | ) |

Value:

    do{\
                set_sleep_mode(SLEEP_MODE_IDLE);\
                sleep_mode();\
            }while(0);

Set MCU into idle mode.

Definition at line 81 of file board.h.

#define TRX_RESET_HIGH | ( |  | ) | PORT_TRX_RESET |= MASK_TRX_RESET

set RESET pin to high level

Definition at line 118 of file board.h.

#define TRX_RESET_INIT | ( |  | ) | DDR_TRX_RESET |= MASK_TRX_RESET

RESET pin IO initialization

Definition at line 113 of file board.h.

#define TRX_RESET_LOW | ( |  | ) | PORT_TRX_RESET &= ~MASK_TRX_RESET

set RESET pin to low level

Definition at line 123 of file board.h.

#define TRX_SLPTR_HIGH | ( |  | ) | PORT_TRX_SLPTR |= MASK_TRX_SLPTR

set SLEEP_TR pin to high level

Definition at line 133 of file board.h.

#define TRX_SLPTR_INIT | ( |  | ) | DDR_TRX_SLPTR |= MASK_TRX_SLPTR

SLEEP_TR pin IO initialization

Definition at line 128 of file board.h.

#define TRX_SLPTR_LOW | ( |  | ) | PORT_TRX_SLPTR &= ~MASK_TRX_SLPTR

set SLEEP_TR pin to low level

Definition at line 138 of file board.h.