-
__STATIC_INLINEAutonomous Lawn Mower/Embedded C 2022. 12. 26. 13:34반응형
Define a static function that may be inlined by the compiler.
Defines a static function that may be inlined by the compiler. If the compiler generates inline code for all calls to this functions, no additional function implementation is generated which may further optimize space.
Code Example:
\\ Get Interrupt Vector__STATIC_INLINE uint32_t NVIC_GetVector(IRQn_Type IRQn){uint32_t *vectors = (uint32_t *)SCB->VTOR;return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET];}반응형'Autonomous Lawn Mower > Embedded C' 카테고리의 다른 글
Assert 함수 (0) 2025.04.29 Moving average (2) 2025.02.09 Static, extern, volatile, const (1) 2023.05.11 Micro Inspector Pro (0) 2022.12.31