Skip to content

Commit d87f4da

Browse files
authored
Merge pull request hathach#1893 from jefftrull/bugfix/bitfields
Adjust reserved bitfields to make SDCC happy
2 parents 09e70eb + 7e2c5fc commit d87f4da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/class/cdc/cdc.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ typedef struct TU_ATTR_PACKED
377377
uint32_t incoming_distinctive : 1; ///< 0 : Reports only incoming ringing. 1 : Reports incoming distinctive ringing patterns.
378378
uint32_t dual_tone_multi_freq : 1; ///< 0 : Cannot report dual tone multi-frequency (DTMF) digits input remotely over the telephone line. 1 : Can report DTMF digits input remotely over the telephone line.
379379
uint32_t line_state_change : 1; ///< 0 : Does not support line state change notification. 1 : Does support line state change notification
380-
uint32_t TU_RESERVED : 26;
380+
uint32_t TU_RESERVED0 : 2;
381+
uint32_t TU_RESERVED1 : 16;
382+
uint32_t TU_RESERVED2 : 8;
381383
} bmCapabilities;
382384
}cdc_desc_func_telephone_call_state_reporting_capabilities_t;
383385

@@ -404,7 +406,8 @@ typedef struct TU_ATTR_PACKED
404406
{
405407
uint16_t dtr : 1;
406408
uint16_t rts : 1;
407-
uint16_t : 14;
409+
uint16_t : 6;
410+
uint16_t : 8;
408411
} cdc_line_control_state_t;
409412

410413
TU_VERIFY_STATIC(sizeof(cdc_line_control_state_t) == 2, "size is not correct");

0 commit comments

Comments
 (0)