随笔分类 -  C语言-Linux U-Boot

Linux 和 U-Boot的C语言要点
摘要:#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) #define of_match_ptr(_ptr) (_ptr) #else #define of_match_ptr(_ptr) NULL #endif /* 阅读全文
posted @ 2022-02-20 19:51 liujunhuasd 阅读(406) 评论(0) 推荐(0)
摘要:有时候会看见IS_ENABLED(CONFIG_XXXX)来测试某个Kconfig选项是否开启(即选中为y或者m). 如 if (IS_ENABLED(CONFIG_TIME_LOW_RES) && timer->is_rel) rem -= hrtimer_resolution;当TIME_LOW 阅读全文
posted @ 2020-06-23 17:04 liujunhuasd 阅读(2100) 评论(0) 推荐(0)