C++-ize W6300 driver: remove vtable indirection, constexpr pins, pragma once

This commit is contained in:
Ian Gulliver
2026-04-04 16:22:37 +09:00
parent dec8d0c68d
commit 92e00476da
16 changed files with 967 additions and 1655 deletions

View File

@@ -1,9 +1,4 @@
#ifndef _SOCKET_H_
#define _SOCKET_H_
#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#include "wizchip_conf.h"
#define SOCKET uint8_t
@@ -123,8 +118,3 @@ int32_t recvfrom_W6x00(uint8_t sn, uint8_t * buf, uint16_t len, uint8_t * addr,
#define sendto(sn, buf, len, addr, port, addrlen) sendto_W6x00(sn, buf, len, addr, port, addrlen)
#define recvfrom(sn, buf, len, addr, port, addrlen) recvfrom_W6x00(sn, buf, len, addr, port, addrlen)
#ifdef __cplusplus
}
#endif
#endif