Embedded C Programming Style: Tutorial 3 - Variables

preview_player
Показать описание
This tutorial highlights the programming style rules for Variables based on the coding style that I follow.

0:00 Generic rules
4:23 Pointer
5:07 Double pointer
6:30 Boolean
7:34 Handles
10:26 Global
12:47 Multiple types
15:53 Variable keywords
16:21 Const
21:01 Static
25:27 Volatile
Рекомендации по теме
Комментарии
Автор

Thanks for this selfless service. I hope you will include "pointers" in the embedded c programming 😀

philipidehen
Автор

Hi, those naming convention rules, where did you get them?, does exist a file or standard somewhere?

JairoGustavo
Автор

just use ide like vscode and hover over variable you can see all info about type etc. 😂 no need for prefixes LOL

araz
Автор

Thank you so much for sharing your knowledge you are amazing

salemgharbi
Автор

Hi! Thanks for the videos, especiallyl STM list! saludos desde Argentina

Electronics_Dreams
Автор

I missed you, a great video as usual.

eduardodelarosaferrer
Автор

Hi, why a variable without static keyword is considered to be available from another file?, would not be necessary to put that variable in a .h file and use extern to be shared between 2 files?, I mean, it is not directly available, right?

JairoGustavo
Автор

Thanks for this video, it is very useful - I had one question, for internal function intended to be used only inside the C file, I am typically adding an '_' before the function name like `int _read(..)` - do you have any recommendation for such cases ?

mic
Автор

The volatile example do not work, keep stuck in the while loop.

eduhza