Enable compiler warnings, remove dead code, fix unused variable
This commit is contained in:
@@ -20,6 +20,8 @@ target_include_directories(picomap PRIVATE
|
|||||||
w6300
|
w6300
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_compile_options(picomap PRIVATE -Wall -Wextra -Wno-unused-parameter)
|
||||||
|
|
||||||
pico_generate_pio_header(picomap ${CMAKE_CURRENT_LIST_DIR}/w6300/pio.pio)
|
pico_generate_pio_header(picomap ${CMAKE_CURRENT_LIST_DIR}/w6300/pio.pio)
|
||||||
|
|
||||||
pico_enable_stdio_usb(picomap 1)
|
pico_enable_stdio_usb(picomap 1)
|
||||||
|
|||||||
@@ -434,7 +434,6 @@ public:
|
|||||||
result<parser> next() const {
|
result<parser> next() const {
|
||||||
auto hdr = header_byte();
|
auto hdr = header_byte();
|
||||||
if (!hdr) return std::unexpected(hdr.error());
|
if (!hdr) return std::unexpected(hdr.error());
|
||||||
uint8_t b = *hdr;
|
|
||||||
|
|
||||||
if (is_array()) {
|
if (is_array()) {
|
||||||
auto info = get_body_info(m_p, m_size);
|
auto info = get_body_info(m_p, m_size);
|
||||||
|
|||||||
@@ -664,12 +664,6 @@ void wiz_recv_ignore(uint8_t sn, uint16_t len) {
|
|||||||
setSn_RX_RD(sn, getSn_RX_RD(sn) + len);
|
setSn_RX_RD(sn, getSn_RX_RD(sn) + len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wiz_delay_ms(uint32_t milliseconds) {
|
|
||||||
for (uint32_t i = 0; i < milliseconds; i++) {
|
|
||||||
setTCNTRCLR(0xff);
|
|
||||||
while (getTCNTR() < 0x0a) {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void wiz_mdio_write(uint8_t phyregaddr, uint16_t var) {
|
void wiz_mdio_write(uint8_t phyregaddr, uint16_t var) {
|
||||||
setPHYRAR(phyregaddr);
|
setPHYRAR(phyregaddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user