mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
The dsPIC_MPLAB demo project now compiles under MPLAB X v6.20 using xc16 compilers
This commit is contained in:
parent
31419bfcee
commit
61df9abef9
|
@ -29,6 +29,12 @@
|
|||
#ifndef INC_FREERTOS_H
|
||||
#define INC_FREERTOS_H
|
||||
|
||||
/*
|
||||
* On Microchip xc16 target there will be undefined reference to _Nop
|
||||
* xc.h is supplied by Microchip and defines Nop
|
||||
*/
|
||||
#include <xc.h>
|
||||
|
||||
/*
|
||||
* Include the generic headers required for the FreeRTOS port being used.
|
||||
*/
|
||||
|
|
|
@ -54,7 +54,10 @@
|
|||
#define portSTACK_TYPE uint16_t
|
||||
#define portBASE_TYPE short
|
||||
#define portPOINTER_SIZE_TYPE size_t
|
||||
/* Microchip xc16 compilers already define SIZE_MAX in stdint.h */
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ( ( size_t ) -1 )
|
||||
#endif
|
||||
|
||||
typedef portSTACK_TYPE StackType_t;
|
||||
typedef short BaseType_t;
|
||||
|
|
Loading…
Reference in a new issue