mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
arm/lpc24xx: 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:
committed by
Gedare Bloom
parent
d8c188757d
commit
ef742b98c7
@@ -54,6 +54,8 @@ rtems_status_code bsp_interrupt_get_attributes(
|
||||
rtems_interrupt_attributes *attributes
|
||||
)
|
||||
{
|
||||
(void) vector;
|
||||
|
||||
attributes->maximum_priority = LPC24XX_IRQ_PRIORITY_VALUE_MAX;
|
||||
attributes->can_get_priority = true;
|
||||
attributes->can_set_priority = true;
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
static void lpc24xx_rtc_initialize(int minor)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
/* Enable module power */
|
||||
lpc24xx_module_enable(LPC24XX_MODULE_RTC, LPC24XX_MODULE_PCLK_DEFAULT);
|
||||
|
||||
@@ -58,6 +60,8 @@ static void lpc24xx_rtc_initialize(int minor)
|
||||
|
||||
static int lpc24xx_rtc_get_time(int minor, rtems_time_of_day *tod)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
tod->ticks = 0;
|
||||
tod->second = RTC_SEC;
|
||||
tod->minute = RTC_MIN;
|
||||
@@ -71,6 +75,8 @@ static int lpc24xx_rtc_get_time(int minor, rtems_time_of_day *tod)
|
||||
|
||||
static int lpc24xx_rtc_set_time(int minor, const rtems_time_of_day *tod)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
RTC_SEC = tod->second;
|
||||
RTC_MIN = tod->minute;
|
||||
RTC_HOUR = tod->hour;
|
||||
@@ -83,6 +89,8 @@ static int lpc24xx_rtc_set_time(int minor, const rtems_time_of_day *tod)
|
||||
|
||||
static bool lpc24xx_rtc_probe(int minor)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
void *bsp_idle_thread(uintptr_t ignored)
|
||||
{
|
||||
(void) ignored;
|
||||
|
||||
while (true) {
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
/*
|
||||
|
||||
@@ -43,6 +43,8 @@ static bool lpc24xx_dma_status_table [GPDMA_CH_NUMBER];
|
||||
|
||||
static void lpc24xx_dma_copy_handler(void *arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
/* Get interrupt status */
|
||||
uint32_t tc = GPDMA_INT_TCSTAT;
|
||||
uint32_t err = GPDMA_INT_ERR_STAT;
|
||||
|
||||
@@ -58,6 +58,8 @@ static const lpc24xx_pin_range tft_16_bit_5_6_5_pins[] = {
|
||||
|
||||
static void fb_set_up(const pl111_fb_config *cfg)
|
||||
{
|
||||
(void) cfg;
|
||||
|
||||
rtems_status_code sc;
|
||||
|
||||
sc = lpc24xx_module_enable(LPC24XX_MODULE_LCD, LPC24XX_MODULE_PCLK_DEFAULT);
|
||||
@@ -78,6 +80,8 @@ static void fb_set_up(const pl111_fb_config *cfg)
|
||||
|
||||
static void fb_pins_set_up(const pl111_fb_config *cfg)
|
||||
{
|
||||
(void) cfg;
|
||||
|
||||
rtems_status_code sc;
|
||||
|
||||
sc = lpc24xx_pin_config(tft_16_bit_5_6_5_pins, LPC24XX_PIN_SET_FUNCTION);
|
||||
@@ -88,6 +92,8 @@ static void fb_pins_set_up(const pl111_fb_config *cfg)
|
||||
|
||||
static void fb_pins_tear_down(const pl111_fb_config *cfg)
|
||||
{
|
||||
(void) cfg;
|
||||
|
||||
rtems_status_code sc;
|
||||
|
||||
sc = lpc24xx_pin_config(tft_16_bit_5_6_5_pins, LPC24XX_PIN_SET_INPUT);
|
||||
@@ -98,6 +104,8 @@ static void fb_pins_tear_down(const pl111_fb_config *cfg)
|
||||
|
||||
static void fb_tear_down(const pl111_fb_config *cfg)
|
||||
{
|
||||
(void) cfg;
|
||||
|
||||
rtems_status_code sc;
|
||||
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
|
||||
@@ -400,6 +400,9 @@ lpc24xx_pin_set_function(
|
||||
uint32_t fio_bit
|
||||
)
|
||||
{
|
||||
(void) fio_dir;
|
||||
(void) fio_bit;
|
||||
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
rtems_interrupt_level level;
|
||||
|
||||
@@ -448,6 +451,9 @@ static BSP_START_TEXT_SECTION rtems_status_code lpc24xx_pin_check_function(
|
||||
uint32_t fio_bit
|
||||
)
|
||||
{
|
||||
(void) fio_dir;
|
||||
(void) fio_bit;
|
||||
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
if ((*pinsel & pinsel_mask) == pinsel_value) {
|
||||
return RTEMS_SUCCESSFUL;
|
||||
@@ -455,6 +461,9 @@ static BSP_START_TEXT_SECTION rtems_status_code lpc24xx_pin_check_function(
|
||||
return RTEMS_IO_ERROR;
|
||||
}
|
||||
#else
|
||||
(void) iocon;
|
||||
(void) pin_range;
|
||||
|
||||
/* TODO */
|
||||
return RTEMS_IO_ERROR;
|
||||
#endif
|
||||
@@ -474,6 +483,14 @@ lpc24xx_pin_set_input(
|
||||
uint32_t fio_bit
|
||||
)
|
||||
{
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
(void) pinsel_value;
|
||||
#else
|
||||
(void) pin_range;
|
||||
#endif
|
||||
(void) fio_dir;
|
||||
(void) fio_bit;
|
||||
|
||||
rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
@@ -501,6 +518,11 @@ static BSP_START_TEXT_SECTION rtems_status_code lpc24xx_pin_check_input(
|
||||
uint32_t fio_bit
|
||||
)
|
||||
{
|
||||
#ifdef ARM_MULTILIB_ARCH_V4
|
||||
(void) pinsel_value;
|
||||
#else
|
||||
(void) pin_range;
|
||||
#endif
|
||||
rtems_status_code sc = RTEMS_IO_ERROR;
|
||||
bool is_input = (*fio_dir & fio_bit) == 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user