![]() |
|
|||
File indexing completed on 2025-05-11 08:23:47
0001 /* SPDX-License-Identifier: BSD-2-Clause */ 0002 0003 /** 0004 * @file 0005 * 0006 * @ingroup RTEMSBSPsM68kMRM332 0007 * 0008 * @brief Global BSP definitions. 0009 */ 0010 0011 /* bsp.h 0012 * 0013 * This include file contains all mrm board IO definitions. 0014 */ 0015 0016 /* 0017 * COPYRIGHT (c) 1989-2009. 0018 * On-Line Applications Research Corporation (OAR). 0019 * 0020 * Redistribution and use in source and binary forms, with or without 0021 * modification, are permitted provided that the following conditions 0022 * are met: 0023 * 1. Redistributions of source code must retain the above copyright 0024 * notice, this list of conditions and the following disclaimer. 0025 * 2. Redistributions in binary form must reproduce the above copyright 0026 * notice, this list of conditions and the following disclaimer in the 0027 * documentation and/or other materials provided with the distribution. 0028 * 0029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0030 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0031 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0032 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 0033 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0034 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0035 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0036 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0037 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0038 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0039 * POSSIBILITY OF SUCH DAMAGE. 0040 */ 0041 0042 #ifndef LIBBSP_M68K_MRM332_BSP_H 0043 #define LIBBSP_M68K_MRM332_BSP_H 0044 0045 /** 0046 * @defgroup RTEMSBSPsM68kMRM332 MRM332 0047 * 0048 * @ingroup RTEMSBSPsM68k 0049 * 0050 * @brief MRM332 Board Support Package. 0051 * 0052 * @{ 0053 */ 0054 0055 #include <bspopts.h> 0056 #include <bsp/default-initial-extension.h> 0057 0058 #include <rtems.h> 0059 #include <rtems/bspIo.h> 0060 #include <mrm332.h> 0061 0062 #ifdef __cplusplus 0063 extern "C" { 0064 #endif 0065 0066 #define CONSOLE_SCI 0067 0068 /* externals */ 0069 0070 extern char _etext[]; 0071 extern char _copy_start[]; 0072 extern char _edata[]; 0073 extern char _clear_start[]; 0074 extern char end[]; 0075 extern bool _copy_data_from_rom; 0076 0077 /* constants */ 0078 0079 #ifdef __START_C__ 0080 #define STACK_SIZE "#0x800" 0081 #else 0082 #define STACK_SIZE 0x800 0083 #endif 0084 0085 /* macros */ 0086 0087 #define RAW_PUTS(str) \ 0088 { register char *ptr = str; \ 0089 while (*ptr) SCI_output_char(*ptr++); \ 0090 } 0091 0092 #define RAW_PUTI(n) { \ 0093 register int i, j; \ 0094 \ 0095 RAW_PUTS("0x"); \ 0096 for (i=28;i>=0;i -= 4) { \ 0097 j = (n>>i) & 0xf; \ 0098 SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \ 0099 } \ 0100 } 0101 0102 /* miscellaneous stuff assumed to exist */ 0103 0104 extern rtems_isr_entry M68Kvec[]; /* vector table address */ 0105 0106 extern int stack_size; 0107 extern int stack_start; 0108 0109 /* functions */ 0110 0111 rtems_isr_entry set_vector( 0112 rtems_isr_entry handler, 0113 rtems_vector_number vector, 0114 int type 0115 ); 0116 0117 void Spurious_Initialize(void); 0118 0119 void _UART_flush(void); 0120 0121 void outbyte(char); 0122 0123 #ifdef __cplusplus 0124 } 0125 #endif 0126 0127 /** @} */ 0128 0129 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |