Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsARMCSB336
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  BSP CSB336 header file
0011  *
0012  *  Copyright (c) 2004 Cogent Computer Systems
0013  *  Written 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_CSB336_BSP_H
0020 #define LIBBSP_ARM_CSB336_BSP_H
0021 
0022 /**
0023  * @defgroup RTEMSBSPsARMCSB336 CSB336
0024  *
0025  * @ingroup RTEMSBSPsARM Board Support Package
0026  *
0027  * @brief CSB336 support package.
0028  *
0029  * @{
0030  */
0031 
0032 #include <bspopts.h>
0033 #include <bsp/default-initial-extension.h>
0034 
0035 #include <rtems.h>
0036 #include <mc9328mxl.h>
0037 
0038 #ifdef __cplusplus
0039 extern "C" {
0040 #endif
0041 
0042 #define BSP_FEATURE_IRQ_EXTENSION
0043 
0044 /* What is the input clock freq in hertz? */
0045 #define BSP_OSC_FREQ  16000000    /* 16 MHz oscillator */
0046 #define BSP_XTAL_FREQ 32768       /* 32.768 KHz crystal */
0047 
0048 int get_perclk1_freq(void);
0049 
0050 /**
0051  * @brief Network driver configuration
0052  */
0053 struct rtems_bsdnet_ifconfig;
0054 
0055 /* Change these to match your board */
0056 int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
0057                                 void *chip);
0058 #define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
0059 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mc9328mxl_enet_attach
0060 
0061 #ifdef __cplusplus
0062 }
0063 #endif
0064 
0065 /** @} */
0066 
0067 #endif /* _BSP_H */
0068