summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-03 18:02:03 +0700
committerhathach <[email protected]>2018-12-03 18:02:03 +0700
commit28d7408b3fcb3e5c91f0dc83f873c8c7a0bba1e5 (patch)
tree2ad3435d9921732f02fc51871d571a991f16f271
parent9e33f19378da1e19568714797698b6b62296924f (diff)
fix compiler warning
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h1
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h2
5 files changed, 8 insertions, 3 deletions
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h
index 3ea66737b..ed772bc0a 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h
@@ -63,6 +63,7 @@ typedef struct { /* GPIO_PORT Structure */
*/
STATIC INLINE void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
}
@@ -73,6 +74,7 @@ STATIC INLINE void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
*/
STATIC INLINE void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO);
}
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h
index 4f74323c4..be42deba6 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h
@@ -79,6 +79,7 @@ typedef enum {
*/
STATIC INLINE void Chip_GPIOINT_Init(LPC_GPIOINT_T *pGPIOINT)
{
+ (void) pGPIOINT;
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
}
@@ -92,6 +93,7 @@ STATIC INLINE void Chip_GPIOINT_Init(LPC_GPIOINT_T *pGPIOINT)
*/
STATIC INLINE void Chip_GPIOINT_DeInit(LPC_GPIOINT_T *pGPIOINT)
{
+ (void) pGPIOINT;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO);
}
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h
index 8d5f055be..b5a94679c 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h
@@ -150,6 +150,7 @@ typedef struct {
*/
STATIC INLINE void Chip_IOCON_Init(LPC_IOCON_T *pIOCON)
{
+ (void) pIOCON;
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
}
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h
index 14c7b6050..af89d56bc 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h
@@ -82,10 +82,10 @@ typedef enum {
} TRANSFER_BLOCK_T;
/** Pointer to Function returning Void (any number of parameters) */
-typedef void (*PFV)();
+typedef void (*PFV)(void);
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+typedef int32_t (*PFI)(void);
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h
index b314c9e5d..3572a4973 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h
@@ -101,7 +101,7 @@ void Chip_WWDT_Init(LPC_WWDT_T *pWWDT);
* @param pWWDT : The base of WatchDog Timer peripheral on the chip
* @return None
*/
-STATIC INLINE void Chip_WWDT_DeInit(LPC_WWDT_T *pWWDT) {}
+STATIC INLINE void Chip_WWDT_DeInit(LPC_WWDT_T *pWWDT) { (void) pWWDT;}
/**
* @brief Set WDT timeout constant value used for feed