source: rtems/bsps/m68k/genmcf548x/include/bsp.h @ 212663be

5
Last change on this file since 212663be was 212663be, checked in by Sebastian Huber <sebastian.huber@…>, on 02/26/19 at 14:44:50

bsps: Adjust architecture Doxygen groups

  • Use CamelCase as it is not used in our C code. Enables simple search and replace.
  • Prefix with "RTEMS" to aid deployment and integration. It aids searching and sorting.

Update #3706.

  • Property mode set to 100644
File size: 5.1 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup m68k_genmcf548x
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*===============================================================*\
10| Project: RTEMS generic mcf548x BSP                              |
11+-----------------------------------------------------------------+
12| File: bsp.h                                                     |
13+-----------------------------------------------------------------+
14| The file contains the BSP header of generic MCF548x BSP.        |
15+-----------------------------------------------------------------+
16|                    Copyright (c) 2007                           |
17|                    Embedded Brains GmbH                         |
18|                    Obere Lagerstr. 30                           |
19|                    D-82178 Puchheim                             |
20|                    Germany                                      |
21|                    rtems@embedded-brains.de                     |
22+-----------------------------------------------------------------+
23|                                                                 |
24| Parts of the code has been derived from the "dBUG source code"  |
25| package Freescale is providing for M548X EVBs. The usage of     |
26| the modified or unmodified code and it's integration into the   |
27| generic mcf548x BSP has been done according to the Freescale    |
28| license terms.                                                  |
29|                                                                 |
30| The Freescale license terms can be reviewed in the file         |
31|                                                                 |
32|    Freescale_license.txt                                        |
33|                                                                 |
34+-----------------------------------------------------------------+
35|                                                                 |
36| The generic mcf548x BSP has been developed on the basic         |
37| structures and modules of the av5282 BSP.                       |
38|                                                                 |
39+-----------------------------------------------------------------+
40|                                                                 |
41| The license and distribution terms for this file may be         |
42| found in the file LICENSE in this distribution or at            |
43|                                                                 |
44| http://www.rtems.org/license/LICENSE.                           |
45|                                                                 |
46+-----------------------------------------------------------------+
47|                                                                 |
48|   date                      history                        ID   |
49| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
50| 12.11.07                    1.0                            ras  |
51|                                                                 |
52\*===============================================================*/
53
54#ifndef LIBBSP_M68K_GENMCF548X_BSP_H
55#define LIBBSP_M68K_GENMCF548X_BSP_H
56
57#include <bspopts.h>
58#include <bsp/default-initial-extension.h>
59
60/**
61 * @defgroup m68k_genmcf548x MCF548X Support
62 *
63 * @ingroup RTEMSBSPsM68k
64 *
65 * @brief MCT548X support.
66 */
67
68#include <rtems.h>
69#include <rtems/bspIo.h>
70
71/***************************************************************************/
72/**  Hardware data structure headers                                      **/
73#include <mcf548x/mcf548x.h>
74
75#ifdef __cplusplus
76extern "C" {
77#endif
78
79/***************************************************************************/
80/**  User Definable configuration                                         **/
81
82/* define which port the console should use - all other ports are then defined as general purpose */
83#define CONSOLE_PORT        0
84
85/* functions */
86
87uint32_t get_CPU_clock_speed(void);
88
89rtems_isr_entry set_vector(
90  rtems_isr_entry     handler,
91  rtems_vector_number vector,
92  int                 type
93);
94
95/* Initial values for the interrupt level and priority registers (INTC_ICRn) */
96extern const uint8_t mcf548x_intc_icr_init_values[64];
97
98/*
99 * Network driver configuration
100 */
101struct rtems_bsdnet_ifconfig;
102extern int rtems_mcf548x_fec_driver_attach_detach(struct rtems_bsdnet_ifconfig *config,int attaching);
103#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mcf548x_fec_driver_attach_detach
104
105#define RTEMS_BSP_NETWORK_DRIVER_NAME   "fec1"
106#define RTEMS_BSP_NETWORK_DRIVER_NAME2  "fec2"
107
108#ifdef HAS_DBUG
109  typedef struct {
110    uint32_t console_baudrate;
111    uint8_t  server_ip [4];
112    uint8_t  client_ip [4];
113    uint8_t  gateway_ip[4];
114    uint8_t  netmask   [4];
115    uint8_t  spare[4];
116    uint8_t  macaddr   [6];
117    uint32_t ethport;   /* default fec port: 1 = fec1, 2 = fec2 */
118    uint32_t uartport;  /* default fec port: 1 = psc0, 2 = psc1... */   
119  } dbug_settings_t;
120 
121#define DBUG_SETTINGS (*(const dbug_settings_t *)0xFC020000)
122#endif /* HAS_DBUG */
123
124void bsp_cacr_set_flags(uint32_t flags);
125
126void bsp_cacr_set_self_clear_flags(uint32_t flags);
127
128void bsp_cacr_clear_flags(uint32_t flags);
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
Note: See TracBrowser for help on using the repository browser.