Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:22:49

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsARMCSB337
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  * CSB337 BSP header file
0011  *
0012  * Copyright (c) 2004 by Cogent Computer Systems
0013  * Writtent by Jay Monkman <jtm@lopingdog.com>
0014  *
0015  *  The license and distribution terms for this file may be
0016  *  found in the file LICENSE in this distribution or at
0017  *  http://www.rtems.org/license/LICENSE.
0018  */
0019 #ifndef LIBBSP_ARM_CSB337_BSP_H
0020 #define LIBBSP_ARM_CSB337_BSP_H
0021 
0022 /**
0023  * @defgroup RTEMSBSPsARMCSB337 CSB337
0024  *
0025  * @ingroup RTEMSBSPsARM
0026  *
0027  * @brief CSB337 Board Support Package.
0028  *
0029  * @{
0030  */
0031 
0032 #include <bspopts.h>
0033 #include <bsp/default-initial-extension.h>
0034 
0035 #include <rtems.h>
0036 
0037 #ifdef __cplusplus
0038 extern "C" {
0039 #endif
0040 
0041 #define BSP_FEATURE_IRQ_EXTENSION
0042 
0043 /* What is the input clock freq in hertz? */
0044 #define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
0045 #define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
0046 
0047 /* What is the last interrupt? */
0048 #define BSP_MAX_INT AT91RM9200_MAX_INT
0049 
0050 /*
0051  * forward reference the type to avoid conflicts between libchip serial
0052  * and libchip rtc get and set register types.
0053  */
0054 typedef struct _console_tbl console_tbl;
0055 console_tbl *BSP_get_uart_from_minor(int minor);
0056 
0057 static inline int32_t BSP_get_baud(void) {return 38400;}
0058 
0059 #define ST_PIMR_PIV 33  /* 33 ticks of the 32.768Khz clock ~= 1msec */
0060 
0061 /**
0062  * @brief Network driver configuration
0063  */
0064 struct rtems_bsdnet_ifconfig;
0065 
0066 /* Change these to match your board */
0067 int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
0068 #define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
0069 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_at91rm9200_emac_attach
0070 
0071 #ifdef __cplusplus
0072 }
0073 #endif
0074 
0075 /** @} */
0076 
0077 #endif /* _BSP_H */
0078