Merge pull request #2577 from yangjie11/stm32dev
[src/components.c]remove the repetitive rt_hw_interrupt_disable() fun…
This commit is contained in:
commit
c8870b4268
|
@ -138,7 +138,6 @@ extern int $Super$$main(void);
|
||||||
/* re-define main function */
|
/* re-define main function */
|
||||||
int $Sub$$main(void)
|
int $Sub$$main(void)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_disable();
|
|
||||||
rtthread_startup();
|
rtthread_startup();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -150,7 +149,6 @@ int __low_level_init(void)
|
||||||
{
|
{
|
||||||
// call IAR table copy function.
|
// call IAR table copy function.
|
||||||
__iar_data_init3();
|
__iar_data_init3();
|
||||||
rt_hw_interrupt_disable();
|
|
||||||
rtthread_startup();
|
rtthread_startup();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +157,6 @@ extern int main(void);
|
||||||
/* Add -eentry to arm-none-eabi-gcc argument */
|
/* Add -eentry to arm-none-eabi-gcc argument */
|
||||||
int entry(void)
|
int entry(void)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_disable();
|
|
||||||
rtthread_startup();
|
rtthread_startup();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue