Defines

board_lgee.h File Reference

Definition of Accelerometer Sensor Board by Daniel Thiele. More...

Go to the source code of this file.

Defines

#define BOARD_LGEE231_H   (1)
#define DDR_SPI   (DDRB)
#define DEFAULT_SPI_RATE   (SPI_RATE_1_2)
#define HWTIMER_REG   (TCNT1)
#define HWTIMER_TICK   ((1.0*HWTMR_PRESCALE)/F_CPU)
#define HWTIMER_TICK_NB   (0xFFFFUL)
#define HWTMR_PRESCALE   (1)
#define NO_KEYS   (1)
#define PORT_SPI   (PORTB)
#define SPI_DATA_REG   SPDR
#define SPI_SELN_HIGH()   PORT_SPI |= SPI_SS; SREG = sreg
#define SPI_SELN_LOW()   uint8_t sreg = SREG; cli(); PORT_SPI &=~SPI_SS
#define SPI_TYPE   SPI_TYPE_SPI
#define SPI_WAITFOR()   do { while((SPSR & (1<<SPIF)) == 0);} while(0)
#define TIMER_INIT()
#define TIMER_IRQ_vect   TIMER1_OVF_vect
#define TIMER_POOL_SIZE   (4)
#define TIMER_TICK   (HWTIMER_TICK_NB * HWTIMER_TICK)
#define TRX_TSTAMP_REG   TCNT1

Detailed Description

Definition of Accelerometer Sensor Board by Daniel Thiele.

The wiring of the radio and the ATmega88 is shown below:

     Transceiver
     AVR         AT86RF231
     ---        ----------
     PC0    -->   SLPTR
     XTAL1  <--   MCLK
     PD2    <--   IRQ (INT2)
     PC1    -->   RSTN
     PB0    -->   /SEL
     PB3    -->   MOSI
     PB4    <--   MISO
     PB5    -->   SCK
     Accelerometer
     AVR        MMA7455L
     ---        --------
     PB2    -->   CS
     PB3    -->   MOSI
     PB4    -->   MISO
     PB5    -->   SCK
     PD3    -->   INT1/DRDY
     PD4    -->   INT2
   Fuses/Locks:
     LF: 0xd2 - 8MHz internal RC Osc.
     HF: 0xDF
     EF: 0x01
Bootloader:
    Start at byte=...., address=....., size = 4096 instructions/ 8192 bytes
littleG_top.png

littleGee Accellerometer Sensor Board


Define Documentation

#define BOARD_LGEE231_H   (1)

Build Options

#define DDR_SPI   (DDRB)

DDR register for SPI port

#define HWTMR_PRESCALE   (1)

Type of the host interface.

#define NO_KEYS   (1)

if defined, no KEYS are connected

#define PORT_SPI   (PORTB)

PORT register for SPI port

#define SPI_DATA_REG   SPDR

abstraction for SPI data register

#define SPI_SELN_HIGH (  )     PORT_SPI |= SPI_SS; SREG = sreg

set SS line to high level

#define SPI_SELN_LOW (  )     uint8_t sreg = SREG; cli(); PORT_SPI &=~SPI_SS

set SS line to low level

#define SPI_WAITFOR (  )     do { while((SPSR & (1<<SPIF)) == 0);} while(0)

wait until SPI transfer is ready

#define TIMER_INIT (  ) 
Value:
do{ \
        TCCR1B |= ((1<<CS10)); \
        TIMSK1 |= (1<<TOIE1); \
    }while(0)
#define TRX_TSTAMP_REG   TCNT1

timestamp register for RX_START event (either TCNTx or ICRx)


This documentation for µracoli was generated on Tue Apr 9 2013 by  doxygen 1.7.1