prune qfplib to save 4.5kB

main
Clyne 6 months ago
parent 22c0650420
commit 656b892d94
Signed by: clyne
GPG Key ID: 3267C8EBF3F9AFC7

@ -16,6 +16,14 @@ You need:
Extract ChibiOS to a folder, edit the `Makefile` so CHIBIOS points to that folder, then run `make`.
### Flashing the card
You'll need a 6-pin Tag-Connect cable (e.g. [TC2030-CTX-NL](https://www.tag-connect.com/product/tc2030-ctx-nl-6-pin-no-legs-cable-with-10-pin-micro-connector-for-cortex-processors)), compatible programmer, and OpenOCD. Power up the card and run the following command (using the appropriate interface scripts for your programmer):
```
openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -f target/stm32g0x.cfg -c "program build/ch.hex verify reset exit"
```
## Credits
* [ESP32-I2S-SLM](https://hackaday.io/project/166867-esp32-i2s-slm) for a starting point with accurate decibel-measuring code.

@ -23,8 +23,6 @@ Fifth Floor, Boston, MA 02110-1301, USA.
typedef unsigned int ui32;
typedef int i32;
typedef unsigned long long int ui64;
typedef long long int i64;
extern float qfp_fadd (float x,float y);
extern float qfp_fsub (float x,float y);
@ -40,58 +38,7 @@ extern float qfp_int2float (i32 x);
extern float qfp_fix2float (i32 x,int f);
extern float qfp_uint2float (ui32 x);
extern float qfp_ufix2float (ui32 x,int f);
extern float qfp_int642float (i64 x);
extern float qfp_fix642float (i64 x,int f);
extern float qfp_uint642float (ui64 x);
extern float qfp_ufix642float (ui64 x,int f);
extern float qfp_fcos (float x);
extern float qfp_fsin (float x);
extern float qfp_ftan (float x);
extern float qfp_fatan2 (float y,float x);
extern float qfp_fexp (float x);
extern float qfp_fln (float x);
extern double qfp_dadd (double x,double y);
extern double qfp_dsub (double x,double y);
extern double qfp_dmul (double x,double y);
extern double qfp_ddiv (double x,double y);
extern double qfp_dsqrt (double x);
extern double qfp_dcos (double x);
extern double qfp_dsin (double x);
extern double qfp_dtan (double x);
extern double qfp_datan2 (double y,double x);
extern double qfp_dexp (double x);
extern double qfp_dln (double x);
extern int qfp_dcmp (double x,double y);
extern i64 qfp_float2int64 (float x);
extern i64 qfp_float2fix64 (float x,int f);
extern ui64 qfp_float2uint64 (float x);
extern ui64 qfp_float2ufix64 (float x,int f);
extern i32 qfp_float2int_z (float x);
extern i64 qfp_float2int64_z (float x);
extern i32 qfp_double2int (double x);
extern i32 qfp_double2fix (double x,int f);
extern ui32 qfp_double2uint (double x);
extern ui32 qfp_double2ufix (double x,int f);
extern i64 qfp_double2int64 (double x);
extern i64 qfp_double2fix64 (double x,int f);
extern ui64 qfp_double2uint64 (double x);
extern ui64 qfp_double2ufix64 (double x,int f);
extern i32 qfp_double2int_z (double x);
extern i64 qfp_double2int64_z(double x);
extern double qfp_int2double (i32 x);
extern double qfp_fix2double (i32 x,int f);
extern double qfp_uint2double (ui32 x);
extern double qfp_ufix2double (ui32 x,int f);
extern double qfp_int642double (i64 x);
extern double qfp_fix642double (i64 x,int f);
extern double qfp_uint642double (ui64 x);
extern double qfp_ufix642double (ui64 x,int f);
extern float qfp_double2float (double x);
extern double qfp_float2double (float x);
#endif

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save