From aee2a15e5bc0066fc91759d492da9ae4244fbe5c Mon Sep 17 00:00:00 2001 From: Jake Carter Date: Fri, 9 Feb 2024 17:45:36 -0700 Subject: [PATCH] Add SEC/MSEC/USEC utility macros to max32650.h --- Libraries/CMSIS/Device/Maxim/MAX32650/Include/max32650.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/CMSIS/Device/Maxim/MAX32650/Include/max32650.h b/Libraries/CMSIS/Device/Maxim/MAX32650/Include/max32650.h index 81e373211a4..9f4ecb0187d 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32650/Include/max32650.h +++ b/Libraries/CMSIS/Device/Maxim/MAX32650/Include/max32650.h @@ -285,6 +285,10 @@ typedef enum { /* ************************************************************************** */ /* Timer */ +#define SEC(s) (((uint32_t)s) * 1000000UL) +#define MSEC(ms) (ms * 1000UL) +#define USEC(us) (us) + #define MXC_CFG_TMR_INSTANCES (6) #define MXC_BASE_TMR0 ((uint32_t)0x40010000UL)