Changeset 6da91abb in rtems
- Timestamp:
- 10/13/14 19:09:16 (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- c144c09
- Parents:
- 3c743901
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/13/14 19:09:16)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:45)
- Location:
- c/src/lib/libbsp/m68k/idp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/idp/console/console.c
r3c743901 r6da91abb 1 1 /* 2 2 * This file contains the Motorola IDP console IO package. 3 * 3 */ 4 5 /* 4 6 * Written by Doug McBride, Colorado Space Grant College 5 7 * Based off of the board support packages of RTEMS … … 22 24 * 23 25 * This routine initializes the console IO driver. 24 * 25 * Input parameters: NONE 26 * 27 * Output parameters: NONE 28 * 29 * Return values: 30 */ 31 26 */ 32 27 rtems_device_driver console_initialize( 33 28 rtems_device_major_number major, … … 76 71 * 77 72 * This routine returns TRUE if a character is available. 78 * 79 * Input parameters: NONE 80 * 81 * Output parameters: NONE 82 * 83 * Return values: 84 */ 85 86 bool is_character_ready( 73 */ 74 static bool is_character_ready( 87 75 char *ch, 88 76 int port … … 96 84 } 97 85 98 /* quick_char_check99 *100 * This routine returns TRUE if a character is available.101 * It is different from above because it does not disturb the ring buffer102 *103 * Input parameters: NONE104 *105 * Output parameters: NONE106 *107 * Return values:108 */109 110 bool quick_char_check(111 int port112 )113 {114 if ( Ring_buffer_Is_empty( &Console_Buffer[ port ] ) )115 return false;116 117 return true;118 }119 120 86 /* inbyte 121 87 * 122 88 * This routine reads a character from the UART through a buffer. 123 * 124 * Input parameters: NONE 125 * 126 * Output parameters: NONE 127 * 128 * Return values: 129 * character read from UART 130 */ 131 132 char inbyte( 89 */ 90 static char inbyte( 133 91 int port 134 92 ) … … 148 106 * This routine transmits a character out the M68681. It supports 149 107 * XON/XOFF flow control. 150 * 151 * Input parameters: 152 * ch - character to be transmitted 153 * 154 * Output parameters: NONE 155 */ 156 157 void outbyte( 108 */ 109 static void outbyte( 158 110 char ch, 159 111 int port … … 174 126 * Open entry point 175 127 */ 176 177 128 rtems_device_driver console_open( 178 129 rtems_device_major_number major, … … 187 138 * Close entry point 188 139 */ 189 190 140 rtems_device_driver console_close( 191 141 rtems_device_major_number major, … … 200 150 * read bytes from the serial port. We only have stdin. 201 151 */ 202 203 152 rtems_device_driver console_read( 204 153 rtems_device_major_number major, … … 235 184 * write bytes to the serial port. Stdout and stderr are the same. 236 185 */ 237 238 186 rtems_device_driver console_write( 239 187 rtems_device_major_number major, -
c/src/lib/libbsp/m68k/idp/include/bsp.h
r3c743901 r6da91abb 45 45 ); 46 46 47 void rtems_bsp_delay(int num); 48 49 /* 50 * Prototypes for methods inside the BSP that cross file boundaries. 51 */ 47 52 void init_pit( void ); 48 49 53 void transmit_char( char ch ); 50 51 54 void transmit_char_portb( char ch ); 52 55 -
c/src/lib/libbsp/m68k/idp/timer/timer.c
r3c743901 r6da91abb 20 20 bool benchmark_timer_find_average_overhead; 21 21 22 rtems_isr _entrytimerisr(rtems_vector_number);22 rtems_isr timerisr(rtems_vector_number); 23 23 24 24 void benchmark_timer_initialize(void)
Note: See TracChangeset
for help on using the changeset viewer.