summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-26 22:03:05 +0700
committerhathach <[email protected]>2020-04-26 22:03:05 +0700
commit83353dd93f2c24b87b9d22e3543e91420d758513 (patch)
tree7f3780828df8746320af8eed599f36ded46b1fa8 /src/class
parenta1c599f4b6a05aefb948aaacf9a0984f577252bb (diff)
add TODO for usbnet clean up
Diffstat (limited to 'src/class')
-rw-r--r--src/class/net/net_device.c4
1 files changed, 3 insertions, 1 deletions
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;