initial commit
This commit is contained in:
12
sdk/software/bsp/include/uart_print.h
Normal file
12
sdk/software/bsp/include/uart_print.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _UART_PRINT_H
|
||||
#define _UART_PRINT_H
|
||||
|
||||
#define UART_PRINT(str)\
|
||||
la a0, 1f;\
|
||||
.section .rodata ;\
|
||||
1: ;\
|
||||
.asciz str ;\
|
||||
.section .init ;\
|
||||
bl %plt(puts)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user