Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 8e1d7be

Browse files
committed
- added missing cmsis_generic.h header for generic CMSIS library code use.
1 parent ccc5ace commit 8e1d7be

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#ifndef _CMSIS_GENERIC_H
2+
#define _CMSIS_GENERIC_H
3+
4+
#define __CMSIS_GENERIC /* disable implementation specific functions (i.e. NVIC and Systick ) */
5+
6+
#if defined (CORTEX_M7)
7+
#include "core_cm7.h"
8+
#elif defined (CORTEX_M4)
9+
#include "core_cm4.h"
10+
#elif defined (CORTEX_M3)
11+
#include "core_cm3.h"
12+
#elif defined (CORTEX_M0)
13+
#include "core_cm0.h"
14+
#elif defined (CORTEX_M0PLUS)
15+
#include "core_cm0plus.h"
16+
#else
17+
#error "Processor not specified or unsupported."
18+
#endif
19+
20+
#endif

0 commit comments

Comments
 (0)