diff options
| author | hathach <[email protected]> | 2020-01-09 21:31:01 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-01-09 21:31:01 +0700 |
| commit | dd96be492f055734da83a079e6c1332819ce07c7 (patch) | |
| tree | 929880cf55fc690ff14df4d832ee724d8f033846 /src/common | |
| parent | 0268f24227c19145d7fe1fefda91673bc7a0514b (diff) | |
| parent | 99f76eaaaaceea1adcf010b6ab29246f5a32b08a (diff) | |
Merge branch 'master' into develop
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 5700c1282..839989c92 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -39,8 +39,8 @@ // Macros Helper
//--------------------------------------------------------------------+
#define TU_ARRAY_SIZE(_arr) ( sizeof(_arr) / sizeof(_arr[0]) )
-#define TU_MIN(_x, _y) ( (_x) < (_y) ) ? (_x) : (_y) )
-#define TU_MAX(_x, _y) ( (_x) > (_y) ) ? (_x) : (_y) )
+#define TU_MIN(_x, _y) ( ( (_x) < (_y) ) ? (_x) : (_y) )
+#define TU_MAX(_x, _y) ( ( (_x) > (_y) ) ? (_x) : (_y) )
#define TU_U16_HIGH(u16) ((uint8_t) (((u16) >> 8) & 0x00ff))
#define TU_U16_LOW(u16) ((uint8_t) ((u16) & 0x00ff))
|
