mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
v1.1.1
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#-----------------------------
|
||||
|
||||
menu "CIR protocol select"
|
||||
depends on AIC_USING_CIR
|
||||
depends on (AIC_USING_CIR || AIC_USING_R_CIR)
|
||||
|
||||
config AIC_CIR_NEC
|
||||
bool "NEC protocol"
|
||||
|
||||
@@ -180,6 +180,15 @@ int rt_hw_aic_cir_init(void)
|
||||
aic_cir_dev.dev.type = RT_Device_Class_Char;
|
||||
#endif
|
||||
|
||||
#ifdef AIC_USING_R_CIR
|
||||
aic_cir_dev.aic_cir_ctrl.cir_base = R_CIR_BASE;
|
||||
aic_cir_dev.aic_cir_ctrl.irq_num = R_CIR_IRQn;
|
||||
#else
|
||||
aic_cir_dev.aic_cir_ctrl.cir_base = CIR_BASE;
|
||||
aic_cir_dev.aic_cir_ctrl.irq_num = CIR_IRQn;
|
||||
#endif
|
||||
aic_cir_dev.aic_cir_ctrl.clk_idx = CLK_CIR;
|
||||
|
||||
rt_mutex_init(&aic_cir_dev.lock, "cir_mutex", RT_IPC_FLAG_PRIO);
|
||||
rt_device_register(&aic_cir_dev.dev, "cir", 0);
|
||||
LOG_I("ArtInChip CIR device register success\n");
|
||||
|
||||
Reference in New Issue
Block a user