arm/lpc176x: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 22:01:39 +00:00
committed by Gedare Bloom
parent b43936d848
commit d8c188757d
6 changed files with 11 additions and 0 deletions
+1
View File
@@ -44,4 +44,5 @@ benchmark_timer_t benchmark_timer_read( void )
void benchmark_timer_disable_subtracting_average_overhead( bool find_avg_ovhead )
{
(void) find_avg_ovhead;
}
+2
View File
@@ -407,6 +407,8 @@ static inline void search_and_call_int( const lpc176x_can_number number )
*/
static void can_isr( void *arg )
{
(void) arg;
lpc176x_can_number i;
for ( i = CAN_0; i < CAN_DEVICES_NUMBER; ++i ) {
+2
View File
@@ -181,6 +181,8 @@ static void check_for_interrupt(
*/
static inline void lpc176x_gpio_isr( void *arg )
{
(void) arg;
unsigned int i;
for ( i = 0; i < function_vector_size; ++i ) {
+2
View File
@@ -125,6 +125,8 @@ static void set_period(
const lpc176x_microseconds period
)
{
(void) pwm;
pwm_device->TCR = PWM_TCR_RESET;
pwm_device->MR0 = period * PWM_PRESCALER_USECOND;
pwm_device->LER |= PWM_LER_LATCH_MATCH_0;
+2
View File
@@ -38,6 +38,8 @@
void*bsp_idle_thread( const uintptr_t ignored )
{
(void) ignored;
while ( true ) {
}
}
+2
View File
@@ -42,6 +42,8 @@ static bool lpc176x_dma_status_table[ GPDMA_CH_NUMBER ];
static void lpc176x_dma_copy_handler( void *arg )
{
(void) arg;
/* Get interrupt status */
uint32_t tc = GPDMA_INT_TCSTAT;
uint32_t err = GPDMA_INT_ERR_STAT;