mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
[bsp][stm32][nano] support nano version
stm32 BSPs to support nano version (RT_USING_NANO) 这个commit支持到stm32f7之前的BSP
This commit is contained in:
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ menu "On-chip Peripheral Drivers"
|
||||
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_WDT
|
||||
default n
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ menu "On-chip Peripheral Drivers"
|
||||
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ menu "On-chip Peripheral Drivers"
|
||||
endchoice
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F072RB
|
||||
bool
|
||||
select SOC_SERIES_STM32F0
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-06 zylx first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED2 (user LED) pin: PA5 */
|
||||
#define LED2_PIN GET_PIN(A, 5)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F072RB
|
||||
bool
|
||||
select SOC_SERIES_STM32F0
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
config BSP_USING_STLINK_TO_USART
|
||||
bool "Enable STLINK TO USART (uart2)"
|
||||
@@ -166,7 +159,7 @@ menu "On-chip Peripheral Drivers"
|
||||
endif
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2018-12-21 zylx first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f0xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F091RC
|
||||
bool
|
||||
select SOC_SERIES_STM32F0
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-06 zylx first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED2 pin: PA5 */
|
||||
#define LED2_PIN GET_PIN(A, 5)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F091RC
|
||||
bool
|
||||
select SOC_SERIES_STM32F0
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_USB_TO_USART
|
||||
@@ -157,7 +150,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_WDT
|
||||
default n
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2018-12-21 zylx first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f0xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F103C8
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2019-03-08 obito0 first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PA1 */
|
||||
#define LED0_PIN GET_PIN(A, 1)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F103C8
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_USB_TO_USART
|
||||
@@ -79,7 +72,7 @@ menu "On-chip Peripheral Drivers"
|
||||
default n
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2019-03-08 obito0 first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f1xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2019-03-08 obito0 first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PA1 */
|
||||
#define LED0_PIN GET_PIN(B, 5)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_USB_TO_USART
|
||||
@@ -208,7 +201,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_CAN
|
||||
default n
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2019-03-08 obito0 first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f1xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F103RB
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-27 balanceTWK first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PC0 */
|
||||
#define LED0_PIN GET_PIN(C, 0)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F103RB
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_USB_TO_USART
|
||||
@@ -202,7 +195,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_WDT
|
||||
default n
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2018-11-06 balanceTWK first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <stm32f1xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -5,12 +5,16 @@
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2019-03-08 obito0 first version
|
||||
* 2019-03-08 obito0 first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PB5 */
|
||||
#define LED0_PIN GET_PIN(B, 5)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_USB_TO_USART
|
||||
@@ -242,7 +235,7 @@ menu "On-chip Peripheral Drivers"
|
||||
|
||||
endif
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2018-11-06 SummerGift first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f1xx.h>
|
||||
#include "drv_common.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -24,8 +24,8 @@ config SOC_STM32F103C8
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
@@ -6,13 +6,16 @@
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2019-03-08 obito0 first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PC13 */
|
||||
#define LED0_PIN GET_PIN(C, 13)
|
||||
|
||||
@@ -29,12 +32,3 @@ int main(void)
|
||||
rt_thread_mdelay(500);
|
||||
}
|
||||
}
|
||||
#else
|
||||
int main(void)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
rt_thread_mdelay(500);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -188,7 +188,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_USB_DEVICE
|
||||
default n
|
||||
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
* 2019-03-08 obito0 first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
@@ -51,10 +52,3 @@ void SystemClock_Config(void)
|
||||
Error_Handler();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef RT_USING_NANO
|
||||
void rt_hw_board_init(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <stm32f1xx.h>
|
||||
#include <drv_common.h>
|
||||
#include <drv_gpio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -15,8 +15,18 @@ config PKGS_DIR
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
|
||||
if !RT_USING_NANO
|
||||
source "board/Kconfig"
|
||||
endif
|
||||
|
||||
|
||||
@@ -5,13 +5,16 @@
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-06 SummerGift first version
|
||||
* 2019-04-09 WillianChan add stm32f103-dofly-M3S BSP
|
||||
* 2019-04-09 WillianChan first version
|
||||
* 2023-12-03 Meco Man support nano version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
#include <rtthread.h>
|
||||
#include <drv_gpio.h>
|
||||
#ifndef RT_USING_NANO
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
/* defined the LED0 pin: PE5 */
|
||||
#define LED0_PIN GET_PIN(E, 5)
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
menu "Hardware Drivers Config"
|
||||
|
||||
config SOC_STM32F103ZE
|
||||
bool
|
||||
select SOC_SERIES_STM32F1
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
menu "Onboard Peripheral Drivers"
|
||||
|
||||
config BSP_USING_SDIO_SDCARD
|
||||
@@ -136,7 +129,7 @@ menu "On-chip Peripheral Drivers"
|
||||
select RT_USING_SDIO
|
||||
select RT_USING_DFS
|
||||
default n
|
||||
source "../libraries/HAL_Drivers/Kconfig"
|
||||
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
* 2019-04-09 WillianChan add stm32f103-dofly-M3S BSP
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include <board.h>
|
||||
#include <drv_common.h>
|
||||
|
||||
void SystemClock_Config(void)
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user