summaryrefslogtreecommitdiff
path: root/include/lm32/milkymist/bsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lm32/milkymist/bsp.h')
-rw-r--r--include/lm32/milkymist/bsp.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/include/lm32/milkymist/bsp.h b/include/lm32/milkymist/bsp.h
new file mode 100644
index 0000000000..3813a03551
--- /dev/null
+++ b/include/lm32/milkymist/bsp.h
@@ -0,0 +1,65 @@
+/**
+ * @file
+ *
+ * @ingroup lm32_milkymist
+ *
+ * @brief Global BSP definitions.
+ */
+
+/* bsp.h
+ *
+ * This include file contains all board IO definitions.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ *
+ * COPYRIGHT (c) 2011 Sebastien Bourdeauducq
+ */
+
+#ifndef LIBBSP_LM32_MILKYMIST_BSP_H
+#define LIBBSP_LM32_MILKYMIST_BSP_H
+
+#include <stdint.h>
+#include <bspopts.h>
+#include <bsp/default-initial-extension.h>
+
+#include <rtems.h>
+#include <rtems/console.h>
+#include <rtems/clockdrv.h>
+
+/**
+ * @defgroup lm32_milkymist Milkymist Support
+ *
+ * @ingroup bsp_lm32
+ *
+ * @brief Milkymist support package.
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define BSP_HAS_FRAME_BUFFER 1
+
+/*
+ * lm32 requires certain aligment of mbuf because unaligned uint32_t
+ * accesses are not handled properly.
+ */
+
+#define CPU_U32_FIX
+
+#if defined(RTEMS_NETWORKING)
+#include <rtems/rtems_bsdnet.h>
+struct rtems_bsdnet_ifconfig;
+extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
+ int attaching);
+#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_minimac_driver_attach
+#define RTEMS_BSP_NETWORK_DRIVER_NAME "minimac0"
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif