Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

NAP: Remove nap_acq_init_wr_disable_blocking(), which is irrelevant (and confusing) with the FFT acquisition engine #578

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/board/nap/acq_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,6 @@ void nap_acq_init_wr_params_blocking(s16 carrier_freq)
nap_xfer_blocking(NAP_REG_ACQ_INIT, sizeof(temp), 0, temp);
}

/** Disable NAP acquisition channel.
* Write to the acquisition channel's INIT register to disable the correlations
* (clears enable bit). This must be written once to pipeline disable the
* correlations, and then a second time to clear the ACQ_DONE IRQ after the
* last correlation has finished.
*/
void nap_acq_init_wr_disable_blocking()
{
u8 temp[4] = { 0, 0, 0, 0 };

nap_xfer_blocking(NAP_REG_ACQ_INIT, 4, 0, temp);
}

/** Unpack correlations read from acquisition channel.
*
* \param packed Array of u8 data read from NAP acq channel CORR register.
Expand Down
1 change: 0 additions & 1 deletion src/board/nap/acq_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ extern u8 nap_acq_downsample_stages;
void nap_acq_load_wr_enable_blocking(void);
void nap_acq_load_wr_disable_blocking(void);
void nap_acq_init_wr_params_blocking(s16 carrier_freq);
void nap_acq_init_wr_disable_blocking(void);
void nap_acq_corr_rd_blocking(u16 *index, u16 *max, float *ave);
void nap_acq_code_wr_blocking(u8 prn);

Expand Down