source: rtems/bsps/m68k/genmcf548x/include/bsp.h @ 621ddfce

Last change on this file since 621ddfce was 621ddfce, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:17:37

m68k/genmcf548x: Manual file header clean up

Updates #4625.

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