BEEP-8 SDK 1.0.0
|
Peripheral register map definitions for the BEEP-8 system. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | B8_DISABLE (0) |
#define | B8_ENABLE (1) |
#define | _B8_REG(addr) |
#define | _B8_REG_U8(addr) |
#define | _B8_REG_U16(addr) |
#define | B8_FIFO_INT_VBLANK_ADDR (0xffffb000) |
#define | B8_FIFO_INT_VBLANK_RX _B8_REG( B8_FIFO_INT_VBLANK_ADDR + 0 ) |
#define | B8_FIFO_INT_VBLANK_TX _B8_REG( B8_FIFO_INT_VBLANK_ADDR + 4 ) |
#define | B8_FIFO_INT_VBLANK_LEN _B8_REG( B8_FIFO_INT_VBLANK_ADDR + 8 ) |
#define | B8_FIFO_INT_VBLANK_CLEAR _B8_REG( B8_FIFO_INT_VBLANK_ADDR + 12 ) |
#define | B8_FIFO_SCI_ADDR (0xffffc000) |
#define | B8_FIFO_SCI_TX(n) |
#define | B8_FIFO_SCI_TX_LEN(n) |
#define | B8_FIFO_SCI_RX(n) |
#define | B8_FIFO_SCI_RX_LEN(n) |
#define | B8_INF_ADDR (0xffff2000) |
#define | B8_INF_CPUCLK _B8_REG( B8_INF_ADDR + 0x00 ) |
#define | B8_INF_CAL_L _B8_REG( B8_INF_ADDR + 0x10 ) |
#define | B8_INF_CAL_H _B8_REG( B8_INF_ADDR + 0x14 ) |
#define | B8_TMR_NUM (3) |
#define | B8_TMR_ADDR(n) |
#define | B8_TMR_CTRL(n) |
#define | B8_TMR_MODE(n) |
#define | B8_TMR_MODE_PERIODIC (0) |
#define | B8_TMR_MODE_ONESHOT (1) |
#define | B8_TMR_PER(n) |
#define | B8_TMR_CNT(n) |
Peripheral register map definitions for the BEEP-8 system.
This file consolidates the register maps for various peripherals supported by the BEEP-8 system, including FIFO, SCI, INF, and TMR (Timer). It provides macros for accessing and manipulating the registers of these peripherals.
The defined macros allow easy access to the registers through volatile pointers, ensuring proper memory-mapped I/O operations. Each peripheral is assigned a specific base address, and the macros handle the offset calculations for individual register access.
For more detailed information, please refer to the BEEP-8 data sheet.
#define _B8_REG | ( | addr | ) |
#define _B8_REG_U16 | ( | addr | ) |
#define _B8_REG_U8 | ( | addr | ) |
#define B8_FIFO_SCI_RX | ( | n | ) |
#define B8_FIFO_SCI_RX_LEN | ( | n | ) |
#define B8_FIFO_SCI_TX | ( | n | ) |
#define B8_FIFO_SCI_TX_LEN | ( | n | ) |
#define B8_TMR_ADDR | ( | n | ) |
#define B8_TMR_CNT | ( | n | ) |
#define B8_TMR_CTRL | ( | n | ) |
#define B8_TMR_MODE | ( | n | ) |
#define B8_TMR_PER | ( | n | ) |