Skip to content

Commit

Permalink
sn32: usb: prefer UINT32_MAX over hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Aug 10, 2024
1 parent 568afac commit 1b165fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/hal/ports/SN32/LLD/SN32F2xx/USB/hal_usb_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void usb_lld_stop(USBDriver *usbp) {
*/
void usb_lld_reset(USBDriver *usbp) {
/* Post reset initialization.*/
SN32_USB->INSTSC = (0xFFFFFFFF);
SN32_USB->INSTSC = (UINT32_MAX);

/* Set the address to zero during enumeration.*/
usbp->address = 0;
Expand Down

0 comments on commit 1b165fc

Please sign in to comment.