source: rtems/bsps/arm/csb337/include/bsp.h @ f4db49a1

5
Last change on this file since f4db49a1 was 8bd4f61c, checked in by Sebastian Huber <sebastian.huber@…>, on 05/06/19 at 05:56:01

bsps: Remove bogus config declaration

Replace it with a proper struct rtems_bsdnet_ifconfig forward
declaration.

Close #3742.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSBSPsARMCSB337
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 * CSB337 BSP header file
11 *
12 * Copyright (c) 2004 by Cogent Computer Systems
13 * Writtent by Jay Monkman <jtm@lopingdog.com>
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.org/license/LICENSE.
18 */
19#ifndef LIBBSP_ARM_CSB337_BSP_H
20#define LIBBSP_ARM_CSB337_BSP_H
21
22/**
23 * @defgroup RTEMSBSPsARMCSB337 CSB337
24 *
25 * @ingroup RTEMSBSPsARM
26 *
27 * @brief CSB337 Board Support Package.
28 *
29 * @{
30 */
31
32#include <bspopts.h>
33#include <bsp/default-initial-extension.h>
34
35#include <rtems.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#define BSP_FEATURE_IRQ_EXTENSION
42
43/* What is the input clock freq in hertz? */
44#define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
45#define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
46
47/* What is the last interrupt? */
48#define BSP_MAX_INT AT91RM9200_MAX_INT
49
50/*
51 * forward reference the type to avoid conflicts between libchip serial
52 * and libchip rtc get and set register types.
53 */
54typedef struct _console_tbl console_tbl;
55console_tbl *BSP_get_uart_from_minor(int minor);
56
57static inline int32_t BSP_get_baud(void) {return 38400;}
58
59#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec */
60
61/**
62 * @brief Network driver configuration
63 */
64struct rtems_bsdnet_ifconfig;
65
66/* Change these to match your board */
67int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
68#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
69#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_at91rm9200_emac_attach
70
71#ifdef __cplusplus
72}
73#endif
74
75/** @} */
76
77#endif /* _BSP_H */
78
Note: See TracBrowser for help on using the repository browser.