Skip to content

Commit

Permalink
Update XMOS AICORE conflict (#77)
Browse files Browse the repository at this point in the history
* Define portBASE_TYPE in XMOS AICORE porting

* Update enter critical from ISR API
  • Loading branch information
chinglee-iot authored Apr 21, 2023
1 parent 9da6836 commit 2d281c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions portable/ThirdParty/xClang/XCOREAI/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ typedef double portDOUBLE;
typedef int32_t BaseType_t;
typedef uint32_t UBaseType_t;

#define portBASE_TYPE BaseType_t

#if( configUSE_16_BIT_TICKS == 1 )
typedef uint16_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffff
Expand Down Expand Up @@ -163,8 +165,8 @@ void vTaskExitCritical(void);
#define portENTER_CRITICAL() vTaskEnterCritical()
#define portEXIT_CRITICAL() vTaskExitCritical()

extern UBaseType_t vTaskEnterCriticalFromISR( void );
extern void vTaskExitCriticalFromISR( UBaseType_t uxSavedInterruptStatus );
extern portBASE_TYPE vTaskEnterCriticalFromISR( void );
extern void vTaskExitCriticalFromISR( portBASE_TYPE xSavedInterruptStatus );
#define portENTER_CRITICAL_FROM_ISR vTaskEnterCriticalFromISR
#define portEXIT_CRITICAL_FROM_ISR vTaskExitCriticalFromISR

Expand Down

0 comments on commit 2d281c7

Please sign in to comment.