ATmegaRFX RCB board header file.
This file contains definitions and services related to the features of the ATmega256RFR2 Xplained Pro board.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
|
#define | ACC_PWR (PB5) |
|
#define | BOARD_NAME "ATmega128RFA1 RCB" |
|
#define | BUTTON_1_ISR_FLAG (1 << INTF1) |
|
#define | BUTTON_1_ISR_MASK (1 << INT1) |
|
#define | BUTTON_1_ISR_vect (INT1_vect) |
|
#define | BUTTON_2_ISR_FLAG (1 << INTF2) |
|
#define | BUTTON_2_ISR_MASK (1 << INT2) |
|
#define | BUTTON_2_ISR_vect (INT2_vect) |
|
#define | BUTTON_3_ISR_FLAG (1 << INTF3) |
|
#define | BUTTON_3_ISR_MASK (1 << INT3) |
|
#define | BUTTON_3_ISR_vect (INT3_vect) |
|
#define | BUTTON_DOWN 0x00400000 |
|
#define | BUTTON_ENTER 0x00100000 |
|
#define | BUTTON_F1_BLUE 0x00000008 |
|
#define | BUTTON_F2_RED 0x00000001 |
|
#define | BUTTON_F3_GREEN 0x00000002 |
|
#define | BUTTON_F4_YELLOW 0x00000004 |
|
#define | BUTTON_FLAG_REG (EIFR) |
|
#define | button_id_t uint32_t |
|
#define | BUTTON_IRQ_1_IN_MASK (1 << PIND1) |
|
#define | BUTTON_IRQ_2_IN_MASK (1 << PIND2) |
|
#define | BUTTON_IRQ_3_IN_MASK (1 << PIND3) |
|
#define | BUTTON_IRQ_PIN_1 IOPORT_CREATE_PIN(PORTD, 1) |
|
#define | BUTTON_IRQ_PIN_2 IOPORT_CREATE_PIN(PORTD, 2) |
|
#define | BUTTON_IRQ_PIN_3 IOPORT_CREATE_PIN(PORTD, 3) |
|
#define | BUTTON_IRQ_PORT (PORTD) |
|
#define | BUTTON_IRQ_PORT_DIR (DDRD) |
|
#define | BUTTON_IRQ_PORT_IN (PIND) |
|
#define | BUTTON_LEFT 0x00080000 |
|
#define | BUTTON_LEFT_DOWN 0x01000000 |
|
#define | BUTTON_LEFT_UP 0x00800000 |
|
#define | BUTTON_NUMBER_0 0x00000020 |
|
#define | BUTTON_NUMBER_1 0x00000200 |
|
#define | BUTTON_NUMBER_2 0x00000400 |
|
#define | BUTTON_NUMBER_3 0x00000800 |
|
#define | BUTTON_NUMBER_4 0x00001000 |
|
#define | BUTTON_NUMBER_5 0x00002000 |
|
#define | BUTTON_NUMBER_6 0x00004000 |
|
#define | BUTTON_NUMBER_7 0x00008000 |
|
#define | BUTTON_NUMBER_8 0x00010000 |
|
#define | BUTTON_NUMBER_9 0x00020000 |
|
#define | BUTTON_PIN_0 IOPORT_CREATE_PIN(PORTB, 0) |
|
#define | BUTTON_PIN_1 IOPORT_CREATE_PIN(PORTB, 1) |
|
#define | BUTTON_PIN_2 IOPORT_CREATE_PIN(PORTB, 2) |
|
#define | BUTTON_PIN_3 IOPORT_CREATE_PIN(PORTB, 3) |
|
#define | BUTTON_PIN_4 IOPORT_CREATE_PIN(PORTB, 4) |
|
#define | BUTTON_PIN_5 IOPORT_CREATE_PIN(PORTB, 5) |
|
#define | BUTTON_PIN_6 IOPORT_CREATE_PIN(PORTB, 6) |
|
#define | BUTTON_PIN_7 IOPORT_CREATE_PIN(PORTD, 5) |
|
#define | BUTTON_PIN_8 IOPORT_CREATE_PIN(PORTD, 7) |
|
#define | BUTTON_PORT1 (PORTB) |
|
#define | BUTTON_PORT1_DIR (DDRB) |
|
#define | BUTTON_PORT1_IN (PINB) |
|
#define | BUTTON_PORT2 (PORTD) |
|
#define | BUTTON_PORT2_DIR (DDRD) |
|
#define | BUTTON_PORT2_IN (PIND) |
|
#define | BUTTON_POWER_OFF_FUNCTION 0x00000040 |
|
#define | BUTTON_RIGHT 0x00200000 |
|
#define | BUTTON_RIGHT_DOWN 0x04000000 |
|
#define | BUTTON_RIGHT_UP 0x02000000 |
|
#define | BUTTON_SELECT 0x00000010 |
|
#define | BUTTON_UNKNOWN 0x00000000 |
|
#define | BUTTON_UP 0x00040000 |
|
#define | CLEAR_ALL_BUTTON_IRQ_FLAGS() BUTTON_FLAG_REG = BUTTON_1_ISR_FLAG | BUTTON_2_ISR_FLAG | BUTTON_3_ISR_FLAG |
|
#define | DISABLE_ALL_BUTTON_IRQS() EIMSK &= ~(BUTTON_1_ISR_MASK | BUTTON_2_ISR_MASK | BUTTON_3_ISR_MASK) |
|
#define | ENABLE_ALL_BUTTON_IRQS() EIMSK |= (BUTTON_1_ISR_MASK | BUTTON_2_ISR_MASK | BUTTON_3_ISR_MASK) |
|
#define | INTER_BUTTON_SCAN_DELAY 100 |
|
#define | KEY_RC_IO_MASK 0XDC |
|
#define | KEY_RC_IO_VAL 0XDC |
|
#define | LATCH_DATA PORTB |
|
#define | LATCH_DATA_DIR DDRB |
|
#define | LATCH_HIGH() LATCH_PORT |= 1 << LATCH_PIN |
|
#define | LATCH_INIT() |
|
#define | LATCH_LOW() LATCH_PORT &= ~(1 << LATCH_PIN) |
|
#define | LATCH_PIN PE5 |
|
#define | LATCH_PORT PORTE |
|
#define | LATCH_PORT_DIR DDRE |
|
#define | LATCH_PULSE() LATCH_HIGH(); LATCH_LOW() |
|
#define | LCD_CS_ON_BOARD IOPORT_CREATE_PIN(PORTE, 4) |
|
#define | LCD_RST_ON_BOARD IOPORT_CREATE_PIN(PORTE, 4) |
|
#define | LED0 0 |
|
#define | LED1 1 |
|
#define | LED2 2 |
|
#define | LED3 3 |
|
#define | LED4 4 |
|
#define | LED_1_PIN IOPORT_CREATE_PIN(PORTB, 0) |
|
#define | LED_2_PIN IOPORT_CREATE_PIN(PORTB, 1) |
|
#define | LED_3_PIN IOPORT_CREATE_PIN(PORTB, 2) |
|
#define | LED_4_PIN IOPORT_CREATE_PIN(PORTB, 3) |
|
#define | LED_5_PIN IOPORT_CREATE_PIN(PORTB, 4) |
|
#define | LED_COUNT 5 |
|
#define | MAX_KEY_SCANS 6 |
|
#define | MCU_SOC_NAME "ATMEGA128RFA1" |
|
#define | NO_OF_BUTTONS (24) |
|
#define | NO_OF_LEDS (5) |
|
#define | NUM_OF_IDENTICAL_KEYS 3 |
|
#define | WAKEUP_DEBOUNCE_DELAY 5000 |
|