source: rtems/bsps/arm/gumstix/include/bsp.h @ 3b2817b6

5
Last change on this file since 3b2817b6 was 3b2817b6, checked in by Sebastian Huber <sebastian.huber@…>, on 05/25/18 at 08:19:32

gumstix: Remove CONFIGURE_INTERRUPT_STACK_MEMORY

This define is not supported by confdefs.h. In addition, on ARM the
interrupt stack size is defined by the linker command file.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/**
2 * @file
3 * @ingroup arm_gumstix
4 * @brief Global BSP definitions.
5 */
6
7/*
8 *  By Yang Xi <hiyangxi@gmail.com>.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef LIBBSP_ARM_GUMSTIX_BSP_H
16#define LIBBSP_ARM_GUMSTIX_BSP_H
17
18#include <bspopts.h>
19#include <bsp/default-initial-extension.h>
20
21#include <rtems.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/**
28 * @defgroup arm_gumstix Gumstix Support
29 * @ingroup bsp_arm
30 * @brief Gumstix support package
31 * @{
32 */
33
34#define BSP_FEATURE_IRQ_EXTENSION
35
36#define BSP_HAS_FRAME_BUFFER 1
37
38/** @brief What is the input clock freq in hertz */
39#define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
40#define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
41
42/** @brief What is the last interrupt */
43#define BSP_MAX_INT AT91RM9200_MAX_INT
44
45/*
46 * forward reference the type to avoid conflicts between libchip serial
47 * and libchip rtc get and set register types.
48 */
49typedef struct _console_tbl console_tbl;
50console_tbl *BSP_get_uart_from_minor(int minor);
51
52static inline int32_t BSP_get_baud(void) {return 115200;}
53
54#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec */
55
56#define outport_byte(port,val) *((unsigned char volatile*)(port)) = (val)
57#define inport_byte(port,val) (val) = *((unsigned char volatile*)(port))
58#define outport_word(port,val) *((unsigned short volatile*)(port)) = (val)
59#define inport_word(port,val) (val) = *((unsigned short volatile*)(port))
60
61struct rtems_bsdnet_ifconfig;
62extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int);
63#define BSP_NE2000_NETWORK_DRIVER_NAME      "ne1"
64#define BSP_NE2000_NETWORK_DRIVER_ATTACH    rtems_ne_driver_attach
65
66#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
67#define RTEMS_BSP_NETWORK_DRIVER_NAME   BSP_NE2000_NETWORK_DRIVER_NAME
68#endif
69
70#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
71#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_NE2000_NETWORK_DRIVER_ATTACH
72#endif
73
74/** @} */
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* _BSP_H */
81
Note: See TracBrowser for help on using the repository browser.