30 lines
		
	
	
		
			600 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			600 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "os_types.h"
							 | 
						||
| 
								 | 
							
								#include "dbg_io.h"
							 | 
						||
| 
								 | 
							
								#include "iot_diag.h"
							 | 
						||
| 
								 | 
							
								#include "iot_io.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								int IRAM_ATTR main(void)
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    //uint8_t buf[32];
							 | 
						||
| 
								 | 
							
								    //uint32_t addr1 = 0x10002000; 
							 | 
						||
| 
								 | 
							
								    //uint32_t addr2 = 0x10003000; 
							 | 
						||
| 
								 | 
							
								    //uint32_t i;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    dbg_uart_init();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								   // iot_mem_read(buf, addr1, 32);
							 | 
						||
| 
								 | 
							
								    //iot_mem_write(buf, addr2, 32);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								   // for(i = 0; i < 32; i++){
							 | 
						||
| 
								 | 
							
								  //      iot_printf("0x%08x:0x%02x\r\n", addr1+i, *(uint8_t*)(addr1+i));
							 | 
						||
| 
								 | 
							
								  //      iot_printf("0x%08x:0x%02x\r\n", addr2+i, *(uint8_t*)(addr2+i));
							 | 
						||
| 
								 | 
							
								  //  }
							 | 
						||
| 
								 | 
							
								    while(1) {
							 | 
						||
| 
								 | 
							
								        iot_printf("hello world.\n");
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    while(1);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    return 0;
							 | 
						||
| 
								 | 
							
								}
							 |