각종 attribute 키워드(?)에 대해서 알아보자.
STM 코드의 예
__weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
/* Prevent unused argument(s) comilation warning */
UNUSED(GPIO_Pin);
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_GPIO_EXTI_Callback could be implemented int the user file */
}
리눅스 커널 코드의 예