Configuration of CPU peripherals for the Raspberry Pi Pico.  
More...
Configuration of CPU peripherals for the Raspberry Pi Pico. 
- Author
 - Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de 
 
Definition in file periph_conf.h.
#include <stdint.h>
#include "kernel_defines.h"
#include "cpu.h"
#include "periph_cpu.h"
 
Go to the source code of this file.
 | 
The configuration consists simply of a list of channels that should be used  
 | 
| 
#define  | ADC_NUMOF   ARRAY_SIZE(adc_config) | 
|   | 
| static const adc_conf_t  | adc_config [] | 
|   | 
◆ _periph_numof_is_unsigned_0()
  
  
      
        
          | static unsigned _periph_numof_is_unsigned_0  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Silences the warning when an unsigned value is compared to 0. 
This can be deleted when I2C is properly implemented. 
Definition at line 33 of file periph_conf.h.
 
 
◆ adc_config
Initial value:= {
                                        }
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
 
Definition at line 111 of file periph_conf.h.
 
 
◆ pio_config
Initial value:= {
    {
        .dev = PIO0,
        .irqn0 = PIO0_IRQ_0_IRQn,
        .irqn1 = PIO0_IRQ_1_IRQn
    },
    {
        .dev = PIO1,
        .irqn0 = PIO1_IRQ_0_IRQn,
        .irqn1 = PIO1_IRQ_1_IRQn
    }
}
 
Array of PIO configurations. 
Definition at line 137 of file periph_conf.h.
 
 
◆ pio_i2c_config
Initial value:
PIO I2C configuration. 
PIO_I2C_CONFIG should be defined during the build process to fit the users pin selection. 
Definition at line 164 of file periph_conf.h.
 
 
◆ pwm_config
Initial value:= {
    {
        .pwm_slice   = 4,
        .chan    = {
            { .pin = 
GPIO_PIN(0, 25), .cc_chan = 1 },   
 
        },
    },
}
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
 
 
Definition at line 180 of file periph_conf.h.
 
 
◆ spi_config
Initial value:= {
    {
        .dev = SPI0,
    },
    {
        .dev = SPI1,
    }
}
 
Definition at line 58 of file periph_conf.h.
 
 
◆ timer0_channel_config
Initial value:= {
    {
        .irqn = TIMER_IRQ_0_IRQn
    },
    {
        .irqn = TIMER_IRQ_1_IRQn
    },
    {
        .irqn = TIMER_IRQ_2_IRQn
    },
    {
        .irqn = TIMER_IRQ_3_IRQn
    }
}
 
Definition at line 75 of file periph_conf.h.
 
 
◆ timer_config
Initial value:= {
    {
        .dev = TIMER,
        .ch = timer0_channel_config,
    }
}
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.
 
 
Definition at line 90 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
    {
        .irqn = UART0_IRQ_IRQn
    },
    {
        .irqn = UART1_IRQ_IRQn
    }
}
#define UART0
UART0 register bank.
 
#define UART1
UART1 register bank.
 
 
Definition at line 38 of file periph_conf.h.