stm32: rename SOC_STM32F1X -> SOC_SERIES_STM32F1X
Use SOC_SERIES_* for naming SoCs with similar features and architectures with the goal of code reuse. The Series in the config variable should avoid name collisions and clearly denote the relationships within an SoC family. Change-Id: I7a98542f96b5d5dc3acc23782c4d45f98cceb599 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9bf2da7ef4
commit
4b411b34a1
11 changed files with 28 additions and 28 deletions
|
@ -52,7 +52,7 @@ struct __exti_cb {
|
|||
void *data;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SOC_STM32F1X
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
#define EXTI_LINES 19
|
||||
#endif
|
||||
|
||||
|
@ -75,7 +75,7 @@ void stm32_exti_enable(struct device *dev, int line)
|
|||
|
||||
exti->imr |= 1 << line;
|
||||
|
||||
#ifdef CONFIG_SOC_STM32F1X
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
if (line >= 5 && line <= 9) {
|
||||
irqnum = STM32F1_IRQ_EXTI9_5;
|
||||
} else if (line >= 10 && line <= 15) {
|
||||
|
@ -246,7 +246,7 @@ DEVICE_INIT(exti_stm32, STM32_EXTI_NAME, stm32_exti_init,
|
|||
*/
|
||||
static void __stm32_exti_connect_irqs(struct device *dev)
|
||||
{
|
||||
#ifdef CONFIG_SOC_STM32F1X
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
IRQ_CONNECT(STM32F1_IRQ_EXTI0,
|
||||
CONFIG_EXTI_STM32_EXTI0_IRQ_PRI,
|
||||
__stm32_exti_isr_0, DEVICE_GET(exti_stm32),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue