1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/rpi-pico: Add PIO configuration

This commit is contained in:
Fabian Hüßler 2021-12-16 14:57:30 +01:00 committed by Fabian Hüßler
parent 18315d3ddc
commit a74379ef16

View File

@ -110,6 +110,34 @@ static const adc_conf_t adc_config[] = {
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
/**
* @name PIO configuration
* @{
*/
/**
* @brief Array of PIO configurations
*/
static const pio_conf_t pio_config[] = {
{
.dev = PIO0,
.irqn0 = PIO0_IRQ_0_IRQn,
.irqn1 = PIO0_IRQ_1_IRQn
},
{
.dev = PIO1,
.irqn0 = PIO1_IRQ_0_IRQn,
.irqn1 = PIO1_IRQ_1_IRQn
}
};
#define PIO_0_ISR0 isr_pio00 /**< ISR name of PIO 0 IRQ 0 */
#define PIO_0_ISR1 isr_pio01 /**< ISR name of PIO 0 IRQ 1 */
#define PIO_1_ISR0 isr_pio10 /**< ISR name of PIO 1 IRQ 0 */
#define PIO_1_ISR1 isr_pio11 /**< ISR name of PIO 1 IRQ 1 */
#define PIO_NUMOF ARRAY_SIZE(pio_config) /**< Number of PIOs */
/** @} */
#ifdef __cplusplus
}
#endif