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.
Macros | |
#define | BB_SIO_MASK 0XD0 |
#define | BB_SIO_VAL 0XC0 |
#define | BOARD_NAME "ATmega128RFA1 RCB" |
#define | BUTTON_PIN_0 (PB0) |
#define | GPIO_PUSH_BUTTON_0 IOPORT_CREATE_PIN(PORTE, 5) |
#define | LED0 LED0_GPIO |
#define | LED0_GPIO LED_0 |
#define | LED0_RCB IOPORT_CREATE_PIN(PORTE, 2) |
#define | LED1 LED1_GPIO |
#define | LED1_GPIO LED_1 |
#define | LED1_RCB IOPORT_CREATE_PIN(PORTE, 3) |
#define | LED2 LED2_GPIO |
#define | LED2_GPIO LED_2 |
#define | LED2_RCB IOPORT_CREATE_PIN(PORTE, 4) |
#define | LED_ADDR_DEC_DDR (DDRD) |
#define | LED_ADDR_DEC_PORT (PORTD) |
#define | LED_COUNT 3 |
#define | MCU_SOC_NAME "ATMEGA128RFA1" |
#define | NUM_CHECK 10 |
#define | XRAM_CTRL_RD_HI() do{ XRAM_CTRL_PORT |= XRAM_RD; }while(0) |
#define | XRAM_CTRL_RD_LO() do{ XRAM_CTRL_PORT &= ~XRAM_RD; }while(0) |
#define | XRAM_CTRL_WR_HI() do{ XRAM_CTRL_PORT |= XRAM_WR; }while(0) |
#define | XRAM_CTRL_WR_LO() do{ XRAM_CTRL_PORT &= ~XRAM_WR; }while(0) |
#define | XRAM_DATA_SETINP() do{ XRAM_DATA_DDR = 0x00; XRAM_DATA_PORT = 0x00; }while(0) |
#define | XRAM_DATA_SETOUTP() do{ XRAM_DATA_DDR = 0xFF; }while(0) |
Macros for XRAM access | |
#define | XRAM_CTRL_PORT (PORTE) |
#define | XRAM_CTRL_DDR (DDRE) |
#define | XRAM_RD (0x20) /* PE5 */ |
#define | XRAM_WR (0x10) /* PE4 */ |
#define | XRAM_DATA_PORT (PORTB) |
#define | XRAM_DATA_DDR (DDRB) |
#define | XRAM_DATA_PIN (PINB) |
#define | XRAM_ALE_PORT (PORTG) |
#define | XRAM_ALE_DDR (DDRG) |
#define | XRAM_ALE_PIN (0x04) /* PG2 */ |
#define | BUTTON_ADDR_DEC_PORT (PORTD) |
#define | BUTTON_PORT (PORTB) |
#define | BUTTON_PORT_DIR (DDRB) |
#define | BUTTON_ADDR_DEC_DDR (DDRD) |
#define | BUTTON_INPUT_PINS (PINB) |
#define BB_SIO_MASK 0XD0 |
Referenced by board_init().
#define BB_SIO_VAL 0XC0 |
#define BOARD_NAME "ATmega128RFA1 RCB" |
#define BUTTON_ADDR_DEC_DDR (DDRD) |
Referenced by stb_button_read().
#define BUTTON_ADDR_DEC_PORT (PORTD) |
Referenced by stb_button_read().
#define BUTTON_INPUT_PINS (PINB) |
Referenced by stb_button_read().
#define BUTTON_PIN_0 (PB0) |
Referenced by stb_button_read().
#define BUTTON_PORT (PORTB) |
Referenced by stb_button_read().
#define BUTTON_PORT_DIR (DDRB) |
Referenced by stb_button_read().
#define GPIO_PUSH_BUTTON_0 IOPORT_CREATE_PIN(PORTE, 5) |
Referenced by board_init(), and stb_button_read().
#define LED0 LED0_GPIO |
#define LED0_GPIO LED_0 |
#define LED0_RCB IOPORT_CREATE_PIN(PORTE, 2) |
Referenced by board_init(), and led_ctrl().
#define LED1 LED1_GPIO |
#define LED1_GPIO LED_1 |
#define LED1_RCB IOPORT_CREATE_PIN(PORTE, 3) |
Referenced by board_init(), and led_ctrl().
#define LED2 LED2_GPIO |
#define LED2_GPIO LED_2 |
#define LED2_RCB IOPORT_CREATE_PIN(PORTE, 4) |
Referenced by board_init(), and led_ctrl().
#define LED_ADDR_DEC_DDR (DDRD) |
Referenced by led_helper_func().
#define LED_ADDR_DEC_PORT (PORTD) |
Referenced by led_helper_func().
#define LED_COUNT 3 |
Referenced by appDataInd().
#define MCU_SOC_NAME "ATMEGA128RFA1" |
#define NUM_CHECK 10 |
Referenced by board_identify().
#define XRAM_ALE_DDR (DDRG) |
Referenced by xram_read(), and xram_write().
#define XRAM_ALE_PIN (0x04) /* PG2 */ |
Referenced by xram_read(), and xram_write().
#define XRAM_ALE_PORT (PORTG) |
Referenced by xram_read(), and xram_write().
#define XRAM_CTRL_DDR (DDRE) |
Referenced by xram_read(), and xram_write().
#define XRAM_CTRL_PORT (PORTE) |
Referenced by xram_read(), and xram_write().
#define XRAM_CTRL_RD_HI | ( | ) | do{ XRAM_CTRL_PORT |= XRAM_RD; }while(0) |
Referenced by xram_read().
#define XRAM_CTRL_RD_LO | ( | ) | do{ XRAM_CTRL_PORT &= ~XRAM_RD; }while(0) |
Referenced by xram_read().
#define XRAM_CTRL_WR_HI | ( | ) | do{ XRAM_CTRL_PORT |= XRAM_WR; }while(0) |
Referenced by xram_write().
#define XRAM_CTRL_WR_LO | ( | ) | do{ XRAM_CTRL_PORT &= ~XRAM_WR; }while(0) |
Referenced by xram_write().
#define XRAM_DATA_DDR (DDRB) |
#define XRAM_DATA_PIN (PINB) |
Referenced by xram_read().
#define XRAM_DATA_PORT (PORTB) |
Referenced by xram_write().
#define XRAM_DATA_SETINP | ( | ) | do{ XRAM_DATA_DDR = 0x00; XRAM_DATA_PORT = 0x00; }while(0) |
Referenced by xram_read(), and xram_write().
#define XRAM_DATA_SETOUTP | ( | ) | do{ XRAM_DATA_DDR = 0xFF; }while(0) |
Referenced by xram_write().
#define XRAM_RD (0x20) /* PE5 */ |
Referenced by xram_read(), and xram_write().
#define XRAM_WR (0x10) /* PE4 */ |
Referenced by xram_read(), and xram_write().