summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/bfin
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-17 17:00:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-17 17:00:35 +0000
commit1964b69a8b8b33846f9a4ab19a0df16853073d42 (patch)
tree4caf16a9226e41810d3a2b2f1e7c7b270b084f8b /c/src/lib/libbsp/bfin
parent2007-04-17 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-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')
-rw-r--r--c/src/lib/libbsp/bfin/eZKit533/ChangeLog5
-rw-r--r--c/src/lib/libbsp/bfin/eZKit533/include/bsp.h14
-rw-r--r--c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c17
3 files changed, 17 insertions, 19 deletions
diff --git a/c/src/lib/libbsp/bfin/eZKit533/ChangeLog b/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
index 6bce4f0189..77605cb59c 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
+++ b/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
@@ -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.
diff --git a/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h b/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h
index 5c67d2727a..4bf53ca998 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h
+++ b/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h
@@ -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 */
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);
}