Skip to content
RED SAGSkills
medium10 pts · first answer countsembedded-cstorage-classes

Small helpers in a header

A small register helper is defined in a header used by many .c files. Why is it usually written as static inline?

static inline void led_on(void) { GPIOA->BSRR = (1u << 5); }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions