Changeset 286 for trunk/softs/tsar_boot/io_drivers
- Timestamp:
- Jan 14, 2013, 4:39:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/io_drivers/ioc.c
r279 r286 55 55 // // iterate on lines to invalidate each one of them 56 56 // for ( i=0; i<size; i+=dcache_line_size ) 57 // asm volatile(" cache %0, %1" 58 // : 59 // :"i" (0x11), "R" (*((char*)buffer+i))); 57 // asm volatile 58 // (" mtc2 %0, $7\n" 59 // : 60 // : "r" (*((char*)buffer+i)) 61 // ); 60 62 //} 61 63 … … 105 107 boot_puts(init_begin); 106 108 109 #ifndef SYSCLK_FREQ 110 #warning "Using default value for SYSCLK_FREQ = 50000000" 111 #define SYSCLK_FREQ 50000000U 112 #endif 113 107 114 /** 108 115 * Initializing the SPI controller … … 111 118 _spi_device , 112 119 200000 , /**< SPI_clk: 200 Khz */ 113 50000000 , /**< Sys_clk: 50 Mhz*/120 SYSCLK_FREQ , /**< Sys_clk */ 114 121 8 , /**< Charlen: 8 */ 115 122 SPI_TX_NEGEDGE, … … 132 139 _spi_device , 133 140 10000000 , /**< SPI_clkL 10 Mhz */ 134 50000000 , /**< Sys_clk: 50 Mhz*/141 SYSCLK_FREQ , /**< Sys_clk */ 135 142 -1 , /**< Charlen: 8 */ 136 143 -1 , … … 327 334 328 335 //_ioc_lock = 0; 329 //330 //_dcache_buf_invalidate(buffer, count);331 336 332 337 return 0;
Note: See TracChangeset
for help on using the changeset viewer.