Remove unused interrupt code: enable_interrupt_pin, CHECK markers, dead comments
This commit is contained in:
@@ -283,10 +283,7 @@ bool net_init() {
|
||||
|
||||
w6300::open_socket(raw_socket, w6300::protocol::macraw, w6300::port_num{0}, w6300::sock_flag::none);
|
||||
w6300::set_socket_io_mode(raw_socket, w6300::sock_io_mode::nonblock);
|
||||
// CHECK START
|
||||
w6300::set_socket_interrupt_mask(raw_socket, 0x04);
|
||||
w6300::set_interrupt_mask(w6300::ik_sock_0);
|
||||
// CHECK END
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ void pio_init() {
|
||||
gpio_put(pin, false);
|
||||
}
|
||||
gpio_init(PIN_CS);
|
||||
// CHECK START
|
||||
gpio_set_dir(PIN_CS, GPIO_OUT);
|
||||
gpio_put(PIN_CS, true);
|
||||
gpio_init(PIN_INT);
|
||||
@@ -79,7 +78,6 @@ void pio_init() {
|
||||
gpio_pull_up(PIN_INT);
|
||||
gpio_set_irq_enabled_with_callback(PIN_INT, GPIO_IRQ_EDGE_FALL, true,
|
||||
[](uint, uint32_t){});
|
||||
// CHECK END
|
||||
|
||||
pio_hw_t *pios[2] = {pio0, pio1};
|
||||
uint pio_index = 1;
|
||||
@@ -826,15 +824,9 @@ inline uint16_t get_sn_rx_wr(uint8_t sn) { return ((uint16_t)reg_read(REG_SN_RX_
|
||||
static critical_section_t g_cris_sec;
|
||||
|
||||
void cris_enter() {
|
||||
// CHECK START
|
||||
// critical_section_enter_blocking(&g_cris_sec);
|
||||
// CHECK END
|
||||
}
|
||||
|
||||
void cris_exit() {
|
||||
// CHECK START
|
||||
// critical_section_exit(&g_cris_sec);
|
||||
// CHECK END
|
||||
}
|
||||
|
||||
static uint8_t make_opcode(uint32_t addr, uint8_t rw) {
|
||||
@@ -1655,10 +1647,6 @@ void init_net(const net_info& info) {
|
||||
set_net_info(info);
|
||||
}
|
||||
|
||||
void enable_interrupt_pin() {
|
||||
chip_unlock();
|
||||
set_sycr1(get_sycr1() | SYCR1_IEN);
|
||||
}
|
||||
|
||||
std::expected<void, sock_error> set_socket_io_mode(socket_id sid, sock_io_mode mode) {
|
||||
uint8_t sn = static_cast<uint8_t>(sid);
|
||||
|
||||
@@ -195,7 +195,6 @@ int8_t init_buffers(std::span<const uint8_t> txsize, std::span<const uint8_t> rx
|
||||
void clear_interrupt(intr_kind intr);
|
||||
intr_kind get_interrupt();
|
||||
void set_interrupt_mask(intr_kind intr);
|
||||
void enable_interrupt_pin();
|
||||
intr_kind get_interrupt_mask();
|
||||
|
||||
int8_t get_phy_link();
|
||||
|
||||
Reference in New Issue
Block a user