mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-08-15 20:49:27 +03:00
add LST
This commit is contained in:
@@ -20,6 +20,12 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef M_PIf
|
||||
#define M_PIf 3.141592653589793f
|
||||
#endif
|
||||
|
||||
#define Q31_BASE 2147483648.0f
|
||||
|
||||
// functions
|
||||
enum {
|
||||
CORDIC_CSR_FUNC_COS = 0,
|
||||
@@ -33,6 +39,7 @@ enum {
|
||||
CORDIC_CSR_FUNC_SQRT
|
||||
};
|
||||
|
||||
void cordic_sincos(float angle, float *s, float *c);
|
||||
float cordic_sin(float angle);
|
||||
float cordic_cos(float angle);
|
||||
float cordic_atan(float val);
|
||||
|
||||
Reference in New Issue
Block a user