A guide to better embedded C++
Disclaimer: this, by no means, is not a definitive description of the whole embedded-specific development. This is just a small good practice about interaction with hardware.
Disclaimer: this, by no means, is not a definitive description of the whole embedded-specific development. This is just a small good practice about interaction with hardware.
Дисклеймер: этот пост ни коим образом не является общим описанием embedded-разработки. Это небольшая хитрость, которая улучшает качество программ при работе с железом.
В C++11 была введена очень важная и полезная вещь: строго-типизированный enum. Я не буду перечислять все полезности, в сети полно статей на эту тему. Тем более, на дворе 2018 год, пора бы уже всем этим пользоваться.
C++11 has introduced an extremely important and useful feature: strongly typed enumerators. I will not recap all of the useful features; there are many articles about that. In addition, its 2018, so you better be using them.
Now, back to business. I have a big topic to discuss and maybe I will split it into several parts.