Title: RivieraWaves Kernel Document type: Functional Specifications
Reference: RW-KERNEL-SW-FS Version: 1.5, Release Date: 2018-05-02
Confidential – © 2018 RivieraWaves Page 3 of 18
1 Table of contents
Revision History ......................................................................................................................................................... 2
1 Table of contents ............................................................................................................................................... 3
2 List of Tables ...................................................................................................................................................... 4
3 Overview ........................................................................................................................................................... 5
3.1 Feature List ........................................................................................................................................................... 5
3.2 Source File Structure ............................................................................................................................................ 5
3.3 Include Files ......................................................................................................................................................... 5
3.4 Kernel Environment ............................................................................................................................................. 5
4 Messages ........................................................................................................................................................... 7
4.1 Overview .............................................................................................................................................................. 7
4.2 Message Object .................................................................................................................................................... 7
4.3 Parameter Management ...................................................................................................................................... 7
4.4 Message Queue Object ........................................................................................................................................ 8
4.5 Message Queue Primitives ................................................................................................................................... 8
4.5.1 Message Allocation ........................................................................................................................................ 8
4.5.2 Message Send ................................................................................................................................................. 9
4.5.3 Message Send Basic ....................................................................................................................................... 9
4.5.4 Message Forward ........................................................................................................................................... 9
4.5.5 Message Free ............................................................................................................................................... 10
5 Scheduler ......................................................................................................................................................... 11
5.1 Overview ............................................................................................................................................................ 11
5.2 Requirements ..................................................................................................................................................... 11
5.2.1 Priority Management ................................................................................................................................... 11
5.2.2 Scheduling Algorithm ................................................................................................................................... 11
5.2.3 Save Service .................................................................................................................................................. 12
6 Tasks ................................................................................................................................................................ 13
7 Kernel Timer .................................................................................................................................................... 14
7.1 Overview ............................................................................................................................................................ 14
7.2 Time definition ................................................................................................................................................... 14
7.3 Timer Object ...................................................................................................................................................... 14
7.4 Timer Setting ...................................................................................................................................................... 14
7.5 Timer Primitives ................................................................................................................................................. 15
7.5.1 Timer Set ...................................................................................................................................................... 15
7.5.2 Timer Clear ................................................................................................................................................... 15
7.5.3 Timer Activity ............................................................................................................................................... 16
7.5.4 Timer Adjust ................................................................................................................................................. 16
7.5.5 Timer Expiry .................................................................................................................................................. 17
8 Effective Macros .............................................................................................................................................. 18