Changes in boot/arch/arm32/src/putchar.c [9d58539:9f8a07d3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/putchar.c
r9d58539 r9f8a07d3 41 41 #include <str.h> 42 42 43 #ifdef MACHINE_beaglebone 44 45 /** Send a byte to the am335x serial console. 46 * 47 * @param byte Byte to send. 48 */ 49 static void scons_sendb_bbone(uint8_t byte) 50 { 51 volatile uint32_t *thr = 52 (volatile uint32_t *) BBONE_SCONS_THR; 53 volatile uint32_t *ssr = 54 (volatile uint32_t *) BBONE_SCONS_SSR; 55 56 /* Wait until transmitter is empty */ 57 while (*ssr & BBONE_TXFIFO_FULL); 58 59 /* Transmit byte */ 60 *thr = (uint32_t) byte; 61 } 62 63 #endif 64 65 #ifdef MACHINE_beagleboardxm 66 67 /** Send a byte to the amdm37x serial console. 68 * 69 * @param byte Byte to send. 70 */ 71 static void scons_sendb_bbxm(uint8_t byte) 72 { 73 volatile uint32_t *thr = 74 (volatile uint32_t *)BBXM_SCONS_THR; 75 volatile uint32_t *ssr = 76 (volatile uint32_t *)BBXM_SCONS_SSR; 77 78 /* Wait until transmitter is empty. */ 79 while ((*ssr & BBXM_THR_FULL) == 1) ; 80 81 /* Transmit byte. */ 82 *thr = (uint32_t) byte; 83 } 84 85 #endif 86 43 87 #ifdef MACHINE_gta02 44 88 … … 65 109 #endif 66 110 67 #ifdef MACHINE_testarm68 69 /** Send a byte to the GXemul testarm serial console.70 *71 * @param byte Byte to send.72 */73 static void scons_sendb_testarm(uint8_t byte)74 {75 *((volatile uint8_t *) TESTARM_SCONS_ADDR) = byte;76 }77 78 #endif79 80 111 #ifdef MACHINE_integratorcp 81 112 … … 97 128 static void scons_sendb(uint8_t byte) 98 129 { 130 #ifdef MACHINE_beaglebone 131 scons_sendb_bbone(byte); 132 #endif 133 #ifdef MACHINE_beagleboardxm 134 scons_sendb_bbxm(byte); 135 #endif 99 136 #ifdef MACHINE_gta02 100 137 scons_sendb_gta02(byte); 101 #endif102 #ifdef MACHINE_testarm103 scons_sendb_testarm(byte);104 138 #endif 105 139 #ifdef MACHINE_integratorcp
Note:
See TracChangeset
for help on using the changeset viewer.