diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-17 17:00:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-17 17:00:35 +0000 |
commit | 1964b69a8b8b33846f9a4ab19a0df16853073d42 (patch) | |
tree | 4caf16a9226e41810d3a2b2f1e7c7b270b084f8b /c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c | |
parent | 2007-04-17 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-1964b69a8b8b33846f9a4ab19a0df16853073d42.tar.bz2 |
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.
Diffstat (limited to 'c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c b/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c index 0bfad4a790..2a7291ad10 100644 --- a/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c +++ b/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c @@ -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); } |