mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
board/sipeed-longan-nano: add periph_i2c support
This commit is contained in:
parent
ea848929e7
commit
fde5c8a3ea
@ -14,6 +14,7 @@ config BOARD_SIPEED_LONGAN_NANO
|
||||
select CPU_MODEL_GD32VF103CBT6
|
||||
select BOARD_HAS_HXTAL
|
||||
select BOARD_HAS_LXTAL
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_PWM
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
@ -1,6 +1,7 @@
|
||||
CPU_MODEL = gd32vf103cbt6
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_pwm
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
@ -36,7 +36,7 @@ on-board components:
|
||||
| UART | - | yes |
|
||||
| USART | 3 | yes |
|
||||
| SPI | 3 | no |
|
||||
| I2C | 2 x Fast Mode 400 kHz | no |
|
||||
| I2C | 2 x Fast Mode 400 kHz | yes |
|
||||
| I2S | 2 | no |
|
||||
| CAN | 2 x CAN 2.0B with up to 1 Mbps | no |
|
||||
| PWM | 6 Channels | yes |
|
||||
@ -58,12 +58,17 @@ MCU pins and their configuration in RIOT.
|
||||
|
||||
| MCU Pin | MCU Peripheral | RIOT Peripheral | Board Function | Remark |
|
||||
|:--------|:---------------|:-----------------|:---------------|:-----------------------------|
|
||||
| PA0 | BOOT0 | | BTN0 | |
|
||||
| PA1 | | PWM_DEV(0) CH0 | LED1 green | |
|
||||
| PA2 | | PWM_DEV(0) CH1 | LED2 blue | |
|
||||
| PA9 | USART0 TX | UART_DEV(0) TX | UART TX | |
|
||||
| PA10 | USART0 RX | UART_DEV(0) RX | UART RX | |
|
||||
| PB6 | I2C0 SCL | I2C_DEV(0) SCL | | |
|
||||
| PB7 | I2C0 SDA | I2C_DEV(0) SDA | | |
|
||||
| PB8 | | PWM_DEV(1) CH0 | | N/A if CAN is used |
|
||||
| PB9 | | PWM_DEV(2) CH1 | | N/A if CAN is used |
|
||||
| PB9 | | PWM_DEV(1) CH1 | | N/A if CAN is used |
|
||||
| PB10 | I2C1 SCL | I2C_DEV(1) SCL | | |
|
||||
| PB11 | I2C1 SDA | I2C_DEV(1) SDA | | |
|
||||
| PC13 | | | LED0 red | |
|
||||
|
||||
## Flashing the Device
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "periph_cpu.h"
|
||||
#include "periph_common_conf.h"
|
||||
|
||||
#include "cfg_i2c_default.h"
|
||||
#include "cfg_timer_default.h"
|
||||
#include "cfg_uart_default.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user