sim: mark header that need to be as C header

This commit is contained in:
Reinhold Gschweicher 2023-05-01 22:18:24 +02:00
parent 8ae5ba7c0a
commit 7c2ea617f9
3 changed files with 22 additions and 6 deletions

View File

@ -29,8 +29,13 @@
#ifndef INC_FREERTOS_H
#define INC_FREERTOS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "portmacro_cmsis.h"
//#include "app_error.h"
#include <stddef.h>
// from nrf_error.h
/** @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
void NVIC_SystemReset(void);
#include <stddef.h>
#define configTOTAL_HEAP_SIZE (1024 * 40)
size_t xPortGetFreeHeapSize(void);
size_t xPortGetMinimumEverFreeHeapSize(void);
#ifdef __cplusplus
extern "C" {
#endif
void *pvPortMalloc(size_t xWantedSize);
void vPortFree(void *pv);
#ifdef __cplusplus
}
#endif
#endif /* INC_FREERTOS_H */

View File

@ -29,6 +29,10 @@
#ifndef PORTMACRO_CMSIS_H
#define PORTMACRO_CMSIS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
typedef uint32_t TickType_t;
@ -46,4 +50,8 @@ const NRF_RTC_Type portNRF_RTC_REG = 1;
void portYIELD_FROM_ISR(BaseType_t);
#ifdef __cplusplus
}
#endif
#endif /* PORTMACRO_CMSIS_H */

View File

@ -30,6 +30,10 @@
#ifndef INC_TASK_H
#define INC_TASK_H
#ifdef __cplusplus
extern "C" {
#endif
#include "portmacro_cmsis.h"
#include <stdint.h>
@ -324,4 +328,8 @@ TaskHandle_t xTaskGetCurrentTaskHandle();
*/
BaseType_t xTaskGetSchedulerState();
#ifdef __cplusplus
}
#endif
#endif /* INC_TASK_H */