REM: cleaning up some commented code.
This commit is contained in:
@@ -22,8 +22,8 @@
|
|||||||
/**
|
/**
|
||||||
* Function to do a modulation and then get samples.
|
* Function to do a modulation and then get samples.
|
||||||
* @param delay_off
|
* @param delay_off
|
||||||
* @param period_0
|
* @param periods 0xFFFF0000 is period_0, 0x0000FFFF is period_1
|
||||||
* @param period_1
|
* @param useHighFreg
|
||||||
* @param command
|
* @param command
|
||||||
*/
|
*/
|
||||||
void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t periods, uint32_t useHighFreq, uint8_t *command)
|
void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t periods, uint32_t useHighFreq, uint8_t *command)
|
||||||
@@ -37,7 +37,7 @@ void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t periods, uint3
|
|||||||
uint16_t period_1 = periods & 0xFFFF;
|
uint16_t period_1 = periods & 0xFFFF;
|
||||||
|
|
||||||
// 95 == 125 KHz 88 == 124.8 KHz
|
// 95 == 125 KHz 88 == 124.8 KHz
|
||||||
int divisor_used = (useHighFreq) ? 88 : 95 ; // 125 KHz
|
int divisor_used = (useHighFreq) ? 88 : 95;
|
||||||
sample_config sc = { 0,0,1, divisor_used, 0};
|
sample_config sc = { 0,0,1, divisor_used, 0};
|
||||||
setSamplingConfig(&sc);
|
setSamplingConfig(&sc);
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ int usage_lf_find(void){
|
|||||||
|
|
||||||
/* send a LF command before reading */
|
/* send a LF command before reading */
|
||||||
int CmdLFCommandRead(const char *Cmd) {
|
int CmdLFCommandRead(const char *Cmd) {
|
||||||
// static char dummy[3] = {0x20,0x00,0x00};
|
|
||||||
bool errors = FALSE;
|
bool errors = FALSE;
|
||||||
bool useHighFreq = FALSE;
|
bool useHighFreq = FALSE;
|
||||||
uint16_t one = 0, zero = 0;
|
uint16_t one = 0, zero = 0;
|
||||||
@@ -136,7 +136,6 @@ int CmdLFCommandRead(const char *Cmd) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
return usage_lf_cmdread();
|
return usage_lf_cmdread();
|
||||||
case 'H':
|
case 'H':
|
||||||
//dummy[1]='h';
|
|
||||||
useHighFreq = TRUE;
|
useHighFreq = TRUE;
|
||||||
cmdp++;
|
cmdp++;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user