diff options
author | alk3pInjection <webmaster@raspii.tech> | 2024-02-04 16:16:35 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-02-04 16:16:35 +0800 |
commit | abdaadbcae30fe0c9a66c7516798279fdfd97750 (patch) | |
tree | 00a54a6e25601e43876d03c1a4a12a749d4a914c /share/gcc-arm-none-eabi/samples/src/fpout/fpout.c |
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Change-Id: I7303388733328cd98ab9aa3c30236db67f2e9e9c
Diffstat (limited to 'share/gcc-arm-none-eabi/samples/src/fpout/fpout.c')
-rw-r--r-- | share/gcc-arm-none-eabi/samples/src/fpout/fpout.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/share/gcc-arm-none-eabi/samples/src/fpout/fpout.c b/share/gcc-arm-none-eabi/samples/src/fpout/fpout.c new file mode 100644 index 0000000..c2d0cf4 --- /dev/null +++ b/share/gcc-arm-none-eabi/samples/src/fpout/fpout.c @@ -0,0 +1,15 @@ +#include <stdio.h> + +float f=1.11; +double d=3.14; + +int main() +{ + printf("f=%f, d=%f\n", f, d); + return 0; +} + +#ifndef __NO_SYSTEM_INIT +void SystemInit() +{} +#endif |