mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-16 04:43:28 +00:00
39424632bb
* Initial commit and pr for HackRF Pro (praline) arch-port to mayhem-firmware. Please see https://github.com/portapack-mayhem/mayhem-firmware/issues/2957. Added flash specifics for -DBOARD=PRALINE. This firmware only builds with toolchain v9.2.1 if hackrf codebase has -B arm in firmware/hackrf_usb/CMakeLists.txt. * Updated CMakeLists.txt per coordination with @HtoToo. For -DBOARD=PRALINE FLASH_MB_SIZE and FLASH_MB_LIMIT_SIZE are now 4. Removed praline specific variable for FLASH limits. * Updated chibios-portapack's board.cpp to support initialization of the HachRF-Pro (praline) FPGA. Added append_fpga_bitstream.py tool to ensure that praline_fgpa.bin bitstream can be appended to -DBOARD=PRALINE produced firmware. In order to ensure successful execution of append_fpga_bitstream.py to append the fpga bitstream we should expect that the bistsream will be located at 0x180000 in flash. This requires that FLASH_MB_LIMIT_SIZE must be 1.5, and FLASH_BYTES_LIMIT_SIZE must be 1535 * 1024. If we want to allow more or less space for the base firmware image sans the fpga bitstream the location of the bistream must be moved to a location other than 0x180000. * Updated location of praline_fpga.bin bitstream to 0x380000 to allow more room for firmware. Firmware now has 3.5MB, or 2MB more available than before as coordinated with @HTotoo. * Expanded #ifndef PRALINE to include og and r9 gpio and pin setup as coordinated with @HTotoo. * Added note for PRALINE FLASH_MB_LIMIT_SIZE and FLASH_BYTES_LIMIT_SIZE to explain why we are using the 3.5 and 3584 values respectively as coordinated with @HTotoo. * Next round of modifications derived heavily, if not entirely from work done by @banandana at https://github.com/Banandana/mayhem-firmware. This commit should power on the HackRF Pro (praline) display, power on the fpga, and enable gpio, and provide debug utilties. There is still a lot of work to be done to fully enable the new praline board with this build and firmware architectural porting effort. However, hackrf-one boards do not seem to be adversely impacted by the #ifdef PRALINE statements, and CMakeLists updates, as far as I have been able to test. * Ran format-code.sh. Updates for this commit are only due to formatting. Tested builds and they seem to work as exptected. * Addressed fixes in firmware/application and firmware/baseband. Stream now flows to capture and looking glass. Issues were related to thread management. Issues were originally addressed by @banandana. * Ran format-code.sh to allow for consistency with autoamted clang checks. * Update hackrf ref repo to mayhem-portapack-hackrf next from https://github.com/portapack-mayhem/hackrf * Addressed format edits necessary to pass clang-format check. * Starting addressing Si5351 Clocks for radio sampling. These updates correctly set the Si5351 clock at start up. There appears to be an issue during runtime when testing with RX Test Init, Capture and Looking glass. * Updated clock_manager.cpp to restore correct function introduced by @banandana when testing with Rx Test Init. * Switched to using decimation for setting the sample rate without changing the Si5351 clock. This assumes that for the praline board Si5351 CLK0 runs at fixed 8 MHz (constant) and the FPGA decimates to get the desired sample rate. For example, for a 1 MHz sample rate -> Si5351 outputs 8 MHz, FPGA decimates by 8. There is still more work needed here, and potential verification that this is the correct way to operate with this new archteitecture. * After deliberating on hackrf_usb hackrf_core.c and radio.c, and reviewing firmware/application/hw/si5351.cpp the original approach of using the aproach detailed in hackrf_core.c sample_rate_frac_set() lines 580-582, via the implementation in firmware/application/hw/si5351.cpp seems like the best place to continue testing efforts. * Tested at ~2.4GHz (2.3 - 2.5) with lookgin glass and was able to receive signals. Added a Signal Path debug app to test gains, and readio mode (receive/transmit). * Added two debug apps for the RFFC507x. Status View and Tuning View. This helped debug some of the potential issues with tuning. * update submodule * format code * Small touch up merging latest next and ensuring build for HackRF One. * Reverted edits to re: firmware/baseband/sd_over_usb/scsi.c and firmware/application/portapack.cpp. Source now builds, had to pull latest hackrf submodule. * Skipped detect hardware for praline board to avoid backscreen in HackRF Pro praline board. --------- Co-authored-by: gullradriel <gullradriel@users.noreply.github.com>
442 lines
13 KiB
C++
442 lines
13 KiB
C++
/*
|
|
* Copyright (C) 2025 Great Scott Gadgets
|
|
*
|
|
* This file is part of PortaPack.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
/*
|
|
* MAX2831 driver ported from GSG HackRF reference implementation (max2831.c).
|
|
* Adapted to work with Mayhem's MAX283x abstraction layer.
|
|
*/
|
|
|
|
#ifdef PRALINE
|
|
|
|
#include "max2831.hpp"
|
|
|
|
#include "hackrf_hal.hpp"
|
|
#include "hackrf_gpio.hpp"
|
|
using namespace hackrf::one;
|
|
|
|
#include "ch.h"
|
|
#include "hal.h"
|
|
|
|
#include <algorithm>
|
|
#include <cstring>
|
|
|
|
namespace max2831 {
|
|
|
|
using namespace max283x;
|
|
|
|
/*
|
|
* MAX2831 uses 9-bit SPI transfers.
|
|
* An 18-bit word is sent as two 9-bit transfers:
|
|
* Word format: [VALUE:14][REG:4]
|
|
* First transfer: bits 17:9 (high 9 bits)
|
|
* Second transfer: bits 8:0 (low 9 bits)
|
|
*
|
|
* This matches the GSG reference implementation exactly.
|
|
*/
|
|
void MAX2831::write_reg(const uint8_t reg, const uint16_t value) {
|
|
uint32_t word = (((uint32_t)value & 0x3fff) << 4) | (reg & 0xf);
|
|
uint16_t values[2] = {
|
|
static_cast<uint16_t>(word >> 9),
|
|
static_cast<uint16_t>(word & 0x1ff)};
|
|
_target.transfer(values, 2);
|
|
}
|
|
|
|
void MAX2831::set_reg_field(const uint8_t reg, const uint16_t mask, const uint16_t value) {
|
|
_regs[reg] = (_regs[reg] & ~mask) | (value & mask);
|
|
mark_dirty(reg);
|
|
}
|
|
|
|
uint16_t MAX2831::get_reg_field(const uint8_t reg, const uint16_t mask, const uint8_t shift) {
|
|
return (_regs[reg] & mask) >> shift;
|
|
}
|
|
|
|
void MAX2831::mark_dirty(const uint8_t reg) {
|
|
_regs_dirty |= (1 << reg);
|
|
}
|
|
|
|
void MAX2831::mark_clean(const uint8_t reg) {
|
|
_regs_dirty &= ~(1 << reg);
|
|
}
|
|
|
|
void MAX2831::flush_reg(const uint8_t reg) {
|
|
write_reg(reg, _regs[reg]);
|
|
mark_clean(reg);
|
|
}
|
|
|
|
void MAX2831::flush_dirty() {
|
|
for (size_t r = 0; r < reg_count; r++) {
|
|
if ((_regs_dirty >> r) & 0x1) {
|
|
flush_reg(r);
|
|
}
|
|
}
|
|
}
|
|
|
|
void MAX2831::init() {
|
|
set_mode(Mode::Shutdown);
|
|
|
|
/* Configure GPIO pins for MAX2831 control */
|
|
gpio_max283x_enable.output();
|
|
gpio_max2831_rx_enable.output();
|
|
gpio_max2831_rxhp.output();
|
|
gpio_max2831_rxhp.write(0); /* RXHP low = 100 Hz HPF (default) */
|
|
|
|
/* Reset to default register values */
|
|
std::memcpy(_regs.data(), default_regs.data(), sizeof(_regs));
|
|
_regs_dirty = 0xFFFF;
|
|
|
|
/* Write default register values to chip */
|
|
flush_dirty();
|
|
|
|
/* Use SPI control instead of B1-B7 pins for gain settings.
|
|
* This matches the GSG reference: max2831_setup() */
|
|
set_reg_field(8, REG8_RXVGA_GAIN_SPI_EN, REG8_RXVGA_GAIN_SPI_EN);
|
|
set_reg_field(9, REG9_TXVGA_GAIN_SPI_EN, REG9_TXVGA_GAIN_SPI_EN);
|
|
|
|
/* Set initial gains - matches GSG reference */
|
|
set_reg_field(12, REG12_TXVGA_GAIN_MASK, 0x00); /* Minimum TX gain */
|
|
set_reg_field(7, REG7_RX_HPF_SEL_MASK, REG7_RX_HPF_30KHZ);
|
|
set_reg_field(11, REG11_LNA_GAIN_MASK, REG11_LNA_GAIN_MAX);
|
|
set_reg_field(11, REG11_RXVGA_GAIN_MASK, 0x18); // Moderate RX VGA gain
|
|
|
|
/* FORCE MAXIMUM GAIN FOR TESTING */
|
|
// set_reg_field(11, REG11_RXVGA_GAIN_MASK, 0x1F); // 62 dB VGA = MAX
|
|
|
|
/* Configure baseband filter for 8 MHz TX - matches GSG reference */
|
|
set_reg_field(8, REG8_LPF_COARSE_MASK, REG8_RX_LPF_7_5M);
|
|
set_reg_field(7, REG7_RX_LPF_FINE_MASK, REG7_RX_LPF_FINE_100);
|
|
set_reg_field(7, REG7_TX_LPF_FINE_MASK, REG7_TX_LPF_FINE_100);
|
|
|
|
/* Disable clock output */
|
|
set_reg_field(14, REG14_CLKOUT_PIN_EN, 0);
|
|
|
|
/* Write all modified registers */
|
|
flush_dirty();
|
|
|
|
set_mode(Mode::Standby);
|
|
}
|
|
|
|
void MAX2831::set_mode(const Mode mode) {
|
|
_mode = mode;
|
|
|
|
/*
|
|
* MAX2831 mode control via ENABLE and RXTX pins.
|
|
* From GSG hackrf max2831_target.c:
|
|
*
|
|
* Shutdown: ENABLE=0, RXTX=0
|
|
* Standby: ENABLE=0, RXTX=1 (PLL/VCO/LO on, ready for quick TX/RX)
|
|
* RX: ENABLE=1, RXTX=0
|
|
* TX: ENABLE=1, RXTX=1
|
|
*
|
|
* Note: gpio_max2831_rx_enable is the RXTX mode select pin.
|
|
* RXTX=0 selects RX, RXTX=1 selects TX.
|
|
*/
|
|
|
|
/* Handle calibration mode bits if needed */
|
|
bool tx_cal = (mode == Mode::Tx_Calibration);
|
|
bool rx_cal = (mode == Mode::Rx_Calibration);
|
|
|
|
uint16_t current_tx_cal = get_reg_field(6, REG6_TX_CAL_MODE_EN, REG6_TX_CAL_MODE_EN_SHIFT);
|
|
uint16_t current_rx_cal = get_reg_field(6, REG6_RX_CAL_MODE_EN, REG6_RX_CAL_MODE_EN_SHIFT);
|
|
|
|
if (current_tx_cal != (tx_cal ? 1 : 0)) {
|
|
set_reg_field(6, REG6_TX_CAL_MODE_EN, tx_cal ? REG6_TX_CAL_MODE_EN : 0);
|
|
flush_dirty();
|
|
}
|
|
if (current_rx_cal != (rx_cal ? 1 : 0)) {
|
|
set_reg_field(6, REG6_RX_CAL_MODE_EN, rx_cal ? REG6_RX_CAL_MODE_EN : 0);
|
|
flush_dirty();
|
|
}
|
|
|
|
switch (mode) {
|
|
default:
|
|
case Mode::Shutdown:
|
|
gpio_max2831_rx_enable.write(0); /* RXTX=0 */
|
|
gpio_max283x_enable.write(0); /* ENABLE=0 */
|
|
break;
|
|
case Mode::Standby:
|
|
gpio_max2831_rx_enable.write(1); /* RXTX=1 */
|
|
gpio_max283x_enable.write(0); /* ENABLE=0 */
|
|
break;
|
|
case Mode::Transmit:
|
|
case Mode::Tx_Calibration:
|
|
gpio_max2831_rx_enable.write(1); /* RXTX=1 for TX */
|
|
gpio_max283x_enable.write(1); /* ENABLE=1 */
|
|
break;
|
|
case Mode::Receive:
|
|
case Mode::Rx_Calibration:
|
|
gpio_max2831_rx_enable.write(0); /* RXTX=0 for RX */
|
|
gpio_max283x_enable.write(1); /* ENABLE=1 */
|
|
break;
|
|
}
|
|
|
|
/* Update LPF bandwidth for current mode */
|
|
if (_desired_lpf_bw > 0) {
|
|
set_lpf_bandwidth_internal(_desired_lpf_bw);
|
|
}
|
|
}
|
|
|
|
void MAX2831::set_tx_vga_gain(const int_fast8_t db) {
|
|
/* TX VGA gain: 0-31 dB in ~1 dB steps
|
|
* Register value: gain * 2 | 1, max 0x3F
|
|
* This matches GSG reference: max2831_set_txvga_gain() */
|
|
int_fast8_t db_clipped = std::max(0, std::min(31, (int)db));
|
|
uint16_t value = std::min((db_clipped << 1) | 1, 0x3f);
|
|
set_reg_field(12, REG12_TXVGA_GAIN_MASK, value);
|
|
flush_reg(12);
|
|
}
|
|
|
|
void MAX2831::set_lna_gain(const int_fast8_t db) {
|
|
/*
|
|
* LNA gain has 3 settings (from GSG reference):
|
|
* MAX (33 dB), -16 dB from max (17 dB), -33 dB from max (0 dB)
|
|
* Map from MAX2837 8 dB steps for compatibility
|
|
*/
|
|
uint16_t gain_val;
|
|
if (db >= 32) {
|
|
gain_val = REG11_LNA_GAIN_MAX;
|
|
} else if (db >= 16) {
|
|
gain_val = REG11_LNA_GAIN_M16;
|
|
} else {
|
|
gain_val = REG11_LNA_GAIN_M33;
|
|
}
|
|
set_reg_field(11, REG11_LNA_GAIN_MASK, gain_val);
|
|
flush_reg(11);
|
|
}
|
|
|
|
void MAX2831::set_vga_gain(const int_fast8_t db) {
|
|
/* VGA gain: 0-62 dB in 2 dB steps
|
|
* This matches GSG reference: max2831_set_vga_gain() */
|
|
if ((db & 0x1) || db > 62) {
|
|
return; /* Invalid: must be even and <= 62 */
|
|
}
|
|
int_fast8_t db_clipped = std::max(0, std::min(62, (int)db));
|
|
uint16_t value = (db_clipped >> 1) & 0x1f;
|
|
set_reg_field(11, REG11_RXVGA_GAIN_MASK, value);
|
|
flush_reg(11);
|
|
}
|
|
|
|
/*
|
|
* LPF bandwidth tables from GSG reference max2831.c
|
|
*/
|
|
struct lpf_ft_t {
|
|
uint32_t bandwidth_hz;
|
|
uint8_t ft;
|
|
};
|
|
|
|
struct lpf_ft_fine_t {
|
|
uint8_t percent;
|
|
uint8_t ft_fine;
|
|
};
|
|
|
|
/* Measured -0.5 dB complex baseband bandwidth for each register setting */
|
|
static constexpr lpf_ft_t rx_lpf_ft[] = {
|
|
{11600000, REG8_RX_LPF_7_5M},
|
|
{15100000, REG8_RX_LPF_8_5M},
|
|
{22600000, REG8_RX_LPF_15M},
|
|
{28300000, REG8_RX_LPF_18M},
|
|
{0, 0},
|
|
};
|
|
|
|
static constexpr lpf_ft_fine_t rx_lpf_ft_fine[] = {
|
|
{90, REG7_RX_LPF_FINE_90},
|
|
{95, REG7_RX_LPF_FINE_95},
|
|
{100, REG7_RX_LPF_FINE_100},
|
|
{105, REG7_RX_LPF_FINE_105},
|
|
{110, REG7_RX_LPF_FINE_110},
|
|
{0, 0},
|
|
};
|
|
|
|
static constexpr lpf_ft_t tx_lpf_ft[] = {
|
|
{11900000, REG8_TX_LPF_8M},
|
|
{15800000, REG8_TX_LPF_11M},
|
|
{23600000, REG8_TX_LPF_16_5M},
|
|
{31300000, REG8_TX_LPF_22_5M},
|
|
{0, 0},
|
|
};
|
|
|
|
static constexpr lpf_ft_fine_t tx_lpf_ft_fine[] = {
|
|
{90, REG7_TX_LPF_FINE_90},
|
|
{95, REG7_TX_LPF_FINE_95},
|
|
{100, REG7_TX_LPF_FINE_100},
|
|
{105, REG7_TX_LPF_FINE_105},
|
|
{110, REG7_TX_LPF_FINE_110},
|
|
{115, REG7_TX_LPF_FINE_115},
|
|
{0, 0},
|
|
};
|
|
|
|
uint32_t MAX2831::set_lpf_bandwidth_internal(const uint32_t bandwidth_hz) {
|
|
const lpf_ft_t* coarse;
|
|
const lpf_ft_fine_t* fine;
|
|
|
|
if (_mode == Mode::Receive || _mode == Mode::Rx_Calibration) {
|
|
coarse = rx_lpf_ft;
|
|
fine = rx_lpf_ft_fine;
|
|
} else {
|
|
coarse = tx_lpf_ft;
|
|
fine = tx_lpf_ft_fine;
|
|
}
|
|
|
|
/* Find coarse and fine settings for LPF - matches GSG reference */
|
|
bool found = false;
|
|
const lpf_ft_fine_t* f = fine;
|
|
for (; coarse->bandwidth_hz != 0; coarse++) {
|
|
uint32_t coarse_aux = coarse->bandwidth_hz / 100;
|
|
for (f = fine; f->percent != 0; f++) {
|
|
if ((coarse_aux * f->percent) >= bandwidth_hz) {
|
|
found = true;
|
|
break;
|
|
}
|
|
}
|
|
if (found) break;
|
|
}
|
|
|
|
/* Use the widest setting if a wider bandwidth than our maximum is requested */
|
|
if (!found) {
|
|
coarse--;
|
|
f--;
|
|
}
|
|
|
|
/* Program found settings */
|
|
set_reg_field(8, REG8_LPF_COARSE_MASK, coarse->ft);
|
|
if (_mode == Mode::Receive || _mode == Mode::Rx_Calibration) {
|
|
set_reg_field(7, REG7_RX_LPF_FINE_MASK, f->ft_fine);
|
|
} else {
|
|
/* TX fine values are already shifted in the constants (REG7_TX_LPF_FINE_*) */
|
|
set_reg_field(7, REG7_TX_LPF_FINE_MASK, f->ft_fine);
|
|
}
|
|
flush_dirty();
|
|
|
|
return coarse->bandwidth_hz * f->percent / 100;
|
|
}
|
|
|
|
void MAX2831::set_lpf_rf_bandwidth_rx(const uint32_t bandwidth_minimum) {
|
|
_desired_lpf_bw = bandwidth_minimum;
|
|
if (_mode == Mode::Receive || _mode == Mode::Rx_Calibration) {
|
|
set_lpf_bandwidth_internal(bandwidth_minimum);
|
|
}
|
|
}
|
|
|
|
void MAX2831::set_lpf_rf_bandwidth_tx(const uint32_t bandwidth_minimum) {
|
|
_desired_lpf_bw = bandwidth_minimum;
|
|
if (_mode == Mode::Transmit || _mode == Mode::Tx_Calibration) {
|
|
set_lpf_bandwidth_internal(bandwidth_minimum);
|
|
}
|
|
}
|
|
|
|
bool MAX2831::set_frequency(const rf::Frequency lo_frequency) {
|
|
/*
|
|
* MAX2831 frequency synthesis from GSG reference max2831_set_frequency():
|
|
* F_LO = F_REF * (N + F/2^20) / R
|
|
* Where:
|
|
* F_REF = 40 MHz reference
|
|
* R = reference divider (1 or 2), we use R=2
|
|
* N = integer divider (8 bits)
|
|
* F = fractional divider (20 bits)
|
|
*
|
|
* Using R=2: F_LO = 40M * (N + F/2^20) / 2 = 20M * (N + F/2^20)
|
|
*/
|
|
|
|
/* MAX2831 supports 2.3-2.6 GHz */
|
|
if (lo_frequency < 2300000000ULL || lo_frequency > 2600000000ULL) {
|
|
return false;
|
|
}
|
|
|
|
/* From GSG reference: ASSUME 40MHz PLL. Ratio = F*R/40,000,000.
|
|
* TODO: fixed to R=2. Check if it's worth exploring R=1. */
|
|
uint32_t freq = lo_frequency;
|
|
freq += (20000000 >> 21); /* Round to nearest frequency */
|
|
uint32_t div_int = freq / 20000000;
|
|
uint32_t div_rem = freq % 20000000;
|
|
uint32_t div_frac = 0;
|
|
uint32_t div_cmp = 20000000;
|
|
|
|
for (int i = 0; i < 20; i++) {
|
|
div_frac <<= 1;
|
|
div_rem <<= 1;
|
|
if (div_rem >= div_cmp) {
|
|
div_frac |= 0x1;
|
|
div_rem -= div_cmp;
|
|
}
|
|
}
|
|
|
|
/* Write order matters - matches GSG reference */
|
|
/* REG 3: SYN_INT (bits 7:0) and SYN_FRAC_LO (bits 13:8) */
|
|
uint16_t reg3_val = (div_int & 0xFF) | ((div_frac & 0x3F) << 8);
|
|
_regs[3] = reg3_val;
|
|
mark_dirty(3);
|
|
|
|
/* REG 4: SYN_FRAC_HI (bits 13:0) - upper 14 bits of 20-bit fractional */
|
|
uint16_t reg4_val = (div_frac >> 6) & 0x3FFF;
|
|
_regs[4] = reg4_val;
|
|
mark_dirty(4);
|
|
|
|
flush_dirty();
|
|
|
|
return true;
|
|
}
|
|
|
|
void MAX2831::set_rx_LO_iq_phase_calibration(const size_t v) {
|
|
/* MAX2831 doesn't have the same IQ calibration as MAX2837 */
|
|
(void)v;
|
|
}
|
|
|
|
void MAX2831::set_tx_LO_iq_phase_calibration(const size_t v) {
|
|
/* MAX2831 doesn't have the same IQ calibration as MAX2837 */
|
|
(void)v;
|
|
}
|
|
|
|
void MAX2831::set_rx_buff_vcm(const size_t v) {
|
|
/* MAX2831 RX IQ common mode voltage is in register 15
|
|
* Values: 0=1.1V, 1=1.2V, 2=1.3V, 3=1.45V */
|
|
uint16_t vcm = std::min(v, (size_t)3) << REG15_RXIQ_VCM_SHIFT;
|
|
set_reg_field(15, REG15_RXIQ_VCM_MASK, vcm);
|
|
flush_reg(15);
|
|
}
|
|
|
|
int8_t MAX2831::temp_sense() {
|
|
/* MAX2831 temperature sensor can be read via RSSI MUX.
|
|
* This would require:
|
|
* 1. Switch RSSI_MUX to temperature mode
|
|
* 2. Read the ADC
|
|
* 3. Switch back to RSSI mode
|
|
* For now, return a placeholder value. */
|
|
return 25; /* Room temperature placeholder */
|
|
}
|
|
|
|
reg_t MAX2831::read(const address_t reg_num) {
|
|
/* MAX2831 doesn't support SPI read, return cached value */
|
|
if (reg_num < reg_count) {
|
|
return _regs[reg_num];
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
void MAX2831::write(const address_t reg_num, const reg_t value) {
|
|
if (reg_num < reg_count) {
|
|
_regs[reg_num] = value & 0x3FFF; /* 14-bit registers */
|
|
write_reg(reg_num, _regs[reg_num]);
|
|
mark_clean(reg_num);
|
|
}
|
|
}
|
|
|
|
} // namespace max2831
|
|
#endif
|