From 85fec904a6b127e387e6aacf9e5ced8a65a92dc2 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 5 Feb 2017 21:23:00 -0300 Subject: [PATCH] Small changes --- ADF7021.cpp | 8 ++++---- ADF7021.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ADF7021.cpp b/ADF7021.cpp index eb24eca..67ad1ac 100644 --- a/ADF7021.cpp +++ b/ADF7021.cpp @@ -65,10 +65,10 @@ void Send_REG0_RX() divider = (divider - N_divider) * 32768; F_divider = floor(divider + 0.5); - ADF7021_RX_REG0 = (uint32_t)0b0000; - ADF7021_RX_REG0 |= (uint32_t)0b01011 << 27; // mux regulator/uart enabled/receive - ADF7021_RX_REG0 |= (uint32_t)N_divider << 19; // frequency; - ADF7021_RX_REG0 |= (uint32_t)F_divider << 4; // frequency; + ADF7021_RX_REG0 = (uint32_t) 0b0000; + ADF7021_RX_REG0 |= (uint32_t) 0b01011 << 27; // mux regulator/uart enabled/receive + ADF7021_RX_REG0 |= (uint32_t) N_divider << 19; // frequency; + ADF7021_RX_REG0 |= (uint32_t) F_divider << 4; // frequency; AD7021_control_byte = ADF7021_RX_REG0; Send_AD7021_control(); diff --git a/ADF7021.h b/ADF7021.h index 975ddc5..023cb12 100644 --- a/ADF7021.h +++ b/ADF7021.h @@ -78,7 +78,7 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf #define ADF7021_REG10 0x3296472A // Slicer threshold for 4FSK demodulator (REG 13) -#define ADF7021_SLICER_TH_DSTAR 00U +#define ADF7021_SLICER_TH_DSTAR 0U #define ADF7021_SLICER_TH_DMR 51U #define ADF7021_SLICER_TH_YSF 59U #define ADF7021_SLICER_TH_P25 45U @@ -109,7 +109,7 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf #define ADF7021_DISC_BW_P25 397U // K=32 // Post demodulator bandwith (REG 04) -#define ADF7021_POST_BW_DSTAR 09U +#define ADF7021_POST_BW_DSTAR 9U #define ADF7021_POST_BW_DMR 65U #define ADF7021_POST_BW_YSF 65U #define ADF7021_POST_BW_P25 65U @@ -124,7 +124,7 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf #define ADF7021_REG10 0x3296354A // Slicer threshold for 4FSK demodulator (REG 13) -#define ADF7021_SLICER_TH_DSTAR 00U +#define ADF7021_SLICER_TH_DSTAR 0U #define ADF7021_SLICER_TH_DMR 51U #define ADF7021_SLICER_TH_YSF 59U #define ADF7021_SLICER_TH_P25 45U