把sbl common.c中操作寄存器的代码移动到hw目录中
This commit is contained in:
@@ -104,6 +104,9 @@ uint32_t sbl_load_next_firmware(uint32_t *run_addr,
|
|||||||
uint32_t sbl_jump_next_firmware(uint32_t run_addr,
|
uint32_t sbl_jump_next_firmware(uint32_t run_addr,
|
||||||
int mode, int print_eb, int flash_size, int psram_eb);
|
int mode, int print_eb, int flash_size, int psram_eb);
|
||||||
|
|
||||||
|
// kl1会操作一下tms引脚,这个操作对kl2和kl3应该是无效的
|
||||||
|
void sbl_tms_interrupt_disable();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -749,7 +749,7 @@ int run_boot_delay()
|
|||||||
char *p = console_buffer;
|
char *p = console_buffer;
|
||||||
int n = 0; /* buffer index */
|
int n = 0; /* buffer index */
|
||||||
int plen = 0; /* prompt length */
|
int plen = 0; /* prompt length */
|
||||||
int col; /* output column cnt */
|
int col = 0; /* output column cnt */
|
||||||
char c;
|
char c;
|
||||||
int8_t pk;
|
int8_t pk;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@@ -983,7 +983,7 @@ void sbl_main_loop(void)
|
|||||||
int auto_start = 0;
|
int auto_start = 0;
|
||||||
|
|
||||||
auto_start = run_boot_delay();
|
auto_start = run_boot_delay();
|
||||||
REG32(0x44007010) = 0x80;
|
sbl_tms_interrupt_disable();
|
||||||
|
|
||||||
/* auto run */
|
/* auto run */
|
||||||
if (auto_start) {
|
if (auto_start) {
|
||||||
|
@@ -468,3 +468,8 @@ uint32_t sbl_jump_next_firmware(uint32_t run_addr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// kl1会操作一下tms引脚,这个操作对kl2和kl3应该是无效的
|
||||||
|
void sbl_tms_interrupt_disable()
|
||||||
|
{
|
||||||
|
REG32(0x44007010) = 0x80;
|
||||||
|
}
|
@@ -467,3 +467,7 @@ uint32_t sbl_jump_next_firmware(uint32_t run_addr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// kl1会操作一下tms引脚,这个操作对kl2和kl3应该是无效的
|
||||||
|
void sbl_tms_interrupt_disable()
|
||||||
|
{
|
||||||
|
}
|
@@ -528,3 +528,7 @@ uint32_t sbl_jump_next_firmware(uint32_t run_addr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// kl1会操作一下tms引脚,这个操作对kl2和kl3应该是无效的
|
||||||
|
void sbl_tms_interrupt_disable()
|
||||||
|
{
|
||||||
|
}
|
Reference in New Issue
Block a user