forked from Imagelibrary/rtems
2007-04-17 Joel Sherrill <joel@OARcorp.com>
* include/bsp.h, startup/bspstart.c: Fix compile errors and address most warnings about constants being too large.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-04-17 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Fix compile errors and address
|
||||
most warnings about constants being too large.
|
||||
|
||||
2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* bsp_specs: Remove qrtems_debug.
|
||||
|
||||
@@ -69,12 +69,12 @@ extern "C" {
|
||||
/*
|
||||
* Ezkit flash ports
|
||||
*/
|
||||
#define FlashA_PortB_Dir 0x20270007
|
||||
#define FlashA_PortB_Data 0x20270005
|
||||
#define FlashA_PortB_Dir 0x20270007L
|
||||
#define FlashA_PortB_Data 0x20270005L
|
||||
|
||||
// Blackfin environment memory map
|
||||
//
|
||||
#define L1_DATA_SRAM_A 0xff800000
|
||||
#define L1_DATA_SRAM_A 0xff800000L
|
||||
|
||||
#define FIFOLENGTH 0x100
|
||||
|
||||
@@ -123,16 +123,14 @@ extern rtems_configuration_table BSP_Configuration;
|
||||
* Helper Function to use the EzKits LEDS.
|
||||
* Can be used by the Application.
|
||||
*/
|
||||
void setLED (char value);
|
||||
void setLED (uint8_t value);
|
||||
|
||||
/*
|
||||
* Helper Function to use the EzKits LEDS
|
||||
*/
|
||||
char getLED (void);
|
||||
uint8_t getLED (void);
|
||||
|
||||
void bsp_cleanup( void );
|
||||
|
||||
rtems_isr_entry set_vector( /* returns old vector */
|
||||
rtems_isr_entry set_vector( /* returns old vector */
|
||||
rtems_isr_entry handler, /* isr routine */
|
||||
rtems_vector_number vector, /* vector number */
|
||||
int type /* RTEMS or RAW intr */
|
||||
|
||||
@@ -87,8 +87,7 @@ void bsp_pretasking_hook(void)
|
||||
void bsp_start( void )
|
||||
{
|
||||
|
||||
extern void * _WorkspaceBase;
|
||||
extern void *_RamSize;
|
||||
extern void * _WorkspaceBase;
|
||||
|
||||
/* BSP Hardware Initialization*/
|
||||
Init_RTC(); /* Blackfin Real Time Clock initialization */
|
||||
@@ -96,10 +95,6 @@ void bsp_start( void )
|
||||
Init_EBIU(); /* EBIU initialization */
|
||||
Init_Flags(); /* GPIO initialization */
|
||||
|
||||
|
||||
/*extern unsigned long _M68k_Ramsize;
|
||||
_M68k_Ramsize = (unsigned long)&_RamSize;*/ /* RAM size set in linker script */
|
||||
|
||||
/*
|
||||
* Allocate the memory for the RTEMS Work Space. This can come from
|
||||
* a variety of places: hard coded address, malloc'ed from outside
|
||||
@@ -126,7 +121,7 @@ void bsp_start( void )
|
||||
|
||||
int i=0;
|
||||
for (i=5;i<16;i++) {
|
||||
set_vector(null_isr, i, 1);
|
||||
set_vector((rtems_isr_entry)null_isr, i, 1);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -167,8 +162,8 @@ void Init_PLL (void)
|
||||
void Init_EBIU (void)
|
||||
{
|
||||
/* Configure FLASH */
|
||||
*((uint16_t*)EBIU_AMBCTL0) = 0x7bb07bb0;
|
||||
*((uint16_t*)EBIU_AMBCTL1) = 0x7bb07bb0;
|
||||
*((uint16_t*)EBIU_AMBCTL0) = 0x7bb07bb0L;
|
||||
*((uint16_t*)EBIU_AMBCTL1) = 0x7bb07bb0L;
|
||||
*((uint16_t*)EBIU_AMGCTL) = 0x000f;
|
||||
|
||||
/* Configure SDRAM
|
||||
@@ -198,7 +193,7 @@ void Init_Flags(void)
|
||||
* Helper Function to use the EzKits LEDS.
|
||||
* Can be used by the Application.
|
||||
*/
|
||||
void setLED (char value)
|
||||
void setLED (uint8_t value)
|
||||
{
|
||||
*((uint8_t*)FlashA_PortB_Data) = value;
|
||||
}
|
||||
@@ -206,7 +201,7 @@ void setLED (char value)
|
||||
/*
|
||||
* Helper Function to use the EzKits LEDS
|
||||
*/
|
||||
char getLED (void)
|
||||
uint8_t getLED (void)
|
||||
{
|
||||
return *((uint8_t*)FlashA_PortB_Data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user