You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/15 12:42:51 UTC
[GitHub] utzig closed pull request #897: Move cmsis_nvic.h files frm BSP to MCU
utzig closed pull request #897: Move cmsis_nvic.h files frm BSP to MCU
URL: https://github.com/apache/mynewt-core/pull/897
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/LICENSE b/LICENSE
index bc28d9b11..8b36d826d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -260,21 +260,16 @@ This product bundles additional files from CMSIS-CORE, but these files are
missing licensing information. The BSD license was subsequently added to
these files in later releases. These files are:
* hw/cmsis-core/src/cmsis_nvic.c
- * hw/bsp/ada_feather_nrf52/include/bsp/cmsis_nvic.h
- * hw/bsp/arduino_primo_nrf52/include/bsp/cmsis_nvic.h
- * hw/bsp/bbc_microbit/include/bsp/cmsis_nvic.h
- * hw/bsp/bmd200/include/bsp/cmsis_nvic.h
- * hw/bsp/bmd300eval/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf51-arduino_101/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf51-blenano/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf51dk/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf51dk-16kbram/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf52840pdk/include/bsp/cmsis_nvic.h
- * hw/bsp/nrf52dk/include/bsp/cmsis_nvic.h
- * hw/bsp/nucleo-f401re/include/bsp/cmsis_nvic.h
- * hw/bsp/olimex_stm32-e407_devboard/include/bsp/cmsis_nvic.h
- * hw/bsp/rb-nano2/include/bsp/cmsis_nvic.h
- * hw/bsp/stm32f4discovery/include/bsp/cmsis_nvic.h
+ * hw/mcu/ambiq/apollo2/include/mcu/cmsis_nvic.h
+ * hw/mcu/nordic/nrf51xxx/include/mcu/cmsis_nvic.h
+ * hw/mcu/nordic/nrf52xxx/include/mcu/cmsis_nvic.h
+ * hw/mcu/nxp/MK64F12/include/mcu/cmsis_nvic.h
+ * hw/mcu/nxp/mkw41z/include/mcu/cmsis_nvic.h
+ * hw/mcu/stm/stm32f1xx/include/mcu/cmsis_nvic.h
+ * hw/mcu/stm/stm32f3xx/include/mcu/cmsis_nvic.h
+ * hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
+ * hw/mcu/stm/stm32f7xx/include/mcu/cmsis_nvic.h
+ * hw/mcu/stm/stm32l1xx/include/mcu/cmsis_nvic.h
This product bundles parts of STM32CubeF4 1.5, which is available under the
"3-clause BSD" license. Bundled files are:
diff --git a/docs/os/core_os/porting/port_bsp.rst b/docs/os/core_os/porting/port_bsp.rst
index 10dbd630d..0d6e5b3f2 100644
--- a/docs/os/core_os/porting/port_bsp.rst
+++ b/docs/os/core_os/porting/port_bsp.rst
@@ -365,19 +365,11 @@ Satisfy MCU requirements
~~~~~~~~~~~~~~~~~~~~~~~~
The MCU package probably requires some build-time configuration. Typically, it is the BSP which provides this configuration.
-For example, many MCU packages depend on the ``cmsis-core`` package, which expects the BSP to provide a header file called
-``bsp/cmsis_nvic.h``. Completing this step will likely involve some trial and error as each unmet requirement gets reported
-as a build error.
+Completing this step will likely involve some trial and error as each unmet requirement gets reported as a build error.
Our example nRF52 BSP requires the following changes:
-1. The nRF52 MCU package uses ``cmsis-core``, so for our example we will copy the nRF52dk BSP's ``cmsis_nvic.h`` file to our BSP:
-
- .. code-block:: console
-
- $ cp repos/apache-mynewt-core/hw/bsp/nrf52dk/include/bsp/cmsis_nvic.h hw/bsp/myboard/include/bsp/
-
-2. Macro indicating MCU type. We add this to our BSP's ``pkg.yml`` file:
+1. Macro indicating MCU type. We add this to our BSP's ``pkg.yml`` file:
.. code-block:: yaml
:emphasize-lines: 2
@@ -385,7 +377,7 @@ Our example nRF52 BSP requires the following changes:
pkg.cflags:
- '-DNRF52'
-3. Enable exactly one low-frequency timer setting in our BSP's ``syscfg.yml`` file. This is required by the nRF51 and nRF52 MCU packages:
+2. Enable exactly one low-frequency timer setting in our BSP's ``syscfg.yml`` file. This is required by the nRF51 and nRF52 MCU packages:
.. code-block:: yaml
:emphasize-lines: 3
diff --git a/hw/bsp/arduino_primo_nrf52/include/bsp/cmsis_nvic.h b/hw/bsp/arduino_primo_nrf52/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/arduino_primo_nrf52/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/ble400/include/bsp/cmsis_nvic.h b/hw/bsp/ble400/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/ble400/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/bmd200/include/bsp/cmsis_nvic.h b/hw/bsp/bmd200/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/bmd200/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/bmd300eval/include/bsp/cmsis_nvic.h b/hw/bsp/bmd300eval/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/bmd300eval/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/calliope_mini/include/bsp/cmsis_nvic.h b/hw/bsp/calliope_mini/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/calliope_mini/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/dwm1001-dev/include/bsp/cmsis_nvic.h b/hw/bsp/dwm1001-dev/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/dwm1001-dev/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/frdm-k64f/src/hal_bsp.c b/hw/bsp/frdm-k64f/src/hal_bsp.c
index bb4e1e9a5..8cda57b7a 100644
--- a/hw/bsp/frdm-k64f/src/hal_bsp.c
+++ b/hw/bsp/frdm-k64f/src/hal_bsp.c
@@ -35,7 +35,7 @@
#include "uart_hal/uart_hal.h"
#include "hal/hal_uart.h"
#endif
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "mcu/frdm-k64f_hal.h"
#include "fsl_device_registers.h"
#include "fsl_common.h"
diff --git a/hw/bsp/nina-b1/include/bsp/cmsis_nvic.h b/hw/bsp/nina-b1/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/nina-b1/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf51-arduino_101/include/bsp/cmsis_nvic.h b/hw/bsp/nrf51-arduino_101/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/nrf51-arduino_101/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf51-arduino_101/src/hal_bsp.c b/hw/bsp/nrf51-arduino_101/src/hal_bsp.c
index 6d5005adc..372988cbd 100644
--- a/hw/bsp/nrf51-arduino_101/src/hal_bsp.c
+++ b/hw/bsp/nrf51-arduino_101/src/hal_bsp.c
@@ -29,7 +29,7 @@
#include "syscfg/syscfg.h"
#include "flash_map/flash_map.h"
#include "hal/hal_flash.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nrf51_bitfields.h"
#include "hal/hal_spi.h"
#include "os/os_dev.h"
diff --git a/hw/bsp/nrf51-blenano/include/bsp/cmsis_nvic.h b/hw/bsp/nrf51-blenano/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/nrf51-blenano/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf51dk-16kbram/include/bsp/cmsis_nvic.h b/hw/bsp/nrf51dk-16kbram/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/nrf51dk-16kbram/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf51dk/include/bsp/cmsis_nvic.h b/hw/bsp/nrf51dk/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/nrf51dk/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf52-thingy/include/bsp/cmsis_nvic.h b/hw/bsp/nrf52-thingy/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/nrf52-thingy/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf52840pdk/include/bsp/cmsis_nvic.h b/hw/bsp/nrf52840pdk/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 51b6eb63f..000000000
--- a/hw/bsp/nrf52840pdk/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 46) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52840.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nrf52dk/include/bsp/cmsis_nvic.h b/hw/bsp/nrf52dk/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/nrf52dk/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nucleo-f303k8/src/system_stm32f3xx.c b/hw/bsp/nucleo-f303k8/src/system_stm32f3xx.c
index 1bcab6f1a..772d1db9e 100644
--- a/hw/bsp/nucleo-f303k8/src/system_stm32f3xx.c
+++ b/hw/bsp/nucleo-f303k8/src/system_stm32f3xx.c
@@ -84,7 +84,7 @@
*/
#include "stm32f3xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/nucleo-f303re/include/bsp/cmsis_nvic.h b/hw/bsp/nucleo-f303re/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 4d9d49b56..000000000
--- a/hw/bsp/nucleo-f303re/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,48 +0,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.
- */
-
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef CMSIS_NVIC_H
-#define CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f303xe.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nucleo-f303re/src/system_stm32f3xx.c b/hw/bsp/nucleo-f303re/src/system_stm32f3xx.c
index 1bcab6f1a..772d1db9e 100644
--- a/hw/bsp/nucleo-f303re/src/system_stm32f3xx.c
+++ b/hw/bsp/nucleo-f303re/src/system_stm32f3xx.c
@@ -84,7 +84,7 @@
*/
#include "stm32f3xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/nucleo-f401re/src/system_stm32f4xx.c b/hw/bsp/nucleo-f401re/src/system_stm32f4xx.c
index 6a9dfb3fb..49d6ef3e3 100644
--- a/hw/bsp/nucleo-f401re/src/system_stm32f4xx.c
+++ b/hw/bsp/nucleo-f401re/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/nucleo-f413re/include/bsp/cmsis_nvic.h b/hw/bsp/nucleo-f413re/include/bsp/cmsis_nvic.h
deleted file mode 100644
index d0c8b44b0..000000000
--- a/hw/bsp/nucleo-f413re/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f4xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nucleo-f413re/src/system_stm32f4xx.c b/hw/bsp/nucleo-f413re/src/system_stm32f4xx.c
index ae68f72cf..a2fa9c5dc 100644
--- a/hw/bsp/nucleo-f413re/src/system_stm32f4xx.c
+++ b/hw/bsp/nucleo-f413re/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/nucleo-f413zh/include/bsp/cmsis_nvic.h b/hw/bsp/nucleo-f413zh/include/bsp/cmsis_nvic.h
deleted file mode 100644
index d0c8b44b0..000000000
--- a/hw/bsp/nucleo-f413zh/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f4xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/nucleo-f413zh/src/system_stm32f4xx.c b/hw/bsp/nucleo-f413zh/src/system_stm32f4xx.c
index ae68f72cf..a2fa9c5dc 100644
--- a/hw/bsp/nucleo-f413zh/src/system_stm32f4xx.c
+++ b/hw/bsp/nucleo-f413zh/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/olimex-p103/src/system_stm32f1xx.c b/hw/bsp/olimex-p103/src/system_stm32f1xx.c
index de9746b84..e8faa130f 100644
--- a/hw/bsp/olimex-p103/src/system_stm32f1xx.c
+++ b/hw/bsp/olimex-p103/src/system_stm32f1xx.c
@@ -75,7 +75,7 @@
*/
#include "stm32f1xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/cmsis_nvic.h b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/cmsis_nvic.h
deleted file mode 100644
index d0c8b44b0..000000000
--- a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f4xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/olimex_stm32-e407_devboard/src/system_stm32f4xx.c b/hw/bsp/olimex_stm32-e407_devboard/src/system_stm32f4xx.c
index 0b7973b25..ebee93dcc 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/src/system_stm32f4xx.c
+++ b/hw/bsp/olimex_stm32-e407_devboard/src/system_stm32f4xx.c
@@ -65,7 +65,7 @@
#include "bsp/stm32f4xx_hal_conf.h"
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/puckjs/include/bsp/cmsis_nvic.h b/hw/bsp/puckjs/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/puckjs/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/rb-blend2/include/bsp/cmsis_nvic.h b/hw/bsp/rb-blend2/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/rb-blend2/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/rb-nano2/include/bsp/cmsis_nvic.h b/hw/bsp/rb-nano2/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/rb-nano2/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/ruuvi_tag_revb2/include/bsp/cmsis_nvic.h b/hw/bsp/ruuvi_tag_revb2/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/ruuvi_tag_revb2/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/sensorhub/include/bsp/cmsis_nvic.h b/hw/bsp/sensorhub/include/bsp/cmsis_nvic.h
deleted file mode 100644
index f61c10b11..000000000
--- a/hw/bsp/sensorhub/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 90) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f4xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/sensorhub/src/system_stm32f4xx.c b/hw/bsp/sensorhub/src/system_stm32f4xx.c
index 8d39d6e46..bbe22792a 100644
--- a/hw/bsp/sensorhub/src/system_stm32f4xx.c
+++ b/hw/bsp/sensorhub/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h b/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h
deleted file mode 100644
index d3880eb61..000000000
--- a/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,48 +0,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.
- */
-
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef CMSIS_NVIC_H
-#define CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f303xc.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/stm32f3discovery/src/system_stm32f3xx.c b/hw/bsp/stm32f3discovery/src/system_stm32f3xx.c
index 1bcab6f1a..772d1db9e 100644
--- a/hw/bsp/stm32f3discovery/src/system_stm32f3xx.c
+++ b/hw/bsp/stm32f3discovery/src/system_stm32f3xx.c
@@ -84,7 +84,7 @@
*/
#include "stm32f3xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/stm32f429discovery/include/bsp/cmsis_nvic.h b/hw/bsp/stm32f429discovery/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 69f9b639f..000000000
--- a/hw/bsp/stm32f429discovery/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 91) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f429xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/stm32f429discovery/src/hal_bsp.c b/hw/bsp/stm32f429discovery/src/hal_bsp.c
index 9c4586c21..34bbddaef 100644
--- a/hw/bsp/stm32f429discovery/src/hal_bsp.c
+++ b/hw/bsp/stm32f429discovery/src/hal_bsp.c
@@ -20,7 +20,7 @@
#include <syscfg/syscfg.h>
#include <bsp/bsp.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <flash_map/flash_map.h>
#include <os/os_dev.h>
#include <stm32f429xx.h>
diff --git a/hw/bsp/stm32f429discovery/src/system_stm32f4xx.c b/hw/bsp/stm32f429discovery/src/system_stm32f4xx.c
index e8eff1a8b..afa44c14f 100644
--- a/hw/bsp/stm32f429discovery/src/system_stm32f4xx.c
+++ b/hw/bsp/stm32f429discovery/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f429xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/stm32f4discovery/include/bsp/cmsis_nvic.h b/hw/bsp/stm32f4discovery/include/bsp/cmsis_nvic.h
deleted file mode 100644
index d0c8b44b0..000000000
--- a/hw/bsp/stm32f4discovery/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f4xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/stm32f4discovery/src/system_stm32f4xx.c b/hw/bsp/stm32f4discovery/src/system_stm32f4xx.c
index ae68f72cf..a2fa9c5dc 100644
--- a/hw/bsp/stm32f4discovery/src/system_stm32f4xx.c
+++ b/hw/bsp/stm32f4discovery/src/system_stm32f4xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f4xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/stm32f767-nucleo/src/system_stm32f7xx.c b/hw/bsp/stm32f767-nucleo/src/system_stm32f7xx.c
index 57bafcd8f..dbf98d654 100644
--- a/hw/bsp/stm32f767-nucleo/src/system_stm32f7xx.c
+++ b/hw/bsp/stm32f767-nucleo/src/system_stm32f7xx.c
@@ -64,7 +64,7 @@
*/
#include "stm32f7xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/stm32f7discovery/include/bsp/cmsis_nvic.h b/hw/bsp/stm32f7discovery/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 67fca59fc..000000000
--- a/hw/bsp/stm32f7discovery/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 98) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "stm32f7xx.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/stm32f7discovery/src/system_stm32f7xx.c b/hw/bsp/stm32f7discovery/src/system_stm32f7xx.c
index 8b404d1b6..7600d6ca0 100644
--- a/hw/bsp/stm32f7discovery/src/system_stm32f7xx.c
+++ b/hw/bsp/stm32f7discovery/src/system_stm32f7xx.c
@@ -69,7 +69,7 @@
#include "stm32f7xx_hal_rcc.h"
#include "stm32f7xx_hal_pwr.h"
#include "stm32f7xx_hal_pwr_ex.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
diff --git a/hw/bsp/stm32l152discovery/src/system_stm32l1xx.c b/hw/bsp/stm32l152discovery/src/system_stm32l1xx.c
index 2928afc5f..a2e769a23 100644
--- a/hw/bsp/stm32l152discovery/src/system_stm32l1xx.c
+++ b/hw/bsp/stm32l152discovery/src/system_stm32l1xx.c
@@ -61,7 +61,7 @@
*/
#include "stm32l1xx.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* @}
diff --git a/hw/bsp/telee02/include/bsp/cmsis_nvic.h b/hw/bsp/telee02/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/telee02/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/vbluno51/include/bsp/cmsis_nvic.h b/hw/bsp/vbluno51/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 5d2ae8304..000000000
--- a/hw/bsp/vbluno51/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-/* NOTE: the nrf51 SoC has 26 interrupts. */
-#define NVIC_USER_IRQ_OFFSET 16
-#define NVIC_NUM_VECTORS (NVIC_USER_IRQ_OFFSET + 26)
-
-#include "nrf51.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/bsp/vbluno52/include/bsp/cmsis_nvic.h b/hw/bsp/vbluno52/include/bsp/cmsis_nvic.h
deleted file mode 100644
index 856f7d087..000000000
--- a/hw/bsp/vbluno52/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef MBED_CMSIS_NVIC_H
-#define MBED_CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "nrf52.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/hw/cmsis-core/src/cmsis_nvic.c b/hw/cmsis-core/src/cmsis_nvic.c
index a35079129..4bf772424 100644
--- a/hw/cmsis-core/src/cmsis_nvic.c
+++ b/hw/cmsis-core/src/cmsis_nvic.c
@@ -3,7 +3,7 @@
*
* CMSIS-style functionality to support dynamic vectors
*/
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#ifndef __CORTEX_M
#error "Macro __CORTEX_M not defined; must define cortex-m type!"
diff --git a/hw/drivers/adc/adc_nrf51/src/adc_nrf51.c b/hw/drivers/adc/adc_nrf51/src/adc_nrf51.c
index 40483f038..222d92604 100644
--- a/hw/drivers/adc/adc_nrf51/src/adc_nrf51.c
+++ b/hw/drivers/adc/adc_nrf51/src/adc_nrf51.c
@@ -20,7 +20,7 @@
#include <adc/adc.h>
#include <assert.h>
#include <os/os.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
/* Nordic headers */
#include <nrfx.h>
diff --git a/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c b/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
index ffefa5508..c6f785122 100644
--- a/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
+++ b/hw/drivers/adc/adc_nrf52/src/adc_nrf52.c
@@ -22,7 +22,7 @@
#include <adc/adc.h>
#include <assert.h>
#include <os/os.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
/* Nordic headers */
#include <nrfx.h>
diff --git a/hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c b/hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c
index 5ef60bd01..c55e811a9 100644
--- a/hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c
+++ b/hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c
@@ -21,7 +21,7 @@
#include <hal/hal_bsp.h>
#include <assert.h>
#include <os/os.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "stm32f4xx_hal_dma.h"
#include "stm32f4xx_hal_adc.h"
#include "stm32f4xx_hal_rcc.h"
diff --git a/hw/drivers/lwip/stm32_eth/src/stm32_eth.c b/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
index f63b22036..b295b2340 100755
--- a/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
+++ b/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
@@ -21,7 +21,7 @@
#include <hal/hal_gpio.h>
#include <hal/hal_timer.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/os_cputime.h>
diff --git a/hw/drivers/nimble/nrf51/src/ble_hw.c b/hw/drivers/nimble/nrf51/src/ble_hw.c
index e9b50408f..5c30275a5 100644
--- a/hw/drivers/nimble/nrf51/src/ble_hw.c
+++ b/hw/drivers/nimble/nrf51/src/ble_hw.c
@@ -27,7 +27,7 @@
#include "nimble/nimble_opt.h"
#include "nrf51_bitfields.h"
#include "controller/ble_hw.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/* Total number of resolving list elements */
#define BLE_HW_RESOLV_LIST_SIZE (16)
diff --git a/hw/drivers/nimble/nrf51/src/ble_phy.c b/hw/drivers/nimble/nrf51/src/ble_phy.c
index e22257b26..ba5130834 100644
--- a/hw/drivers/nimble/nrf51/src/ble_phy.c
+++ b/hw/drivers/nimble/nrf51/src/ble_phy.c
@@ -23,7 +23,7 @@
#include "syscfg/syscfg.h"
#include "os/os.h"
#include "ble/xcvr.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nimble/ble.h"
#include "nimble/nimble_opt.h"
#include "controller/ble_phy.h"
diff --git a/hw/drivers/nimble/nrf52/src/ble_hw.c b/hw/drivers/nimble/nrf52/src/ble_hw.c
index e63ba52e0..57d1402ea 100644
--- a/hw/drivers/nimble/nrf52/src/ble_hw.c
+++ b/hw/drivers/nimble/nrf52/src/ble_hw.c
@@ -27,7 +27,7 @@
#include "nimble/nimble_opt.h"
#include "nrf52_bitfields.h"
#include "controller/ble_hw.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "os/os_trace_api.h"
/* Total number of resolving list elements */
diff --git a/hw/drivers/nimble/nrf52/src/ble_phy.c b/hw/drivers/nimble/nrf52/src/ble_phy.c
index 85909293a..7f478b6b8 100644
--- a/hw/drivers/nimble/nrf52/src/ble_phy.c
+++ b/hw/drivers/nimble/nrf52/src/ble_phy.c
@@ -23,7 +23,7 @@
#include "syscfg/syscfg.h"
#include "os/os.h"
#include "ble/xcvr.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_gpio.h"
#include "nimble/ble.h"
#include "nimble/nimble_opt.h"
diff --git a/hw/bsp/apollo2_evb/include/bsp/cmsis_nvic.h b/hw/mcu/ambiq/apollo2/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/apollo2_evb/include/bsp/cmsis_nvic.h
rename to hw/mcu/ambiq/apollo2/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/ambiq/apollo2/src/hal_gpio.c b/hw/mcu/ambiq/apollo2/src/hal_gpio.c
index 8e70bb65f..874ab8eb1 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_gpio.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_gpio.c
@@ -21,7 +21,7 @@
#include <os/os.h>
#include "hal/hal_gpio.h"
#include "mcu/apollo2.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "os/os_trace_api.h"
#include "defs/error.h"
#include "am_mcu_apollo.h"
diff --git a/hw/mcu/ambiq/apollo2/src/hal_os_tick.c b/hw/mcu/ambiq/apollo2/src/hal_os_tick.c
index 5d376a85a..1e988be6c 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_os_tick.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_os_tick.c
@@ -30,7 +30,7 @@
#include <os/os.h>
#include "mcu/system_apollo2.h"
#include "hal/hal_os_tick.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "am_mcu_apollo.h"
diff --git a/hw/mcu/ambiq/apollo2/src/hal_spi.c b/hw/mcu/ambiq/apollo2/src/hal_spi.c
index d2f9bb95b..cf4edd76c 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_spi.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_spi.c
@@ -23,7 +23,7 @@
#include "syscfg/syscfg.h"
#include "hal/hal_spi.h"
#include "mcu/hal_apollo2.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "defs/error.h"
#include "am_mcu_apollo.h"
diff --git a/hw/mcu/ambiq/apollo2/src/hal_timer.c b/hw/mcu/ambiq/apollo2/src/hal_timer.c
index c0fbe160c..c953a50e0 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_timer.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_timer.c
@@ -23,7 +23,7 @@
#include "syscfg/syscfg.h"
#include "os/os.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "mcu/hal_apollo2.h"
#include "hal/hal_timer.h"
#include "defs/error.h"
diff --git a/hw/mcu/ambiq/apollo2/src/hal_uart.c b/hw/mcu/ambiq/apollo2/src/hal_uart.c
index fe2384575..84299adfb 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_uart.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_uart.c
@@ -22,7 +22,7 @@
#include "mcu/hal_apollo2.h"
#include "defs/error.h"
#include "hal/hal_uart.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "os/os_trace_api.h"
diff --git a/hw/bsp/bbc_microbit/include/bsp/cmsis_nvic.h b/hw/mcu/nordic/nrf51xxx/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/bbc_microbit/include/bsp/cmsis_nvic.h
rename to hw/mcu/nordic/nrf51xxx/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_gpio.c b/hw/mcu/nordic/nrf51xxx/src/hal_gpio.c
index 20889c41c..fd5b2ed3a 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_gpio.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_gpio.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nrf51.h"
#include "nrf51_bitfields.h"
#include <assert.h>
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_os_tick.c b/hw/mcu/nordic/nrf51xxx/src/hal_os_tick.c
index 99fc388e0..1e0752169 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_os_tick.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_os_tick.c
@@ -21,7 +21,7 @@
#include "syscfg/syscfg.h"
#include <hal/hal_os_tick.h>
#include <hal/hal_system.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <nrf51.h>
#include <nrf51_bitfields.h>
#include <mcu/nrf51_hal.h>
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_spi.c b/hw/mcu/nordic/nrf51xxx/src/hal_spi.c
index ab88ae377..45d675161 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_spi.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_spi.c
@@ -23,7 +23,7 @@
#include <errno.h>
#include <assert.h>
#include <hal/hal_spi.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "mcu/nrf51_hal.h"
#include "nrf51_bitfields.h"
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_timer.c b/hw/mcu/nordic/nrf51xxx/src/hal_timer.c
index de5a11746..d6b7b33a0 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_timer.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_timer.c
@@ -22,7 +22,7 @@
#include <assert.h>
#include <errno.h>
#include "syscfg/syscfg.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_timer.h"
#include "nrf51.h"
#include "nrf51_bitfields.h"
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
index 32d3bb686..636d49e2c 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_uart.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "nrf.h"
diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_watchdog.c b/hw/mcu/nordic/nrf51xxx/src/hal_watchdog.c
index 527712f92..d67779283 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_watchdog.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_watchdog.c
@@ -19,7 +19,7 @@
#include <assert.h>
#include "hal/hal_watchdog.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nrf51.h"
#include "nrf51_bitfields.h"
diff --git a/hw/mcu/nordic/nrf51xxx/src/system_nrf51.c b/hw/mcu/nordic/nrf51xxx/src/system_nrf51.c
index 63f775c23..c63165a04 100755
--- a/hw/mcu/nordic/nrf51xxx/src/system_nrf51.c
+++ b/hw/mcu/nordic/nrf51xxx/src/system_nrf51.c
@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nrf.h"
#include "system_nrf51.h"
diff --git a/hw/bsp/ada_feather_nrf52/include/bsp/cmsis_nvic.h b/hw/mcu/nordic/nrf52xxx/include/mcu/cmsis_nvic.h
similarity index 93%
rename from hw/bsp/ada_feather_nrf52/include/bsp/cmsis_nvic.h
rename to hw/mcu/nordic/nrf52xxx/include/mcu/cmsis_nvic.h
index 856f7d087..7f0a9f1aa 100644
--- a/hw/bsp/ada_feather_nrf52/include/bsp/cmsis_nvic.h
+++ b/hw/mcu/nordic/nrf52xxx/include/mcu/cmsis_nvic.h
@@ -8,11 +8,12 @@
#define MBED_CMSIS_NVIC_H
#include <stdint.h>
+#include <bsp/bsp.h>
#define NVIC_NUM_VECTORS (16 + 38) // CORE + MCU Peripherals
#define NVIC_USER_IRQ_OFFSET 16
-#include "nrf52.h"
+#include "nrf.h"
#ifdef __cplusplus
extern "C" {
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_gpio.c b/hw/mcu/nordic/nrf52xxx/src/hal_gpio.c
index fa98cdfdc..329aab638 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_gpio.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_gpio.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "os/os_trace_api.h"
#include <stdlib.h>
#include "nrf.h"
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c b/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
index 4f0edea3e..1be21e815 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
@@ -22,7 +22,7 @@
#include "syscfg/syscfg.h"
#include "hal/hal_os_tick.h"
#include "nrf.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/* The OS scheduler requires a low-frequency timer. */
#if MYNEWT_VAL(OS_SCHEDULING) && \
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
index 62cc7da48..9e46e1b48 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
@@ -20,7 +20,7 @@
#include <errno.h>
#include <assert.h>
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <hal/hal_spi.h>
#include "os/os_trace_api.h"
#include "mcu/nrf52_hal.h"
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_timer.c b/hw/mcu/nordic/nrf52xxx/src/hal_timer.c
index 8f2919793..0fb926d23 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_timer.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_timer.c
@@ -22,7 +22,7 @@
#include <assert.h>
#include <errno.h>
#include "syscfg/syscfg.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_timer.h"
#include "os/os_trace_api.h"
#include "nrf.h"
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
index 478f658c2..688c17163 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_uart.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "nrf.h"
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_watchdog.c b/hw/mcu/nordic/nrf52xxx/src/hal_watchdog.c
index ba06bb6a1..7dc373a8e 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_watchdog.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_watchdog.c
@@ -19,7 +19,7 @@
#include <assert.h>
#include "hal/hal_watchdog.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "os/os_trace_api.h"
#include "nrf.h"
diff --git a/hw/mcu/nordic/nrf52xxx/src/system_nrf52.c b/hw/mcu/nordic/nrf52xxx/src/system_nrf52.c
index 424fc35f6..a813f3b6e 100644
--- a/hw/mcu/nordic/nrf52xxx/src/system_nrf52.c
+++ b/hw/mcu/nordic/nrf52xxx/src/system_nrf52.c
@@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "nrf.h"
#ifdef NRF52840_XXAA
diff --git a/hw/bsp/frdm-k64f/include/bsp/cmsis_nvic.h b/hw/mcu/nxp/MK64F12/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/frdm-k64f/include/bsp/cmsis_nvic.h
rename to hw/mcu/nxp/MK64F12/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/nxp/MK64F12/src/hal_gpio.c b/hw/mcu/nxp/MK64F12/src/hal_gpio.c
index 93229a9c7..713d2f0e3 100644
--- a/hw/mcu/nxp/MK64F12/src/hal_gpio.c
+++ b/hw/mcu/nxp/MK64F12/src/hal_gpio.c
@@ -17,7 +17,7 @@
* under the License.
*/
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include <stdlib.h>
#include <assert.h>
diff --git a/hw/mcu/nxp/MK64F12/src/hal_os_tick.c b/hw/mcu/nxp/MK64F12/src/hal_os_tick.c
index 4760d605e..93b1ee6a3 100644
--- a/hw/mcu/nxp/MK64F12/src/hal_os_tick.c
+++ b/hw/mcu/nxp/MK64F12/src/hal_os_tick.c
@@ -22,7 +22,7 @@
#include <os/os.h>
#include <hal/hal_os_tick.h>
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "fsl_pit.h"
diff --git a/hw/mcu/nxp/MK64F12/src/hal_uart.c b/hw/mcu/nxp/MK64F12/src/hal_uart.c
index a4dcd1428..a64a26cc7 100644
--- a/hw/mcu/nxp/MK64F12/src/hal_uart.c
+++ b/hw/mcu/nxp/MK64F12/src/hal_uart.c
@@ -21,7 +21,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
#include "hal/hal_system.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "os/os.h"
diff --git a/hw/mcu/nxp/MK64F12/src/hal_watchdog.c b/hw/mcu/nxp/MK64F12/src/hal_watchdog.c
index ed5196ffb..37d0afe6d 100644
--- a/hw/mcu/nxp/MK64F12/src/hal_watchdog.c
+++ b/hw/mcu/nxp/MK64F12/src/hal_watchdog.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_watchdog.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include <assert.h>
diff --git a/hw/bsp/usbmkw41z/include/bsp/cmsis_nvic.h b/hw/mcu/nxp/mkw41z/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/usbmkw41z/include/bsp/cmsis_nvic.h
rename to hw/mcu/nxp/mkw41z/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/nxp/mkw41z/src/hal_gpio.c b/hw/mcu/nxp/mkw41z/src/hal_gpio.c
index 290bb4919..6bb9d318a 100644
--- a/hw/mcu/nxp/mkw41z/src/hal_gpio.c
+++ b/hw/mcu/nxp/mkw41z/src/hal_gpio.c
@@ -19,7 +19,7 @@
#include <assert.h>
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/**
* gpio init in
diff --git a/hw/mcu/nxp/mkw41z/src/hal_os_tick.c b/hw/mcu/nxp/mkw41z/src/hal_os_tick.c
index 502cbb338..ff368bdb8 100644
--- a/hw/mcu/nxp/mkw41z/src/hal_os_tick.c
+++ b/hw/mcu/nxp/mkw41z/src/hal_os_tick.c
@@ -20,7 +20,7 @@
#include <os/os.h>
#include "syscfg/syscfg.h"
#include <hal/hal_os_tick.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
//#include <mkw41z4.h>
#include <mcu/mkw41z_hal.h>
diff --git a/hw/mcu/nxp/mkw41z/src/hal_watchdog.c b/hw/mcu/nxp/mkw41z/src/hal_watchdog.c
index c41ab64e9..afda40e98 100644
--- a/hw/mcu/nxp/mkw41z/src/hal_watchdog.c
+++ b/hw/mcu/nxp/mkw41z/src/hal_watchdog.c
@@ -19,7 +19,7 @@
#include <assert.h>
#include "hal/hal_watchdog.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
int
hal_watchdog_init(uint32_t expire_msecs)
diff --git a/hw/mcu/nxp/mkw41z/src/system_MKW41Z4.c b/hw/mcu/nxp/mkw41z/src/system_MKW41Z4.c
index 5e7b243b1..77d87b947 100644
--- a/hw/mcu/nxp/mkw41z/src/system_MKW41Z4.c
+++ b/hw/mcu/nxp/mkw41z/src/system_MKW41Z4.c
@@ -67,7 +67,7 @@
#include <stdint.h>
#include "mcu/fsl_device_registers.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
/* ----------------------------------------------------------------------------
-- Core clock
diff --git a/hw/bsp/olimex-p103/include/bsp/cmsis_nvic.h b/hw/mcu/stm/stm32f1xx/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/olimex-p103/include/bsp/cmsis_nvic.h
rename to hw/mcu/stm/stm32f1xx/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/stm/stm32f1xx/src/hal_gpio.c b/hw/mcu/stm/stm32f1xx/src/hal_gpio.c
index 446d04cb7..b0be4d51b 100644
--- a/hw/mcu/stm/stm32f1xx/src/hal_gpio.c
+++ b/hw/mcu/stm/stm32f1xx/src/hal_gpio.c
@@ -17,7 +17,7 @@
* under the License.
*/
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_gpio.h"
#include "stm32f1xx.h"
#include "stm32f1xx_hal_gpio.h"
diff --git a/hw/mcu/stm/stm32f1xx/src/hal_spi.c b/hw/mcu/stm/stm32f1xx/src/hal_spi.c
index f6e3364a7..4410060d1 100644
--- a/hw/mcu/stm/stm32f1xx/src/hal_spi.c
+++ b/hw/mcu/stm/stm32f1xx/src/hal_spi.c
@@ -36,7 +36,7 @@
#include "stm32l1xx_hal_rcc.h"
#include "mcu/stm32l1xx_mynewt_hal.h"
#include "mcu/stm32l1_bsp.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#define STM32L1_HAL_SPI_TIMEOUT (1000)
diff --git a/hw/mcu/stm/stm32f1xx/src/hal_timer.c b/hw/mcu/stm/stm32f1xx/src/hal_timer.c
index e0e1a5449..1e79d0a46 100644
--- a/hw/mcu/stm/stm32f1xx/src/hal_timer.c
+++ b/hw/mcu/stm/stm32f1xx/src/hal_timer.c
@@ -23,7 +23,7 @@
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/queue.h>
#include <hal/hal_timer.h>
diff --git a/hw/mcu/stm/stm32f1xx/src/hal_uart.c b/hw/mcu/stm/stm32f1xx/src/hal_uart.c
index 8c6b522c6..b0abfb55f 100644
--- a/hw/mcu/stm/stm32f1xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f1xx/src/hal_uart.c
@@ -19,7 +19,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "stm32f1xx.h"
#include "stm32f1xx_hal_dma.h"
diff --git a/hw/bsp/nucleo-f303k8/include/bsp/cmsis_nvic.h b/hw/mcu/stm/stm32f3xx/include/mcu/cmsis_nvic.h
similarity index 98%
rename from hw/bsp/nucleo-f303k8/include/bsp/cmsis_nvic.h
rename to hw/mcu/stm/stm32f3xx/include/mcu/cmsis_nvic.h
index de6c1f6a7..df47262dc 100644
--- a/hw/bsp/nucleo-f303k8/include/bsp/cmsis_nvic.h
+++ b/hw/mcu/stm/stm32f3xx/include/mcu/cmsis_nvic.h
@@ -31,7 +31,7 @@
#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
#define NVIC_USER_IRQ_OFFSET 16
-#include "stm32f303x8.h"
+#include "stm32f3xx.h"
#ifdef __cplusplus
extern "C" {
diff --git a/hw/mcu/stm/stm32f3xx/src/hal_gpio.c b/hw/mcu/stm/stm32f3xx/src/hal_gpio.c
index 020e769c8..d63d29a11 100644
--- a/hw/mcu/stm/stm32f3xx/src/hal_gpio.c
+++ b/hw/mcu/stm/stm32f3xx/src/hal_gpio.c
@@ -25,7 +25,7 @@
#include "hal_gpio_stm32.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "stm32f3xx.h"
#include "stm32f3xx_hal_cortex.h"
#include "stm32f3xx_hal_gpio.h"
diff --git a/hw/mcu/stm/stm32f3xx/src/hal_timer.c b/hw/mcu/stm/stm32f3xx/src/hal_timer.c
index 748578486..a1afa98ef 100644
--- a/hw/mcu/stm/stm32f3xx/src/hal_timer.c
+++ b/hw/mcu/stm/stm32f3xx/src/hal_timer.c
@@ -23,7 +23,7 @@
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/queue.h>
#include <hal/hal_timer.h>
diff --git a/hw/mcu/stm/stm32f3xx/src/hal_uart.c b/hw/mcu/stm/stm32f3xx/src/hal_uart.c
index 4ba92789c..ebd89f016 100644
--- a/hw/mcu/stm/stm32f3xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f3xx/src/hal_uart.c
@@ -19,7 +19,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "stm32f3xx.h"
#include "stm32f3xx_hal_dma.h"
diff --git a/hw/bsp/nucleo-f401re/include/bsp/cmsis_nvic.h b/hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
similarity index 54%
rename from hw/bsp/nucleo-f401re/include/bsp/cmsis_nvic.h
rename to hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
index d0c8b44b0..5fe3d1628 100644
--- a/hw/bsp/nucleo-f401re/include/bsp/cmsis_nvic.h
+++ b/hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
@@ -9,8 +9,20 @@
#include <stdint.h>
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
+#if defined(STM32F407xx)
+ #define MCU_NUM_PERIPH_VECTORS 82
+#elif defined(STM32F401xE)
+ #define MCU_NUM_PERIPH_VECTORS 85
+#elif defined(STM32F427xx) || defined(STM32F429xx)
+ #define MCU_NUM_PERIPH_VECTORS 91
+#elif defined(STM32F413xx)
+ #define MCU_NUM_PERIPH_VECTORS 102
+#else
+ #error "Number of peripheral vectors not defined for this MCU."
+#endif
+
#define NVIC_USER_IRQ_OFFSET 16
+#define NVIC_NUM_VECTORS (16 + MCU_NUM_PERIPH_VECTORS)
#include "stm32f4xx.h"
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_gpio.c b/hw/mcu/stm/stm32f4xx/src/hal_gpio.c
index 5aac0303e..4926683ef 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_gpio.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_gpio.c
@@ -17,7 +17,7 @@
* under the License.
*/
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_gpio.h"
#include "stm32f4xx.h"
#include "stm32f4xx_hal_gpio.h"
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_spi.c b/hw/mcu/stm/stm32f4xx/src/hal_spi.c
index d5a1e40a9..5413c08fb 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_spi.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_spi.c
@@ -34,7 +34,7 @@
#include "stm32f4xx_hal_rcc.h"
#include "mcu/stm32f4xx_mynewt_hal.h"
#include "mcu/stm32f4_bsp.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#define SPI_0_ENABLED (MYNEWT_VAL(SPI_0_MASTER) || MYNEWT_VAL(SPI_0_SLAVE))
#define SPI_1_ENABLED (MYNEWT_VAL(SPI_1_MASTER) || MYNEWT_VAL(SPI_1_SLAVE))
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_timer.c b/hw/mcu/stm/stm32f4xx/src/hal_timer.c
index 5f9fcac52..3fe70cb4c 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_timer.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_timer.c
@@ -23,7 +23,7 @@
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/queue.h>
#include <hal/hal_timer.h>
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_uart.c b/hw/mcu/stm/stm32f4xx/src/hal_uart.c
index ccc95df1d..1c684efb0 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_uart.c
@@ -19,7 +19,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "stm32f4xx.h"
#include "stm32f4xx_hal_dma.h"
diff --git a/hw/bsp/stm32f767-nucleo/include/bsp/cmsis_nvic.h b/hw/mcu/stm/stm32f7xx/include/mcu/cmsis_nvic.h
similarity index 65%
rename from hw/bsp/stm32f767-nucleo/include/bsp/cmsis_nvic.h
rename to hw/mcu/stm/stm32f7xx/include/mcu/cmsis_nvic.h
index 555898893..a9dea74a7 100644
--- a/hw/bsp/stm32f767-nucleo/include/bsp/cmsis_nvic.h
+++ b/hw/mcu/stm/stm32f7xx/include/mcu/cmsis_nvic.h
@@ -9,8 +9,16 @@
#include <stdint.h>
-#define NVIC_NUM_VECTORS (16 + 109) // CORE + MCU Peripherals
+#if defined(STM32F746xx)
+ #define MCU_NUM_PERIPH_VECTORS 98
+#elif defined(STM32F767xx)
+ #define MCU_NUM_PERIPH_VECTORS 110
+#else
+ #error "Number of peripheral vectors not defined for this MCU."
+#endif
+
#define NVIC_USER_IRQ_OFFSET 16
+#define NVIC_NUM_VECTORS (16 + MCU_NUM_PERIPH_VECTORS)
#include "stm32f7xx.h"
diff --git a/hw/mcu/stm/stm32f7xx/src/hal_gpio.c b/hw/mcu/stm/stm32f7xx/src/hal_gpio.c
index ee3646782..5d58137b1 100644
--- a/hw/mcu/stm/stm32f7xx/src/hal_gpio.c
+++ b/hw/mcu/stm/stm32f7xx/src/hal_gpio.c
@@ -18,7 +18,7 @@
*/
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "stm32f7xx.h"
#include "stm32f7xx_hal_gpio.h"
#include "stm32f7xx_hal_rcc.h"
diff --git a/hw/mcu/stm/stm32f7xx/src/hal_timer.c b/hw/mcu/stm/stm32f7xx/src/hal_timer.c
index 7888864e4..a47390c2e 100644
--- a/hw/mcu/stm/stm32f7xx/src/hal_timer.c
+++ b/hw/mcu/stm/stm32f7xx/src/hal_timer.c
@@ -23,7 +23,7 @@
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/queue.h>
#include <hal/hal_timer.h>
diff --git a/hw/mcu/stm/stm32f7xx/src/hal_uart.c b/hw/mcu/stm/stm32f7xx/src/hal_uart.c
index fbbab6f67..ab8730968 100644
--- a/hw/mcu/stm/stm32f7xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f7xx/src/hal_uart.c
@@ -19,7 +19,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "stm32f7xx.h"
#include "stm32f7xx_hal_dma.h"
diff --git a/hw/bsp/stm32l152discovery/include/bsp/cmsis_nvic.h b/hw/mcu/stm/stm32l1xx/include/mcu/cmsis_nvic.h
similarity index 100%
rename from hw/bsp/stm32l152discovery/include/bsp/cmsis_nvic.h
rename to hw/mcu/stm/stm32l1xx/include/mcu/cmsis_nvic.h
diff --git a/hw/mcu/stm/stm32l1xx/src/hal_gpio.c b/hw/mcu/stm/stm32l1xx/src/hal_gpio.c
index 37fee2be4..6b667c166 100644
--- a/hw/mcu/stm/stm32l1xx/src/hal_gpio.c
+++ b/hw/mcu/stm/stm32l1xx/src/hal_gpio.c
@@ -17,7 +17,7 @@
* under the License.
*/
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "hal/hal_gpio.h"
#include "stm32l1xx.h"
#include "stm32l1xx_hal_gpio.h"
diff --git a/hw/mcu/stm/stm32l1xx/src/hal_spi.c b/hw/mcu/stm/stm32l1xx/src/hal_spi.c
index 58cc9d503..f7a894e9e 100644
--- a/hw/mcu/stm/stm32l1xx/src/hal_spi.c
+++ b/hw/mcu/stm/stm32l1xx/src/hal_spi.c
@@ -34,7 +34,7 @@
#include "stm32l1xx_hal_rcc.h"
#include "mcu/stm32l1xx_mynewt_hal.h"
#include "mcu/stm32l1_bsp.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#define STM32L1_HAL_SPI_TIMEOUT (1000)
diff --git a/hw/mcu/stm/stm32l1xx/src/hal_timer.c b/hw/mcu/stm/stm32l1xx/src/hal_timer.c
index 7636b9ef4..54930c0b7 100644
--- a/hw/mcu/stm/stm32l1xx/src/hal_timer.c
+++ b/hw/mcu/stm/stm32l1xx/src/hal_timer.c
@@ -23,7 +23,7 @@
#include <syscfg/syscfg.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include <os/queue.h>
#include <hal/hal_timer.h>
diff --git a/hw/mcu/stm/stm32l1xx/src/hal_uart.c b/hw/mcu/stm/stm32l1xx/src/hal_uart.c
index c94187ccb..09eaad57f 100644
--- a/hw/mcu/stm/stm32l1xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32l1xx/src/hal_uart.c
@@ -19,7 +19,7 @@
#include "hal/hal_uart.h"
#include "hal/hal_gpio.h"
-#include "bsp/cmsis_nvic.h"
+#include "mcu/cmsis_nvic.h"
#include "bsp/bsp.h"
#include "stm32l1xx.h"
#include "stm32l1xx_hal_dma.h"
diff --git a/kernel/os/src/arch/cortex_m0/os_arch_arm.c b/kernel/os/src/arch/cortex_m0/os_arch_arm.c
index 1c6400bc3..29c231503 100755
--- a/kernel/os/src/arch/cortex_m0/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m0/os_arch_arm.c
@@ -21,7 +21,7 @@
#include "os/os_arch.h"
#include <hal/hal_bsp.h>
#include <hal/hal_os_tick.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "os_priv.h"
diff --git a/kernel/os/src/arch/cortex_m3/os_arch_arm.c b/kernel/os/src/arch/cortex_m3/os_arch_arm.c
index 7bb44a6f3..088e57f7e 100755
--- a/kernel/os/src/arch/cortex_m3/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m3/os_arch_arm.c
@@ -22,7 +22,7 @@
#include "os/os_arch.h"
#include <hal/hal_bsp.h>
#include <hal/hal_os_tick.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "mcu/mcu.h"
diff --git a/kernel/os/src/arch/cortex_m4/os_arch_arm.c b/kernel/os/src/arch/cortex_m4/os_arch_arm.c
index c914cae45..1ccb3a622 100755
--- a/kernel/os/src/arch/cortex_m4/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m4/os_arch_arm.c
@@ -22,7 +22,7 @@
#include "os/os_arch.h"
#include <hal/hal_bsp.h>
#include <hal/hal_os_tick.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "os_priv.h"
diff --git a/kernel/os/src/arch/cortex_m7/os_arch_arm.c b/kernel/os/src/arch/cortex_m7/os_arch_arm.c
index c914cae45..1ccb3a622 100755
--- a/kernel/os/src/arch/cortex_m7/os_arch_arm.c
+++ b/kernel/os/src/arch/cortex_m7/os_arch_arm.c
@@ -22,7 +22,7 @@
#include "os/os_arch.h"
#include <hal/hal_bsp.h>
#include <hal/hal_os_tick.h>
-#include <bsp/cmsis_nvic.h>
+#include <mcu/cmsis_nvic.h>
#include "os_priv.h"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services