Changes in boot/arch/arm32/src/putchar.c [9f8a07d3:f1fc83a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/putchar.c
r9f8a07d3 rf1fc83a 41 41 #include <str.h> 42 42 43 #ifdef MACHINE_beaglebone44 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 #endif64 65 #ifdef MACHINE_beagleboardxm66 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 #endif86 87 43 #ifdef MACHINE_gta02 88 44 … … 109 65 #endif 110 66 67 #ifdef MACHINE_testarm 68 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 #endif 79 111 80 #ifdef MACHINE_integratorcp 112 81 … … 128 97 static void scons_sendb(uint8_t byte) 129 98 { 130 #ifdef MACHINE_beaglebone131 scons_sendb_bbone(byte);132 #endif133 #ifdef MACHINE_beagleboardxm134 scons_sendb_bbxm(byte);135 #endif136 99 #ifdef MACHINE_gta02 137 100 scons_sendb_gta02(byte); 101 #endif 102 #ifdef MACHINE_testarm 103 scons_sendb_testarm(byte); 138 104 #endif 139 105 #ifdef MACHINE_integratorcp
Note:
See TracChangeset
for help on using the changeset viewer.