Preprocessor Directives

Unified printf implementation uses preprocessor directives/switches located in the bsp.h to allow customization of the printf function suited to your needs.
Table 1. Preprocessor Directives
Switch Description Default
ENABLE_BSP_PRINT Enable legacy bsp_print functions. Enabled
ENABLE_BSP_PRINTF Enable bsp_printf function. Enabled
ENABLE_BSP_PRINTF_FULL Enable bsp_printf_full function. Disabled
ENABLE_SEMIHOSTING_PRINT Enable semihosting printing. All print functions is routed to the console printout if enabled. Disabled
ENABLE_FLOATING_POINT_
SUPPORT
Enable floating point printout support. Follows FPU setting
ENABLE_FP_EXPONENTIAL_
SUPPORT
Enable floating point exponential printout support. Disabled
ENABLE_PTRDIFF_SUPPORT Enable pointer difference datatype support. Disabled
ENABLE_LONG_LONG_SUPPORT Enable long long datatype support. Disabled
ENABLE_BRIDGE_FULL_TO_LITE When enabled and bsp_printf is disabled, the bsp_printf_full can be called using bsp_printf. Enabled
ENABLE_PRINTF_WARNING When enabled, warning is printed out when the specifier type is not supported. Enabled