add ll_patch_slave()
This commit is contained in:
parent
f11f984213
commit
05a7b1e727
26 changed files with 34324 additions and 33191 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/TH05_v14.bin
BIN
bin/TH05_v14.bin
Binary file not shown.
BIN
bin/THB1_v14.bin
BIN
bin/THB1_v14.bin
Binary file not shown.
BIN
bin/THB2_v14.bin
BIN
bin/THB2_v14.bin
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -42,9 +42,10 @@
|
||||||
#define DEVICE_THB1 23
|
#define DEVICE_THB1 23
|
||||||
#define DEVICE_TH05D 24 // TH05_V1.3
|
#define DEVICE_TH05D 24 // TH05_V1.3
|
||||||
#define DEVICE_TH05F 25 // TH05Y_V1.2
|
#define DEVICE_TH05F 25 // TH05Y_V1.2
|
||||||
|
//#define DEVICE_THB3 26
|
||||||
|
|
||||||
#ifndef DEVICE
|
#ifndef DEVICE
|
||||||
#define DEVICE DEVICE_TH05F
|
#define DEVICE DEVICE_THB2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// supported services by the device (bits)
|
// supported services by the device (bits)
|
||||||
|
|
@ -278,7 +279,7 @@
|
||||||
#define GPIO_TRG GPIO_P09 // mark TX
|
#define GPIO_TRG GPIO_P09 // mark TX
|
||||||
#define GPIO_INP GPIO_P10 // mark RX
|
#define GPIO_INP GPIO_P10 // mark RX
|
||||||
|
|
||||||
#define DEF_MODEL_NUMBER_STR "TH05C"
|
#define DEF_MODEL_NUMBER_STR "TH05D"
|
||||||
#define DEF_HARDWARE_REVISION "0018"
|
#define DEF_HARDWARE_REVISION "0018"
|
||||||
#define DEF_MANUFACTURE_NAME_STR "Tuya"
|
#define DEF_MANUFACTURE_NAME_STR "Tuya"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ int main(void) {
|
||||||
#endif // OTA_TYPE == OTA_TYPE_BOOT
|
#endif // OTA_TYPE == OTA_TYPE_BOOT
|
||||||
|
|
||||||
#if CFG_SLEEP_MODE == PWR_MODE_SLEEP
|
#if CFG_SLEEP_MODE == PWR_MODE_SLEEP
|
||||||
// watchdog_config(WDG_32S);
|
watchdog_config(WDG_32S);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// spif_config(SYS_CLK_DLL_64M, 1, XFRD_FCMD_READ_DUAL, 0, 0);
|
// spif_config(SYS_CLK_DLL_64M, 1, XFRD_FCMD_READ_DUAL, 0, 0);
|
||||||
|
|
@ -470,8 +470,8 @@ int main(void) {
|
||||||
extern void ll_patch_advscan(void);
|
extern void ll_patch_advscan(void);
|
||||||
// ll_patch_advscan();
|
// ll_patch_advscan();
|
||||||
#else
|
#else
|
||||||
// extern void ll_patch_slave(void);
|
extern void ll_patch_slave(void);
|
||||||
// ll_patch_slave();
|
ll_patch_slave();
|
||||||
// extern void ll_patch_master(void);
|
// extern void ll_patch_master(void);
|
||||||
// ll_patch_master();
|
// ll_patch_master();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue