MSB-A2 peripheral configuration.  
More...
#include "periph_cpu.h"
#include "kernel_defines.h"
 
Go to the source code of this file.
 | 
| 
#define  | XTAL_HZ   (16000000U)         /* the board provides a 16 MHz XTAL */ | 
|   | 
| 
#define  | CLOCK_CORECLOCK   (72000000U)         /* the msba2 runs with 72MHz */ | 
|   | 
| 
#define  | CLOCK_PCLK   (CLOCK_CORECLOCK) | 
|   | 
 | 
Currently, we only support a single device and 3 channels, the implementation is fixed on PWM1.  
 | 
| 
#define  | PWM_NUMOF   (1U) | 
|   | 
| 
#define  | PWM_CHANNELS   (3) | 
|   | 
| 
#define  | PWM_CH0   (3) | 
|   | 
| 
#define  | PWM_CH0_MR   PWM1MR3 | 
|   | 
| 
#define  | PWM_CH1   (4) | 
|   | 
| 
#define  | PWM_CH1_MR   PWM1MR4 | 
|   | 
| 
#define  | PWM_CH2   (5) | 
|   | 
| 
#define  | PWM_CH2_MR   PWM1MR5 | 
|   | 
| 
#define  | PWM_PORT   PINSEL4 | 
|   | 
| 
#define  | PWM_CH0_PIN   (2) | 
|   | 
| 
#define  | PWM_CH1_PIN   (3) | 
|   | 
| 
#define  | PWM_CH2_PIN   (4) | 
|   | 
| 
#define  | PWM_FUNC   (1) | 
|   | 
 | 
| 
#define  | UART_NUMOF   (4) | 
|   | 
| 
static const uart_conf_t  | uart_config [] | 
|   | 
 | 
| 
#define  | SPI_NUMOF   (1) | 
|   | 
| static const spi_conf_t  | spi_config [] | 
|   | 
 | 
| 
#define  | I2C_NUMOF   (1) | 
|   | 
| static const i2c_conf_t  | i2c_config [] | 
|   | 
◆ adc_config
Initial value:= {
    {   
        .chan       = 0,
        .pinsel     = 1,
    },
    {   
        .chan       = 1,
        .pinsel     = 1,
    },
    {   
        .chan       = 2,
        .pinsel     = 1,
    },
}
#define BIT14
Bit 14 set define.
 
#define BIT18
Bit 18 set define.
 
#define BIT16
Bit 16 set define.
 
 
Definition at line 133 of file periph_conf.h.
 
 
◆ i2c_config
Initial value:= {
    {   
        .dev        = I2C2,
        .irq_prio   = 5,
        .pinsel_sda = 0,
        .pinsel_scl = 0,
    },
}
#define BIT21
Bit 21 set define.
 
#define BIT23
Bit 23 set define.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
 
Definition at line 158 of file periph_conf.h.
 
 
◆ spi_config
Initial value:= {
    {
        .dev = SPI0,
        .pinsel_mosi = 3,
        .pinsel_miso = 3,
        .pinsel_clk  = 3,
    },
}
#define BIT8
Bit 8 set define.
 
#define BIT17
Bit 17 set define.
 
#define BIT9
Bit 9 set define.
 
#define BIT15
Bit 15 set define.
 
 
Definition at line 114 of file periph_conf.h.