sim: mark header that need to be as C header
This commit is contained in:
parent
8ae5ba7c0a
commit
7c2ea617f9
|
@ -29,8 +29,13 @@
|
||||||
#ifndef INC_FREERTOS_H
|
#ifndef INC_FREERTOS_H
|
||||||
#define INC_FREERTOS_H
|
#define INC_FREERTOS_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "portmacro_cmsis.h"
|
#include "portmacro_cmsis.h"
|
||||||
//#include "app_error.h"
|
//#include "app_error.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
// from nrf_error.h
|
// from nrf_error.h
|
||||||
/** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions
|
/** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions
|
||||||
|
@ -78,21 +83,16 @@ const unsigned SCB_ICSR_VECTACTIVE_Msk = 0x01;
|
||||||
// copied from nRF5_SDK_15.3.0_59ac345/components/toolchain/cmsis/include/core_cm4.h
|
// copied from nRF5_SDK_15.3.0_59ac345/components/toolchain/cmsis/include/core_cm4.h
|
||||||
void NVIC_SystemReset(void);
|
void NVIC_SystemReset(void);
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#define configTOTAL_HEAP_SIZE (1024 * 40)
|
#define configTOTAL_HEAP_SIZE (1024 * 40)
|
||||||
|
|
||||||
size_t xPortGetFreeHeapSize(void);
|
size_t xPortGetFreeHeapSize(void);
|
||||||
size_t xPortGetMinimumEverFreeHeapSize(void);
|
size_t xPortGetMinimumEverFreeHeapSize(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
void *pvPortMalloc(size_t xWantedSize);
|
void *pvPortMalloc(size_t xWantedSize);
|
||||||
void vPortFree(void *pv);
|
void vPortFree(void *pv);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* INC_FREERTOS_H */
|
#endif /* INC_FREERTOS_H */
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
#ifndef PORTMACRO_CMSIS_H
|
#ifndef PORTMACRO_CMSIS_H
|
||||||
#define PORTMACRO_CMSIS_H
|
#define PORTMACRO_CMSIS_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef uint32_t TickType_t;
|
typedef uint32_t TickType_t;
|
||||||
|
@ -46,4 +50,8 @@ const NRF_RTC_Type portNRF_RTC_REG = 1;
|
||||||
|
|
||||||
void portYIELD_FROM_ISR(BaseType_t);
|
void portYIELD_FROM_ISR(BaseType_t);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* PORTMACRO_CMSIS_H */
|
#endif /* PORTMACRO_CMSIS_H */
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
#ifndef INC_TASK_H
|
#ifndef INC_TASK_H
|
||||||
#define INC_TASK_H
|
#define INC_TASK_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "portmacro_cmsis.h"
|
#include "portmacro_cmsis.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -324,4 +328,8 @@ TaskHandle_t xTaskGetCurrentTaskHandle();
|
||||||
*/
|
*/
|
||||||
BaseType_t xTaskGetSchedulerState();
|
BaseType_t xTaskGetSchedulerState();
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* INC_TASK_H */
|
#endif /* INC_TASK_H */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user