diff options
| author | tmk <nobody@nowhere> | 2011-05-07 00:04:18 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2011-05-07 00:48:18 +0900 |
| commit | 61e12a3157ea6860f23bf8e29372aa70aeb02be0 (patch) | |
| tree | b93de00a8deb10713eec89edfb315d5b447201d6 /ps2_usb/sendchar_usart.c | |
| parent | a6b31e950fe8de3dc4888e2f90a4001a6caee483 (diff) | |
| download | qmk_firmware-61e12a3157ea6860f23bf8e29372aa70aeb02be0.tar.gz qmk_firmware-61e12a3157ea6860f23bf8e29372aa70aeb02be0.zip | |
move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir
Diffstat (limited to 'ps2_usb/sendchar_usart.c')
| -rw-r--r-- | ps2_usb/sendchar_usart.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ps2_usb/sendchar_usart.c b/ps2_usb/sendchar_usart.c deleted file mode 100644 index fe18177a3..000000000 --- a/ps2_usb/sendchar_usart.c +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | #include <stdint.h> | ||
| 2 | #include "oddebug.h" | ||
| 3 | #include "sendchar.h" | ||
| 4 | |||
| 5 | |||
| 6 | /* from oddebug.h */ | ||
| 7 | #if defined UBRR | ||
| 8 | # define ODDBG_UBRR UBRR | ||
| 9 | #elif defined UBRRL | ||
| 10 | # define ODDBG_UBRR UBRRL | ||
| 11 | #elif defined UBRR0 | ||
| 12 | # define ODDBG_UBRR UBRR0 | ||
| 13 | #elif defined UBRR0L | ||
| 14 | # define ODDBG_UBRR UBRR0L | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #if defined UCR | ||
| 18 | # define ODDBG_UCR UCR | ||
| 19 | #elif defined UCSRB | ||
| 20 | # define ODDBG_UCR UCSRB | ||
| 21 | #elif defined UCSR0B | ||
| 22 | # define ODDBG_UCR UCSR0B | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #if defined TXEN | ||
| 26 | # define ODDBG_TXEN TXEN | ||
| 27 | #else | ||
| 28 | # define ODDBG_TXEN TXEN0 | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #if defined USR | ||
| 32 | # define ODDBG_USR USR | ||
| 33 | #elif defined UCSRA | ||
| 34 | # define ODDBG_USR UCSRA | ||
| 35 | #elif defined UCSR0A | ||
| 36 | # define ODDBG_USR UCSR0A | ||
| 37 | #endif | ||
| 38 | |||
| 39 | #if defined UDRE | ||
| 40 | # define ODDBG_UDRE UDRE | ||
| 41 | #else | ||
| 42 | # define ODDBG_UDRE UDRE0 | ||
| 43 | #endif | ||
| 44 | |||
| 45 | #if defined UDR | ||
| 46 | # define ODDBG_UDR UDR | ||
| 47 | #elif defined UDR0 | ||
| 48 | # define ODDBG_UDR UDR0 | ||
| 49 | #endif | ||
| 50 | |||
| 51 | |||
| 52 | /* from oddebug.c */ | ||
| 53 | int8_t sendchar(uint8_t c) | ||
| 54 | { | ||
| 55 | while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */ | ||
| 56 | ODDBG_UDR = c; | ||
| 57 | return 1; | ||
| 58 | } | ||
