add ll_patch_slave()

This commit is contained in:
pvvx 2024-02-24 14:50:30 +03:00
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.

Binary file not shown.

Binary file not shown.

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.

View file

@ -42,9 +42,10 @@
#define DEVICE_THB1 23
#define DEVICE_TH05D 24 // TH05_V1.3
#define DEVICE_TH05F 25 // TH05Y_V1.2
//#define DEVICE_THB3 26
#ifndef DEVICE
#define DEVICE DEVICE_TH05F
#define DEVICE DEVICE_THB2
#endif
// supported services by the device (bits)
@ -278,7 +279,7 @@
#define GPIO_TRG GPIO_P09 // mark TX
#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_MANUFACTURE_NAME_STR "Tuya"

View file

@ -452,7 +452,7 @@ int main(void) {
#endif // OTA_TYPE == OTA_TYPE_BOOT
#if CFG_SLEEP_MODE == PWR_MODE_SLEEP
// watchdog_config(WDG_32S);
watchdog_config(WDG_32S);
#endif
// 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);
// ll_patch_advscan();
#else
// extern void ll_patch_slave(void);
// ll_patch_slave();
extern void ll_patch_slave(void);
ll_patch_slave();
// extern void ll_patch_master(void);
// ll_patch_master();
#endif