summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2015-05-01 18:34:08 +0700
committerhathach <[email protected]>2015-05-01 18:34:08 +0700
commit9218d1e8bb9fd6cb37358c9e08f6ff9849c6110c (patch)
tree902d45c86f4f28564e620217cc8a5810a37ba443 /tinyusb/device
parent6dbd580b5398cf9e7a4b847b77539fe3f9ae9558 (diff)
replace ATTR_PACKED_STRUCT by simply ATTR_PACKED (drop IAR support)
remove "primitive_types.h" by simply include stdbool.h, stdint.h
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/dcd_lpc_11uxx_13uxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/device/dcd_lpc_11uxx_13uxx.c b/tinyusb/device/dcd_lpc_11uxx_13uxx.c
index b50041f0c..ddfea85cb 100644
--- a/tinyusb/device/dcd_lpc_11uxx_13uxx.c
+++ b/tinyusb/device/dcd_lpc_11uxx_13uxx.c
@@ -92,7 +92,7 @@ enum {
};
// buffer input must be 64 byte alignment
-typedef ATTR_PACKED_STRUCT(struct) {
+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.