Defines

# board_rbb.h File Reference

Definition of Radio Controller Breakout Board (light and normal) from Dresden Elektronik. More...

Go to the source code of this file.

## Defines
#define | DBG_DDR DDRA
#define | DBG_PIN (1<<PA0)
#define | DBG_PORT PORTA
#define | DDR_KEY DDRE
#define | HIF_IO_ENABLE() do{ DDRC |= 0xD0; PORTC |= 0xC0;}while(0);
#define | HIF_TYPE (HIF_UART_1)
#define | HWTIMER_REG (TCNT1)
#define | HWTIMER_TICK ((1.0*HWTMR_PRESCALE)/F_CPU)
#define | HWTIMER_TICK_NB (0xFFFFUL)
#define | HWTMR_PRESCALE (1)
#define | INVERSE_KEYS (1)
#define | LED_DDR DDRE
#define | LED_MASK (0x1c)
#define | LED_NUMBER (3)
#define | LED_PORT PORTE
#define | LED_SHIFT (2)
#define | LEDS_INVERSE (1)
#define | MASK_KEY (0x20)
#define | PIN_KEY PINE
#define | PORT_KEY PORTE
#define | PULLUP_KEYS (1)
#define | SHIFT_KEY (5)
#define | SLEEP_ON_KEY()
#define | SLEEP_ON_KEY_INIT() do{}while(0)
#define | SLEEP_ON_KEY_vect INT5_vect
#define | TIMER_INIT()
#define | TIMER_IRQ_vect TIMER1_OVF_vect
#define | TIMER_POOL_SIZE (4)
#define | TIMER_TICK (HWTIMER_TICK_NB * HWTIMER_TICK)

## Detailed Description

Definition of Radio Controller Breakout Board (light and normal) from Dresden Elektronik.

The Breakout board is a carrier board for the radio controller board family. The transceiver wiring fits the common RCBs. The wiring of the radio and the ATmega is shown below:

              AVR      AT86RF230
              ---      ---------
              PB4  -->  SLPTR
        XTAL1/PD6  <--  CLKM
              PD4  <--  IRQ (ICP1)
              PB5  -->  RSTN
              PB0  -->  /SEL
              PB2  -->  MOSI
              PB3  <--  MISO
              PB1  -->  SCK

        KEY: PE5
        LEDS PE2:PE4

        DBG: PA0 - connector J3:1 (ground J3:10)

    Fuses/Locks:
         LF: 0xe2 - 8MHz internal RC Osc.
         HF: 0x11 - without boot loader
         HF: 0x10 - with boot loader
         EF: 0xff
         LOCK: 0xef - protection of boot section

    Bootloader:
        Start at byte=0x1e000, address=0xf000, size = 4096 instructions/ 8192 bytes

Build Options

- rbb230 : BB + RCB230 prior V3.2 / V3.3.1 (AT86RF230A)
- rbb230b : BB + RCB230 V3.2 / RCB230 V3.3.1 (AT86RF230B)
- rbb231 : BB + RCB231 V4.0.2 / RCB231ED V4.1.1
- rbb212 : BB + RCB212SMA V5.3.2

## Define Documentation

#define SLEEP_ON_KEY | ( |  | ) |

Value:

    do{\
                EIMSK |= _BV(INT5);\
                set_sleep_mode(SLEEP_MODE_PWR_DOWN);\
                sleep_mode();\
                EIMSK &= ~_BV(INT5);\
            } while(0)

#define TIMER_INIT | ( |  | ) |

Value:

    do{ \
            TCCR1B |= (_BV(CS10)); \
            TIMSK1 |= _BV(TOIE1); \
        }while(0)