mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
fix compiler warning
This commit is contained in:
parent
9e33f19378
commit
28d7408b3f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -150,6 +150,7 @@ typedef struct {
|
||||
*/
|
||||
STATIC INLINE void Chip_IOCON_Init(LPC_IOCON_T *pIOCON)
|
||||
{
|
||||
(void) pIOCON;
|
||||
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user