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 14c7b605..d8be3340 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 660ba0ee..448fa225 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 a208a875..ad19b9af 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 63d71231..8f975e3f 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 9c89cd91..8c163707 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 14c7b605..0f373fb1 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 25b77174..0e902760 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 367d1d36..98b27078 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 4a776ab3..43eb958e 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 af89d56b..0f373fb1 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 42e4d7cc..bed85b15 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 7966d1a7..a01cab2c 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 62ac2a19..36f6ad6a 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 79380696..25eee0e4 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 3d93b5a8..9efffb43 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 fe4cc487..1cd48589 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 2b849612..1509d011 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 efbecf87..d5db584f 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 186d8b15..2bdb9e94 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 3ea66737..ed772bc0 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 4f74323c..be42deba 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 8d5f055b..b5a94679 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 14c7b605..0f373fb1 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 b314c9e5..607230ef 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 42e4d7cc..bed85b15 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 7966d1a7..a01cab2c 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 62ac2a19..36f6ad6a 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 79380696..25eee0e4 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 3d93b5a8..9efffb43 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 fe4cc487..1cd48589 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 2b849612..1509d011 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 c9900096..04bf14d2 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 5fab0b10..00fa1e07 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 efbecf87..d5db584f 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 186d8b15..e162f00c 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 */