Embedded programming is a tricky task that looks straightforward to the uninitiated, but those with a few decades of experience know differently. Getting what you want to work predictably or even fit ...
One of the most common applications for using function pointers is in task schedulers. Every embedded system contains some type of task scheduler whether it is a simple round robin loop or a state of ...
In the first part of this series, we covered the basics of pointers in C, and went on to more complex arrangements and pointer arithmetic in the second part. Both times, we focused solely on pointers ...
This may fall under the heading of "Don't do that" but did cause me to be slightly curious. What would happen if you say, created a pointer to a function that took three ints as arguments, but then ...
How pointers create pitfalls for a number of hard-to-detect programming errors. How Rust avoids these pitfalls and catches most pointer errors at compile time. Pointers have been a staple of ...
What is the Rust borrow checker and why is it important? How mutability and reference-counted pointers are related. Arguably the most novel aspect of Rust, and the feature that’s the most challenging ...
A critical tool when developing an embedded system in C is an understanding of how pointers work. Misunderstanding pointer fundamentals can result in long hours spent debugging a system or a hidden ...