arch: Remove MIN macro definition

use the definition from sys/param.h instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-03-23 00:57:19 +08:00
committed by Alan Carvalho de Assis
parent a261439b8b
commit 901cd599b1
5 changed files with 5 additions and 24 deletions
@@ -23,6 +23,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <sys/param.h>
#include <stdint.h>
#include "riscv_internal.h"
@@ -32,14 +33,6 @@
#include "esp32c6_attr.h"
#include "esp32c6_clockconfig.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
/****************************************************************************
* Private Types
****************************************************************************/
+1 -4
View File
@@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <sys/param.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -97,10 +98,6 @@
# define SIM_USB_SPEED USB_SPEED_FULL
#endif
#ifndef MIN
# define MIN(a,b) ((a) > (b) ? (b) : (a))
#endif
/****************************************************************************
* Private Types
****************************************************************************/
+1 -4
View File
@@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <sys/param.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -53,10 +54,6 @@
#define RHPNDX(rh) ((rh)->hport.hport.port)
#define RHPORT(rh) (RHPNDX(rh)+1)
#ifndef MIN
# define MIN(a,b) ((a) > (b) ? (b) : (a))
#endif
/****************************************************************************
* Private Types
****************************************************************************/
+1 -4
View File
@@ -22,6 +22,7 @@
* Included Files
****************************************************************************/
#include <sys/param.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
@@ -132,10 +133,6 @@
#define SET_CHAN_BITS(c, r, b) setbits(b, LEDC_CHAN_REG(r, (c)->num));
#define SET_CHAN_REG(c, r, v) putreg32(v, LEDC_CHAN_REG(r, (c)->num));
#ifndef MIN
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
/****************************************************************************
* Private Types
****************************************************************************/
+1 -4
View File
@@ -22,6 +22,7 @@
* Included Files
****************************************************************************/
#include <sys/param.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
@@ -132,10 +133,6 @@
#define SET_CHAN_BITS(c, r, b) setbits(b, LEDC_CHAN_REG(r, (c)->num));
#define SET_CHAN_REG(c, r, v) putreg32(v, LEDC_CHAN_REG(r, (c)->num));
#ifndef MIN
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
/****************************************************************************
* Private Types
****************************************************************************/