mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			375 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			375 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "uart.h"
 | |
| #include "sdcDriver.h"
 | |
| #include "gpt.h"
 | |
| 
 | |
| int main()
 | |
| {
 | |
|     init_uart(30000000, 115200);
 | |
|     print_uart("Hello World!\r\n");
 | |
| 
 | |
|     int res = gpt_find_boot_partition((long int *)0x80000000UL, 2 * 16384);
 | |
| 
 | |
|     if (res == 0)
 | |
|     {
 | |
|       return 0;
 | |
|     }
 | |
| 
 | |
|     while (1)
 | |
|     {
 | |
|         // do nothing
 | |
|     }
 | |
| }
 | |
| 
 | |
| void handle_trap(void)
 | |
| {
 | |
|     // print_uart("trap\r\n");
 | |
| }
 |