kopia lustrzana https://github.com/F5OEO/WsprryPi
calibration of PLL clock
rodzic
07cd990522
commit
ba34a8fae5
BIN
wspr
BIN
wspr
Plik binarny nie jest wyświetlany.
5
wspr.c
5
wspr.c
|
@ -105,7 +105,7 @@ void go_wspr(void); // start WSPR beacon mode
|
||||||
void go_wspr_tx(void); // set cube in wspr tx mode
|
void go_wspr_tx(void); // set cube in wspr tx mode
|
||||||
|
|
||||||
#define CAL_PWM_CLK (31500000 * 1.078431372549019607843137254902) // calibrated PWM clock
|
#define CAL_PWM_CLK (31500000 * 1.078431372549019607843137254902) // calibrated PWM clock
|
||||||
#define CAL_PLL_CLK (500000000.0 * 0.99994290179416484635001314707972) // calibrated PLL reference clock
|
#define CAL_PLL_CLK (500000000.0 * 0.99993565799251550864072437977875) // calibrated PLL reference clock
|
||||||
|
|
||||||
#define WSPR_SYMTIME (8192.0/12000.0) // symbol time
|
#define WSPR_SYMTIME (8192.0/12000.0) // symbol time
|
||||||
#define WSPR_OFFSET (1.0/WSPR_SYMTIME) // tone separation
|
#define WSPR_OFFSET (1.0/WSPR_SYMTIME) // tone separation
|
||||||
|
@ -289,11 +289,10 @@ void unSetupDMA(){
|
||||||
printf("exiting\n");
|
printf("exiting\n");
|
||||||
struct DMAregs* DMA0 = (struct DMAregs*)&(ACCESS(DMABASE));
|
struct DMAregs* DMA0 = (struct DMAregs*)&(ACCESS(DMABASE));
|
||||||
DMA0->CS =1<<31; // reset dma controller
|
DMA0->CS =1<<31; // reset dma controller
|
||||||
|
txoff();
|
||||||
}
|
}
|
||||||
|
|
||||||
void handSig() {
|
void handSig() {
|
||||||
txoff();
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
void setupDMATab( float centerFreq, double symOffset ){
|
void setupDMATab( float centerFreq, double symOffset ){
|
||||||
|
|
Ładowanie…
Reference in New Issue