Meshnetics Zigbit ATmega1281-A2 with ATmega1281 and AT86RF230. More...
Go to the source code of this file.
Defines | |
#define | HWTIMER_REG (TCNT1) |
#define | HWTIMER_TICK ((1.0*HWTMR_PRESCALE)/F_CPU) |
#define | HWTIMER_TICK_NB (0xFFFFUL+1) |
#define | HWTMR_PRESCALE (1) |
#define | LED_NUMBER (0) |
#define | NO_KEYS (1) |
#define | NO_LEDS (1) |
#define | TIMER_INIT() |
#define | TIMER_IRQ_vect TIMER1_OVF_vect |
#define | TIMER_POOL_SIZE (4) |
#define | TIMER_TICK (HWTIMER_TICK_NB * HWTIMER_TICK) |
Meshnetics Zigbit ATmega1281-A2 with ATmega1281 and AT86RF230.
See also
The wiring of the radio and the ATmega is shown below:
AVR RF230 --- ----- PB4 --> SLPTR PE5 <-- IRQ (INT5) PA7 --> RSTN PB0 --> SS PB2 --> MOSI PB3 <-- MISO PB1 --> SCK XTAL1 <-- MCLK
Fuses/Locks: uracoli settings: LF: 0xe2 - 8MHz internal RC Osc. HF: 0x91 - without boot loader (0x11 for debugging) HF: 0x90 - with boot loader (0x10 for debugging) EF: 0xff LOCK: 0xef - protection of boot section
original settings LF: 0x62 - RC oscillator 1 MHz HF: 0x9c - JTAG enabled, ISP enabled, reset to bootloader, 1024 words bootloader size EF: 0xff - no brownout
Bootloader: Start at byte=0x1e000, address=0xf000, size = 4096 instructions/ 8192 bytes
#define HWTMR_PRESCALE (1) |
UART0 is routed to the ISP pins, alternatively, UART1 can be used.
Timer is clocked at F_CPU, and TIMER_IRQ_vect is called every 65535 ticks.
#define LED_NUMBER (0) |
number of LEDs for this board
#define TIMER_INIT | ( | ) |
do{ \ TCCR1B |= (_BV(CS10));\ TIMSK1 |= _BV(TOIE1); \ }while(0)