File tree 28 files changed +24
-24
lines changed 28 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ void uart_init()
74
74
void uart_send (unsigned int c ) {
75
75
/* wait until we can send */
76
76
do {asm volatile ("nop" );}while (!(* AUX_MU_LSR & 0x20 ));
77
- /* write the carachter to the buffer */
77
+ /* write the character to the buffer */
78
78
* AUX_MU_IO = c ;
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ void uart_init()
74
74
void uart_send (unsigned int c ) {
75
75
/* wait until we can send */
76
76
do {asm volatile ("nop" );}while (!(* AUX_MU_LSR & 0x20 ));
77
- /* write the carachter to the buffer */
77
+ /* write the character to the buffer */
78
78
* AUX_MU_IO = c ;
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void uart_init()
60
60
/* map UART0 to GPIO pins */
61
61
r = * GPFSEL1 ;
62
62
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
63
- r |=(2 <<12 )|(2 <<15 ); // alt5
63
+ r |=(4 <<12 )|(4 <<15 ); // alt0
64
64
* GPFSEL1 = r ;
65
65
* GPPUD = 0 ; // enable pins 14 and 15
66
66
r = 150 ; while (r -- ) { asm volatile ("nop" ); }
@@ -81,7 +81,7 @@ void uart_init()
81
81
void uart_send (unsigned int c ) {
82
82
/* wait until we can send */
83
83
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
84
- /* write the carachter to the buffer */
84
+ /* write the character to the buffer */
85
85
* UART0_DR = c ;
86
86
}
87
87
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void uart_init()
60
60
/* map UART0 to GPIO pins */
61
61
r = * GPFSEL1 ;
62
62
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
63
- r |=(2 <<12 )|(2 <<15 ); // alt5
63
+ r |=(4 <<12 )|(4 <<15 ); // alt0
64
64
* GPFSEL1 = r ;
65
65
* GPPUD = 0 ; // enable pins 14 and 15
66
66
r = 150 ; while (r -- ) { asm volatile ("nop" ); }
@@ -81,7 +81,7 @@ void uart_init()
81
81
void uart_send (unsigned int c ) {
82
82
/* wait until we can send */
83
83
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
84
- /* write the carachter to the buffer */
84
+ /* write the character to the buffer */
85
85
* UART0_DR = c ;
86
86
}
87
87
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
@@ -82,7 +82,7 @@ void uart_init()
82
82
void uart_send (unsigned int c ) {
83
83
/* wait until we can send */
84
84
do {asm volatile ("nop" );}while (* UART0_FR & 0x20 );
85
- /* write the carachter to the buffer */
85
+ /* write the character to the buffer */
86
86
* UART0_DR = c ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void uart_init()
61
61
/* map UART0 to GPIO pins */
62
62
r = * GPFSEL1 ;
63
63
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
64
- r |=(2 <<12 )|(2 <<15 ); // alt5
64
+ r |=(4 <<12 )|(4 <<15 ); // alt0
65
65
* GPFSEL1 = r ;
66
66
* GPPUD = 0 ; // enable pins 14 and 15
67
67
wait_cycles (150 );
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void uart_init()
60
60
/* map UART0 to GPIO pins */
61
61
r = * GPFSEL1 ;
62
62
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
63
- r |=(2 <<12 )|(2 <<15 ); // alt5
63
+ r |=(4 <<12 )|(4 <<15 ); // alt0
64
64
* GPFSEL1 = r ;
65
65
* GPPUD = 0 ; // enable pins 14 and 15
66
66
r = 150 ; while (r -- ) { asm volatile ("nop" ); }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void uart_init()
60
60
/* map UART0 to GPIO pins */
61
61
r = * GPFSEL1 ;
62
62
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
63
- r |=(2 <<12 )|(2 <<15 ); // alt5
63
+ r |=(4 <<12 )|(4 <<15 ); // alt0
64
64
* GPFSEL1 = r ;
65
65
* GPPUD = 0 ; // enable pins 14 and 15
66
66
r = 150 ; while (r -- ) { asm volatile ("nop" ); }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void uart_init()
60
60
/* map UART0 to GPIO pins */
61
61
r = * GPFSEL1 ;
62
62
r &=~((7 <<12 )|(7 <<15 )); // gpio14, gpio15
63
- r |=(2 <<12 )|(2 <<15 ); // alt5
63
+ r |=(4 <<12 )|(4 <<15 ); // alt0
64
64
* GPFSEL1 = r ;
65
65
* GPPUD = 0 ; // enable pins 14 and 15
66
66
r = 150 ; while (r -- ) { asm volatile ("nop" ); }
You can’t perform that action at this time.
0 commit comments