Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsLM32Milkymist
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*  bsp.h
0010  *
0011  *  This include file contains all board IO definitions.
0012  *
0013  *  The license and distribution terms for this file may be
0014  *  found in the file LICENSE in this distribution or at
0015  *  http://www.rtems.org/license/LICENSE.
0016  *
0017  *  COPYRIGHT (c) 2011 Sebastien Bourdeauducq
0018  */
0019 
0020 #ifndef LIBBSP_LM32_MILKYMIST_BSP_H
0021 #define LIBBSP_LM32_MILKYMIST_BSP_H
0022 
0023 #include <stdint.h>
0024 #include <bspopts.h>
0025 #include <bsp/default-initial-extension.h>
0026 
0027 #include <rtems.h>
0028 
0029 /**
0030  * @defgroup RTEMSBSPsLM32Milkymist Milkymist
0031  * 
0032  * @ingroup RTEMSBSPsLM32
0033  * 
0034  * @brief Milkymist Board Support Package.
0035  *
0036  * @{
0037  */
0038 
0039 #ifdef __cplusplus
0040 extern "C" {
0041 #endif
0042 
0043 #define BSP_HAS_FRAME_BUFFER 1
0044 
0045 /*
0046  * lm32 requires certain aligment of mbuf because unaligned uint32_t
0047  * accesses are not handled properly.
0048  */
0049 
0050 #define CPU_U32_FIX
0051 
0052 #if defined(RTEMS_NETWORKING)
0053 struct rtems_bsdnet_ifconfig;
0054 extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
0055                                         int attaching);
0056 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_minimac_driver_attach
0057 #define RTEMS_BSP_NETWORK_DRIVER_NAME "minimac0"
0058 #endif
0059 
0060 #ifdef __cplusplus
0061 }
0062 #endif
0063 
0064 /** @} */
0065 
0066 #endif