mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 17:40:22 +00:00
[bsp][stm32][nano] support nano version
stm32 BSPs to support nano version (RT_USING_NANO) 这个commit支持到stm32f7之前的BSP
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user