Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:45

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /**
0004  * @file
0005  *
0006  * @ingroup RTEMSBSPsM68kGen68340
0007  *
0008  * @brief Global BSP definitions.
0009  */
0010 
0011 /*
0012  * Board Support Package for `Generic' Motorola MC68340
0013  *
0014  * Based on the `gen68360' board support package, and covered by the
0015  * original distribution terms.
0016  */
0017 
0018 /*  bsp.h
0019  *
0020  *  COPYRIGHT (c) 1989-1999.
0021  *  On-Line Applications Research Corporation (OAR).
0022  *
0023  * Redistribution and use in source and binary forms, with or without
0024  * modification, are permitted provided that the following conditions
0025  * are met:
0026  * 1. Redistributions of source code must retain the above copyright
0027  *    notice, this list of conditions and the following disclaimer.
0028  * 2. Redistributions in binary form must reproduce the above copyright
0029  *    notice, this list of conditions and the following disclaimer in the
0030  *    documentation and/or other materials provided with the distribution.
0031  *
0032  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0033  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0034  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0035  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0036  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0037  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0038  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0039  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0040  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0041  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0042  * POSSIBILITY OF SUCH DAMAGE.
0043  */
0044 
0045 #ifndef LIBBSP_M68K_GEN68340_BSP_H
0046 #define LIBBSP_M68K_GEN68340_BSP_H
0047 
0048 /**
0049  * @defgroup RTEMSBSPsM68kGen68340 Motorola 68340
0050  *
0051  * @ingroup RTEMSBSPsM68k
0052  *
0053  * @brief Motorola 68340 Board Support Package.
0054  *
0055  * @{
0056  */
0057 
0058 #ifndef ASM
0059 
0060 #include <bspopts.h>
0061 #include <bsp/default-initial-extension.h>
0062 
0063 #include <rtems.h>
0064 
0065 #ifdef __cplusplus
0066 extern "C" {
0067 #endif
0068 
0069 /* Constants */
0070 
0071 /* Structures */
0072 
0073 extern rtems_isr_entry M68Kvec[];   /* vector table address */
0074 
0075 /* functions */
0076 
0077 rtems_isr_entry set_vector(
0078   rtems_isr_entry     handler,
0079   rtems_vector_number vector,
0080   int                 type
0081 );
0082 
0083 /*
0084  *  Methods used across files inside the BSP
0085  */
0086 int dbug_in_char( int minor );
0087 void dbug_out_char( int minor, int ch );
0088 int dbug_char_present( int minor );
0089 void _dbug_dumpanic(void);
0090 
0091 /*
0092  *  Only called from .S but prototyped here to capture the dependecy.
0093  */
0094 void _Init68340 (void);
0095 
0096 #ifdef __cplusplus
0097 }
0098 #endif
0099 
0100 #endif /* !ASM */
0101 
0102 /** @} */
0103 
0104 #endif