Skip to content

Commit

Permalink
ADD #13 : add uart_output function in os
Browse files Browse the repository at this point in the history
  • Loading branch information
nerososft committed Apr 16, 2019
1 parent 853a39a commit 795c01e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
#include "../include/uart_debug.h"
#include "TM4C123GH6PM.h"

#define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
#define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
#define UART_LCRH_WLEN_8 0x00000060 // 8 bit word length
#define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
#define UART_CTL_UARTEN 0x00000001 // UART Enable

void uart_debug_init(void){
// 1. Enable the UART module using the RCGCUART register (see page 319).
SYSCTL->RCGCUART |= (1<<0);
Expand Down
18 changes: 18 additions & 0 deletions user/nohup.out
Original file line number Diff line number Diff line change
Expand Up @@ -3426,3 +3426,21 @@ Error: error starting target flash write algorithm
wrote 5120 bytes from file /Users/neroyang/project/Ceno-RTOS/user/bin/CenoRTOS.bin in 5.598464s (0.893 KiB/s)
adapter speed: 1 kHz
Info : dropped 'telnet' connection
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 1500ms
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 3100ms
Error: jtag status contains invalid mode value - communication failure
Polling target tm4c123gh6pm.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms

0 comments on commit 795c01e

Please sign in to comment.