void board_debug_uart_init(void) { wdr4300_pinmux_config(); } #endif #ifdef CONFIG_DEBUG_UART debug_uart_init(); #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { #ifndef CONFIG_DEBUG_UART_BOARD_INIT wdr4300_pinmux_config(); #endif #ifndef CONFIG_SKIP_LOWLEVEL_INIT...
请高手帮我解释下#ifdef和#endif的意思请先讲下用法再就下面的例子解释下谢谢 PRIVATEvoidvInit(void) { #ifdefUART0_DEBUG vUtils_Init(); #endif vCheckWakeSource(); vInitSystem(); } 相关知识点: 试题来源: 解析 #ifdefUART0_DEBUG如果UART0_DEUG用#define定义了就编译#ifdef和#endif之间的代码,否者...
void board_debug_uart_init(void) { wdr4300_pinmux_config(); } #endif #ifdef CONFIG_DEBUG_UART debug_uart_init(); #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { #ifndef CONFIG_DEBUG_UART_BOARD_INIT wdr4300_pinmux_config(); #endif #ifndef CONFIG_SKIP_LOWLEVEL_INIT...