Knowledge Base Article
drivers/src/altera_s10_mailbox_client.c:32:59: error: 'OS_FLAG_SET' undeclared (first use in this function); did you mean 'ALT_FLAG_SET'?
Description
Due to a problem in Quartus® Prime Pro Edition Software, you might see an error when compiling Nios® V software with the Mailbox Client IP or 16550 Compatible UART Core driver, in FreeRTOS environment.
This is because the driver software of the IP is using “MicroC/OS-II”-specific OS_* macros.
Resolution
The recommended macros are the OS-independent ALT_* macros.
- MicroC/OS-II Real-Time Operating System - Thread-Safe HAL Drivers
- FreeRTOS Real-Time Operating System - Thread-Safe HAL Drivers
Replace the OS_* accordingly.
|
MicroC/OS-II Macros |
Replace to |
|---|---|
|
OS_FLAG_SET |
ALT_FLAG_SET |
|
OS_FLAG_CLEAR |
ALT_FLAG_CLEAR |
|
OS_FLAG_WAIT_SET_ALL |
ALT_FLAG_WAIT_SET_ALL_WO_CONSUME |
|
(OS_FLAG_WAIT_SET_ALL + OS_FLAG_CONSUME) |
ALT_FLAG_WAIT_SET_ALL_WITH_CONSUME |
|
OS_FLAG_WAIT_SET_ANY |
ALT_FLAG_WAIT_SET_ANY_WO_CONSUME |
|
(OS_FLAG_WAIT_SET_ANY + OS_FLAG_CONSUME) |
ALT_FLAG_WAIT_SET_ANY_WITH_CONSUME |
|
OS_FLAG_GRP* group |
ALT_FLAG_GRP(group) |
Updated 4 months ago
Version 6.0No CommentsBe the first to comment