source: rtems/c/src/lib/libbsp/arm/csb337/include/bsp.h @ 748efe9

5
Last change on this file since 748efe9 was 748efe9, checked in by Joel Sherrill <joel@…>, on 03/29/16 at 18:10:50

arm/csb337: Remove include of <rtems/console.h> from <bsp.h> and fix warnings

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_csb337
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#include <bspopts.h>
23#include <bsp/default-initial-extension.h>
24
25#include <rtems.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/**
32 * @defgroup arm_csb337 CSB337 Support
33 *
34 * @ingroup bsp_arm
35 *
36 * @brief CSB337 support package.
37 *
38 * @{
39 */
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 */
64extern struct rtems_bsdnet_ifconfig *config;
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/** @} */
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* _BSP_H */
78
Note: See TracBrowser for help on using the repository browser.