22 lines
459 B
C
22 lines
459 B
C
#include "app_config.h"
|
|
#include "system/includes.h"
|
|
|
|
#ifdef USE_HW_FLOAT_TEST_DEMO
|
|
|
|
extern void put_float(double fv);
|
|
|
|
static int c_main(void)
|
|
{
|
|
float a = 3.3f;
|
|
float b = 5.6f;
|
|
float c = a * b + rand32();
|
|
|
|
printf("\r\n\r\n\r\n\r\n\r\n -----------float run %f -------------\r\n", c); //打印用的双精度浮点,会引用到软件浮点库
|
|
puts("put_float: ");
|
|
put_float(c);
|
|
|
|
return 0;
|
|
}
|
|
late_initcall(c_main);
|
|
#endif
|