forked from Imagelibrary/rtems
powerpc/haleakala: Fix warnings
This commit is contained in:
@@ -36,8 +36,15 @@ static int not_connected(void)
|
|||||||
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
|
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
|
||||||
static rtems_irq_global_settings initial_config;
|
static rtems_irq_global_settings initial_config;
|
||||||
static rtems_irq_connect_data defaultIrq = {
|
static rtems_irq_connect_data defaultIrq = {
|
||||||
/* name, hdl , handle , on , off , isOn */
|
.name = 0,
|
||||||
0, nop_func , NULL , nop_func , nop_func , not_connected
|
.hdl = NULL,
|
||||||
|
.handle = NULL,
|
||||||
|
.on = (rtems_irq_enable) nop_func,
|
||||||
|
.off = (rtems_irq_disable) nop_func,
|
||||||
|
.isOn = (rtems_irq_is_enabled) not_connected,
|
||||||
|
#ifdef BSP_SHARED_HANDLER_SUPPORT
|
||||||
|
.next_handler = NULL
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={
|
static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ InitUARTClock(void)
|
|||||||
mtsdr(SDR0_UART0,reg);
|
mtsdr(SDR0_UART0,reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPIO_AlternateSelect(int bitnum, int source)
|
static void GPIO_AlternateSelect(int bitnum, int source)
|
||||||
/* PPC405EX: select a GPIO function for the specified pin */
|
/* PPC405EX: select a GPIO function for the specified pin */
|
||||||
{
|
{
|
||||||
int shift;
|
int shift;
|
||||||
@@ -124,7 +124,7 @@ void GPIO_AlternateSelect(int bitnum, int source)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init_FPGA(void)
|
static void Init_FPGA(void)
|
||||||
{
|
{
|
||||||
/* Have to write to the FPGA to enable the UART drivers */
|
/* Have to write to the FPGA to enable the UART drivers */
|
||||||
/* Have to enable CS2 as an output in GPIO to get the FPGA working */
|
/* Have to enable CS2 as an output in GPIO to get the FPGA working */
|
||||||
@@ -161,9 +161,6 @@ BSP_polling_getchar_function_type BSP_poll_char = NULL;
|
|||||||
|
|
||||||
void bsp_start( void )
|
void bsp_start( void )
|
||||||
{
|
{
|
||||||
ppc_cpu_id_t myCpu;
|
|
||||||
ppc_cpu_revision_t myCpuRevision;
|
|
||||||
|
|
||||||
/* Get the UART clock initialized first in case we call printk */
|
/* Get the UART clock initialized first in case we call printk */
|
||||||
|
|
||||||
InitUARTClock();
|
InitUARTClock();
|
||||||
@@ -175,8 +172,8 @@ void bsp_start( void )
|
|||||||
* function store the result in global variables
|
* function store the result in global variables
|
||||||
* so that it can be used later...
|
* so that it can be used later...
|
||||||
*/
|
*/
|
||||||
myCpu = get_ppc_cpu_type();
|
get_ppc_cpu_type();
|
||||||
myCpuRevision = get_ppc_cpu_revision();
|
get_ppc_cpu_revision();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize the device driver parameters
|
* initialize the device driver parameters
|
||||||
@@ -205,7 +202,7 @@ void bsp_start( void )
|
|||||||
BSP_rtems_irq_mng_init(0);
|
BSP_rtems_irq_mng_init(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSP_ask_for_reset(void)
|
static void BSP_ask_for_reset(void)
|
||||||
{
|
{
|
||||||
printk("system stopped, press RESET");
|
printk("system stopped, press RESET");
|
||||||
while(1) {};
|
while(1) {};
|
||||||
@@ -219,6 +216,7 @@ void BSP_panic(char *s)
|
|||||||
|
|
||||||
void _BSP_Fatal_error(unsigned int v)
|
void _BSP_Fatal_error(unsigned int v)
|
||||||
{
|
{
|
||||||
printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
|
printk("%s FATAL ERROR %x\n",_RTEMS_version, v);
|
||||||
BSP_ask_for_reset();
|
BSP_ask_for_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user