From 506f37d00932835fe4996d154ee89a808e93fc83 Mon Sep 17 00:00:00 2001 From: xj Date: Thu, 12 Sep 2024 01:25:32 -0700 Subject: [PATCH] Add DWC3 codes --- .../services/drivers/usb/components/common/usb_util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_util.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_util.h index 0c46dbcb8..67f1f9c4c 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_util.h +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_util.h @@ -204,4 +204,7 @@ 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 +#define upper_32_bits(n) ((uint32_t)(((n) >> 16) >> 16)) +#define lower_32_bits(n) ((uint32_t)(n)) + #endif