fix warning with lpcopen
This commit is contained in:
@@ -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)();
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user