mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-24 18:02:40 +00:00
fix warnings
This commit is contained in:
parent
5d00488907
commit
c8d104fb47
@ -856,7 +856,7 @@ static void handle_epin_irq(uint8_t rhport) {
|
|||||||
|
|
||||||
// Process every single packet (only whole packets can be written to fifo)
|
// Process every single packet (only whole packets can be written to fifo)
|
||||||
for (uint16_t i = 0; i < remain_packets; i++) {
|
for (uint16_t i = 0; i < remain_packets; i++) {
|
||||||
const uint16_t remain_bytes = epin->dieptsiz_bm.xfer_size;
|
const uint16_t remain_bytes = (uint16_t) epin->dieptsiz_bm.xfer_size;
|
||||||
|
|
||||||
// Packet can not be larger than ep max size
|
// Packet can not be larger than ep max size
|
||||||
const uint16_t xact_bytes = tu_min16(remain_bytes, xfer->max_size);
|
const uint16_t xact_bytes = tu_min16(remain_bytes, xfer->max_size);
|
||||||
|
@ -742,7 +742,6 @@ static void handle_rxflvl_irq(uint8_t rhport) {
|
|||||||
// Pop control word off FIFO
|
// Pop control word off FIFO
|
||||||
const dwc2_grxstsp_t grxstsp_bm = dwc2->grxstsp_bm;
|
const dwc2_grxstsp_t grxstsp_bm = dwc2->grxstsp_bm;
|
||||||
const uint8_t ch_id = grxstsp_bm.ep_ch_num;
|
const uint8_t ch_id = grxstsp_bm.ep_ch_num;
|
||||||
// dwc2_channel_t* channel = &dwc2->channel[ch_id];
|
|
||||||
|
|
||||||
switch (grxstsp_bm.packet_status) {
|
switch (grxstsp_bm.packet_status) {
|
||||||
case GRXSTS_PKTSTS_RX_DATA: {
|
case GRXSTS_PKTSTS_RX_DATA: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user