diff options
Diffstat (limited to 'src/class/midi')
| -rw-r--r-- | src/class/midi/midi.h | 4 | ||||
| -rw-r--r-- | src/class/midi/midi_device.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/class/midi/midi.h b/src/class/midi/midi.h index ee318f788..50f2be679 100644 --- a/src/class/midi/midi.h +++ b/src/class/midi/midi.h @@ -42,7 +42,7 @@ // FUNCTIONAL DESCRIPTOR (COMMUNICATION INTERFACE)
//--------------------------------------------------------------------+
/// Header Functional Descriptor (Communication Interface)
-typedef struct ATTR_PACKED
+typedef struct TU_ATTR_PACKED
{
uint8_t bLength ; ///< Size of this descriptor in bytes.
uint8_t bDescriptorType ; ///< Descriptor Type, must be Class-Specific
@@ -52,7 +52,7 @@ typedef struct ATTR_PACKED }midi_desc_func_header_t;
/// Union Functional Descriptor (Communication Interface)
-typedef struct ATTR_PACKED
+typedef struct TU_ATTR_PACKED
{
uint8_t bLength ; ///< Size of this descriptor in bytes.
uint8_t bDescriptorType ; ///< Descriptor Type, must be Class-Specific
diff --git a/src/class/midi/midi_device.h b/src/class/midi/midi_device.h index 84f4c57bd..45e009010 100644 --- a/src/class/midi/midi_device.h +++ b/src/class/midi/midi_device.h @@ -82,7 +82,7 @@ static inline bool tud_midi_write_flush (void) //--------------------------------------------------------------------+
// APPLICATION CALLBACK API (WEAK is optional)
//--------------------------------------------------------------------+
-ATTR_WEAK void tud_midi_rx_cb(uint8_t itf);
+TU_ATTR_WEAK void tud_midi_rx_cb(uint8_t itf);
//--------------------------------------------------------------------+
// Internal Class Driver API
|
