Skip to content

Commit

Permalink
DVM-V1 Rev C Updates (#4)
Browse files Browse the repository at this point in the history
* initial changes for rev C

* more work on digipots, fixed clock freq

* init SPI the right way

* SPI working now? The STD Peripheral Library sucks

* removed SPI debug prints

---------

Co-authored-by: W3AXL <29879554+W3AXL@users.noreply.github.com>
  • Loading branch information
W3AXL and W3AXL committed Jan 7, 2024
1 parent c9e9f41 commit 4393f07
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 604 deletions.
95 changes: 0 additions & 95 deletions DWT_delay.cpp

This file was deleted.

46 changes: 0 additions & 46 deletions DWT_delay.h

This file was deleted.

7 changes: 7 additions & 0 deletions Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,21 @@ typedef unsigned long long ulong64_t;
// Frequencies such as 10.0 Mhz (48000 * 208.333) or 20 Mhz (48000 * 416.666) are not suitable.
//
// For 12 MHz
#ifndef EXTERNAL_OSC
#define EXTERNAL_OSC 12000000
#endif
// For 12.288 MHz
// #define EXTERNAL_OSC 12288000
// For 14.4 MHz
// #define EXTERNAL_OSC 14400000
// For 19.2 MHz
// #define EXTERNAL_OSC 19200000

// Sanity check to make sure EXTERNAL_OSC is a valid integer multiple of 48kHz
#if (EXTERNAL_OSC % 48000 != 0)
#error "Invalid EXTERNAL_OSC specified! Must be an integer multiple of 48000"
#endif

// Pass RSSI information to the host
// #define SEND_RSSI_DATA

Expand Down
94 changes: 0 additions & 94 deletions Digipot.cpp

This file was deleted.

87 changes: 0 additions & 87 deletions Digipot.h

This file was deleted.

8 changes: 0 additions & 8 deletions FirmwareMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,13 @@ CWIdTX cwIdTX;
SerialPort serial;
IO io;

#if defined(DIGIPOT_ENABLED)
/** Digipot */
Digipot digipot;
#endif

// ---------------------------------------------------------------------------
// Global Functions
// ---------------------------------------------------------------------------

void setup()
{
serial.start();
#if defined(DIGIPOT_ENABLED)
digipot.initialize();
#endif
}

void loop()
Expand Down
6 changes: 0 additions & 6 deletions Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include "nxdn/CalNXDN.h"
#include "CalRSSI.h"
#include "CWIdTX.h"
#include "Digipot.h"
#include "IO.h"

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -128,9 +127,4 @@ extern CalRSSI calRSSI;
/** CW */
extern CWIdTX cwIdTX;

#if defined(DIGIPOT_ENABLED)
/** Digipot */
extern Digipot digipot;
#endif

#endif // __GLOBALS_H__
Loading

0 comments on commit 4393f07

Please sign in to comment.