From 83353dd93f2c24b87b9d22e3543e91420d758513 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 26 Apr 2020 22:03:05 +0700 Subject: add TODO for usbnet clean up --- src/class/net/net_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/class') diff --git a/src/class/net/net_device.c b/src/class/net/net_device.c index ad1d66fca..e3faa0187 100644 --- a/src/class/net/net_device.c +++ b/src/class/net/net_device.c @@ -89,7 +89,8 @@ static const struct ecm_notify_struct ecm_notify_csc = .uplink = 9728000, }; -CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN static union +// TODO remove CFG_TUSB_MEM_SECTION, control internal buffer is already in this special section +CFG_TUSB_MEM_SECTION TU_ATTR_ALIGNED(4) static union { uint8_t rndis_buf[120]; struct ecm_notify_struct ecm_buf; @@ -98,6 +99,7 @@ CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN static union //--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION //--------------------------------------------------------------------+ +// TODO remove CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_SECTION static netd_interface_t _netd_itf; static bool can_xmit; -- cgit v1.3.1 From d0487088ac094eaaff54c04241d8018ffc729b36 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 26 Apr 2020 23:04:17 +0700 Subject: revert a change to net driver --- src/class/net/net_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/class') diff --git a/src/class/net/net_device.c b/src/class/net/net_device.c index e3faa0187..fedd4db99 100644 --- a/src/class/net/net_device.c +++ b/src/class/net/net_device.c @@ -90,7 +90,7 @@ static const struct ecm_notify_struct ecm_notify_csc = }; // TODO remove CFG_TUSB_MEM_SECTION, control internal buffer is already in this special section -CFG_TUSB_MEM_SECTION TU_ATTR_ALIGNED(4) static union +CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN static union { uint8_t rndis_buf[120]; struct ecm_notify_struct ecm_buf; -- cgit v1.3.1