Rev 28 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
/*
* ap_math.h
*
* Created on: 31 Jan 2016
* Author: Mike
*/
#ifndef INC_AP_MATH_H_
#define INC_AP_MATH_H_
#define AP_K 256
#define AP_SCALE(x) ((x)/AP_K)
/* the number of steps in 90 degrees */
#define SINE_SCALING 4
#define SINE_STEPS (90*SINE_SCALING)
extern void ap_init(void);
extern int ap_sin(int x);
extern int ap_cos(int x);
#endif /* INC_AP_MATH_H_ */