cun
This commit is contained in:
@ -47,7 +47,7 @@
|
||||
|
||||
*/
|
||||
#define TCFG_HW_I2C0_PORTS 'B'
|
||||
#define TCFG_HW_I2C0_CLK 1000000 //硬件IIC波特率:100k
|
||||
#define TCFG_HW_I2C0_CLK 100000
|
||||
|
||||
//*********************************************************************************//
|
||||
// 硬件SPI 配置 //
|
||||
|
||||
@ -273,7 +273,7 @@ void rfid_task_fuc(void)
|
||||
first_init = 1;
|
||||
|
||||
// rfid_hal_init();
|
||||
FM176XX_HardInit();
|
||||
// FM176XX_HardInit();
|
||||
rfid_delay_ms(5); // 硬件初始化后增加一个短暂延时,确保芯片稳定
|
||||
// 2. 复位 FM176XX 芯片
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ unsigned char SetReg(unsigned char address, unsigned char reg_data){
|
||||
* @return unsigned char
|
||||
*/
|
||||
unsigned char FM176XX_SoftReset(void){
|
||||
return (FM176_WRITE_ADDR,REG_COMMAND,0x1F);
|
||||
return SetReg(REG_COMMAND, 0x1F);
|
||||
}
|
||||
|
||||
#elif INTERFACE_TYPE == 1 //spi
|
||||
|
||||
@ -82,7 +82,7 @@ extern u8 init_ok;
|
||||
extern u8 sniff_out;
|
||||
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态,0断开,1是连接
|
||||
u8 bt_newname =0;
|
||||
unsigned char xt_ble_new_name[9] = "CM-22222";
|
||||
unsigned char xt_ble_new_name[9] = "CM-55555";
|
||||
static u16 play_poweron_ok_timer_id = 0;
|
||||
|
||||
// -- 初始化标志位 --
|
||||
@ -224,6 +224,7 @@ void le_user_app_event_handler(struct sys_event* event){
|
||||
break;
|
||||
case 0xff: //测试
|
||||
int ret = hw_iic_init(0);
|
||||
// int ret = soft_iic_init(0);
|
||||
xlog("init iic result:%d\n", ret); //返回0成功
|
||||
extern void i2c_scanner_probe(void);
|
||||
i2c_scanner_probe();
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5927,7 +5927,6 @@ objs/apps/earphone/remote_control/RFID/rfid_event.c.o
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,ReaderF_Initial,l
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,ReaderF_Inventory,l
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,rfid_task_fuc,pl
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,FM176XX_HardInit,l
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,rfid_delay_ms,l
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,FM176XX_SoftReset,l
|
||||
-r=objs/apps/earphone/remote_control/RFID/rfid_event.c.o,GetReg,l
|
||||
|
||||
Reference in New Issue
Block a user