Move SI5351 driver stuff into it's own header

This commit is contained in:
Reed Nightingale 2020-04-25 14:31:59 -07:00
parent fdd2afce98
commit 2db9899d4d
6 changed files with 8 additions and 6 deletions

View File

@ -8,6 +8,7 @@
#include "scratch_space.h"
#include "setup.h"
#include "settings.h"
#include "si5351.h"
#include "tuner.h"
#include "utils.h"

5
si5351.h Normal file
View File

@ -0,0 +1,5 @@
#pragma once
void initOscillators();
void si5351bx_setfreq(uint8_t clknum, uint32_t fout);
void si5351_set_calibration(int32_t cal); //calibration is a small value that is nudged to make up for the inaccuracies of the reference 25 MHz crystal frequency

View File

@ -4,6 +4,7 @@
#include "nano_gui.h"
#include "pin_definitions.h"
#include "si5351.h"
static const uint32_t THRESHOLD_USB_LSB = 10000000L;

View File

@ -2,7 +2,6 @@
#include "settings.h"
/* these are functions implemented in the main file named as ubitx_xxx.ino */
void saveVFOs();
void setFrequency(const unsigned long freq, const bool transmit = false);
void startTx(TuningMode_e tx_mode);
@ -13,9 +12,4 @@ void checkCAT();
void cwKeyer(void);
void switchVFO(Vfo_e vfoSelect);
/* these are functiosn implemented in ubitx_si5351.cpp */
void si5351bx_setfreq(uint8_t clknum, uint32_t fout);
void initOscillators();
void si5351_set_calibration(int32_t cal); //calibration is a small value that is nudged to make up for the inaccuracies of the reference 25 MHz crystal frequency
bool autoSelectSidebandChanged(const uint32_t old_frequency); //if the current frequency defaults to a different sideband mode, updates to that sideband mode and returns true. Else, returns false

View File

@ -39,6 +39,7 @@
#include "nano_gui.h"
#include "settings.h"
#include "setup.h"
#include "si5351.h"
#include "touch.h"
#include "tuner.h"
#include "ui_touch.h"