root / trunk / code / projects / fp_math / main.c @ 1579
History | View | Annotate | Download (292 Bytes)
| 1 | #include <serial.h> |
|---|---|
| 2 | #include <stdint.h> |
| 3 | #include "fp_math.h" |
| 4 | |
| 5 | int main(int argc, char** argv) { |
| 6 | int32_t i,j; |
| 7 | char buf[128]; |
| 8 | |
| 9 | usb_init(); |
| 10 | usb_puts("USB Initialized\n\r");
|
| 11 | |
| 12 | for(i=10000; i < 11000; i+=5) { |
| 13 | sprintf(buf, "fp_cos(%ld) = %ld\n\r", i, fp_cos(i));
|
| 14 | usb_puts(buf); |
| 15 | } |
| 16 | } |
| 17 |