Day TBD: Currently in the Process of Importing Posts into Blog
...
Importing. ...
Importing. ...
Importing. ...
Importing. ...
Importing. ...
Importing. ...
sizeof() Operator sizeof() is a compile-time operator in C that determines the size of a data type, variable, or object. It is not a function and it is not part of a library! The sizeof() operator is built into the C language, and the compiler translates sizeof() into the data type or variable size passed into the operator during compilation. ...
Pointer Exercises ...
Importing. ...
Importing. ...
I’ve been rusty in regards to C pointer fundamentals and decided to review pointer arithmetic. One can easily be thrown off by pointer arithmetic because adding 1 to a pointer is not as simple as adding two numbers in standard arithmetic. For example: ...
The LunaRTOS kernel utilizes the Pended SVC (PendSV) feature for context switching. PendSV is an ARM Cortex-M feature that allows the software to trigger an exception to perform a context switch from one thread to another. I originally used SysTick for context switching in LunaRTOS, but this can cause issues if SysTick is needed for other OS-related tasks. Both PendSV and SysTick are system-level interrupts supported by the ARM Cortex-M. ...
I’ve been working on LunaRTOS – a custom real-time operating system – on and off for the past few months. I’m familiar with FreeRTOS and other more safety-critical RTOSs (VxWorks, Integrity, etc), but wanted to 1) learn more about how to build a RTOS and 2) Use a custom RTOS in my personal projects. ...