summaryrefslogtreecommitdiff
path: root/src/portable/microchip
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-04-23 15:35:23 +0700
committerGitHub <[email protected]>2026-04-23 15:35:23 +0700
commit0d1c0903ec6d65d40f8196b72493a692f7a180de (patch)
treefad73aa11fa3dc451a1f0925a099933637ab9667 /src/portable/microchip
parentce1d37ad97c1f5fe537e1d72aef2dbbdd43c21ed (diff)
parenta6dcc3f089bd4468949ea9e138fea9f80025577e (diff)
Merge pull request #3601 from hathach/fix-conversion-warnings
Fix some -Wconversion warnings
Diffstat (limited to 'src/portable/microchip')
-rw-r--r--src/portable/microchip/samg/dcd_samg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c
index 4115eecc5..f8980b775 100644
--- a/src/portable/microchip/samg/dcd_samg.c
+++ b/src/portable/microchip/samg/dcd_samg.c
@@ -352,8 +352,8 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
csr_clear(epnum, UDP_CSR_FORCESTALL_Msk);
// must also reset EP to clear data toggle
- UDP->UDP_RST_EP |= (1 << epnum);
- UDP->UDP_RST_EP &= ~(1 << epnum);
+ UDP->UDP_RST_EP |= (1u << epnum);
+ UDP->UDP_RST_EP &= ~(1u << epnum);
}
//--------------------------------------------------------------------+