Skip to content

Commit e1c97f2

Browse files
author
bzt
committed
Fixed issue rust-embedded#2
1 parent a7b01cc commit e1c97f2

File tree

28 files changed

+24
-24
lines changed

28 files changed

+24
-24
lines changed

03_uart1/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void uart_init()
7474
void uart_send(unsigned int c) {
7575
/* wait until we can send */
7676
do{asm volatile("nop");}while(!(*AUX_MU_LSR&0x20));
77-
/* write the carachter to the buffer */
77+
/* write the character to the buffer */
7878
*AUX_MU_IO=c;
7979
}
8080

04_mailboxes/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void uart_init()
7474
void uart_send(unsigned int c) {
7575
/* wait until we can send */
7676
do{asm volatile("nop");}while(!(*AUX_MU_LSR&0x20));
77-
/* write the carachter to the buffer */
77+
/* write the character to the buffer */
7878
*AUX_MU_IO=c;
7979
}
8080

05_uart0/kernel8.img

0 Bytes
Binary file not shown.

05_uart0/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void uart_init()
6060
/* map UART0 to GPIO pins */
6161
r=*GPFSEL1;
6262
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
63-
r|=(2<<12)|(2<<15); // alt5
63+
r|=(4<<12)|(4<<15); // alt0
6464
*GPFSEL1 = r;
6565
*GPPUD = 0; // enable pins 14 and 15
6666
r=150; while(r--) { asm volatile("nop"); }
@@ -81,7 +81,7 @@ void uart_init()
8181
void uart_send(unsigned int c) {
8282
/* wait until we can send */
8383
do{asm volatile("nop");}while(*UART0_FR&0x20);
84-
/* write the carachter to the buffer */
84+
/* write the character to the buffer */
8585
*UART0_DR=c;
8686
}
8787

06_random/kernel8.img

0 Bytes
Binary file not shown.

06_random/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void uart_init()
6060
/* map UART0 to GPIO pins */
6161
r=*GPFSEL1;
6262
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
63-
r|=(2<<12)|(2<<15); // alt5
63+
r|=(4<<12)|(4<<15); // alt0
6464
*GPFSEL1 = r;
6565
*GPPUD = 0; // enable pins 14 and 15
6666
r=150; while(r--) { asm volatile("nop"); }
@@ -81,7 +81,7 @@ void uart_init()
8181
void uart_send(unsigned int c) {
8282
/* wait until we can send */
8383
do{asm volatile("nop");}while(*UART0_FR&0x20);
84-
/* write the carachter to the buffer */
84+
/* write the character to the buffer */
8585
*UART0_DR=c;
8686
}
8787

07_delays/kernel8.img

0 Bytes
Binary file not shown.

07_delays/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

08_power/kernel8.img

0 Bytes
Binary file not shown.

08_power/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

09_framebuffer/kernel8.img

0 Bytes
Binary file not shown.

09_framebuffer/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

0A_pcscreenfont/kernel8.img

0 Bytes
Binary file not shown.

0A_pcscreenfont/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

0B_readsector/kernel8.img

0 Bytes
Binary file not shown.

0B_readsector/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

0C_directory/kernel8.img

0 Bytes
Binary file not shown.

0C_directory/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

0D_readfile/kernel8.img

0 Bytes
Binary file not shown.

0D_readfile/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);
@@ -82,7 +82,7 @@ void uart_init()
8282
void uart_send(unsigned int c) {
8383
/* wait until we can send */
8484
do{asm volatile("nop");}while(*UART0_FR&0x20);
85-
/* write the carachter to the buffer */
85+
/* write the character to the buffer */
8686
*UART0_DR=c;
8787
}
8888

0E_initrd/kernel8.img

0 Bytes
Binary file not shown.

0E_initrd/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void uart_init()
6161
/* map UART0 to GPIO pins */
6262
r=*GPFSEL1;
6363
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
64-
r|=(2<<12)|(2<<15); // alt5
64+
r|=(4<<12)|(4<<15); // alt0
6565
*GPFSEL1 = r;
6666
*GPPUD = 0; // enable pins 14 and 15
6767
wait_cycles(150);

0F_executionlevel/kernel8.img

0 Bytes
Binary file not shown.

0F_executionlevel/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void uart_init()
6060
/* map UART0 to GPIO pins */
6161
r=*GPFSEL1;
6262
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
63-
r|=(2<<12)|(2<<15); // alt5
63+
r|=(4<<12)|(4<<15); // alt0
6464
*GPFSEL1 = r;
6565
*GPPUD = 0; // enable pins 14 and 15
6666
r=150; while(r--) { asm volatile("nop"); }

10_virtualmemory/kernel8.img

0 Bytes
Binary file not shown.

10_virtualmemory/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void uart_init()
6060
/* map UART0 to GPIO pins */
6161
r=*GPFSEL1;
6262
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
63-
r|=(2<<12)|(2<<15); // alt5
63+
r|=(4<<12)|(4<<15); // alt0
6464
*GPFSEL1 = r;
6565
*GPPUD = 0; // enable pins 14 and 15
6666
r=150; while(r--) { asm volatile("nop"); }

11_exceptions/kernel8.img

0 Bytes
Binary file not shown.

11_exceptions/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void uart_init()
6060
/* map UART0 to GPIO pins */
6161
r=*GPFSEL1;
6262
r&=~((7<<12)|(7<<15)); // gpio14, gpio15
63-
r|=(2<<12)|(2<<15); // alt5
63+
r|=(4<<12)|(4<<15); // alt0
6464
*GPFSEL1 = r;
6565
*GPPUD = 0; // enable pins 14 and 15
6666
r=150; while(r--) { asm volatile("nop"); }

0 commit comments

Comments
 (0)