hathach 7 лет назад
Родитель
Сommit
28d7408b3f

+ 2 - 0
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);
 }
 

+ 2 - 0
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);
 }
 

+ 1 - 0
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);
 }
 

+ 2 - 2
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);
 
 /**
  * @}

+ 1 - 1
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