X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fdebug_uart.h;h=257ba004d6e9d3858254625eb0cd40ba38a6d485;hb=97b059730218824a1455f030aadd78ef51729ec0;hp=a75e377dc0fab36a48bffbe0972b3388dc626941;hpb=3c9cc70d7153da442575112d9a2643eecd17d534;p=u-boot diff --git a/include/debug_uart.h b/include/debug_uart.h index a75e377dc0..257ba004d6 100644 --- a/include/debug_uart.h +++ b/include/debug_uart.h @@ -38,7 +38,7 @@ * To enable the debug UART in your serial driver: * * - #include - * - Define debug_uart_init(), trying to avoid using the stack + * - Define _debug_uart_init(), trying to avoid using the stack * - Define _debug_uart_putc() as static inline (avoiding stack usage) * - Immediately afterwards, add DEBUG_UART_FUNCS to define the rest of the * functionality (printch(), etc.) @@ -132,6 +132,11 @@ void printhex8(uint value); void printhex8(uint value) \ { \ printhex(value, 8); \ - } + } \ +\ + void debug_uart_init(void) \ + { \ + _debug_uart_init(); \ + } \ #endif