summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2015-05-01 18:37:58 +0700
committerhathach <[email protected]>2015-05-01 18:37:58 +0700
commitc73907f83107caa5c495c5121cdb4e660f5a0ea0 (patch)
tree40699301e7bd2a99a509e3ba736bcee1afd88339 /tinyusb/device
parent9218d1e8bb9fd6cb37358c9e08f6ff9849c6110c (diff)
formatting
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/dcd_lpc_11uxx_13uxx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/device/dcd_lpc_11uxx_13uxx.c b/tinyusb/device/dcd_lpc_11uxx_13uxx.c
index ddfea85cb..1c128b62e 100644
--- a/tinyusb/device/dcd_lpc_11uxx_13uxx.c
+++ b/tinyusb/device/dcd_lpc_11uxx_13uxx.c
@@ -92,7 +92,8 @@ enum {
};
// buffer input must be 64 byte alignment
-typedef struct ATTR_PACKED {
+typedef struct ATTR_PACKED
+{
volatile uint16_t buff_addr_offset ; ///< The address offset is updated by hardware after each successful reception/transmission of a packet. Hardware increments the original value with the integer value when the packet size is divided by 64.
volatile uint16_t nbytes : 10 ; ///< For OUT endpoints this is the number of bytes that can be received in this buffer. For IN endpoints this is the number of bytes that must be transmitted. HW decrements this value with the packet size every time when a packet is successfully transferred. Note: If a short packet is received on an OUT endpoint, the active bit will be cleared and the NBytes value indicates the remaining buffer space that is not used. Software calculates the received number of bytes by subtracting the remaining NBytes from the programmed value.