Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaobo07
rt-thread
提交
02b176f8
R
rt-thread
项目概览
Xiaobo07
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
02b176f8
编写于
6月 04, 2022
作者:
mysterywolf
提交者:
GitHub
6月 04, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[arduino] add comment (#6016)
上级
1fb3f1fc
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
13 deletion
+30
-13
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.c
...75-atk-pandora/applications/arduino_pinout/pins_arduino.c
+4
-0
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h
...75-atk-pandora/applications/arduino_pinout/pins_arduino.h
+16
-6
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
+7
-4
bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
+1
-1
components/drivers/include/drivers/adc.h
components/drivers/include/drivers/adc.h
+1
-1
components/drivers/include/drivers/rt_drv_pwm.h
components/drivers/include/drivers/rt_drv_pwm.h
+1
-1
未找到文件。
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.c
浏览文件 @
02b176f8
...
...
@@ -46,6 +46,10 @@ const pin_map_t pin_map_table[]=
{
D23
,
GET_PIN
(
E
,
9
),
"pwm1"
,
1
},
/* PWM, BSP: BLUE-LED */
{
D24
,
GET_PIN
(
B
,
0
)},
/* INFRARED EMISSION */
{
D25
,
GET_PIN
(
B
,
1
)},
/* INFRARED RECEPTION */
{
D26
,
GET_PIN
(
D
,
7
)},
/* LCD CS */
{
D27
,
GET_PIN
(
B
,
6
)},
/* LCD RESET */
{
D28
,
GET_PIN
(
B
,
4
)},
/* LCD DC (data or command) */
{
D29
,
GET_PIN
(
B
,
7
)},
/* LCD POWER */
{
A0
,
GET_PIN
(
C
,
2
),
"adc1"
,
3
},
/* ADC */
{
A1
,
GET_PIN
(
C
,
4
),
"adc1"
,
13
},
/* ADC */
{
A2
,
RT_NULL
,
"adc1"
,
0
},
/* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */
...
...
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h
浏览文件 @
02b176f8
...
...
@@ -38,22 +38,32 @@
#define D23 (23)
#define D24 (24)
#define D25 (25)
#define A0 (26)
#define A1 (27)
#define A2 (28)
#define A3 (29)
#define DAC0 (30)
#define D26 (26)
#define D27 (27)
#define D28 (28)
#define D29 (29)
#define A0 (30)
#define A1 (31)
#define A2 (32)
#define A3 (33)
#define DAC0 (34)
#define F_CPU 80000000L
/* CPU: 80MHz */
#define LED_BUILTIN D22
/* Default Built-in LED */
/*
* i2c1 - PC7-SDA PC6-SCL(User I2C)
* i2c1 - PC7-SDA PC6-SCL
(User I2C)
* i2c3 - ICM20608, AP3216C (On Board)
* i2c4 - AHT10 (On Board)
*/
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c4"
/*
* spi2 - Wireless Interface (User SPI)
* spi3 - LCD ST7789
*/
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi2"
#define RTDUINO_DEFAULT_HWTIMER_DEVICE_NAME "timer7"
#define RTDUINO_SERIAL2_DEVICE_NAME "uart2"
...
...
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
浏览文件 @
02b176f8
...
...
@@ -39,18 +39,21 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_ADC
select BSP_USING_ADC1
select BSP_USING_I2C
select BSP_USING_I2C1
select BSP_USING_I2C3
select BSP_USING_I2C4
select BSP_USING_I2C1
# PC7-SDA PC6-SCL (User I2C)
select BSP_USING_I2C3
# ICM20608, AP3216C (On Board)
select BSP_USING_I2C4
# AHT10 (On Board)
select BSP_USING_DAC
select BSP_USING_DAC1
select BSP_USING_SPI
select BSP_USING_SPI2
select BSP_USING_SPI2
# Wireless Interface (User SPI)
imply BSP_SPI2_TX_USING_DMA
imply BSP_SPI2_RX_USING_DMA
select BSP_USING_SPI3 # LCD ST7789
select BSP_SPI3_TX_USING_DMA
imply RTDUINO_USING_SERVO
imply RTDUINO_USING_WIRE
imply RTDUINO_USING_SPI
imply RTDUINO_USING_USBSERIAL
imply RTDUINO_USING_ADAFRUIT
imply RTDUINO_USING_MSTIMER2
default n
...
...
bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
浏览文件 @
02b176f8
...
...
@@ -40,7 +40,7 @@ static int rt_hw_lcd_config(void)
/* config spi */
{
struct
rt_spi_configuration
cfg
;
struct
rt_spi_configuration
cfg
=
{
0
}
;
cfg
.
data_width
=
8
;
cfg
.
mode
=
RT_SPI_MASTER
|
RT_SPI_MODE_0
|
RT_SPI_MSB
;
cfg
.
max_hz
=
42
*
1000
*
1000
;
/* 42M,SPI max 42MHz,lcd 4-wire spi */
...
...
components/drivers/include/drivers/adc.h
浏览文件 @
02b176f8
...
...
@@ -20,7 +20,7 @@ struct rt_adc_ops
rt_err_t
(
*
enabled
)(
struct
rt_adc_device
*
device
,
rt_uint32_t
channel
,
rt_bool_t
enabled
);
rt_err_t
(
*
convert
)(
struct
rt_adc_device
*
device
,
rt_uint32_t
channel
,
rt_uint32_t
*
value
);
rt_uint8_t
(
*
get_resolution
)(
struct
rt_adc_device
*
device
);
rt_int16_t
(
*
get_vref
)
(
const
struct
rt_adc_device
*
device
);
rt_int16_t
(
*
get_vref
)
(
struct
rt_adc_device
*
device
);
};
struct
rt_adc_device
...
...
components/drivers/include/drivers/rt_drv_pwm.h
浏览文件 @
02b176f8
...
...
@@ -23,7 +23,7 @@
struct
rt_pwm_configuration
{
rt_uint32_t
channel
;
/*
0-n
*/
rt_uint32_t
channel
;
/*
1-n or 0-n, which depends on specific MCU requirements
*/
rt_uint32_t
period
;
/* unit:ns 1ns~4.29s:1Ghz~0.23hz */
rt_uint32_t
pulse
;
/* unit:ns (pulse<=period) */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录