[stm32] support nano version

- G0
- G4
- L0
- L4
This commit is contained in:
Meco Man
2023-12-05 23:22:19 +08:00
parent 3bc29c7673
commit 1b0dae2bb0
106 changed files with 315 additions and 271 deletions
@@ -10,6 +10,7 @@
#include <board.h>
#include <drv_lptim.h>
#include <rtdevice.h>
static void uart_console_reconfig(void)
{
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32G070RB
bool
select SOC_SERIES_STM32G0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 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 LED pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32G070RB
bool
select SOC_SERIES_STM32G0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_UART
+2 -1
View File
@@ -8,7 +8,8 @@
* 2020-7-1 NU-LL 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 <stm32g0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32G071RB
bool
select SOC_SERIES_STM32G0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 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 LED pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32G071RB
bool
select SOC_SERIES_STM32G0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART
+2 -1
View File
@@ -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 <stm32g0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32G431RB
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift 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_STM32G431RB
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu
+2 -1
View File
@@ -9,7 +9,8 @@
* 2019-10-03 xuzhuoyi add stm32g431-st-nucleo bsp
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{
@@ -12,10 +12,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32g4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (128 * 1024)
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32G474RE
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift 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_STM32G474RE
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_STLINK_TO_USART
+2 -1
View File
@@ -9,7 +9,8 @@
* 2019-10-03 xuzhuoyi add stm32g431-st-nucleo bsp
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{
@@ -12,10 +12,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32g4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (128 * 1024)
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32G491RE
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2023-12-04 Supperthomas first version
* 2023-12-05 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_STM32G491RE
bool
select SOC_SERIES_STM32G4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu
+2 -1
View File
@@ -8,7 +8,8 @@
* 2023-12-04 Supperthomas First version
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{
@@ -12,10 +12,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32g4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L010RB
bool
select SOC_SERIES_STM32L0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 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 LED pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L010RB
bool
select SOC_SERIES_STM32L0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART
+2 -1
View File
@@ -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 <stm32l0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L053R8
bool
select SOC_SERIES_STM32L0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 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 LED pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L053R8
bool
select SOC_SERIES_STM32L0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART
+2 -1
View File
@@ -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 <stm32l0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L412RB
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2020-04-24 luhuadong 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 LD4 pin: PB13 */
#define LD4_PIN GET_PIN(B, 13)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L412RB
bool
select SOC_SERIES_STM32L4
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)"
+2 -1
View File
@@ -8,7 +8,8 @@
* 2020-04-24 luhuadong 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 <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L431RC
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2019-01-11 RiceChen first edition
* 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 LED pin: PC13 */
#define LED0_PIN GET_PIN(C, 13)
-7
View File
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L431RC
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"
config BSP_USING_GPIO
+2 -1
View File
@@ -8,7 +8,8 @@
* 2018-11-06 RiceChen first version
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{
-3
View File
@@ -11,10 +11,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
+7
View File
@@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L432KC
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"
@@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2019-01-11 sun_shine first edition
* 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: PB3 */
#define LED0_PIN GET_PIN(B, 3)
@@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L432KC
bool
select SOC_SERIES_STM32L4
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)"
+2 -1
View File
@@ -8,7 +8,8 @@
* 2018-11-06 SummerGift first version
*/
#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