38#define PPI_TASK_CHG_EN(n) MMIO32(PPI_BASE + 0x8 * (n))
39#define PPI_TASK_CHG_DIS(n) MMIO32(PPI_BASE + 0x8 * (n) + 0x4)
43#define PPI_CHEN MMIO32(PPI_BASE + 0x500)
44#define PPI_CHENSET MMIO32(PPI_BASE + 0x504)
45#define PPI_CHENCLR MMIO32(PPI_BASE + 0x508)
48#define PPI_CH_EEP(n) MMIO32(PPI_BASE + 0x510 + 0x8 * (n))
50#define PPI_CH_TEP(n) MMIO32(PPI_BASE + 0x514 + 0x8 * (n))
53#define PPI_CHG(n) MMIO32(PPI_BASE + 0x800 + 0x4 * (n))
55#define PPI_CH(n) (1 << (n))
59#define PPI_CH0 (1 << 0)
60#define PPI_CH1 (1 << 1)
61#define PPI_CH2 (1 << 2)
62#define PPI_CH3 (1 << 3)
63#define PPI_CH4 (1 << 4)
64#define PPI_CH5 (1 << 5)
65#define PPI_CH6 (1 << 6)
66#define PPI_CH7 (1 << 7)
67#define PPI_CH8 (1 << 8)
68#define PPI_CH9 (1 << 9)
69#define PPI_CH10 (1 << 10)
70#define PPI_CH11 (1 << 11)
71#define PPI_CH12 (1 << 12)
72#define PPI_CH13 (1 << 13)
73#define PPI_CH14 (1 << 14)
74#define PPI_CH15 (1 << 15)
76#define PPI_CH20 (1 << 20)
77#define PPI_CH21 (1 << 21)
78#define PPI_CH22 (1 << 22)
79#define PPI_CH23 (1 << 23)
80#define PPI_CH24 (1 << 24)
81#define PPI_CH25 (1 << 25)
82#define PPI_CH26 (1 << 26)
83#define PPI_CH27 (1 << 27)
84#define PPI_CH28 (1 << 28)
85#define PPI_CH29 (1 << 29)
86#define PPI_CH30 (1 << 30)
87#define PPI_CH31 (1 << 31)
91#define PPI_MAX_PROG_CHANNEL (15)
95#define PPI_CH_TMR0CC0_RADIOTXEN PPI_CH20
98#define PPI_CH_TMR0CC0_RADIORXEN PPI_CH21
101#define PPI_CH_TMR0CC1_RADIODIS PPI_CH22
104#define PPI_CH_RADIOBCMATCH_AARSTART PPI_CH23
107#define PPI_CH_RADIOREADY_CCMKSGEN PPI_CH24
110#define PPI_CH_RADIOADDR_CCMCRYPT PPI_CH25
113#define PPI_CH_RADIOADDR_TMR0CAPT1 PPI_CH26
116#define PPI_CH_RADIOEND_TMR0CAPT2 PPI_CH27
119#define PPI_CH_RTC0CC0_RADIOTXEN PPI_CH28
122#define PPI_CH_RTC0CC0_RADIORXEN PPI_CH29
125#define PPI_CH_RTC0CC0_TMR0CLEAR PPI_CH30
128#define PPI_CH_RTC0CC0_TMR0START PPI_CH31
142uint8_t
ppi_add_channel(uint32_t *chan_map, uint32_t eep, uint32_t tep,
bool enable);
void ppi_configure_channel(uint8_t chan_num, uint32_t eep, uint32_t tep)
Configure PPI Channel.
void ppi_enable_group(uint8_t group)
Enable previously configured group of channels.
void ppi_enable_channels(uint32_t channels)
Enable PPI channels, given the channels mask.
void ppi_remove_channel(uint32_t *chan_map, uint8_t chan_num)
Disable channel and remove it from the map of used channels.
void ppi_disable_channels(uint32_t channels)
Disable PPI channels, given the channels mask.
void ppi_set_group(uint8_t group, uint32_t channels)
Set channels group, given channels mask.
void ppi_disable_group(uint8_t group)
Disable previously configured group of channels.
uint8_t ppi_add_channel(uint32_t *chan_map, uint32_t eep, uint32_t tep, bool enable)
Configure new channel.