|
Mesh4all
May the mesh be with you
|
Peripheral MCU configuration for the Meshme board. More...
#include <stdint.h>#include "cpu.h"#include "periph_cpu.h"#include "cfg_clk_default.h"#include "cfg_timer_default.h"
Include dependency graph for periph_conf.h:Go to the source code of this file.
[A]nalog to [D]igital [C]onverter configuration | |
| #define | SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5 |
| Selected [default] voltage reference is [SOC_ADC_ADCCON3_EREF_EXT], this can be changed according to the following table: More... | |
| #define | SOC_ADC_RES ADC_RES_12BIT |
| Selected default resolution is [ADC_RES_12BIT] but it can be changed according the next table: More... | |
| #define | ADC_NUMOF ARRAY_SIZE(adc_config) |
| static const adc_conf_t | adc_config [] |
| Available ADC lines. More... | |
[U]niversal [A]synchronous [R]eceiver [T]ransmitter peripheral. | |
| #define | UART_0_ISR isr_uart0 |
| #define | UART_NUMOF ARRAY_SIZE(uart_config) |
| static const uart_conf_t | uart_config [] |
| Two available UART ports but only one is set as follows: More... | |
I2C Settings | |
| #define | I2C_IRQ_PRIO 1 |
| #define | I2C_NUMOF ARRAY_SIZE(i2c_config) |
| static const i2c_conf_t | i2c_config [] |
| There are 2 I2C ports available but only one is set as follows: More... | |
SPI configuration | |
| #define | SPI_NUMOF ARRAY_SIZE(spi_config) |
| static const spi_conf_t | spi_config [] |
| There are 2 SPI ports available but only one is set as follows: More... | |
Peripheral MCU configuration for the Meshme board.
Definition in file periph_conf.h.
| #define ADC_NUMOF ARRAY_SIZE(adc_config) |
Number of available adc lines
Definition at line 78 of file periph_conf.h.
| #define I2C_IRQ_PRIO 1 |
i2c IRQ priority
Definition at line 114 of file periph_conf.h.
| #define I2C_NUMOF ARRAY_SIZE(i2c_config) |
Available i2c ports
Definition at line 135 of file periph_conf.h.
| #define SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5 |
Selected [default] voltage reference is [SOC_ADC_ADCCON3_EREF_EXT], this can be changed according to the following table:
| Register | Description |
|---|---|
| SOC_ADC_ADCCON3_EREF_INT | Internal reference |
| SOC_ADC_ADCCON3_EREF_EXT | External reference on AIN7 pin |
| SOC_ADC_ADCCON3_EREF_AVDD5 | AVDD5 pin |
| SOC_ADC_ADCCON3_EREF_DIFF | External reference on AIN6-AIN7 differential input |
Definition at line 53 of file periph_conf.h.
| #define SOC_ADC_RES ADC_RES_12BIT |
Selected default resolution is [ADC_RES_12BIT] but it can be changed according the next table:
| Register | Description |
|---|---|
| ADC_RES_7BIT | 7 bits per sample resolution |
| ADC_RES_9BIT | 9 bits per sample "" |
| ADC_RES_10BIT | 10 bits per sample "" |
| ADC_RES_12BIT | 12 bits per sample "" |
Definition at line 68 of file periph_conf.h.
| #define SPI_NUMOF ARRAY_SIZE(spi_config) |
Available SPI ports
Definition at line 161 of file periph_conf.h.
| #define UART_0_ISR isr_uart0 |
interrupt function name mapping
Definition at line 106 of file periph_conf.h.
| #define UART_NUMOF ARRAY_SIZE(uart_config) |
Number of UARTs
Definition at line 107 of file periph_conf.h.
|
static |
Available ADC lines.
Definition at line 73 of file periph_conf.h.
|
static |
There are 2 I2C ports available but only one is set as follows:
| # | SCL | SDA | Speed |
|---|---|---|---|
| 0 | PB0 | PB1 | Fast |
| — | — | — | — |
Definition at line 128 of file periph_conf.h.
|
static |
There are 2 SPI ports available but only one is set as follows:
| Num | MOSI | MISO | SCK | CS |
|---|---|---|---|---|
| 0 | PB4 | PB5 | PB6 | PB7 |
| — | — | — | — | — |
Definition at line 151 of file periph_conf.h.
|
static |
Two available UART ports but only one is set as follows:
| UART Dev | TX pin | RX pin | CTS pin | RTS pin |
|---|---|---|---|---|
| 0 | PA0 | PA1 | Undef | Undef |
| — | — | — | — | — |
Definition at line 94 of file periph_conf.h.