summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/erc32/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-19 16:05:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-19 16:05:38 +0000
commit0fed29abc5fe97416d69033dbbb01834515d16d6 (patch)
tree6f069f93f666049d4aaded281a72963eb8f46d7c /c/src/lib/libbsp/sparc/erc32/include/bsp.h
parent2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-0fed29abc5fe97416d69033dbbb01834515d16d6.tar.bz2
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into its own file. Properly note to confdefs.h that this BSP has its own idle thread. * startup/bspidle.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/include/bsp.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
index 24bf09fb5f..8ce20cce72 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
@@ -36,19 +36,18 @@ extern "C" {
#include <rtems/console.h>
/*
- * confdefs.h overrides for this BSP:
- * - two termios serial ports
- * - Interrupt stack space is not minimum if defined.
+ * BSP provides its own Idle thread body
*/
-
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
+void *bsp_idle_thread( uintptr_t ignored );
+#define BSP_IDLE_TASK_BODY bsp_idle_thread
/*
* Network driver configuration
*/
-
struct rtems_bsdnet_ifconfig;
-extern int rtems_erc32_sonic_driver_attach (struct rtems_bsdnet_ifconfig *config);
+extern int rtems_erc32_sonic_driver_attach(
+ struct rtems_bsdnet_ifconfig *config
+);
#define RTEMS_BSP_NETWORK_DRIVER_NAME "sonic1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_erc32_sonic_driver_attach
@@ -56,8 +55,7 @@ extern int rtems_erc32_sonic_driver_attach (struct rtems_bsdnet_ifconfig *config
* Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target.
*/
-
-extern void Clock_delay(uint32_t microseconds);
+extern void Clock_delay(uint32_t microseconds);
#define delay( microseconds ) Clock_delay(microseconds)