[bsp][tms320f28379d] Fix an issue that interrupts are disabled in the thread

This commit is contained in:
xuzhuoyi 2019-08-24 18:42:54 +08:00
parent f87dd2e7c4
commit a101327d24
3 changed files with 1 additions and 4 deletions

View File

@ -47,8 +47,6 @@ void rtthread_startup(void)
/* init board */
rt_hw_board_init();
rt_hw_interrupt_disable();
/* show version */
rt_show_version();

View File

@ -223,7 +223,6 @@ int rt_hw_sci_init(void)
PieCtrlRegs.PIECTRL.bit.ENPIE = 1; // Enable the PIE block
PieCtrlRegs.PIEIER9.bit.INTx1 = 1; // PIE Group 9, INT1
IER |= 0x100; // Enable CPU INT
EINT;
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
rt_err_t result = 0;

View File

@ -78,7 +78,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
stack_frame->exception_stack_frame.acc = 0x33332222;
stack_frame->exception_stack_frame.ar1_ar0 = 0x00001111 & (unsigned long)parameter; /* ar0 : argument */
stack_frame->exception_stack_frame.p = 0x55554444; /* p */
stack_frame->exception_stack_frame.dp_st1 = (0x00000000) | rt_hw_get_st1(); /* dp_st1 */
stack_frame->exception_stack_frame.dp_st1 = (0x00000000) | rt_hw_get_st1() & 0xFFFFFFFE; /* dp_st1 */
stack_frame->exception_stack_frame.dbgstat_ier = 0; /* dbgstat_ier */
stack_frame->exception_stack_frame.return_address = (unsigned long)tentry; /* return_address */
stack_frame->rpc = (unsigned long)texit;