forked from stm32duino/STM32FreeRTOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportmacro.h
46 lines (39 loc) · 1.04 KB
/
portmacro.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* @file portmacro.h
* @author Frederic Pillon <[email protected]> for STMicroelectronics.
* @brief Include header of FreeRTOS portable layer file to match Arduino library format
*/
#ifndef _PORTMACRO_H_
#define _PORTMACRO_H_
#include "stm32_def.h"
#ifndef __CORTEX_M
#pragma GCC error "no \"__CORTEX_M\" definition"
#endif
#if (__CORTEX_M == 0x00U)
#include "../portable/GCC/ARM_CM0/portmacro.h"
#endif
#if (__CORTEX_M == 0x03U)
/* MPU not supported */
#if 0 /*(__MPU_PRESENT == 1)*/
#include "../portable/GCC/ARM_CM3_MPU/portmacro.h"
#else
#include "../portable/GCC/ARM_CM3/portmacro.h"
#endif
#endif
#if (__CORTEX_M == 0x04U)
/* MPU not supported */
#if 0 /*(__MPU_PRESENT == 1)*/
#include "../portable/GCC/ARM_CM4_MPU/portmacro.h"
#else
#include "../portable/GCC/ARM_CM4F/portmacro.h"
#endif
#endif
#if (__CORTEX_M == 0x07U)
/* MPU not supported */
#if 0 /*(__MPU_PRESENT == 1)*/
#include "../portable/GCC/ARM_CM7_MPU/r0p1/portmacro.h"
#else
#include "../portable/GCC/ARM_CM7/r0p1/portmacro.h"
#endif
#endif
#endif //_PORTMACRO_H_