Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
5321d2fb
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5321d2fb
编写于
12月 26, 2018
作者:
S
SummerGift
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32] update f7 series bsp
上级
b92f45f8
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
2326 addition
and
2632 deletion
+2326
-2632
bsp/stm32/stm32f767-fire-challenger/README.md
bsp/stm32/stm32f767-fire-challenger/README.md
+2
-2
bsp/stm32/stm32f767-fire-challenger/applications/main.c
bsp/stm32/stm32f767-fire-challenger/applications/main.c
+10
-1
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
+38
-95
bsp/stm32/stm32f767-fire-challenger/board/SConscript
bsp/stm32/stm32f767-fire-challenger/board/SConscript
+0
-3
bsp/stm32/stm32f767-fire-challenger/board/board.c
bsp/stm32/stm32f767-fire-challenger/board/board.c
+0
-24
bsp/stm32/stm32f767-fire-challenger/board/board.h
bsp/stm32/stm32f767-fire-challenger/board/board.h
+0
-10
bsp/stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
...stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
+0
-76
bsp/stm32/stm32f767-fire-challenger/project.ewp
bsp/stm32/stm32f767-fire-challenger/project.ewp
+2265
-2411
bsp/stm32/stm32f767-fire-challenger/project.eww
bsp/stm32/stm32f767-fire-challenger/project.eww
+10
-10
bsp/stm32/stm32f767-fire-challenger/rtconfig.py
bsp/stm32/stm32f767-fire-challenger/rtconfig.py
+1
-0
未找到文件。
bsp/stm32/stm32f767-fire-challenger/README.md
浏览文件 @
5321d2fb
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
| QSPI Flash | 支持 | |
| QSPI Flash | 支持 | |
| 电位器 | 支持 | 使用 ADC1 |
| 电位器 | 支持 | 使用 ADC1 |
| 以太网 | 暂不支持 | 移植中 |
| 以太网 | 暂不支持 | 移植中 |
| MPU6050六轴传感器 | 支持 |
|
| MPU6050六轴传感器 | 支持 | |
| SDRAM | 支持 | |
| SDRAM | 支持 | |
| SD卡 | 即将支持 | |
| SD卡 | 即将支持 | |
| CAN | 即将支持 | |
| CAN | 即将支持 | |
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
| RTC | 支持 | |
| RTC | 支持 | |
| WDT | 支持 | |
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO |
支持 |
|
| SDIO |
暂不支持 | 即将支持
|
| PWM | 暂不支持 | 即将支持 |
| PWM | 暂不支持 | 即将支持 |
| USB Device | 暂不支持 | 即将支持 |
| USB Device | 暂不支持 | 即将支持 |
| USB Host | 暂不支持 | 即将支持 |
| USB Host | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32f767-fire-challenger/applications/main.c
浏览文件 @
5321d2fb
...
@@ -11,14 +11,23 @@
...
@@ -11,14 +11,23 @@
#include <rtthread.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <rtdevice.h>
#include <board.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PH10 */
#define LED0_PIN GET_PIN(H, 10)
int
main
(
void
)
int
main
(
void
)
{
{
int
count
=
1
;
int
count
=
1
;
/* set LED0 pin mode to output */
rt_pin_mode
(
LED0_PIN
,
PIN_MODE_OUTPUT
);
while
(
count
++
)
while
(
count
++
)
{
{
rt_pin_write
(
LED0_PIN
,
!
rt_pin_read
(
LED0_PIN
));
rt_pin_write
(
LED0_PIN
,
PIN_HIGH
);
rt_thread_mdelay
(
500
);
rt_pin_write
(
LED0_PIN
,
PIN_LOW
);
rt_thread_mdelay
(
500
);
rt_thread_mdelay
(
500
);
}
}
return
RT_EOK
;
return
RT_EOK
;
}
}
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
浏览文件 @
5321d2fb
...
@@ -34,40 +34,6 @@ menu "Onboard Peripheral Drivers"
...
@@ -34,40 +34,6 @@ menu "Onboard Peripheral Drivers"
select PKG_USING_MPU6XXX
select PKG_USING_MPU6XXX
default n
default n
config BSP_USING_ETH
bool "Enable Ethernet"
default n
select RT_USING_LWIP
if BSP_USING_ETH
config EXTERNAL_PHY_ADDRESS
hex
default 0x00
endif
config BSP_USING_RGB
bool "Enable RGB LED (timer5 channel1 - 3)"
select RT_USING_PWM
select BSP_USING_PWM
select BSP_USING_PWM5
select BSP_USING_PWM5_CH1
select BSP_USING_PWM5_CH2
select BSP_USING_PWM5_CH3
default n
config BSP_USING_POT
bool "Enable potentiometer"
select BSP_USING_ADC
select BSP_USING_ADC1
default n
config BSP_USING_SDCARD
bool "Enable SDCARD (sdio)"
select BSP_USING_SDIO
select RT_USING_DFS
select RT_USING_DFS_ELMFAT
select RT_USING_PIN
default n
endmenu
endmenu
menu "On-chip Peripheral Drivers"
menu "On-chip Peripheral Drivers"
...
@@ -92,10 +58,6 @@ menu "On-chip Peripheral Drivers"
...
@@ -92,10 +58,6 @@ menu "On-chip Peripheral Drivers"
select RT_USING_SERIAL
select RT_USING_SERIAL
default n
default n
config BSP_UART_USING_DMA_RX
bool "Enable UART RX DMA support"
default n
config BSP_USING_ON_CHIP_FLASH
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
bool "Enable on-chip FLASH"
default n
default n
...
@@ -124,47 +86,6 @@ menu "On-chip Peripheral Drivers"
...
@@ -124,47 +86,6 @@ menu "On-chip Peripheral Drivers"
select RT_USING_QSPI
select RT_USING_QSPI
select RT_USING_SPI
select RT_USING_SPI
default n
default n
menuconfig BSP_USING_TIM
bool "Enable timer"
default n
select RT_USING_HWTIMER
if BSP_USING_TIM
config BSP_USING_TIM11
bool "Enable TIM11"
default n
config BSP_USING_TIM13
bool "Enable TIM13"
default n
config BSP_USING_TIM14
bool "Enable TIM14"
default n
endif
menuconfig BSP_USING_PWM
bool "Enable pwm"
default n
select RT_USING_PWM
if BSP_USING_PWM
menuconfig BSP_USING_PWM5
bool "Enable timer5 output pwm"
default n
if BSP_USING_PWM5
config BSP_USING_PWM5_CH1
bool "Enable PWM5 channel1"
default n
config BSP_USING_PWM5_CH2
bool "Enable PWM5 channel2"
default n
config BSP_USING_PWM5_CH3
bool "Enable PWM5 channel3"
default n
endif
endif
menuconfig BSP_USING_ADC
menuconfig BSP_USING_ADC
bool "Enable ADC"
bool "Enable ADC"
...
@@ -174,14 +95,24 @@ menu "On-chip Peripheral Drivers"
...
@@ -174,14 +95,24 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ADC1
config BSP_USING_ADC1
bool "Enable ADC1"
bool "Enable ADC1"
default n
default n
endif
config BSP_USING_ADC2
menuconfig BSP_USING_I2C1
bool "Enable ADC2"
bool "Enable I2C1 BUS (software simulation)"
default n
default n
select RT_USING_I2C
config BSP_USING_ADC3
select RT_USING_I2C_BITOPS
bool "Enable ADC3"
select RT_USING_PIN
default n
if BSP_USING_I2C1
comment "Notice: PB6 --> 22; PB7 --> 23"
config BSP_I2C1_SCL_PIN
int "I2C1 scl pin number"
range 1 176
default 22
config BSP_I2C1_SDA_PIN
int "I2C1 sda pin number"
range 1 176
default 23
endif
endif
menuconfig BSP_USING_I2C2
menuconfig BSP_USING_I2C2
...
@@ -191,15 +122,33 @@ menu "On-chip Peripheral Drivers"
...
@@ -191,15 +122,33 @@ menu "On-chip Peripheral Drivers"
select RT_USING_I2C_BITOPS
select RT_USING_I2C_BITOPS
select RT_USING_PIN
select RT_USING_PIN
if BSP_USING_I2C2
if BSP_USING_I2C2
comment "Notice: P
H4 --> 116; PH5 --> 117
"
comment "Notice: P
C15 --> 47; PD0 --> 48
"
config BSP_I2C2_SCL_PIN
config BSP_I2C2_SCL_PIN
int "i2c2 scl pin number"
int "i2c2 scl pin number"
range 1 176
range 1 176
default
116
default
47
config BSP_I2C2_SDA_PIN
config BSP_I2C2_SDA_PIN
int "I2C2 sda pin number"
int "I2C2 sda pin number"
range 1 176
range 1 176
default 117
default 48
endif
menuconfig BSP_USING_I2C3
bool "Enable I2C3 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C3
comment "Notice: PF12 --> 92; PF13 --> 93"
config BSP_I2C3_SCL_PIN
int "i2c3 scl pin number"
range 1 176
default 92
config BSP_I2C3_SDA_PIN
int "I2C3 sda pin number"
range 1 176
default 93
endif
endif
menuconfig BSP_USING_I2C4
menuconfig BSP_USING_I2C4
...
@@ -231,12 +180,6 @@ menu "On-chip Peripheral Drivers"
...
@@ -231,12 +180,6 @@ menu "On-chip Peripheral Drivers"
select RT_USING_WDT
select RT_USING_WDT
default n
default n
config BSP_USING_SDIO
bool "Enable SDIO"
select RT_USING_SDIO
select RT_USING_DFS
default n
endmenu
endmenu
menu "Board extended module Drivers"
menu "Board extended module Drivers"
...
...
bsp/stm32/stm32f767-fire-challenger/board/SConscript
浏览文件 @
5321d2fb
...
@@ -18,9 +18,6 @@ if GetDepend(['BSP_USING_ETH']):
...
@@ -18,9 +18,6 @@ if GetDepend(['BSP_USING_ETH']):
if
GetDepend
([
'BSP_USING_QSPI_FLASH'
]):
if
GetDepend
([
'BSP_USING_QSPI_FLASH'
]):
src
+=
Glob
(
'ports/drv_qspi_flash.c'
)
src
+=
Glob
(
'ports/drv_qspi_flash.c'
)
if
GetDepend
([
'BSP_USING_SDCARD'
]):
src
+=
Glob
(
'ports/sdcard_port.c'
)
path
=
[
cwd
]
path
=
[
cwd
]
path
+=
[
cwd
+
'/CubeMX_Config/Inc'
]
path
+=
[
cwd
+
'/CubeMX_Config/Inc'
]
path
+=
[
cwd
+
'/ports'
]
path
+=
[
cwd
+
'/ports'
]
...
...
bsp/stm32/stm32f767-fire-challenger/board/board.c
浏览文件 @
5321d2fb
...
@@ -60,27 +60,3 @@ void SystemClock_Config(void)
...
@@ -60,27 +60,3 @@ void SystemClock_Config(void)
Error_Handler
();
Error_Handler
();
}
}
}
}
void
MX_GPIO_Init
(
void
)
{
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOF_CLK_ENABLE
();
__HAL_RCC_GPIOH_CLK_ENABLE
();
__HAL_RCC_GPIOC_CLK_ENABLE
();
__HAL_RCC_GPIOG_CLK_ENABLE
();
__HAL_RCC_GPIOE_CLK_ENABLE
();
__HAL_RCC_GPIOD_CLK_ENABLE
();
__HAL_RCC_GPIOA_CLK_ENABLE
();
}
#ifdef RT_USING_PIN
int
board_pin_init
(
void
)
{
rt_pin_mode
(
LED0_PIN
,
PIN_MODE_OUTPUT
);
return
0
;
}
INIT_BOARD_EXPORT
(
board_pin_init
);
#endif
/* RT_USING_PIN */
bsp/stm32/stm32f767-fire-challenger/board/board.h
浏览文件 @
5321d2fb
...
@@ -15,10 +15,6 @@
...
@@ -15,10 +15,6 @@
#include <stm32f7xx.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef BSP_USING_GPIO
#include "drv_gpio.h"
#endif
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -39,13 +35,7 @@ extern int __bss_end;
...
@@ -39,13 +35,7 @@ extern int __bss_end;
#define HEAP_END STM32_SRAM_END
#define HEAP_END STM32_SRAM_END
/* Board Pin definitions */
#define LED0_PIN GET_PIN(H, 10)
#define LED1_PIN GET_PIN(H, 11)
#define LED2_PIN GET_PIN(H, 12)
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
void
MX_GPIO_Init
(
void
);
#endif
#endif
bsp/stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
已删除
100644 → 0
浏览文件 @
b92f45f8
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-12-13 balanceTWK add sdcard port file
*/
#include <rtthread.h>
#ifdef BSP_USING_SDCARD
#include <dfs_elm.h>
#include <dfs_fs.h>
#include <dfs_posix.h>
#include "drv_gpio.h"
#define DBG_ENABLE
#define DBG_SECTION_NAME "app.card"
#define DBG_COLOR
#define DBG_LEVEL DBG_INFO
#include <rtdbg.h>
#define WIFI_RESET_PIN GET_PIN(G, 9)
int
ewm1062_disable
(
void
)
{
rt_pin_mode
(
WIFI_RESET_PIN
,
PIN_MODE_OUTPUT
);
rt_pin_write
(
WIFI_RESET_PIN
,
PIN_LOW
);
return
RT_EOK
;
}
INIT_BOARD_EXPORT
(
ewm1062_disable
);
void
sd_mount
(
void
*
parameter
)
{
while
(
1
)
{
rt_thread_mdelay
(
500
);
if
(
rt_device_find
(
"sd0"
)
!=
RT_NULL
)
{
if
(
dfs_mount
(
"sd0"
,
"/"
,
"elm"
,
0
,
0
)
==
RT_EOK
)
{
LOG_I
(
"sd card mount to '/'"
);
break
;
}
else
{
LOG_W
(
"sd card mount to '/' failed!"
);
}
}
}
}
int
stm32_sdcard_mount
(
void
)
{
rt_thread_t
tid
;
tid
=
rt_thread_create
(
"sd_mount"
,
sd_mount
,
RT_NULL
,
1024
,
RT_THREAD_PRIORITY_MAX
-
2
,
20
);
if
(
tid
!=
RT_NULL
)
{
rt_thread_startup
(
tid
);
}
else
{
LOG_E
(
"create sd_mount thread err!"
);
}
return
RT_EOK
;
}
INIT_APP_EXPORT
(
stm32_sdcard_mount
);
#endif
/* BSP_USING_SDCARD */
bsp/stm32/stm32f767-fire-challenger/project.ewp
浏览文件 @
5321d2fb
此差异已折叠。
点击以展开。
bsp/stm32/stm32f767-fire-challenger/project.eww
浏览文件 @
5321d2fb
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml version="1.0" encoding="iso-8859-1"?>
<workspace>
<workspace>
<project>
<project>
<path>
$WS_DIR$\project.ewp
</path>
<path>
$WS_DIR$\project.ewp
</path>
</project>
</project>
<batchBuild/>
<batchBuild/>
</workspace>
</workspace>
bsp/stm32/stm32f767-fire-challenger/rtconfig.py
浏览文件 @
5321d2fb
...
@@ -36,6 +36,7 @@ if PLATFORM == 'gcc':
...
@@ -36,6 +36,7 @@ if PLATFORM == 'gcc':
CC
=
PREFIX
+
'gcc'
CC
=
PREFIX
+
'gcc'
AS
=
PREFIX
+
'gcc'
AS
=
PREFIX
+
'gcc'
AR
=
PREFIX
+
'ar'
AR
=
PREFIX
+
'ar'
CXX
=
PREFIX
+
'g++'
LINK
=
PREFIX
+
'gcc'
LINK
=
PREFIX
+
'gcc'
TARGET_EXT
=
'elf'
TARGET_EXT
=
'elf'
SIZE
=
PREFIX
+
'size'
SIZE
=
PREFIX
+
'size'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录