Changeset 11c1657a in rtems
- Timestamp:
- 10/12/14 19:00:53 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 42aca8b
- Parents:
- 5039d92
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 19:00:53)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:30)
- Location:
- c/src/lib/libbsp/lm32/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/lm32/shared/clock/ckinit.c
r5039d92 r11c1657a 1 /* ckinit.c 2 * 1 /* 3 2 * Clock device driver for Lattice Mico32 (lm32). 4 * 3 */ 4 5 /* 5 6 * COPYRIGHT (c) 1989-2009. 6 7 * On-Line Applications Research Corporation (OAR). … … 37 38 * driver. 38 39 */ 39 40 40 #define CLOCK_VECTOR ( TIMER0_IRQ ) 41 41 #define CLOCK_IRQMASK ( 1 << CLOCK_VECTOR ) … … 53 53 } while (0) 54 54 55 void Clock_driver_support_initialize_hardware(void)55 static void Clock_driver_support_initialize_hardware(void) 56 56 { 57 57 /* Set clock period */ … … 68 68 } 69 69 70 void Clock_driver_support_shutdown_hardware(void)70 static void Clock_driver_support_shutdown_hardware(void) 71 71 { 72 72 /* Disable clock interrupts and stop */ -
c/src/lib/libbsp/lm32/shared/console/console.c
r5039d92 r11c1657a 1 1 /* 2 2 * Console driver for Lattice Mico32 (lm32). 3 * 3 */ 4 5 /* 4 6 * COPYRIGHT (c) 1989-1999. 5 7 * On-Line Applications Research Corporation (OAR). … … 26 28 * 27 29 * This routine initializes the console IO driver. 28 *29 * Input parameters: NONE30 *31 * Output parameters: NONE32 *33 * Return values:34 30 */ 35 36 31 rtems_device_driver console_initialize( 37 32 rtems_device_major_number major, … … 56 51 } 57 52 58 /* is_character_ready59 *60 * This routine returns TRUE if a character is available.61 *62 * Input parameters: NONE63 *64 * Output parameters: NONE65 *66 * Return values:67 */68 69 bool is_character_ready(70 char *ch71 )72 {73 return BSP_uart_is_character_ready(ch);74 }75 76 53 /* inbyte 77 54 * 78 55 * This routine reads a character from the SOURCE. 79 *80 * Input parameters: NONE81 *82 * Output parameters: NONE83 *84 * Return values:85 * character read from SOURCE86 56 */ 87 88 int inbyte( void ) 57 static int inbyte( void ) 89 58 { 90 59 /* … … 99 68 * This routine transmits a character out the SOURCE. It may support 100 69 * XON/XOFF flow control. 101 *102 * Input parameters:103 * ch - character to be transmitted104 *105 * Output parameters: NONE106 70 */ 107 108 void outbyte( 71 static void outbyte( 109 72 char ch 110 73 ) … … 122 85 * Open entry point 123 86 */ 124 125 87 rtems_device_driver console_open( 126 88 rtems_device_major_number major, … … 135 97 * Close entry point 136 98 */ 137 138 99 rtems_device_driver console_close( 139 100 rtems_device_major_number major, … … 148 109 * read bytes from the serial port. We only have stdin. 149 110 */ 150 151 111 rtems_device_driver console_read( 152 112 rtems_device_major_number major, … … 180 140 * write bytes to the serial port. Stdout and stderr are the same. 181 141 */ 182 183 142 rtems_device_driver console_write( 184 143 rtems_device_major_number major, … … 211 170 * IO Control entry point 212 171 */ 213 214 172 rtems_device_driver console_control( 215 173 rtems_device_major_number major,
Note: See TracChangeset
for help on using the changeset viewer.