summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-07 13:22:12 +0700
committerhathach <[email protected]>2018-12-07 14:49:07 +0700
commitf769ecddafcf25c48d23730c31e0fd6178dd2f89 (patch)
tree5e67dd931216c76fc5255adb3a6d34cf13c896b0
parent89820a36a153506c7634d5e44214394ae3ff45c1 (diff)
fix warning with lpcopen
-rw-r--r--hw/mcu/nxp/lpc_chip_11u6x/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_11u6x/inc/pinint_11u6x.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_11u6x/inc/rtc_11u6x.h1
-rw-r--r--hw/mcu/nxp/lpc_chip_11u6x/src/gpio_11u6x.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_11u6x/src/uart_0_11u6x.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_13xx/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_13xx/inc/pinint_13xx.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_13xx/src/gpio_13xx_1.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_13xx/src/uart_13xx.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_175x_6x/src/clock_17xx_40xx.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/inc/ccan_18xx_43xx.h1
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/inc/enet_18xx_43xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/inc/pinint_18xx_43xx.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/src/clock_18xx_43xx.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/src/gpio_18xx_43xx.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/src/sysinit_18xx_43xx.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_18xx/src/uart_18xx_43xx.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/inc/gpio_17xx_40xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/inc/gpioint_17xx_40xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/inc/iocon_17xx_40xx.h1
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/inc/wwdt_17xx_40xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_40xx/src/clock_17xx_40xx.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/inc/ccan_18xx_43xx.h1
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/inc/enet_18xx_43xx.h2
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/inc/lpc_types.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/inc/pinint_18xx_43xx.h4
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/clock_18xx_43xx.c1
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/gpio_18xx_43xx.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/i2c_18xx_43xx.c6
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/i2cm_18xx_43xx.c4
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/sysinit_18xx_43xx.c2
-rw-r--r--hw/mcu/nxp/lpc_chip_43xx/src/uart_18xx_43xx.c2
35 files changed, 58 insertions, 28 deletions
diff --git a/hw/mcu/nxp/lpc_chip_11u6x/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_11u6x/inc/lpc_types.h
index 14c7b6050..d8be33405 100644
--- a/hw/mcu/nxp/lpc_chip_11u6x/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_11u6x/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)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+//typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_11u6x/inc/pinint_11u6x.h b/hw/mcu/nxp/lpc_chip_11u6x/inc/pinint_11u6x.h
index 660ba0ee6..448fa225b 100644
--- a/hw/mcu/nxp/lpc_chip_11u6x/inc/pinint_11u6x.h
+++ b/hw/mcu/nxp/lpc_chip_11u6x/inc/pinint_11u6x.h
@@ -123,14 +123,14 @@ typedef enum Chip_PININT_BITSLICE_CFG {
* @return Nothing
* @note This function should be used after the Chip_GPIO_Init() function.
*/
-STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief De-Initialize Pin interrupt block
* @param pPININT : The base address of Pin interrupt block
* @return Nothing
*/
-STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief Configure the pins as edge sensitive in Pin interrupt block
diff --git a/hw/mcu/nxp/lpc_chip_11u6x/inc/rtc_11u6x.h b/hw/mcu/nxp/lpc_chip_11u6x/inc/rtc_11u6x.h
index a208a8753..ad19b9af4 100644
--- a/hw/mcu/nxp/lpc_chip_11u6x/inc/rtc_11u6x.h
+++ b/hw/mcu/nxp/lpc_chip_11u6x/inc/rtc_11u6x.h
@@ -207,6 +207,7 @@ STATIC INLINE void Chip_RTC_DisableWakeup(LPC_RTC_T *pRTC, uint32_t ints)
*/
STATIC INLINE uint32_t Chip_RTC_ClearStatus(LPC_RTC_T *pRTC, uint32_t stsMask)
{
+ (void) stsMask;
return pRTC->CTRL;
}
diff --git a/hw/mcu/nxp/lpc_chip_11u6x/src/gpio_11u6x.c b/hw/mcu/nxp/lpc_chip_11u6x/src/gpio_11u6x.c
index 63d712319..8f975e3f3 100644
--- a/hw/mcu/nxp/lpc_chip_11u6x/src/gpio_11u6x.c
+++ b/hw/mcu/nxp/lpc_chip_11u6x/src/gpio_11u6x.c
@@ -50,12 +50,14 @@
/* Initialize GPIO block */
void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
}
/* De-Initialize GPIO block */
void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO);
}
diff --git a/hw/mcu/nxp/lpc_chip_11u6x/src/uart_0_11u6x.c b/hw/mcu/nxp/lpc_chip_11u6x/src/uart_0_11u6x.c
index 9c89cd91b..8c1637075 100644
--- a/hw/mcu/nxp/lpc_chip_11u6x/src/uart_0_11u6x.c
+++ b/hw/mcu/nxp/lpc_chip_11u6x/src/uart_0_11u6x.c
@@ -65,6 +65,7 @@ void Chip_UART0_Init(LPC_USART0_T *pUART)
/* De-initializes the pUART peripheral */
void Chip_UART0_DeInit(LPC_USART0_T *pUART)
{
+ (void) pUART;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_UART0);
}
diff --git a/hw/mcu/nxp/lpc_chip_13xx/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_13xx/inc/lpc_types.h
index 14c7b6050..0f373fb1d 100644
--- a/hw/mcu/nxp/lpc_chip_13xx/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_13xx/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)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+// typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_13xx/inc/pinint_13xx.h b/hw/mcu/nxp/lpc_chip_13xx/inc/pinint_13xx.h
index 25b771743..0e9027601 100644
--- a/hw/mcu/nxp/lpc_chip_13xx/inc/pinint_13xx.h
+++ b/hw/mcu/nxp/lpc_chip_13xx/inc/pinint_13xx.h
@@ -78,14 +78,14 @@ typedef struct { /*!< PIN_INT Structure */
* @return Nothing
* @note This function should be used after the Chip_GPIO_Init() function.
*/
-STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief De-Initialize Pin interrupt block
* @param pPININT : The base address of Pin interrupt block
* @return Nothing
*/
-STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief Configure the pins as edge sensitive in Pin interrupt block
diff --git a/hw/mcu/nxp/lpc_chip_13xx/src/gpio_13xx_1.c b/hw/mcu/nxp/lpc_chip_13xx/src/gpio_13xx_1.c
index 367d1d366..98b270789 100644
--- a/hw/mcu/nxp/lpc_chip_13xx/src/gpio_13xx_1.c
+++ b/hw/mcu/nxp/lpc_chip_13xx/src/gpio_13xx_1.c
@@ -52,12 +52,14 @@
/* Initialize GPIO block */
void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
}
/* De-Initialize GPIO block */
void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO);
}
diff --git a/hw/mcu/nxp/lpc_chip_13xx/src/uart_13xx.c b/hw/mcu/nxp/lpc_chip_13xx/src/uart_13xx.c
index 4a776ab3b..43eb958e3 100644
--- a/hw/mcu/nxp/lpc_chip_13xx/src/uart_13xx.c
+++ b/hw/mcu/nxp/lpc_chip_13xx/src/uart_13xx.c
@@ -66,6 +66,7 @@ void Chip_UART_Init(LPC_USART_T *pUART)
/* De-initializes the pUART peripheral */
void Chip_UART_DeInit(LPC_USART_T *pUART)
{
+ (void) pUART;
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_UART0);
}
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 af89d56bc..0f373fb1d 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)(void);
+// typedef void (*PFV)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)(void);
+// typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/src/clock_17xx_40xx.c b/hw/mcu/nxp/lpc_chip_175x_6x/src/clock_17xx_40xx.c
index 42e4d7cc8..bed85b152 100644
--- a/hw/mcu/nxp/lpc_chip_175x_6x/src/clock_17xx_40xx.c
+++ b/hw/mcu/nxp/lpc_chip_175x_6x/src/clock_17xx_40xx.c
@@ -328,6 +328,7 @@ uint32_t Chip_Clock_GetSYSCLKRate(void)
case (uint32_t) SYSCTL_PLLCLKSRC_RTC:
return Chip_Clock_GetRTCOscRate();
#endif
+ default: break;
}
return 0;
}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/inc/ccan_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_18xx/inc/ccan_18xx_43xx.h
index 7966d1a70..a01cab2c2 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/inc/ccan_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_18xx/inc/ccan_18xx_43xx.h
@@ -451,6 +451,7 @@ STATIC INLINE void Chip_CCAN_ClearMsgIntPend(LPC_CCAN_T *pCCAN,
uint8_t msgNum,
CCAN_TRANSFER_DIR_T dir)
{
+ (void) dir;
Chip_CCAN_TransferMsgObject(pCCAN, IFSel, CCAN_IF_CMDMSK_RD | CCAN_IF_CMDMSK_R_CLRINTPND, msgNum);
}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/inc/enet_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_18xx/inc/enet_18xx_43xx.h
index 62ac2a191..36f6ad6ac 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/inc/enet_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_18xx/inc/enet_18xx_43xx.h
@@ -582,6 +582,7 @@ STATIC INLINE void Chip_ENET_RXDisable(LPC_ENET_T *pENET)
*/
STATIC INLINE void Chip_ENET_RMIIEnable(LPC_ENET_T *pENET)
{
+ (void) pENET;
LPC_CREG->CREG6 |= 0x4;
}
@@ -595,6 +596,7 @@ STATIC INLINE void Chip_ENET_RMIIEnable(LPC_ENET_T *pENET)
*/
STATIC INLINE void Chip_ENET_MIIEnable(LPC_ENET_T *pENET)
{
+ (void) pENET;
LPC_CREG->CREG6 &= ~0x7;
}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_18xx/inc/lpc_types.h
index 79380696d..25eee0e44 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_18xx/inc/lpc_types.h
@@ -88,10 +88,10 @@ typedef enum {
} TRANSFER_BLOCK_T;
/** Pointer to Function returning Void (any number of parameters) */
-typedef void (*PFV)();
+// typedef void (*PFV)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+// typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/inc/pinint_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_18xx/inc/pinint_18xx_43xx.h
index 3d93b5a80..9efffb433 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/inc/pinint_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_18xx/inc/pinint_18xx_43xx.h
@@ -77,14 +77,14 @@ typedef struct { /*!< PIN_INT Structure */
* @return Nothing
* @note This function should be used after the Chip_GPIO_Init() function.
*/
-STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief De-Initialize Pin interrupt block
* @param pPININT : The base address of Pin interrupt block
* @return Nothing
*/
-STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief Configure the pins as edge sensitive in Pin interrupt block
diff --git a/hw/mcu/nxp/lpc_chip_18xx/src/clock_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_18xx/src/clock_18xx_43xx.c
index fe4cc4877..1cd48589a 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/src/clock_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_18xx/src/clock_18xx_43xx.c
@@ -194,6 +194,7 @@ static uint32_t Chip_Clock_TestMainPLLMultiplier(uint32_t InputHz, uint32_t Test
/* Returns clock rate out of a divider */
static uint32_t Chip_Clock_GetDivRate(CHIP_CGU_CLKIN_T clock, CHIP_CGU_IDIV_T divider)
{
+ (void) clock;
CHIP_CGU_CLKIN_T input;
uint32_t div;
diff --git a/hw/mcu/nxp/lpc_chip_18xx/src/gpio_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_18xx/src/gpio_18xx_43xx.c
index 2b8496123..1509d0115 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/src/gpio_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_18xx/src/gpio_18xx_43xx.c
@@ -50,11 +50,13 @@
/* Initialize GPIO block */
void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
}
/* De-Initialize GPIO block */
void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/src/sysinit_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_18xx/src/sysinit_18xx_43xx.c
index efbecf877..d5db584ff 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/src/sysinit_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_18xx/src/sysinit_18xx_43xx.c
@@ -133,7 +133,7 @@ void Chip_SetupCoreClock(CHIP_CGU_CLKIN_T clkin, uint32_t core_freq, bool setbas
/* Setup system base clocks and initial states. This won't enable and
disable individual clocks, but sets up the base clock sources for
each individual peripheral clock. */
- for (i = 0; i < (sizeof(InitClkStates) / sizeof(InitClkStates[0])); i++) {
+ for (i = 0; i < (int) (sizeof(InitClkStates) / sizeof(InitClkStates[0])); i++) {
Chip_Clock_SetBaseClock(InitClkStates[i].clk, InitClkStates[i].clkin,
InitClkStates[i].autoblock_enab, InitClkStates[i].powerdn);
}
diff --git a/hw/mcu/nxp/lpc_chip_18xx/src/uart_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_18xx/src/uart_18xx_43xx.c
index 186d8b159..2bdb9e941 100644
--- a/hw/mcu/nxp/lpc_chip_18xx/src/uart_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_18xx/src/uart_18xx_43xx.c
@@ -132,6 +132,8 @@ void Chip_UART_Init(LPC_USART_T *pUART)
/* Disable fractional divider */
pUART->FDR = 0x10;
+
+ (void) tmp;
}
/* De-initializes the pUART peripheral */
diff --git a/hw/mcu/nxp/lpc_chip_40xx/inc/gpio_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_40xx/inc/gpio_17xx_40xx.h
index 3ea66737b..ed772bc0a 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/inc/gpio_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_40xx/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_40xx/inc/gpioint_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_40xx/inc/gpioint_17xx_40xx.h
index 4f74323c4..be42deba6 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/inc/gpioint_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_40xx/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_40xx/inc/iocon_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_40xx/inc/iocon_17xx_40xx.h
index 8d5f055be..b5a94679c 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/inc/iocon_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_40xx/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_40xx/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_40xx/inc/lpc_types.h
index 14c7b6050..0f373fb1d 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_40xx/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)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+// typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_40xx/inc/wwdt_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_40xx/inc/wwdt_17xx_40xx.h
index b314c9e5d..607230ef1 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/inc/wwdt_17xx_40xx.h
+++ b/hw/mcu/nxp/lpc_chip_40xx/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
diff --git a/hw/mcu/nxp/lpc_chip_40xx/src/clock_17xx_40xx.c b/hw/mcu/nxp/lpc_chip_40xx/src/clock_17xx_40xx.c
index 42e4d7cc8..bed85b152 100644
--- a/hw/mcu/nxp/lpc_chip_40xx/src/clock_17xx_40xx.c
+++ b/hw/mcu/nxp/lpc_chip_40xx/src/clock_17xx_40xx.c
@@ -328,6 +328,7 @@ uint32_t Chip_Clock_GetSYSCLKRate(void)
case (uint32_t) SYSCTL_PLLCLKSRC_RTC:
return Chip_Clock_GetRTCOscRate();
#endif
+ default: break;
}
return 0;
}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/inc/ccan_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_43xx/inc/ccan_18xx_43xx.h
index 7966d1a70..a01cab2c2 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/inc/ccan_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_43xx/inc/ccan_18xx_43xx.h
@@ -451,6 +451,7 @@ STATIC INLINE void Chip_CCAN_ClearMsgIntPend(LPC_CCAN_T *pCCAN,
uint8_t msgNum,
CCAN_TRANSFER_DIR_T dir)
{
+ (void) dir;
Chip_CCAN_TransferMsgObject(pCCAN, IFSel, CCAN_IF_CMDMSK_RD | CCAN_IF_CMDMSK_R_CLRINTPND, msgNum);
}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/inc/enet_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_43xx/inc/enet_18xx_43xx.h
index 62ac2a191..36f6ad6ac 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/inc/enet_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_43xx/inc/enet_18xx_43xx.h
@@ -582,6 +582,7 @@ STATIC INLINE void Chip_ENET_RXDisable(LPC_ENET_T *pENET)
*/
STATIC INLINE void Chip_ENET_RMIIEnable(LPC_ENET_T *pENET)
{
+ (void) pENET;
LPC_CREG->CREG6 |= 0x4;
}
@@ -595,6 +596,7 @@ STATIC INLINE void Chip_ENET_RMIIEnable(LPC_ENET_T *pENET)
*/
STATIC INLINE void Chip_ENET_MIIEnable(LPC_ENET_T *pENET)
{
+ (void) pENET;
LPC_CREG->CREG6 &= ~0x7;
}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_43xx/inc/lpc_types.h
index 79380696d..25eee0e44 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/inc/lpc_types.h
+++ b/hw/mcu/nxp/lpc_chip_43xx/inc/lpc_types.h
@@ -88,10 +88,10 @@ typedef enum {
} TRANSFER_BLOCK_T;
/** Pointer to Function returning Void (any number of parameters) */
-typedef void (*PFV)();
+// typedef void (*PFV)();
/** Pointer to Function returning int32_t (any number of parameters) */
-typedef int32_t (*PFI)();
+// typedef int32_t (*PFI)();
/**
* @}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/inc/pinint_18xx_43xx.h b/hw/mcu/nxp/lpc_chip_43xx/inc/pinint_18xx_43xx.h
index 3d93b5a80..9efffb433 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/inc/pinint_18xx_43xx.h
+++ b/hw/mcu/nxp/lpc_chip_43xx/inc/pinint_18xx_43xx.h
@@ -77,14 +77,14 @@ typedef struct { /*!< PIN_INT Structure */
* @return Nothing
* @note This function should be used after the Chip_GPIO_Init() function.
*/
-STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_Init(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief De-Initialize Pin interrupt block
* @param pPININT : The base address of Pin interrupt block
* @return Nothing
*/
-STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) {}
+STATIC INLINE void Chip_PININT_DeInit(LPC_PIN_INT_T *pPININT) { (void) pPININT; }
/**
* @brief Configure the pins as edge sensitive in Pin interrupt block
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/clock_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/clock_18xx_43xx.c
index fe4cc4877..1cd48589a 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/clock_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/clock_18xx_43xx.c
@@ -194,6 +194,7 @@ static uint32_t Chip_Clock_TestMainPLLMultiplier(uint32_t InputHz, uint32_t Test
/* Returns clock rate out of a divider */
static uint32_t Chip_Clock_GetDivRate(CHIP_CGU_CLKIN_T clock, CHIP_CGU_IDIV_T divider)
{
+ (void) clock;
CHIP_CGU_CLKIN_T input;
uint32_t div;
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/gpio_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/gpio_18xx_43xx.c
index 2b8496123..1509d0115 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/gpio_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/gpio_18xx_43xx.c
@@ -50,11 +50,13 @@
/* Initialize GPIO block */
void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
}
/* De-Initialize GPIO block */
void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO)
{
+ (void) pGPIO;
}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/i2c_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/i2c_18xx_43xx.c
index c9900096b..04bf14d20 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/i2c_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/i2c_18xx_43xx.c
@@ -197,11 +197,11 @@ int handleMasterXferState(LPC_I2C_T *pI2C, I2C_XFER_T *xfer)
/* Rx handling */
case 0x58: /* Data Received and NACK sent */
cclr &= ~I2C_CON_STO;
-
+ /* FALLTHRU */
case 0x50: /* Data Received and ACK sent */
*xfer->rxBuff++ = pI2C->DAT;
xfer->rxSz--;
-
+ /* FALLTHRU */
case 0x40: /* SLA+R sent and ACK received */
if (xfer->rxSz > 1) {
cclr &= ~I2C_CON_AA;
@@ -292,7 +292,7 @@ int handleSlaveXferState(LPC_I2C_T *pI2C, I2C_XFER_T *xfer)
case 0xA8: /* SLA+R received */
case 0xB0: /* SLA+R received after losing arbitration */
xfer->slaveAddr = pI2C->DAT & ~1;
-
+ /* FALLTHRU */
case 0xB8: /* DATA sent and ACK received */
pI2C->DAT = *xfer->txBuff++;
xfer->txSz--;
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/i2cm_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/i2cm_18xx_43xx.c
index 5fab0b10a..00fa1e07d 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/i2cm_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/i2cm_18xx_43xx.c
@@ -100,7 +100,7 @@ uint32_t Chip_I2CM_XferHandler(LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)
cclr &= ~I2C_CON_STO;
break;
}
-
+ /* FALLTHRU */
case 0x18: /* SLA+W sent and ACK received */
case 0x28: /* DATA sent and ACK received */
if (!xfer->txSz) {
@@ -124,7 +124,7 @@ uint32_t Chip_I2CM_XferHandler(LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)
case 0x50: /* Data Received and ACK sent */
*xfer->rxBuff++ = pI2C->DAT;
xfer->rxSz--;
-
+ /* FALLTHRU */
case 0x40: /* SLA+R sent and ACK received */
if ((xfer->rxSz > 1) || (xfer->options & I2CM_XFER_OPTION_LAST_RX_ACK)) {
cclr &= ~I2C_CON_AA;
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/sysinit_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/sysinit_18xx_43xx.c
index efbecf877..d5db584ff 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/sysinit_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/sysinit_18xx_43xx.c
@@ -133,7 +133,7 @@ void Chip_SetupCoreClock(CHIP_CGU_CLKIN_T clkin, uint32_t core_freq, bool setbas
/* Setup system base clocks and initial states. This won't enable and
disable individual clocks, but sets up the base clock sources for
each individual peripheral clock. */
- for (i = 0; i < (sizeof(InitClkStates) / sizeof(InitClkStates[0])); i++) {
+ for (i = 0; i < (int) (sizeof(InitClkStates) / sizeof(InitClkStates[0])); i++) {
Chip_Clock_SetBaseClock(InitClkStates[i].clk, InitClkStates[i].clkin,
InitClkStates[i].autoblock_enab, InitClkStates[i].powerdn);
}
diff --git a/hw/mcu/nxp/lpc_chip_43xx/src/uart_18xx_43xx.c b/hw/mcu/nxp/lpc_chip_43xx/src/uart_18xx_43xx.c
index 186d8b159..e162f00ce 100644
--- a/hw/mcu/nxp/lpc_chip_43xx/src/uart_18xx_43xx.c
+++ b/hw/mcu/nxp/lpc_chip_43xx/src/uart_18xx_43xx.c
@@ -132,6 +132,8 @@ void Chip_UART_Init(LPC_USART_T *pUART)
/* Disable fractional divider */
pUART->FDR = 0x10;
+
+ (void) tmp;
}
/* De-initializes the pUART peripheral */