Remove unused iodata_t, PIO_OFFSET_WRITE_BITS, trim intr_kind, move sock_count to cpp

This commit is contained in:
Ian Gulliver
2026-04-10 21:51:58 +09:00
parent c961499239
commit 8edf8c2d4f
2 changed files with 4 additions and 12 deletions

View File

@@ -8,12 +8,14 @@
#include "qspi.pio.h"
namespace w6300 {
constexpr int sock_count = 8;
namespace {
#define PIO_PROGRAM_NAME qspi
#define PIO_PROGRAM_FUNC __CONCAT(PIO_PROGRAM_NAME, _program)
#define PIO_PROGRAM_GET_DEFAULT_CONFIG_FUNC __CONCAT(PIO_PROGRAM_NAME, _program_get_default_config)
#define PIO_OFFSET_WRITE_BITS __CONCAT(PIO_PROGRAM_NAME, _offset_write_bits)
#define PIO_OFFSET_WRITE_BITS_END __CONCAT(PIO_PROGRAM_NAME, _offset_write_bits_end)
#define PIO_OFFSET_READ_BITS_END __CONCAT(PIO_PROGRAM_NAME, _offset_read_bits_end)
@@ -225,7 +227,6 @@ void pio_write(uint8_t opcode, uint16_t addr, uint8_t* buf, uint16_t len) {
pio_sm_set_enabled(state.pio, state.pio_sm, false);
}
using iodata_t = uint8_t;
using datasize_t = int16_t;