解决进程异常退出后卡住问题&sys库函数名称&修复nsfs锁问题
This commit is contained in:
@@ -86,7 +86,7 @@ void I2C_Init(I2C_TypeDef *I2Cx, I2C_InitStructure *initStruct)
|
||||
else
|
||||
{
|
||||
#ifdef MKRTOS_DRV
|
||||
sys_dis_info(SYS_PROT, I2C1_IRQn);
|
||||
u_sys_dis_info(SYS_PROT, I2C1_IRQn);
|
||||
#else
|
||||
NVIC_DisableIRQ(I2C1_IRQn);
|
||||
#endif
|
||||
|
||||
@@ -96,7 +96,7 @@ void LCD_Init(LCD_TypeDef *LCDx, LCD_InitStructure *initStruct)
|
||||
|
||||
assert(u_intr_bind(LCD_IRQn, u_irq_prio_create(0, 0), IRQ_THREAD_PRIO,
|
||||
stack0 + STACK_SIZE, msg_buf, LCD_Handler, &lcd_irq_obj) >= 0);
|
||||
uirq_ack(lcd_irq_obj, LCD_IRQn);
|
||||
u_irq_ack(lcd_irq_obj, LCD_IRQn);
|
||||
|
||||
#else
|
||||
NVIC_EnableIRQ(LCD_IRQn);
|
||||
|
||||
Reference in New Issue
Block a user