aboutsummaryrefslogtreecommitdiff
path: root/stmhal/math.c
AgeCommit message (Collapse)Author
2014-08-29lib: Add lib and libm, moving current files from stmhal.Damien George
Top-level lib directory is for standard C libraries that we want to provide our own versions of (for efficiency and stand-alone reasons). It currently has libm in it for math functions. Also add atanf and atan2f, which addresses issue #837.
2014-08-05stmhal, math: Define _M_LN2 if not already defined.Damien George
Addresses issue #790.
2014-06-30Add copysignfmux
* Fix #692
2014-05-03Add license header to (almost) all files.Damien George
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
2014-04-18stmhal: Update ADC, DAC and I2C objects to use new buffer protocol.Damien George
Main reason for expanding buffer protocol API was to support writes to a buffer in ADC module (see read_timed). With this change you can now create an array of arbitrary type and ADC.read_timed will store into that array in the correct format (byte, int, float). I wonder though if all these changes were really worth it to support just this function. Hopefully this enhanced buffer protocol API (with typecode specified) will be used elsewhere.
2014-04-17stmhal: Add more math functions.Damien George
Taken straight from musl and newlib. License seems compatible with MIT.
2014-04-03stmhal: Add powf, logf, log2f, log10f.Damien George
2014-04-03stmhal: #undef log2f if it's defined.Damien George
2014-04-02stmhal: Fix servo object; add fpclassify to math functions.Damien George
2014-03-23stm/stmhal: Change gammaf to tgammaf.Damien George
2014-03-23stmhal: Copy changes to math.c from stm port.Damien George
2014-03-22stm/stmhal: Add more math stubs.Damien George
2014-03-21Disable some math functions until they work correctly.Damien George
2014-03-12REPl working on UART6 with STMHALDave Hylands