libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the Peripheral Reflex System More...
Modules | |
PRS Channel Number | |
Functions | |
void | prs_enable_gpio_output (enum prs_ch ch) |
Enable PRS output to GPIO. More... | |
void | prs_disable_gpio_output (enum prs_ch ch) |
Disable PRS output to GPIO. More... | |
void | prs_set_output_loc (uint32_t loc) |
Location of the PRS to be output on GPIO. More... | |
void | prs_software_pulse (enum prs_ch ch) |
Generate software pulse. More... | |
void | prs_software_level_high (enum prs_ch ch) |
HIGH is XOR'ed with the corresponding bit in the software-pulse and the PRS input signal to generate. More... | |
void | prs_software_level_low (enum prs_ch ch) |
LOW is XOR'ed with the corresponding bit in the software-pulse and the PRS input signal to generate. More... | |
void | prs_enable_async (enum prs_ch ch) |
disable synchronization of this channel reflex signal More... | |
void | prs_disable_async (enum prs_ch ch) |
enable synchronization of this channel reflex signal More... | |
void | prs_set_edge (enum prs_ch ch, uint32_t edge) |
Edge detection for the channel. More... | |
void | prs_set_source (enum prs_ch ch, uint32_t source) |
Source for the channel. More... | |
void | prs_set_signal (enum prs_ch ch, uint32_t sig) |
Source for the channel. More... | |
Defined Constants and Types for the Peripheral Reflex System
LGPL License Terms libopencm3 License
#define PRS_CH0_CTRL PRS_CHx_CTRL(0) |
Definition at line 33 of file prs_common.h.
#define PRS_CH10_CTRL PRS_CHx_CTRL(10) |
Definition at line 43 of file prs_common.h.
#define PRS_CH11_CTRL PRS_CHx_CTRL(11) |
Definition at line 44 of file prs_common.h.
#define PRS_CH1_CTRL PRS_CHx_CTRL(1) |
Definition at line 34 of file prs_common.h.
#define PRS_CH2_CTRL PRS_CHx_CTRL(2) |
Definition at line 35 of file prs_common.h.
#define PRS_CH3_CTRL PRS_CHx_CTRL(3) |
Definition at line 36 of file prs_common.h.
#define PRS_CH4_CTRL PRS_CHx_CTRL(4) |
Definition at line 37 of file prs_common.h.
#define PRS_CH5_CTRL PRS_CHx_CTRL(5) |
Definition at line 38 of file prs_common.h.
#define PRS_CH6_CTRL PRS_CHx_CTRL(6) |
Definition at line 39 of file prs_common.h.
#define PRS_CH7_CTRL PRS_CHx_CTRL(71) |
Definition at line 40 of file prs_common.h.
#define PRS_CH8_CTRL PRS_CHx_CTRL(8) |
Definition at line 41 of file prs_common.h.
#define PRS_CH9_CTRL PRS_CHx_CTRL(9) |
Definition at line 42 of file prs_common.h.
#define PRS_CH_CTRL_ASYNC (1 << 28) |
Definition at line 92 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_BOTHEDGES (3 << PRS_CH_CTRL_EDSEL_SHIFT) |
Definition at line 99 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_MASK (0x3 << PRS_CH_CTRL_EDSEL_SHIFT) |
Definition at line 95 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_NEGEDGE (2 << PRS_CH_CTRL_EDSEL_SHIFT) |
Definition at line 98 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_OFF (0 << PRS_CH_CTRL_EDSEL_SHIFT) |
Definition at line 96 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_POSEDGE (1 << PRS_CH_CTRL_EDSEL_SHIFT) |
Definition at line 97 of file prs_common.h.
#define PRS_CH_CTRL_EDSEL_SHIFT (24) |
Definition at line 94 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL | ( | v | ) | (((v) << PRS_CH_CTRL_SIGSEL_SHIFT) & PRS_CH_CTRL_SIGSEL_MASK) |
Definition at line 132 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ACMP0OUT 0 |
Definition at line 136 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ACMP1OUT 0 |
Definition at line 137 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ACMP_OUT 0 |
Definition at line 220 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ADC_SCAN 1 |
Definition at line 225 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ADC_SINGLE 0 |
Definition at line 224 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ADCSCAN 1 |
Definition at line 141 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_ADCSINGLE 0 |
Definition at line 140 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_BURTC_COMP0 1 |
Definition at line 283 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_BURTC_OF 0 |
Definition at line 282 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_BURTCCOMP0 1 |
Definition at line 197 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_BURTCOF 0 |
Definition at line 196 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_DAC0CH0 0 |
Definition at line 138 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_DAC0CH1 1 |
Definition at line 139 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_DAC_CH0 0 |
Definition at line 222 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_DAC_CH1 1 |
Definition at line 223 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_DAC_CHx | ( | x | ) | PRS_CH_CTRL_SIGSEL(x) |
Definition at line 221 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN0 0 |
Definition at line 244 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN1 1 |
Definition at line 246 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN10 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(10) |
Definition at line 265 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN11 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(11) |
Definition at line 267 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN12 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(12) |
Definition at line 269 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN13 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(13) |
Definition at line 271 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN14 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(14) |
Definition at line 273 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN15 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(15) |
Definition at line 275 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN2 2 |
Definition at line 248 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN3 3 |
Definition at line 250 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN4 4 |
Definition at line 252 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN5 5 |
Definition at line 254 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN6 6 |
Definition at line 256 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN7 7 |
Definition at line 258 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN8 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(8) |
Definition at line 261 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIO_PIN9 PRS_CH_CTRL_SIGSEL_GPIOH_PINx(9) |
Definition at line 263 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOH_PINx | ( | x | ) | PRS_CH_CTRL_SIGSEL((x) - 8) |
Definition at line 260 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOL_PINx | ( | x | ) | PRS_CH_CTRL_SIGSEL(x) |
Definition at line 243 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN0 0 |
Definition at line 178 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN1 1 |
Definition at line 179 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN10 2 |
Definition at line 188 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN11 3 |
Definition at line 189 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN12 4 |
Definition at line 190 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN13 5 |
Definition at line 191 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN14 6 |
Definition at line 192 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN15 7 |
Definition at line 193 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN2 2 |
Definition at line 180 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN3 3 |
Definition at line 181 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN4 4 |
Definition at line 182 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN5 5 |
Definition at line 183 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN6 6 |
Definition at line 184 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN7 7 |
Definition at line 185 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN8 0 |
Definition at line 186 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN9 1 |
Definition at line 187 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_DEC0 0 |
Definition at line 320 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_DEC1 1 |
Definition at line 322 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_DEC2 2 |
Definition at line 324 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES0 0 |
Definition at line 285 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES1 1 |
Definition at line 287 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES10 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(10) |
Definition at line 307 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES11 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(11) |
Definition at line 309 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES12 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(12) |
Definition at line 311 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES13 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(13) |
Definition at line 313 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES14 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(14) |
Definition at line 315 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES15 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(15) |
Definition at line 317 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES2 2 |
Definition at line 289 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES3 3 |
Definition at line 291 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES4 4 |
Definition at line 293 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES5 5 |
Definition at line 295 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES6 6 |
Definition at line 297 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES7 7 |
Definition at line 299 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES8 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(8) |
Definition at line 303 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSE_SCANRES9 PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx(9) |
Definition at line 305 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSED_DECx | ( | x | ) | PRS_CH_CTRL_SIGSEL(x) |
Definition at line 319 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSEDEC0 0 |
Definition at line 214 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSEDEC1 1 |
Definition at line 215 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSEDEC2 2 |
Definition at line 216 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSEH_SCANRESx | ( | x | ) | PRS_CH_CTRL_SIGSEL((x) - 8) |
Definition at line 301 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSEL_SCANRESx | ( | x | ) | PRS_CH_CTRL_SIGSEL(x) |
Definition at line 284 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES0 0 |
Definition at line 198 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES1 1 |
Definition at line 199 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES10 2 |
Definition at line 208 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES11 3 |
Definition at line 209 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES12 4 |
Definition at line 210 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES13 5 |
Definition at line 211 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES14 6 |
Definition at line 212 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES15 7 |
Definition at line 213 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES2 2 |
Definition at line 200 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES3 3 |
Definition at line 201 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES4 4 |
Definition at line 202 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES5 5 |
Definition at line 203 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES6 6 |
Definition at line 204 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES7 7 |
Definition at line 205 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES8 0 |
Definition at line 206 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LESENSESCANRES9 1 |
Definition at line 207 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LETIMER0CH0 0 |
Definition at line 194 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LETIMER0CH1 1 |
Definition at line 195 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LETIMER_CH0 0 |
Definition at line 278 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LETIMER_CH1 1 |
Definition at line 280 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_LETIMER_CHx | ( | x | ) | PRS_CH_CTRL_SIGSEL(x) |
Definition at line 277 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_MASK (0x7 << PRS_CH_CTRL_SIGSEL_SHIFT) |
Definition at line 131 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_OFF 0 |
Definition at line 134 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTC_COMP0 PRS_CH_CTRL_SIGSEL_RTC_COMPx(0) |
Definition at line 239 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTC_COMP1 PRS_CH_CTRL_SIGSEL_RTC_COMPx(1) |
Definition at line 240 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTC_COMPx | ( | x | ) | PRS_CH_CTRL_SIGSEL((x) + 1) |
Definition at line 238 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTC_OF 0 |
Definition at line 237 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTCCOMP0 1 |
Definition at line 172 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTCCOMP1 2 |
Definition at line 173 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_RTCOF 0 |
Definition at line 171 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_SHIFT (0) |
Definition at line 130 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER0CC0 2 |
Definition at line 151 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER0CC1 3 |
Definition at line 152 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER0CC2 4 |
Definition at line 153 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER0OF 1 |
Definition at line 150 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER0UF 0 |
Definition at line 149 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER1CC0 2 |
Definition at line 156 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER1CC1 3 |
Definition at line 157 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER1CC2 4 |
Definition at line 158 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER1OF 1 |
Definition at line 155 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER1UF 0 |
Definition at line 154 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER2CC0 2 |
Definition at line 161 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER2CC1 3 |
Definition at line 162 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER2CC2 4 |
Definition at line 163 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER2OF 1 |
Definition at line 160 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER2UF 0 |
Definition at line 159 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER3CC0 2 |
Definition at line 166 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER3CC1 3 |
Definition at line 167 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER3CC2 4 |
Definition at line 168 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER3OF 1 |
Definition at line 165 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER3UF 0 |
Definition at line 164 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_CC0 PRS_CH_CTRL_SIGSEL_TIMER_CCx(0) |
Definition at line 232 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_CC1 PRS_CH_CTRL_SIGSEL_TIMER_CCx(1) |
Definition at line 233 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_CC2 PRS_CH_CTRL_SIGSEL_TIMER_CCx(2) |
Definition at line 234 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_CCx | ( | x | ) | PRS_CH_CTRL_SIGSEL((x) + 2) |
Definition at line 231 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_OF 1 |
Definition at line 230 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_TIMER_UF 0 |
Definition at line 229 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART0RXDATAV 2 |
Definition at line 175 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART0TXC 1 |
Definition at line 174 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART1RXDATAV 2 |
Definition at line 177 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART1TXC 1 |
Definition at line 176 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART_RXDATAV 2 |
Definition at line 242 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_UART_TXC 1 |
Definition at line 241 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART0IRTX 0 |
Definition at line 142 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART0RXDATA 2 |
Definition at line 144 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART0TXC 1 |
Definition at line 143 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART1RXDATAV 2 |
Definition at line 146 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART1TXC 1 |
Definition at line 145 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART2RXDATAV 2 |
Definition at line 148 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART2TXC 1 |
Definition at line 147 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART_IRTX 0 |
Definition at line 226 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART_RXDATAV 2 |
Definition at line 228 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USART_TXC 1 |
Definition at line 227 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USB_SOF 0 |
Definition at line 235 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USB_SOFSR 1 |
Definition at line 236 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USBSOF 0 |
Definition at line 169 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_USBSOFSR 1 |
Definition at line 170 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_VCMP_OUT 0 |
Definition at line 219 of file prs_common.h.
#define PRS_CH_CTRL_SIGSEL_VCMPOUT 0 |
Definition at line 135 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL | ( | v | ) | (((v) << PRS_CH_CTRL_SOURCESEL_SHIFT) & PRS_CH_CTRL_SOURCESEL_MASK) |
Definition at line 103 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_ACMP0 0b000010 |
Definition at line 107 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_ACMP1 0b000011 |
Definition at line 108 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_ADC0 0b001000 |
Definition at line 110 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_BURTC 0b110111 |
Definition at line 125 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_DAC0 0b000110 |
Definition at line 109 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_GPIOH 0b110001 |
Definition at line 123 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_GPIOL 0b110000 |
Definition at line 122 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_LESENSED 0b111011 |
Definition at line 128 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_LESENSEH 0b111010 |
Definition at line 127 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_LESENSEL 0b111001 |
Definition at line 126 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_LETIMER0 0b110100 |
Definition at line 124 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_MASK (0x3F << PRS_CH_CTRL_SOURCESEL_SHIFT) |
Definition at line 102 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_NONE 0b000000 |
Definition at line 105 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_RTC 0b101000 |
Definition at line 119 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_SHIFT (16) |
Definition at line 101 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_TIMER0 0b011100 |
Definition at line 114 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_TIMER1 0b011101 |
Definition at line 115 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_TIMER2 0b011110 |
Definition at line 116 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_TIMER3 0b011111 |
Definition at line 117 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_UART0 0b101001 |
Definition at line 120 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_UART1 0b101010 |
Definition at line 121 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_USART0 0b010000 |
Definition at line 111 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_USART1 0b010001 |
Definition at line 112 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_USART2 0b010010 |
Definition at line 113 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_USB 0b100100 |
Definition at line 118 of file prs_common.h.
#define PRS_CH_CTRL_SOURCESEL_VCMP 0b000001 |
Definition at line 106 of file prs_common.h.
Definition at line 32 of file prs_common.h.
Definition at line 31 of file prs_common.h.
#define PRS_ROUTE_CH0PEN PRS_ROUTE_CHxPEN(0) |
Definition at line 89 of file prs_common.h.
#define PRS_ROUTE_CH1PEN PRS_ROUTE_CHxPEN(1) |
Definition at line 88 of file prs_common.h.
#define PRS_ROUTE_CH2PEN PRS_ROUTE_CHxPEN(2) |
Definition at line 87 of file prs_common.h.
#define PRS_ROUTE_CH3PEN PRS_ROUTE_CHxPEN(3) |
Definition at line 86 of file prs_common.h.
#define PRS_ROUTE_CHxPEN | ( | x | ) | (1 << (x)) |
Definition at line 85 of file prs_common.h.
#define PRS_ROUTE_LOCATION | ( | v | ) | (((v) << PRS_ROUTE_LOCATION_SHIFT) & PRS_ROUTE_LOCATION_MASK) |
Definition at line 79 of file prs_common.h.
#define PRS_ROUTE_LOCATION_LOC0 0 |
Definition at line 82 of file prs_common.h.
#define PRS_ROUTE_LOCATION_LOC1 1 |
Definition at line 83 of file prs_common.h.
#define PRS_ROUTE_LOCATION_LOCx | ( | x | ) | PRS_ROUTE_LOCATION(x) |
Definition at line 81 of file prs_common.h.
#define PRS_ROUTE_LOCATION_MASK (0x7 << PRS_ROUTE_LOCATION_SHIFT) |
Definition at line 78 of file prs_common.h.
#define PRS_ROUTE_LOCATION_SHIFT (8) |
Definition at line 77 of file prs_common.h.
Definition at line 30 of file prs_common.h.
#define PRS_SWLEVEL_CH0LEVEL PRS_SWLEVEL_CHxLEVEL(0) |
Definition at line 63 of file prs_common.h.
#define PRS_SWLEVEL_CH10LEVEL PRS_SWLEVEL_CHxLEVEL(10) |
Definition at line 73 of file prs_common.h.
#define PRS_SWLEVEL_CH11LEVEL PRS_SWLEVEL_CHxLEVEL(11) |
Definition at line 74 of file prs_common.h.
#define PRS_SWLEVEL_CH1LEVEL PRS_SWLEVEL_CHxLEVEL(1) |
Definition at line 64 of file prs_common.h.
#define PRS_SWLEVEL_CH2LEVEL PRS_SWLEVEL_CHxLEVEL(2) |
Definition at line 65 of file prs_common.h.
#define PRS_SWLEVEL_CH3LEVEL PRS_SWLEVEL_CHxLEVEL(3) |
Definition at line 66 of file prs_common.h.
#define PRS_SWLEVEL_CH4LEVEL PRS_SWLEVEL_CHxLEVEL(4) |
Definition at line 67 of file prs_common.h.
#define PRS_SWLEVEL_CH5LEVEL PRS_SWLEVEL_CHxLEVEL(5) |
Definition at line 68 of file prs_common.h.
#define PRS_SWLEVEL_CH6LEVEL PRS_SWLEVEL_CHxLEVEL(6) |
Definition at line 69 of file prs_common.h.
#define PRS_SWLEVEL_CH7LEVEL PRS_SWLEVEL_CHxLEVEL(7) |
Definition at line 70 of file prs_common.h.
#define PRS_SWLEVEL_CH8LEVEL PRS_SWLEVEL_CHxLEVEL(8) |
Definition at line 71 of file prs_common.h.
#define PRS_SWLEVEL_CH9LEVEL PRS_SWLEVEL_CHxLEVEL(9) |
Definition at line 72 of file prs_common.h.
#define PRS_SWLEVEL_CHxLEVEL | ( | x | ) | (1 << (x)) |
Definition at line 62 of file prs_common.h.
Definition at line 29 of file prs_common.h.
#define PRS_SWPULSE_CH0PULSE PRS_SWPULSE_CHxPULSE(0) |
Definition at line 48 of file prs_common.h.
#define PRS_SWPULSE_CH10PULSE PRS_SWPULSE_CHxPULSE(10) |
Definition at line 58 of file prs_common.h.
#define PRS_SWPULSE_CH11PULSE PRS_SWPULSE_CHxPULSE(11) |
Definition at line 59 of file prs_common.h.
#define PRS_SWPULSE_CH1PULSE PRS_SWPULSE_CHxPULSE(1) |
Definition at line 49 of file prs_common.h.
#define PRS_SWPULSE_CH2PULSE PRS_SWPULSE_CHxPULSE(2) |
Definition at line 50 of file prs_common.h.
#define PRS_SWPULSE_CH3PULSE PRS_SWPULSE_CHxPULSE(3) |
Definition at line 51 of file prs_common.h.
#define PRS_SWPULSE_CH4PULSE PRS_SWPULSE_CHxPULSE(4) |
Definition at line 52 of file prs_common.h.
#define PRS_SWPULSE_CH5PULSE PRS_SWPULSE_CHxPULSE(5) |
Definition at line 53 of file prs_common.h.
#define PRS_SWPULSE_CH6PULSE PRS_SWPULSE_CHxPULSE(6) |
Definition at line 54 of file prs_common.h.
#define PRS_SWPULSE_CH7PULSE PRS_SWPULSE_CHxPULSE(7) |
Definition at line 55 of file prs_common.h.
#define PRS_SWPULSE_CH8PULSE PRS_SWPULSE_CHxPULSE(8) |
Definition at line 56 of file prs_common.h.
#define PRS_SWPULSE_CH9PULSE PRS_SWPULSE_CHxPULSE(9) |
Definition at line 57 of file prs_common.h.
#define PRS_SWPULSE_CHxPULSE | ( | x | ) | (1 << (x)) |
Definition at line 47 of file prs_common.h.
void prs_disable_async | ( | enum prs_ch | ch | ) |
enable synchronization of this channel reflex signal
[in] | ch | Channel (use PRS_CHx) |
Definition at line 112 of file prs_common.c.
References PRS_CHx_CTRL.
void prs_disable_gpio_output | ( | enum prs_ch | ch | ) |
Disable PRS output to GPIO.
[in] | ch | Channel (use PRS_CHx) |
Definition at line 46 of file prs_common.c.
References PRS_ROUTE.
void prs_enable_async | ( | enum prs_ch | ch | ) |
disable synchronization of this channel reflex signal
[in] | ch | Channel (use PRS_CHx) |
Definition at line 102 of file prs_common.c.
References PRS_CH_CTRL_ASYNC, and PRS_CHx_CTRL.
void prs_enable_gpio_output | ( | enum prs_ch | ch | ) |
Enable PRS output to GPIO.
[in] | ch | Channel (use PRS_CHx) |
Definition at line 36 of file prs_common.c.
References PRS_ROUTE, and PRS_ROUTE_CHxPEN.
void prs_set_edge | ( | enum prs_ch | ch, |
uint32_t | edge | ||
) |
Edge detection for the channel.
[in] | ch | Channel (use PRS_CHx) |
[in] | edge | Edge (use PRS_CH_CTRL_EDSEL_*) |
Definition at line 122 of file prs_common.c.
References PRS_CHx_CTRL.
void prs_set_output_loc | ( | uint32_t | loc | ) |
Location of the PRS to be output on GPIO.
[in] | loc | location (use PRS_ROUTE_LOCATION_LOCx) |
Definition at line 56 of file prs_common.c.
References PRS_ROUTE.
void prs_set_signal | ( | enum prs_ch | ch, |
uint32_t | signal | ||
) |
Source for the channel.
[in] | ch | Channel (use PRS_CHx) |
[in] | signal | Signal (use PRS_CH_CTRL_SIGSEL_*) |
Definition at line 145 of file prs_common.c.
References PRS_CHx_CTRL.
void prs_set_source | ( | enum prs_ch | ch, |
uint32_t | source | ||
) |
Source for the channel.
[in] | ch | Channel (use PRS_CHx) |
[in] | source | Source (use PRS_CH_CTRL_SOURCESEL_*) |
Definition at line 133 of file prs_common.c.
References PRS_CHx_CTRL.
void prs_software_level_high | ( | enum prs_ch | ch | ) |
HIGH is XOR'ed with the corresponding bit in the software-pulse and the PRS input signal to generate.
[in] | ch | Channel (use PRS_CHx) |
Definition at line 80 of file prs_common.c.
References PRS_SWLEVEL, and PRS_SWLEVEL_CHxLEVEL.
void prs_software_level_low | ( | enum prs_ch | ch | ) |
LOW is XOR'ed with the corresponding bit in the software-pulse and the PRS input signal to generate.
[in] | ch | Channel (use PRS_CHx) |
Definition at line 92 of file prs_common.c.
References PRS_SWLEVEL.
void prs_software_pulse | ( | enum prs_ch | ch | ) |
Generate software pulse.
[in] | ch | Channel (use PRS_CHx) |
Definition at line 68 of file prs_common.c.
References PRS_SWPULSE, and PRS_SWPULSE_CHxPULSE.