mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-02-21 06:57:27 -05:00
Move SI5351 driver stuff into it's own header
This commit is contained in:
parent
fdd2afce98
commit
2db9899d4d
@ -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
5
si5351.h
Normal 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
|
@ -4,6 +4,7 @@
|
||||
|
||||
#include "nano_gui.h"
|
||||
#include "pin_definitions.h"
|
||||
#include "si5351.h"
|
||||
|
||||
static const uint32_t THRESHOLD_USB_LSB = 10000000L;
|
||||
|
||||
|
6
tuner.h
6
tuner.h
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user