RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
9/*
10 * Copyright (c) 2009 Yang Xi <hiyangxi@gmail.com>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef LIBBSP_ARM_GUMSTIX_BSP_H
18#define LIBBSP_ARM_GUMSTIX_BSP_H
19
30#include <bspopts.h>
32
33#include <rtems.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#define BSP_FEATURE_IRQ_EXTENSION
40
41#define BSP_HAS_FRAME_BUFFER 1
42
44#define BSP_MAIN_FREQ 3686400 /* 3.6864 MHz */
45#define BSP_SLCK_FREQ 32768 /* 32.768 KHz */
46
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 115200;}
58
59#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */
60
61#define outport_byte(port,val) *((unsigned char volatile*)(port)) = (val)
62#define inport_byte(port,val) (val) = *((unsigned char volatile*)(port))
63#define outport_word(port,val) *((unsigned short volatile*)(port)) = (val)
64#define inport_word(port,val) (val) = *((unsigned short volatile*)(port))
65
66struct rtems_bsdnet_ifconfig;
67extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int);
68#define BSP_NE2000_NETWORK_DRIVER_NAME "ne1"
69#define BSP_NE2000_NETWORK_DRIVER_ATTACH rtems_ne_driver_attach
70
71#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
72#define RTEMS_BSP_NETWORK_DRIVER_NAME BSP_NE2000_NETWORK_DRIVER_NAME
73#endif
74
75#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
76#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_NE2000_NETWORK_DRIVER_ATTACH
77#endif
78
79#ifdef __cplusplus
80}
81#endif
82
85#endif /* _BSP_H */
86
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.
Definition: serial.h:136