Changeset c47e1a8 in mainline for boot/arch/arm32/src/putchar.c
- Timestamp:
- 2010-05-21T07:50:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
boot/arch/arm32/src/putchar.c (moved) (moved from boot/arch/arm32/loader/types.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/putchar.c
rcf8cc36 rc47e1a8 1 1 /* 2 * Copyright (c) 2006 Martin Decky 2 * Copyright (c) 2007 Michal Kebrt 3 * Copyright (c) 2009 Vineeth Pillai 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 30 30 /** @addtogroup arm32boot 31 31 * @{ 32 32 */ 33 /** @file 34 * @brief Definitions of basic types like #uintptr_t.35 */ 33 /** @file 34 * @brief bootloader output logic 35 */ 36 36 37 #include <typedefs.h> 38 #include <arch/main.h> 39 #include <putchar.h> 40 #include <str.h> 37 41 38 #ifndef BOOT_arm32_TYPES_H 39 #define BOOT_arm32_TYPES_H 40 41 42 #include <gentypes.h> 43 44 typedef signed char int8_t; 45 46 typedef unsigned char uint8_t; 47 typedef unsigned short uint16_t; 48 typedef unsigned int uint32_t; 49 typedef unsigned long long uint64_t; 50 51 typedef uint32_t uintptr_t; 52 typedef uint32_t unative_t; 53 54 55 #endif 56 42 void putchar(const wchar_t ch) 43 { 44 if (ch == '\n') 45 *((volatile char *) VIDEORAM_ADDRESS) = '\r'; 46 47 if (ascii_check(ch)) 48 *((volatile char *) VIDEORAM_ADDRESS) = ch; 49 else 50 *((volatile char *) VIDEORAM_ADDRESS) = U_SPECIAL; 51 } 57 52 58 53 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.
