Skip to content

Commit b97ffe8

Browse files
bulislaw0xc0170
authored andcommitted
CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation
1 parent 7b022f8 commit b97ffe8

File tree

200 files changed

+424
-6988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+424
-6988
lines changed

targets/TARGET_ARM_SSG/TARGET_BEETLE/device/cmsis_nvic.c

Lines changed: 0 additions & 43 deletions
This file was deleted.

targets/TARGET_ARM_SSG/TARGET_BEETLE/device/cmsis_nvic.h

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
/*
17-
* CMSIS-style functionality to support dynamic vectors
18-
*/
1916

2017
#ifndef MBED_CMSIS_NVIC_H
2118
#define MBED_CMSIS_NVIC_H
2219

23-
#include "cmsis.h"
24-
25-
#define NVIC_NUM_VECTORS (16 + 48)
26-
#define NVIC_USER_IRQ_OFFSET 16
27-
28-
#ifdef __cplusplus
29-
extern "C" {
30-
#endif
31-
32-
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
33-
uint32_t __NVIC_GetVector(IRQn_Type IRQn);
34-
35-
#ifdef __cplusplus
36-
}
37-
#endif
20+
#define NVIC_NUM_VECTORS (16 + 48)
21+
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 //Location of vectors in RAM
3822

3923
#endif

targets/TARGET_ARM_SSG/TARGET_IOTSS/TARGET_IOTSS_BEID/device/cmsis_nvic.c

Lines changed: 0 additions & 58 deletions
This file was deleted.

targets/TARGET_ARM_SSG/TARGET_IOTSS/TARGET_IOTSS_BEID/device/cmsis_nvic.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,12 @@
2828
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2929
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3030
* POSSIBILITY OF SUCH DAMAGE.
31-
*******************************************************************************
32-
* CMSIS-style functionality to support dynamic vectors
3331
*******************************************************************************/
3432

3533
#ifndef MBED_CMSIS_NVIC_H
3634
#define MBED_CMSIS_NVIC_H
3735

38-
#include "cmsis.h"
39-
40-
#define NVIC_NUM_VECTORS (16 + 64)
41-
#define NVIC_USER_IRQ_OFFSET 16
42-
43-
#ifdef __cplusplus
44-
extern "C" {
45-
#endif
46-
47-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
48-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
49-
50-
#ifdef __cplusplus
51-
}
52-
#endif
36+
#define NVIC_NUM_VECTORS (16 + 64)
37+
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Location of vectors in RAM
5338

5439
#endif

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0/device/cmsis_nvic.c

Lines changed: 0 additions & 54 deletions
This file was deleted.

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0/device/cmsis_nvic.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,12 @@
2828
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2929
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3030
* POSSIBILITY OF SUCH DAMAGE.
31-
*******************************************************************************
32-
* CMSIS-style functionality to support dynamic vectors
3331
*******************************************************************************/
3432

3533
#ifndef MBED_CMSIS_NVIC_H
3634
#define MBED_CMSIS_NVIC_H
3735

38-
#include "cmsis.h"
39-
40-
#define NVIC_NUM_VECTORS (16 + 48)
41-
#define NVIC_USER_IRQ_OFFSET 16
42-
43-
#ifdef __cplusplus
44-
extern "C" {
45-
#endif
46-
47-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
48-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
49-
50-
#ifdef __cplusplus
51-
}
52-
#endif
36+
#define NVIC_NUM_VECTORS (16 + 48)
37+
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Location of vectors in RAM
5338

5439
#endif

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0P/device/cmsis_nvic.c

Lines changed: 0 additions & 54 deletions
This file was deleted.

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0P/device/cmsis_nvic.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,12 @@
2828
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2929
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3030
* POSSIBILITY OF SUCH DAMAGE.
31-
*******************************************************************************
32-
* CMSIS-style functionality to support dynamic vectors
3331
*******************************************************************************/
3432

3533
#ifndef MBED_CMSIS_NVIC_H
3634
#define MBED_CMSIS_NVIC_H
3735

38-
#include "cmsis.h"
39-
40-
#define NVIC_NUM_VECTORS (16 + 48)
41-
#define NVIC_USER_IRQ_OFFSET 16
42-
43-
#ifdef __cplusplus
44-
extern "C" {
45-
#endif
46-
47-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
48-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
49-
50-
#ifdef __cplusplus
51-
}
52-
#endif
36+
#define NVIC_NUM_VECTORS (16 + 48)
37+
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Location of vectors in RAM
5338

5439
#endif

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M3/device/cmsis_nvic.c

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)