add l/h option to hw tune and optimize order of tuning

This commit is contained in:
Richard Antony Burton 2016-05-30 18:30:38 +01:00
commit fdcfbdcc21
8 changed files with 69 additions and 22 deletions

View file

@ -18,6 +18,7 @@ void FpgaSetupSsc(void);
void SetupSpi(int mode);
bool FpgaSetupSscDma(uint8_t *buf, int len);
void Fpga_print_status();
int FpgaGetCurrent();
#define FpgaDisableSscDma(void) AT91C_BASE_PDC_SSC->PDC_PTCR = AT91C_PDC_RXTDIS;
#define FpgaEnableSscDma(void) AT91C_BASE_PDC_SSC->PDC_PTCR = AT91C_PDC_RXTEN;
void SetAdcMuxFor(uint32_t whichGpio);