feat: autohold, persistent config (ext flash), a little cleanup? maybe

This commit is contained in:
2025-12-04 02:18:47 +06:00
parent 054bc38683
commit 9fed882f50
9 changed files with 1376 additions and 720 deletions

View File

@@ -3,8 +3,6 @@
#include "ch32fun.h"
// #define GPIB_DEBUG 1
// Control Lines (Active LOW)
#define PIN_EOI PB3
#define PIN_REN PB11
@@ -147,6 +145,7 @@
#define HP3478A_CMD_MASK_BTN_DATA "M21"
// "M00" -> Clear Mask (Disable SRQ)
#define HP3478A_CMD_MASK_CLEAR "M00"
#define HP3478A_CMD_MASK_BTN_SYNERR "M24"
#define GPIB_ASSERT(pin) funDigitalWrite(pin, 0)
#define GPIB_RELEASE(pin) funDigitalWrite(pin, 1)