!arch/stm32f0l0g0: move stm32c0 and finalize the directory split

Move the stm32c0 sources, headers and boards into arch/arm/src/stm32c0,
arch/arm/include/stm32c0 and boards/arm/stm32c0, then finalize the split:
source each split family directly in arch/arm/Kconfig and boards/Kconfig and
remove the now-empty combined arch/arm/src/stm32f0l0g0 and
boards/arm/stm32f0l0g0 trees.

BREAKING CHANGE: The combined STM32F0/L0/G0/C0 architecture and board
paths were split into stm32f0, stm32l0, stm32g0, and stm32c0 directories.
Out-of-tree boards, include paths, source paths, and defconfigs must move
from stm32f0l0g0 to the matching split family.

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2026-06-24 14:54:44 -03:00
committed by Alan C. Assis
parent 6d6bcbfcba
commit 79e3c2e59f
81 changed files with 865 additions and 3262 deletions
+238 -321
View File
File diff suppressed because it is too large Load Diff
+10 -10
View File
@@ -3386,9 +3386,9 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_gpio.c
boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_pwm.c
boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_timer.c
boards/arm/stm32g0/nucleo-g070rb/src/stm32_gpio.c
boards/arm/stm32g0/nucleo-g070rb/src/stm32_pwm.c
boards/arm/stm32g0/nucleo-g070rb/src/stm32_timer.c
=====================================================
Copyright (C) 2019 Fundação CERTI. All rights reserved.
@@ -4243,7 +4243,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
arch/arm/src/stm32f0l0g0/hardware/stm32g0_pinmap.h
arch/arm/src/stm32g0/hardware/stm32g0_pinmap.h
=====================================================
Copyright (C) 2019 Gregory Nutt. All rights reserved.
@@ -4276,7 +4276,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
arch/arm/src/stm32f0l0g0/stm32_i2c.c
arch/arm/src/common/stm32/stm32_i2c_m0_v1.c
===========================================
Copyright (C) 2011 Uros Platise. All rights reserved.
@@ -4309,7 +4309,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
arch/arm/src/stm32f0l0g0/stm32_pwm.c
arch/arm/src/common/stm32/stm32_pwm_m0_v1.c
=======================================
Copyright (C) 2019 Fundação CERTI. All rights reserved.
@@ -4341,9 +4341,9 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
arch/arm/src/stm32f0l0g0/stm32_pwm.h
arch/arm/src/stm32f0l0g0/stm32_tim.c
arch/arm/src/stm32f0l0g0/stm32_tim.h
arch/arm/src/common/stm32/stm32_pwm_m0_v1.h
arch/arm/src/common/stm32/stm32_tim_m0_v1.c
arch/arm/src/common/stm32/stm32_tim_m0_v1.h
=======================================
Copyright (C) 2019 Fundação CERTI. All rights reserved.
@@ -4375,7 +4375,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c
arch/arm/src/common/stm32/stm32_tim_m0_v1_lowerhalf.c
=================================================
Copyright (C) 2019 Fundação CERTI. All rights reserved.
+1 -1
View File
@@ -44,7 +44,7 @@
* memory in the IRQ to handle mapping tables.
*
* Processor Exceptions (vectors 0-15). These common definitions can be
* found in nuttx/arch/arm/include/stm32f0l0g0/irq.h
* found in nuttx/arch/arm/include/phy62xx/irq.h
*/
#define PHY62XX_IRQ_BB_IRQn (PHY62XX_IRQ_EXTINT + 4) /* 4: RCC and CRS */
+157
View File
@@ -0,0 +1,157 @@
/****************************************************************************
* arch/arm/include/stm32c0/chip.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_STM32C0_CHIP_H
#define __ARCH_ARM_INCLUDE_STM32C0_CHIP_H
#define ARMV6M_PERIPHERAL_INTERRUPTS 32
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Prototypes
****************************************************************************/
/* Get customizations for each supported chip */
#if defined(CONFIG_ARCH_CHIP_STM32C051XX)
# define STM32_NATIM 1 /* One advanced timers TIM1 */
# define STM32_NGTIM16 4 /* Four 16-bit general up/down timers TIM3, TIM14,
* TIM16 and TIM17 */
# define STM32_NGTIM32 1 /* One 32-bit general up/down timer TIM2 */
# define STM32_NBTIM 0 /* No basic timers */
/* One LPTIMER */
# define STM32_NSPI 2 /* Two SPI modules SPI1-2 */
# define STM32_NI2S 0 /* No I2S module */
# define STM32_NI2C 2 /* Two I2C */
# define STM32_NDMA 1 /* One DMA1, 5-channels */
# define STM32_NUSART 2 /* Two USART modules, USART1-2 */
# define STM32_NCAN 0 /* No CAN controllers */
# define STM32_FDCAN 0 /* No FD CAN */
# define STM32_NLCD 0 /* No LCD controller */
# define STM32_NUSBDEV 0 /* No USB full-speed device controller */
# define STM32_NUSBOTG 0 /* No USB OTG FS/HS (only USB 2.0 device) */
# define STM32_NCEC 0 /* No HDMI-CEC controller */
# define STM32_NADC 1 /* One 12-bit module */
# define STM32_NDAC 0 /* No DAC channels */
# define STM32_NCOMP 0 /* No Analog Comparators */
# define STM32_NCRC 1 /* One CRC module */
# define STM32_NRNG 0 /* No Random number generator (RNG) */
# define STM32_NCAP 0 /* No Capacitive sensing channels */
# define STM32_NPORTS 5 /* Five GPIO ports, GPIOA-D, F */
#elif defined(CONFIG_ARCH_CHIP_STM32C071XX)
# define STM32_NATIM 1 /* One advanced timers TIM1 */
# define STM32_NGTIM16 4 /* 16-bit general up/down timers TIM3, TIM14,
* TIM16 and TIM17 */
# define STM32_NGTIM32 1 /* One 32-bit general up/down timer TIM2 */
# define STM32_NBTIM 0 /* No basic timers */
/* One LPTIMER */
# define STM32_NSPI 2 /* Two SPI modules SPI1-2 */
# define STM32_NI2S 0 /* No I2S module */
# define STM32_NI2C 2 /* Two I2C */
# define STM32_NDMA 1 /* One DMA1, 5-channels */
# define STM32_NUSART 2 /* Two USART modules, USART1-2 */
# define STM32_NCAN 0 /* No CAN controllers */
# define STM32_FDCAN 0 /* No FD CAN */
# define STM32_NLCD 0 /* No LCD controller */
# define STM32_NUSBDEV 1 /* USB full-speed device controller */
# define STM32_NUSBOTG 0 /* No USB OTG FS/HS (only USB 2.0 device) */
# define STM32_NCEC 0 /* No HDMI-CEC controller */
# define STM32_NADC 1 /* One 12-bit module */
# define STM32_NDAC 0 /* No DAC channels */
# define STM32_NCOMP 0 /* No Analog Comparators */
# define STM32_NCRC 1 /* One CRC module */
# define STM32_NRNG 0 /* No Random number generator (RNG) */
# define STM32_NCAP 0 /* No Capacitive sensing channels */
# define STM32_NPORTS 5 /* Five GPIO ports, GPIOA-D, F */
#elif defined(CONFIG_ARCH_CHIP_STM32C091XX)
# define STM32_NATIM 1 /* One advanced timers TIM1 */
# define STM32_NGTIM16 5 /* 16-bit general up/down timers TIM3, TIM14,
* TIM15, TIM16 and TIM17 */
# define STM32_NGTIM32 1 /* One 32-bit general up/down timer TIM2 */
# define STM32_NBTIM 0 /* No basic timers */
/* One LPTIMER */
# define STM32_NSPI 2 /* Two SPI modules SPI1-2 */
# define STM32_NI2S 0 /* No I2S module */
# define STM32_NI2C 2 /* Two I2C */
# define STM32_NDMA 1 /* One DMA1, 5-channels */
# define STM32_NUSART 4 /* Four USART modules, USART1-4 */
# define STM32_NCAN 0 /* No CAN controllers */
# define STM32_FDCAN 0 /* No FD CAN */
# define STM32_NLCD 0 /* No LCD controller */
# define STM32_NUSBDEV 1 /* USB full-speed device controller */
# define STM32_NUSBOTG 0 /* No USB OTG FS/HS (only USB 2.0 device) */
# define STM32_NCEC 0 /* No HDMI-CEC controller */
# define STM32_NADC 1 /* One 12-bit module */
# define STM32_NDAC 0 /* No DAC channels */
# define STM32_NCOMP 0 /* No Analog Comparators */
# define STM32_NCRC 1 /* One CRC module */
# define STM32_NRNG 0 /* No Random number generator (RNG) */
# define STM32_NCAP 0 /* No Capacitive sensing channels */
# define STM32_NPORTS 5 /* Five GPIO ports, GPIOA-D, F */
#elif defined(CONFIG_ARCH_CHIP_STM32C092XX)
# define STM32_NATIM 1 /* One advanced timers TIM1 */
# define STM32_NGTIM16 5 /* 16-bit general up/down timers TIM3, TIM14,
* TIM15, TIM16 and TIM17 */
# define STM32_NGTIM32 1 /* One 32-bit general up/down timer TIM2 */
# define STM32_NBTIM 0 /* No basic timers */
/* One LPTIMER */
# define STM32_NSPI 2 /* Two SPI modules SPI1-2 */
# define STM32_NI2S 0 /* No I2S module */
# define STM32_NI2C 2 /* Two I2C */
# define STM32_NDMA 1 /* One DMA1, 5-channels */
# define STM32_NUSART 4 /* Four USART modules, USART1-4 */
# define STM32_NCAN 0 /* No CAN controllers */
# define STM32_FDCAN 1 /* One FD CAN */
# define STM32_NLCD 0 /* No LCD controller */
# define STM32_NUSBDEV 1 /* USB full-speed device controller */
# define STM32_NUSBOTG 0 /* No USB OTG FS/HS (only USB 2.0 device) */
# define STM32_NCEC 0 /* No HDMI-CEC controller */
# define STM32_NADC 1 /* One 12-bit module */
# define STM32_NDAC 0 /* No DAC channels */
# define STM32_NCOMP 0 /* No Analog Comparators */
# define STM32_NCRC 1 /* One CRC module */
# define STM32_NRNG 0 /* No Random number generator (RNG) */
# define STM32_NCAP 0 /* No Capacitive sensing channels */
# define STM32_NPORTS 5 /* Five GPIO ports, GPIOA-D, F */
#else
# error "Unsupported STM32 Cortex M0 chip"
#endif
/* NVIC priority levels *****************************************************/
/* Each priority field holds a priority value, 0-31. The lower the value,
* the greater the priority of the corresponding interrupt. The processor
* implements only bits[7:6] of each field, bits[5:0] read as zero and
* ignore writes.
*/
#define NVIC_SYSH_PRIORITY_MIN 0xc0 /* All bits[7:6] set is minimum priority */
#define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */
#define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */
#define NVIC_SYSH_PRIORITY_STEP 0x40 /* Two bits of interrupt priority used */
#endif /* __ARCH_ARM_INCLUDE_STM32C0_CHIP_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/include/stm32f0l0g0/stm32c0_irq.h
* arch/arm/include/stm32c0/irq.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -24,16 +24,17 @@
* through nuttx/irq.h
*/
#ifndef __ARCH_ARM_INCLUDE_STM32F0L0G0_STM32G0_IRQ_H
#define __ARCH_ARM_INCLUDE_STM32F0L0G0_STM32G0_IRQ_H
#ifndef __ARCH_ARM_INCLUDE_STM32C0_IRQ_H
#define __ARCH_ARM_INCLUDE_STM32C0_IRQ_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/irq.h>
#include <arch/stm32f0l0g0/chip.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include <arch/stm32c0/chip.h>
/****************************************************************************
* Pre-processor Prototypes
@@ -42,11 +43,31 @@
/* IRQ numbers. The IRQ number corresponds vector number and hence map
* directly to bits in the NVIC. This does, however, waste several words of
* memory in the IRQ to handle mapping tables.
*
* Processor Exceptions (vectors 0-15). These common definitions can be
* found in nuttx/arch/arm/include/stm32f0l0g0/irq.h
*/
/* Common Processor Exceptions (vectors 0-15) */
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
/* Vector 0: Reset stack pointer value */
/* Vector 1: Reset (not handler as an IRQ) */
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
#define STM32_IRQ_HARDFAULT (3) /* Vector 3: Hard fault */
/* Vectors 4-10: Reserved */
#define STM32_IRQ_SVCALL (11) /* Vector 11: SVC call */
/* Vector 12-13: Reserved */
#define STM32_IRQ_PENDSV (14) /* Vector 14: Pendable system service request */
#define STM32_IRQ_SYSTICK (15) /* Vector 15: System tick */
/* External interrupts (vectors >= 16) */
#define STM32_IRQ_EXTINT (16) /* Vector number of the first external interrupt */
/****************************************************************************
* Included Files
****************************************************************************/
/* External interrupt vectors */
#define STM32_IRQ_WWDG (STM32_IRQ_EXTINT + 0) /* 0: Window Watchdog interrupt */
#define STM32_IRQ_PVM (STM32_IRQ_EXTINT + 1) /* 1: VDDIO2 monitor interrupt */
#define STM32_IRQ_RTC (STM32_IRQ_EXTINT + 2) /* 2: RTC */
@@ -87,31 +108,6 @@
#define STM32_IRQ_NEXTINTS (32)
/****************************************************************************
* Public Types
****************************************************************************/
#define NR_IRQS (STM32_IRQ_EXTINT + STM32_IRQ_NEXTINTS)
/****************************************************************************
* Public Data
****************************************************************************/
#ifndef __ASSEMBLY__
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif
#endif /* __ARCH_ARM_INCLUDE_STM32F0L0G0_STM32G0_IRQ_H */
#endif /* __ARCH_ARM_INCLUDE_STM32C0_IRQ_H */
File diff suppressed because it is too large Load Diff
-114
View File
@@ -1,114 +0,0 @@
/****************************************************************************
* arch/arm/include/stm32f0l0g0/irq.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
/* This file should never be included directly but, rather, only indirectly
* through nuttx/irq.h
*/
#ifndef __ARCH_ARM_INCLUDE_STM32F0L0G0_IRQ_H
#define __ARCH_ARM_INCLUDE_STM32F0L0G0_IRQ_H
/****************************************************************************
* Included Files
****************************************************************************/
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include <arch/stm32f0l0g0/chip.h>
/****************************************************************************
* Pre-processor Prototypes
****************************************************************************/
/* IRQ numbers. The IRQ number corresponds vector number and hence map
* directly to bits in the NVIC. This does, however, waste several words of
* memory in the IRQ to handle mapping tables.
*/
/* Common Processor Exceptions (vectors 0-15) */
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
/* Vector 0: Reset stack pointer value */
/* Vector 1: Reset (not handler as an IRQ) */
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
#define STM32_IRQ_HARDFAULT (3) /* Vector 3: Hard fault */
/* Vectors 4-10: Reserved */
#define STM32_IRQ_SVCALL (11) /* Vector 11: SVC call */
/* Vector 12-13: Reserved */
#define STM32_IRQ_PENDSV (14) /* Vector 14: Pendable system service request */
#define STM32_IRQ_SYSTICK (15) /* Vector 15: System tick */
/* External interrupts (vectors >= 16) */
#define STM32_IRQ_EXTINT (16) /* Vector number of the first external interrupt */
/****************************************************************************
* Included Files
****************************************************************************/
/* Include MCU-specific external interrupt definitions */
#if defined(CONFIG_ARCH_CHIP_STM32F0)
# include <arch/stm32f0l0g0/stm32f0_irq.h>
#elif defined(CONFIG_ARCH_CHIP_STM32L0)
# include <arch/stm32f0l0g0/stm32l0_irq.h>
#elif defined(CONFIG_ARCH_CHIP_STM32G0)
# include <arch/stm32f0l0g0/stm32g0_irq.h>
#elif defined(CONFIG_ARCH_CHIP_STM32C0)
# include <arch/stm32f0l0g0/stm32c0_irq.h>
#else
# error Unrecognized STM32 Cortex M0 family
#endif
#define NR_IRQS (STM32_IRQ_EXTINT + STM32_IRQ_NEXTINTS)
/****************************************************************************
* Public Types
****************************************************************************/
#ifndef __ASSEMBLY__
typedef void (*vic_vector_t)(uint32_t *regs);
/****************************************************************************
* Inline functions
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
}
#endif
#endif /* __ASSEMBLY__ */
#endif /* __ARCH_ARM_INCLUDE_STM32F0L0G0_IRQ_H */
+6
View File
@@ -467,6 +467,12 @@ if(CONFIG_ARCH_CORTEXM0)
list(APPEND SRCS stm32_aes_m0_v1.c)
endif()
if(CONFIG_CRYPTO_CRYPTODEV_HARDWARE
AND CONFIG_STM32_AES
AND CONFIG_STM32_HAVE_IP_AES_M0_V1)
list(APPEND SRCS stm32_crypto_m0_v1.c)
endif()
if(CONFIG_STM32_RNG AND CONFIG_STM32_HAVE_IP_RNG_M0_V1)
list(APPEND SRCS stm32_rng_m0_v1.c)
endif()
+4
View File
@@ -511,6 +511,10 @@ ifeq ($(CONFIG_STM32_AES)$(CONFIG_STM32_HAVE_IP_AES_M0_V1),yy)
CHIP_CSRCS += stm32_aes_m0_v1.c
endif
ifeq ($(CONFIG_CRYPTO_CRYPTODEV_HARDWARE)$(CONFIG_STM32_AES)$(CONFIG_STM32_HAVE_IP_AES_M0_V1),yyy)
CHIP_CSRCS += stm32_crypto_m0_v1.c
endif
ifeq ($(CONFIG_STM32_RNG)$(CONFIG_STM32_HAVE_IP_RNG_M0_V1),yy)
CHIP_CSRCS += stm32_rng_m0_v1.c
endif
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32_crypto.c
* arch/arm/src/common/stm32/stm32_crypto_m0_v1.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -26,6 +26,8 @@
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <crypto/cryptodev.h>
#include <crypto/xform.h>
@@ -134,6 +136,8 @@ static int stm32_process(struct cryptop *crp)
return -EINVAL;
}
}
return 0;
}
/****************************************************************************
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-g070rb/CMakeLists.txt
# arch/arm/src/stm32c0/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -20,4 +20,13 @@
#
# ##############################################################################
add_subdirectory(src)
set(SRCS)
list(APPEND SRCS stm32_rcc.c)
if(CONFIG_BUILD_PROTECTED)
list(APPEND SRCS stm32_userspace.c)
endif()
target_sources(arch PRIVATE ${SRCS})
add_subdirectory(${NUTTX_DIR}/arch/arm/src/common/stm32 stm32_common)
File diff suppressed because it is too large Load Diff
@@ -1,5 +1,5 @@
############################################################################
# arch/arm/src/stm32f0l0g0/Make.defs
# arch/arm/src/stm32c0/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -22,24 +22,7 @@
include armv6-m/Make.defs
CHIP_CSRCS = stm32_start.c stm32_irq.c stm32_lowputc.c
CHIP_CSRCS += stm32_rcc.c stm32_lsi.c
ifneq ($(CONFIG_STM32_RTC_LSECLOCK)$(CONFIG_STM32_LCD_LSECLOCK),)
CHIP_CSRCS += stm32_lse.c
endif
ifeq ($(CONFIG_STM32_PWR),y)
CHIP_CSRCS += stm32_pwr.c
endif
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
CHIP_CSRCS += stm32_idle.c
endif
ifneq ($(CONFIG_SCHED_TICKLESS),y)
CHIP_CSRCS += stm32_timerisr.c
endif
CHIP_CSRCS = stm32_rcc.c
ifeq ($(CONFIG_BUILD_PROTECTED),y)
CHIP_CSRCS += stm32_userspace.c
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/chip.h
* arch/arm/src/stm32c0/chip.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_CHIP_H
#define __ARCH_ARM_SRC_STM32F0L0G0_CHIP_H
#ifndef __ARCH_ARM_SRC_STM32C0_CHIP_H
#define __ARCH_ARM_SRC_STM32C0_CHIP_H
/****************************************************************************
* Included Files
@@ -32,9 +32,7 @@
/* Include the chip capabilities file */
#include <arch/stm32f0l0g0/chip.h>
#define ARMV6M_PERIPHERAL_INTERRUPTS 32
#include <arch/stm32c0/chip.h>
/* Include the memory map file.
* Other chip hardware files should then include this file for the proper
@@ -43,4 +41,4 @@
#include "hardware/stm32_memorymap.h"
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_CHIP_H */
#endif /* __ARCH_ARM_SRC_STM32C0_CHIP_H */
@@ -0,0 +1,17 @@
/****************************************************************************
* arch/arm/src/stm32c0/hardware/stm32_memorymap.h
*
* SPDX-License-Identifier: Apache-2.0
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_MEMORYMAP_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_MEMORYMAP_H
/****************************************************************************
* Included Files
****************************************************************************/
#include "hardware/stm32c0_memorymap.h"
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_MEMORYMAP_H */
@@ -0,0 +1,17 @@
/****************************************************************************
* arch/arm/src/stm32c0/hardware/stm32_pinmap.h
*
* SPDX-License-Identifier: Apache-2.0
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_PINMAP_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_PINMAP_H
/****************************************************************************
* Included Files
****************************************************************************/
#include "hardware/stm32c0_pinmap.h"
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32_PINMAP_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_dmamux.h
* arch/arm/src/stm32c0/hardware/stm32c0_dmamux.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_DMAMUX_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_DMAMUX_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_DMAMUX_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_DMAMUX_H
/****************************************************************************
* Included Files
@@ -54,4 +54,4 @@
#define DMAMAP_DMA1_REQGEN3 DMAMAP_MAP(DMA1, DMAMUX1_REQ_GEN3)
#define DMAMAP_DMA1_ADC1 DMAMAP_MAP(DMA1, DMAMUX1_ADC1)
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_DMAMUX_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_DMAMUX_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_exti.h
* arch/arm/src/stm32c0/hardware/stm32c0_exti.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_EXTI_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_EXTI_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_EXTI_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_EXTI_H
/****************************************************************************
* Included Files
@@ -87,4 +87,4 @@
/* TODO */
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_EXTI_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_EXTI_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_flash.h
* arch/arm/src/stm32c0/hardware/stm32c0_flash.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_FLASH_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_FLASH_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_FLASH_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_FLASH_H
/****************************************************************************
* Included Files
@@ -202,4 +202,4 @@
#define FLASH_SECR_BOOT_LOCK (1 << 16) /* Bit 16: Used to force boot from user area */
/* Bits 20-31: Reserved */
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_FLASH_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_FLASH_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_memorymap.h
* arch/arm/src/stm32c0/hardware/stm32c0_memorymap.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_MEMORYMAP_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_MEMORYMAP_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_MEMORYMAP_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_MEMORYMAP_H
/****************************************************************************
* Pre-processor Definitions
@@ -115,4 +115,4 @@
#define STM32_SYSMEM_UID 0x1fff7550 /* The 96-bit unique device identifier */
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_MEMORYMAP_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_MEMORYMAP_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_pinmap.h
* arch/arm/src/stm32c0/hardware/stm32c0_pinmap.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -32,8 +32,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PINMAP_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PINMAP_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PINMAP_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PINMAP_H
/****************************************************************************
* Included Files
@@ -351,4 +351,4 @@
#define GPIO_TIM17_CH1NOUT_1 (GPIO_ALT | GPIO_AF5 | GPIO_PORTA | GPIO_PIN4)
#define GPIO_TIM17_CH1NOUT_2 (GPIO_ALT | GPIO_AF2 | GPIO_PORTB | GPIO_PIN7)
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PINMAP_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PINMAP_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_pwr.h
* arch/arm/src/stm32c0/hardware/stm32c0_pwr.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PWR_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PWR_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PWR_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PWR_H
/****************************************************************************
* Included Files
@@ -150,4 +150,4 @@
#define PWR_BKPR_MASK (0xffff) /* Bits 0-16: Backup bitfield */
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_PWR_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_PWR_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/hardware/stm32c0_rcc.h
* arch/arm/src/stm32c0/hardware/stm32c0_rcc.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_RCC_H
#define __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_RCC_H
#ifndef __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_RCC_H
#define __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_RCC_H
/****************************************************************************
* Pre-processor Definitions
@@ -394,4 +394,4 @@
#define RCC_CSR2_WWDGRSTF (1 << 30) /* Bit 30: WWDG reset flag */
#define RCC_CSR2_LPWRRSTF (1 << 31) /* Bit 31: Low-power reset flag */
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_HARDWARE_STM32C0_RCC_H */
#endif /* __ARCH_ARM_SRC_STM32C0_HARDWARE_STM32C0_RCC_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32.h
* arch/arm/src/stm32c0/stm32.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_STM32_H
#define __ARCH_ARM_SRC_STM32F0L0G0_STM32_H
#ifndef __ARCH_ARM_SRC_STM32C0_STM32_H
#define __ARCH_ARM_SRC_STM32C0_STM32_H
/****************************************************************************
* Included Files
@@ -51,4 +51,4 @@
* Pre-processor Definitions
****************************************************************************/
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_STM32_H */
#endif /* __ARCH_ARM_SRC_STM32C0_STM32_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32_rcc.c
* arch/arm/src/stm32c0/stm32_rcc.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -36,7 +36,7 @@
#include "arm_internal.h"
#include "hardware/stm32_flash.h"
#include "stm32_rcc.h"
#include "stm32_hsi48.h"
#include "stm32_hsi48_m0_v1.h"
/****************************************************************************
* Pre-processor Definitions
@@ -70,17 +70,7 @@ static_assert(CONFIG_BOARD_LOOPSPERMSEC != -1,
/* Include chip-specific clocking initialization logic */
#if defined(CONFIG_ARCH_CHIP_STM32F0)
# include "stm32f0_rcc.c"
#elif defined(CONFIG_ARCH_CHIP_STM32L0)
# include "stm32l0_rcc.c"
#elif defined(CONFIG_ARCH_CHIP_STM32G0)
# include "stm32g0_rcc.c"
#elif defined(CONFIG_ARCH_CHIP_STM32C0)
# include "stm32c0_rcc.c"
#else
# error "Unsupported STM32F0/L0 RCC"
#endif
#include "stm32c0_rcc.c"
/****************************************************************************
* Public Functions
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32c0_rcc.c
* arch/arm/src/stm32c0/stm32c0_rcc.c
*
* SPDX-License-Identifier: Apache-2.0
*
-55
View File
@@ -1,55 +0,0 @@
# ##############################################################################
# arch/arm/src/stm32f0l0g0/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
set(SRCS)
list(
APPEND
SRCS
stm32_start.c
stm32_irq.c
stm32_lowputc.c
stm32_lsi.c
stm32_rcc.c)
if(CONFIG_STM32_RTC_LSECLOCK OR CONFIG_LCD_LSECLOCK)
list(APPEND SRCS stm32_lse.c)
endif()
if(CONFIG_STM32_PWR)
list(APPEND SRCS stm32_pwr.c)
endif()
if(NOT CONFIG_ARCH_IDLE_CUSTOM)
list(APPEND SRCS stm32_idle.c)
endif()
if(NOT CONFIG_SCHED_TICKLESS)
list(APPEND SRCS stm32_timerisr.c)
endif()
if(CONFIG_BUILD_PROTECTED)
list(APPEND SRCS stm32_userspace.c)
endif()
target_sources(arch PRIVATE ${SRCS})
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../common/stm32 stm32_common)
File diff suppressed because it is too large Load Diff
-90
View File
@@ -1,90 +0,0 @@
/****************************************************************************
* arch/arm/src/stm32f0l0g0/stm32_rcc.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32F0L0G0_STM32_RCC_H
#define __ARCH_ARM_SRC_STM32F0L0G0_STM32_RCC_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include "arm_internal.h"
#include "chip.h"
#include "hardware/stm32_rcc.h"
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
* Name: stm32_clockconfig
*
* Description:
* Called to initialize the STM32F0XX.
* This does whatever setup is needed to put the MCU in a usable state.
* This includes the initialization of clocking using the settings
* in board.h.
*
****************************************************************************/
void stm32_clockconfig(void);
/****************************************************************************
* Name: stm32_rcc_enablelse
*
* Description:
* Enable the External Low-Speed (LSE) Oscillator.
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
void stm32_rcc_enablelse(void);
/****************************************************************************
* Name: stm32_rcc_enablelsi
*
* Description:
* Enable the Internal Low-Speed (LSI) RC Oscillator.
*
****************************************************************************/
void stm32_rcc_enablelsi(void);
/****************************************************************************
* Name: stm32_rcc_disablelsi
*
* Description:
* Disable the Internal Low-Speed (LSI) RC Oscillator.
*
****************************************************************************/
void stm32_rcc_disablelsi(void);
#endif /* __ARCH_ARM_SRC_STM32F0L0G0_STM32_RCC_H */
+1 -4
View File
@@ -5207,13 +5207,10 @@ endif
if ARCH_CHIP_SAMV7
source "boards/arm/samv7/common/Kconfig"
endif
if ARCH_CHIP_STM32
source "boards/arm/common/stm32/Kconfig"
endif
if ARCH_CHIP_STM32F7
source "boards/arm/stm32f7/common/Kconfig"
endif
if ARCH_CHIP_STM32F0L0G0
if ARCH_CHIP_STM32C0 || ARCH_CHIP_STM32F0 || ARCH_CHIP_STM32F1 || ARCH_CHIP_STM32F2 || ARCH_CHIP_STM32F3 || ARCH_CHIP_STM32F4 || ARCH_CHIP_STM32G0 || ARCH_CHIP_STM32G4 || ARCH_CHIP_STM32L0 || ARCH_CHIP_STM32L1
source "boards/arm/common/stm32/Kconfig"
endif
if ARCH_CHIP_RP2040
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/common/CMakeLists.txt
# boards/arm/stm32c0/common/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
#############################################################################
# boards/arm/stm32f0l0g0/common/Makefile
# boards/arm/stm32c0/common/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-c092rc/CMakeLists.txt
# boards/arm/stm32c0/nucleo-c071rb/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -13,7 +13,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-c071rb"
CONFIG_ARCH_BOARD_NUCLEO_C071RB=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C071RB=y
CONFIG_ARCH_CHIP_STM32C071XX=y
@@ -13,7 +13,7 @@ CONFIG_ARCH_BOARD="nucleo-c071rb"
CONFIG_ARCH_BOARD_COMMON=y
CONFIG_ARCH_BOARD_NUCLEO_C071RB=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C071RB=y
CONFIG_ARCH_CHIP_STM32C071XX=y
@@ -9,7 +9,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-c071rb"
CONFIG_ARCH_BOARD_NUCLEO_C071RB=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C071RB=y
CONFIG_ARCH_CHIP_STM32C071XX=y
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/include/board.h
* boards/arm/stm32c0/nucleo-c071rb/include/board.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
############################################################################
# boards/arm/stm32f0l0g0/nucleo-c092rc/scripts/Make.defs
# boards/arm/stm32c0/nucleo-c071rb/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/scripts/flash.ld
* boards/arm/stm32c0/nucleo-c071rb/scripts/flash.ld
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-c071rb/src/CMakeLists.txt
# boards/arm/stm32c0/nucleo-c071rb/src/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
############################################################################
# boards/arm/stm32f0l0g0/nucleo-c071rb/src/Make.defs
# boards/arm/stm32c0/nucleo-c071rb/src/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/nucleo-c071rb.h
* boards/arm/stm32c0/nucleo-c071rb/src/nucleo-c071rb.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_adc.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_adc.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_autoleds.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_autoleds.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_boot.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_boot.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_bringup.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_bringup.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_buttons.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_buttons.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c071rb/src/stm32_userleds.c
* boards/arm/stm32c0/nucleo-c071rb/src/stm32_userleds.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-g071rb/CMakeLists.txt
# boards/arm/stm32c0/nucleo-c092rc/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -9,7 +9,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-c092rc"
CONFIG_ARCH_BOARD_NUCLEO_C092RC=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C092RC=y
CONFIG_ARCH_CHIP_STM32C092XX=y
@@ -12,7 +12,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-c092rc"
CONFIG_ARCH_BOARD_NUCLEO_C092RC=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C092RC=y
CONFIG_ARCH_CHIP_STM32C092XX=y
@@ -13,7 +13,7 @@ CONFIG_ARCH_BOARD="nucleo-c092rc"
CONFIG_ARCH_BOARD_COMMON=y
CONFIG_ARCH_BOARD_NUCLEO_C092RC=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C092RC=y
CONFIG_ARCH_CHIP_STM32C092XX=y
@@ -9,7 +9,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-c092rc"
CONFIG_ARCH_BOARD_NUCLEO_C092RC=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP="stm32f0l0g0"
CONFIG_ARCH_CHIP="stm32c0"
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32C092RC=y
CONFIG_ARCH_CHIP_STM32C092XX=y
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/include/board.h
* boards/arm/stm32c0/nucleo-c092rc/include/board.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
############################################################################
# boards/arm/stm32f0l0g0/nucleo-c071rb/scripts/Make.defs
# boards/arm/stm32c0/nucleo-c092rc/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/scripts/flash.ld
* boards/arm/stm32c0/nucleo-c092rc/scripts/flash.ld
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-c092rc/src/CMakeLists.txt
# boards/arm/stm32c0/nucleo-c092rc/src/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
############################################################################
# boards/arm/stm32f0l0g0/nucleo-c092rc/src/Make.defs
# boards/arm/stm32c0/nucleo-c092rc/src/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/nucleo-c092rc.h
* boards/arm/stm32c0/nucleo-c092rc/src/nucleo-c092rc.h
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_adc.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_adc.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_autoleds.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_autoleds.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_boot.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_boot.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_bringup.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_bringup.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_buttons.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_buttons.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_can.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_can.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_cansock.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_cansock.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/stm32f0l0g0/nucleo-c092rc/src/stm32_userleds.c
* boards/arm/stm32c0/nucleo-c092rc/src/stm32_userleds.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,41 +0,0 @@
############################################################################
# boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(TOPDIR)/.config
include $(TOPDIR)/tools/Config.mk
include $(TOPDIR)/arch/arm/src/armv6-m/Toolchain.defs
LDSCRIPT = ld.script
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-f072rb/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-g0b1re/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/nucleo-l073rz/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/stm32f051-discovery/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,41 +0,0 @@
############################################################################
# boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(TOPDIR)/.config
include $(TOPDIR)/tools/Config.mk
include $(TOPDIR)/arch/arm/src/armv6-m/Toolchain.defs
LDSCRIPT = flash.ld
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/stm32f072-discovery/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,41 +0,0 @@
############################################################################
# boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(TOPDIR)/.config
include $(TOPDIR)/tools/Config.mk
include $(TOPDIR)/arch/arm/src/armv6-m/Toolchain.defs
LDSCRIPT = flash.ld
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/stm32g071b-disco/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)
@@ -1,41 +0,0 @@
############################################################################
# boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(TOPDIR)/.config
include $(TOPDIR)/tools/Config.mk
include $(TOPDIR)/arch/arm/src/armv6-m/Toolchain.defs
LDSCRIPT = ld.script
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
@@ -1,23 +0,0 @@
# ##############################################################################
# boards/arm/stm32f0l0g0/stm32l0538-disco/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
add_subdirectory(src)