source: rtems/bsps/m68k/mcf5235/include/bsp.h

Last change on this file was c991eeec, checked in by Sebastian Huber <sebastian.huber@…>, on 03/04/19 at 14:32:15

bsps: Adjust bsp.h Doxygen groups

Update #3706.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSBSPsM68kMCF5235
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 *  mcf5235 BSP header file
11 */
12
13#ifndef LIBBSP_M68K_MCF5235_BSP_H
14#define LIBBSP_M68K_MCF5235_BSP_H
15
16/**
17 * @defgroup RTEMSBSPsM68kMCF5235 MCF5235
18 *
19 * @ingroup RTEMSBSPsM68k
20 *
21 * @brief MCF5235 Board Support Package.
22 *
23 * @{
24 */
25
26#include <bspopts.h>
27#include <bsp/default-initial-extension.h>
28#include <rtems.h>
29#include <rtems/bspIo.h>
30
31/***************************************************************************/
32/**  Hardware data structure headers                                      **/
33#include <mcf5235/mcf5235.h>   /* internal MCF5235 modules */
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/***************************************************************************/
40/**  Network driver configuration                                         **/
41struct rtems_bsdnet_ifconfig;
42extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
43#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
44#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
45
46/***************************************************************************/
47/**  User Definable configuration                                         **/
48
49/* define which port the console should use - all other ports are then defined as general purpose */
50#define CONSOLE_PORT        0
51
52/* functions */
53
54uint32_t get_CPU_clock_speed(void);
55rtems_isr_entry set_vector(
56  rtems_isr_entry     handler,
57  rtems_vector_number vector,
58  int                 type
59);
60
61/*
62 * Interrupt assignments
63 *  Highest-priority listed first
64 */
65#define FEC_IRQ_LEVEL       4
66#define FEC_IRQ_RX_PRIORITY 7
67#define FEC_IRQ_TX_PRIORITY 6
68
69#define PIT3_IRQ_LEVEL      4
70#define PIT3_IRQ_PRIORITY   0
71
72#define UART0_IRQ_LEVEL     3
73#define UART0_IRQ_PRIORITY  7
74#define UART1_IRQ_LEVEL     3
75#define UART1_IRQ_PRIORITY  6
76#define UART2_IRQ_LEVEL     3
77#define UART2_IRQ_PRIORITY  5
78
79/*
80 * Prototypes for BSP methods which cross file boundaries
81 */
82void Init5235(void);
83
84#ifdef __cplusplus
85}
86#endif
87
88/** @} */
89
90#endif
Note: See TracBrowser for help on using the repository browser.