X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32-p103%2Ftemplates%2Fstm32-p103_kernel%2Fcfg%2Fcfg_debug.h;h=c31b4523ac9fc58b40888c47adceec083fe5b142;hb=6fffd0614f75137e8fed424c87835d4e7d478ef7;hp=3bb3b181db2a6ab81c6d1b6df25be89f5053b108;hpb=419ecb32a02d0116d04e483e0b088be82ec69f73;p=bertos.git diff --git a/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_debug.h b/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_debug.h index 3bb3b181..c31b4523 100644 --- a/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_debug.h +++ b/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_debug.h @@ -51,4 +51,20 @@ */ #define CONFIG_KDEBUG_BAUDRATE 115200UL +/** + * Clock source for the UART module. You need to write the code to reprogram the respective clock at the required frequency in your project before calling kdbg_init(). + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "kdbg_clk_src" + * $WIZ$ supports = "msp430" + */ +#define CONFIG_KDEBUG_CLOCK_SOURCE KDBG_UART_SMCLK + +/** + * Clock frequency. (Only if different from MCLK's frequency, otherwise leave it zero) + * $WIZ$ type = "int"; min = 0 + * $WIZ$ supports = "msp430" + */ +#define CONFIG_KDEBUG_CLOCK_FREQ 0UL + #endif /* CFG_DEBUG_H */