Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
6 |
mjames |
1 |
/* |
|
|
2 |
* ap_math.h |
|
|
3 |
* |
|
|
4 |
* Created on: 31 Jan 2016 |
|
|
5 |
* Author: Mike |
|
|
6 |
*/ |
|
|
7 |
|
|
|
8 |
#pragma once |
|
|
9 |
#define AP_K (1<<16) |
|
|
10 |
#define AP_SCALE(x) ((x)/AP_K) |
|
|
11 |
extern void ap_init(void); |
|
|
12 |
|
|
|
13 |
extern int ap_sin(int x); |
|
|
14 |
extern int ap_cos(int x); |
|
|
15 |
|
|
|
16 |
|