Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weird ring mod shit dude kinda rad, but try and sync a2d to t2 timer
- Loading branch information
Vijay Natarajan
committed
Oct 12, 2017
1 parent
1e10fd1
commit 542163f
Showing
5 changed files
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,20 +1,22 @@ | |||
//LIMIT 16 DONT FUCK UP | //LIMIT 16 DONT FUCK UP | ||
#define NUMoBUF(a) ADCON2 |= ((a-1)<<2) | #define NUMoBUF(a) ADCON2 |= ((a-1)<<2) | ||
#define NoB 8 //ADC BUFFER | #define NoB 1//ADC BUFFER | ||
#define NoO 64//IN/OUT DATA BUFFER | #define NoO 120//IN/OUT DATA BUFFER | ||
|
|
||
extern void W2XS(int, volatile int **); | extern void W2XS(int, volatile int **); | ||
extern int RFXS(volatile int **); | extern int RFXS(volatile int **); | ||
extern void CLYS(volatile int **); | extern void CLYS(volatile int **); | ||
|
|
||
extern int modflag; | |||
|
|||
void inita2d(void); | void inita2d(void); | ||
void initPWMdac(void); | void initPWMdac(void); | ||
void clearIO(void); | void clearIO(void); | ||
|
|
||
void initModBuff(volatile int *,volatile int *,int,int); | void initModBuff(volatile int *,volatile int *,int,int); | ||
void setXMOD(int); | void setXMOD(int); | ||
void clearBuff(volatile int *); | void clearBuff(volatile int **); | ||
void wbyteBuff(int,volatile int *); | void wbyteBuff(int,volatile int **); | ||
int rbyteBuff(volatile int *); | int rbyteBuff(volatile int **); | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters