Embedded C Programming Style: Tutorial 10 - Macros

preview_player
Показать описание
This video describes the programming style rules for Macros.

0:00 Introduction
0:28 Generic rules
2:34 Constants
2:48 Parentheses
3:57 Function-like Macros
X-Macros next video!
Рекомендации по теме
Комментарии
Автор

really very helpful series, I never thought about this standard rules.

brijeshkhokhar
Автор

Excellent series, really hoping for the next videos, thanks a lot for the awesome info!!

lokipuk
Автор

Thank you for sharing your time and effort. It's not in vain.

electrolabs
Автор

Is it possible to write a function inside a macro? I have a scenario where i need to update based on number of slaves connected to the master. for example if number of slaves is 5, I need to update rr1, rr2, ....rr5. currently we assumed there is only 5 slaves, so we pass values from 1 to 5 to a macro and it does all the assignments, going forward number of slaves is going to be different, so now how to pass values to macro?

sharmilaece
Автор

Is this coding / programming new old etc thx 😂just heard about it

baomichael
welcome to shbcf.ru