PM5358
Porting the
Procedure 1: Porting Driver OS Extensions
The OS extensions encapsulate all OS specific services and data types used by the driver. The suni4x622_rtos.h file contains data types and
•Task management
•Message queues
•Events
•Memory Management
In addition, you may need to modify functions that use OS specific services, such as utility and
To port the driver’s OS extensions:
1.Modify the data types in suni4x622_rtos.h. The number after the type identifies the
2.Modify the OS specific services in the corresponding system calls that
suni4x622_rtos.h. Redefine the following macros to your target system supports:
Service | Macro Name | Description |
Type |
|
|
|
|
|
Memory | sysSuni4x622MemAlloc | Allocates the memory block |
|
|
|
| sysSuni4x622MemFree | Frees the memory block |
|
|
|
| sysSuni4x622MemSet | Set the memory value |
|
|
|
| sysSuni4x622MemCpy | Copies the memory block from src to dest |
|
|
|
3.Modify the utilities and interrupt services that use OS specific services in the suni4x622_rtos.c and the suni4x622_hw.c. These file contains the utility and
Service Type | Function Name | Description |
|
|
|
Timer | sysSuni4x622TimerSleep | Sets the task execution delay |
|
| in milliseconds |
|
|
|
Proprietary and Confidential to | 118 |
Document ID: |
|