[stm32] support nano version

- G0
- G4
- L0
- L4
This commit is contained in:
Meco Man 2023-12-04 00:11:29 +08:00
parent 3bc29c7673
commit 1b0dae2bb0
106 changed files with 315 additions and 271 deletions

View File

@ -10,6 +10,7 @@
#include <board.h>
#include <drv_lptim.h>
#include <rtdevice.h>
static void uart_console_reconfig(void)
{

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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" {

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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" {

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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)

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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)

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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)

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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" {

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"

View File

@ -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)

View File

@ -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

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)
{

View File

@ -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" {

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"

View File

@ -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)

View File

@ -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)"

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)
{

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" {

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"

View File

@ -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)

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

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)
{

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" {

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"

View File

@ -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)

View File

@ -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)"

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)
{

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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L433CC
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"

View File

@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2021-12-05 supperthomas 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 */
#define LED1_PIN GET_PIN(B, 2)
int main(void)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L433CC
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

View File

@ -9,6 +9,7 @@
*/
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

View File

@ -11,9 +11,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#ifdef __cplusplus
extern "C" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L433RC
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"

View File

@ -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 LED0 pin: PB13 */
#define LED0_PIN GET_PIN(B, 13)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L433RC
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu

View File

@ -8,7 +8,8 @@
* 2018-11-06 SummerGift first version
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
/**
* @brief System Clock Configuration

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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L452RE
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"

View File

@ -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)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L452RE
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu

View File

@ -8,7 +8,8 @@
* 2018-11-06 SummerGift first version
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
/**
* @brief System Clock Configuration

View File

@ -12,10 +12,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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L475VG
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"

View File

@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2019-3-19 tyustli 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: PB14 */
#define LED0_PIN GET_PIN(B, 14)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L475VG
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu

View File

@ -9,6 +9,7 @@
*/
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L476RG
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"

View File

@ -6,12 +6,16 @@
* 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 "drv_gpio.h"
#include <rtthread.h>
#include <drv_gpio.h>
#ifndef RT_USING_NANO
#include <rtdevice.h>
#endif /* RT_USING_NANO */
/* defined the LED0 pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L476RG
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

View File

@ -10,6 +10,8 @@
*/
#include <board.h>
#include <rtconfig.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

View File

@ -11,10 +11,8 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#include <rtconfig.h>
#ifdef __cplusplus
extern "C" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L496VG
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"

View File

@ -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 LED0 pin: PE7 */
#define LED0_PIN GET_PIN(B, 6)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L496VG
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

View File

@ -9,6 +9,7 @@
*/
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

View File

@ -11,9 +11,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#ifdef __cplusplus
extern "C" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L496AG
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"

View File

@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2023-5-22 Rain Park 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: PB13 */
#define LED0_PIN GET_PIN(B, 13)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L496AG
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
endmenu

View File

@ -8,7 +8,8 @@
* 2023-5-22 Rain Park first version
*/
#include "board.h"
#include <board.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L496ZG
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"

View File

@ -6,11 +6,15 @@
* Change Logs:
* Date Author Notes
* 2020-03-14 super_mcu 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: PB7 */
#define LED2_PIN GET_PIN(B, 7)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L496ZG
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

View File

@ -10,7 +10,7 @@
*/
#include <board.h>
#include <rtthread.h>
#include <drv_common.h>
void SystemClock_Config(void)
{

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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L4R5ZI
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"

View File

@ -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 LED1 pin: PC7 */
#define LED1_PIN GET_PIN(C, 7)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L4R5ZI
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 (lpuart1)"

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)
{

View File

@ -12,10 +12,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" {

View File

@ -15,6 +15,13 @@ config PKGS_DIR
option env="PKGS_ROOT"
default "packages"
config SOC_STM32L4R9AI
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"

View File

@ -5,13 +5,16 @@
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift first version
* 2019-04-09 jhb
* 2019-04-09 jhb 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: PB15 */
#define LED0_PIN GET_PIN(B, 15)

View File

@ -1,12 +1,5 @@
menu "Hardware Drivers Config"
config SOC_STM32L4R9AI
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

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