Bsp_printf
Bsp_printf is a lite version of bsp_printf_full where it only supports a minimum number of specifiers. Bsp_printf is located in bsp/efinix/EfxSapphireSoc/app/print.h. Bsp_printf is enabled by default. An example of calling bsp_printf to print out a hex value of 0 x 10 is as follows:
bsp_printf(“Printing 0x10: %x”, 0x10)
It supports the following type:
- Character (%c)
- String (%s)
- Decimal (%d)
- Hexadecimal (%x)
- Float (%f)
Note: You need to switch the
Enable_Floating_Point_Support to 1 in
the bsp.h to enable the floating point supports. The
Enable_Floating_Point_Support follows the FPU setting where
it would be enabled by default if the FPU is included in the SoC.