software reset1 Software Reset Macro Software reset macro for ATMEL AT91SAM9R64/RL64 [cpp ] #define soft_user_reset() asm volatile ( /* disable IRQs */ "MRS R0, CPSR nt" "ORR R0, R0, #0x80 nt" "MSR CPSR_c, R0 nt" /* change refresh rate to block all data accesses */ "LDR R0, =0xFFFFEA04 /* AT91C_SDRAMC_TR*/ nt" "LDR R1, =1 nt" "STR R1, [R0] nt" /*prepare power down command*/ "LDR R0, =0xFFFFEA10 /* AT91C_SDRAMC_LPR */ nt" "LDR R1, =.. 2012. 3. 2. 이전 1 다음