feat(newlib): Add lock function

Fixed some warnings due to the lack of macrodefinition.
This commit is contained in:
Dong Heng
2018-05-15 16:16:53 +08:00
parent 60c1e02e09
commit d7e96f9ea0
5 changed files with 50 additions and 45 deletions

View File

@@ -157,6 +157,15 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t ulStackDepth ) PRIVILEGED_FUNCTION;
#endif
/*
* @brief check if current at interrupt context
*
* @param none
*
* @return 1 if at interrupt context or 0
*/
int xPortInIsrContext(void);
#ifdef __cplusplus
}
#endif