CPP wrappers. Added compile time switch CH_CFG_USE_MEMCORE.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7625 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
ca2ae96ab5
commit
ae22534ef0
|
@ -66,6 +66,7 @@ namespace chibios_rt {
|
||||||
/*------------------------------------------------------------------------*
|
/*------------------------------------------------------------------------*
|
||||||
* chibios_rt::Core *
|
* chibios_rt::Core *
|
||||||
*------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------*/
|
||||||
|
#if CH_CFG_USE_MEMCORE
|
||||||
void *Core::alloc(size_t size) {
|
void *Core::alloc(size_t size) {
|
||||||
|
|
||||||
return chCoreAlloc(size);
|
return chCoreAlloc(size);
|
||||||
|
@ -80,6 +81,7 @@ namespace chibios_rt {
|
||||||
|
|
||||||
return chCoreGetStatusX();
|
return chCoreGetStatusX();
|
||||||
}
|
}
|
||||||
|
#endif /* CH_CFG_USE_MEMCORE */
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*
|
/*------------------------------------------------------------------------*
|
||||||
* chibios_rt::Timer *
|
* chibios_rt::Timer *
|
||||||
|
|
|
@ -127,6 +127,7 @@ namespace chibios_rt {
|
||||||
static bool isTimeWithin(systime_t start, systime_t end);
|
static bool isTimeWithin(systime_t start, systime_t end);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if CH_CFG_USE_MEMCORE || defined(__DOXYGEN__)
|
||||||
/*------------------------------------------------------------------------*
|
/*------------------------------------------------------------------------*
|
||||||
* chibios_rt::System *
|
* chibios_rt::System *
|
||||||
*------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------*/
|
||||||
|
@ -173,6 +174,7 @@ namespace chibios_rt {
|
||||||
*/
|
*/
|
||||||
static size_t getStatus(void);
|
static size_t getStatus(void);
|
||||||
};
|
};
|
||||||
|
#endif /* CH_CFG_USE_MEMCORE */
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*
|
/*------------------------------------------------------------------------*
|
||||||
* chibios_rt::Timer *
|
* chibios_rt::Timer *
|
||||||
|
|
Loading…
Reference in New Issue