BOOL osDeinit(void);
TRUE on success or FALSE on failure. Call the osGetLastError function to obtain extended error information.
This function deinitializes the operating system. All memory resources allocated by the kernel (excluding those allocated by user tasks) during its execution will be released. This function can only be called after the operating system execution has been halted by osStop; otherwise, the function will fail. If this functionality is not required (e.g., system execution will never be stopped or resource deallocation upon termination is unnecessary), it should be disabled by setting the OS_DEINIT_FUNC constant to 0 to reduce the final code footprint.
| Version: | 1.0 |
|---|---|
| Header file: | OS_API.h |
| See also: | BOOL, FALSE, OS_DEINIT_FUNC, osGetLastError, osInit, osStart, osStop, system objects management, TRUE |