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:
Joel Sherrill
2007-04-17 17:00:35 +00:00
parent 004b7410e6
commit 1964b69a8b
3 changed files with 17 additions and 19 deletions

View File

@@ -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> 2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* bsp_specs: Remove qrtems_debug. * bsp_specs: Remove qrtems_debug.

View File

@@ -69,12 +69,12 @@ extern "C" {
/* /*
* Ezkit flash ports * Ezkit flash ports
*/ */
#define FlashA_PortB_Dir 0x20270007 #define FlashA_PortB_Dir 0x20270007L
#define FlashA_PortB_Data 0x20270005 #define FlashA_PortB_Data 0x20270005L
// Blackfin environment memory map // Blackfin environment memory map
// //
#define L1_DATA_SRAM_A 0xff800000 #define L1_DATA_SRAM_A 0xff800000L
#define FIFOLENGTH 0x100 #define FIFOLENGTH 0x100
@@ -123,14 +123,12 @@ extern rtems_configuration_table BSP_Configuration;
* Helper Function to use the EzKits LEDS. * Helper Function to use the EzKits LEDS.
* Can be used by the Application. * Can be used by the Application.
*/ */
void setLED (char value); void setLED (uint8_t value);
/* /*
* Helper Function to use the EzKits LEDS * 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_isr_entry handler, /* isr routine */

View File

@@ -88,7 +88,6 @@ void bsp_start( void )
{ {
extern void * _WorkspaceBase; extern void * _WorkspaceBase;
extern void *_RamSize;
/* BSP Hardware Initialization*/ /* BSP Hardware Initialization*/
Init_RTC(); /* Blackfin Real Time Clock initialization */ Init_RTC(); /* Blackfin Real Time Clock initialization */
@@ -96,10 +95,6 @@ void bsp_start( void )
Init_EBIU(); /* EBIU initialization */ Init_EBIU(); /* EBIU initialization */
Init_Flags(); /* GPIO 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 * Allocate the memory for the RTEMS Work Space. This can come from
* a variety of places: hard coded address, malloc'ed from outside * a variety of places: hard coded address, malloc'ed from outside
@@ -126,7 +121,7 @@ void bsp_start( void )
int i=0; int i=0;
for (i=5;i<16;i++) { 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) void Init_EBIU (void)
{ {
/* Configure FLASH */ /* Configure FLASH */
*((uint16_t*)EBIU_AMBCTL0) = 0x7bb07bb0; *((uint16_t*)EBIU_AMBCTL0) = 0x7bb07bb0L;
*((uint16_t*)EBIU_AMBCTL1) = 0x7bb07bb0; *((uint16_t*)EBIU_AMBCTL1) = 0x7bb07bb0L;
*((uint16_t*)EBIU_AMGCTL) = 0x000f; *((uint16_t*)EBIU_AMGCTL) = 0x000f;
/* Configure SDRAM /* Configure SDRAM
@@ -198,7 +193,7 @@ void Init_Flags(void)
* Helper Function to use the EzKits LEDS. * Helper Function to use the EzKits LEDS.
* Can be used by the Application. * Can be used by the Application.
*/ */
void setLED (char value) void setLED (uint8_t value)
{ {
*((uint8_t*)FlashA_PortB_Data) = value; *((uint8_t*)FlashA_PortB_Data) = value;
} }
@@ -206,7 +201,7 @@ void setLED (char value)
/* /*
* Helper Function to use the EzKits LEDS * Helper Function to use the EzKits LEDS
*/ */
char getLED (void) uint8_t getLED (void)
{ {
return *((uint8_t*)FlashA_PortB_Data); return *((uint8_t*)FlashA_PortB_Data);
} }