File tree 5 files changed +16
-49
lines changed
config/telink/chip-module
5 files changed +16
-49
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ config CHIP_IPV4
180
180
181
181
config CHIP_BUTTON_MANAGER_IRQ_MODE
182
182
bool "Use GPIO in an IRQ mode instead of polling the GPIO"
183
- default PM
183
+ default y if BOARD_TLSR9118BDK40D_V2
184
184
help
185
185
Use GPIO in an IRQ mode to avoid button polling loop and extend the battery lifetime by waking up by GPIO event.
186
186
GPIO events are working only with GPIO IRQ. This option changes button matrix configuration.
Original file line number Diff line number Diff line change @@ -180,7 +180,8 @@ config PWM
180
180
endif
181
181
182
182
# Board non-retention config
183
- if BOARD_TLSR9118BDK40D || BOARD_TLSR9528A || BOARD_TLSR9258A || BOARD_TLSR9518ADK80D
183
+ if BOARD_TLSR9118BDK40D_V1 || BOARD_TLSR9118BDK40D_V2 || \
184
+ BOARD_TLSR9528A || BOARD_TLSR9258A || BOARD_TLSR9518ADK80D
184
185
config PWM
185
186
default y
186
187
endif
@@ -292,7 +293,7 @@ config NET_CONFIG_INIT_TIMEOUT
292
293
293
294
config CHIP_WIFI
294
295
bool "Enable Telink Wi-Fi support"
295
- default y if BOARD_TLSR9118BDK40D
296
+ default y if BOARD_TLSR9118BDK40D_V1 || BOARD_TLSR9118BDK40D_V2
296
297
select WIFI_W91
297
298
select WIFI
298
299
select NET_STATISTICS
Original file line number Diff line number Diff line change 16
16
string (REPLACE "_retention" "" BASE_BOARD ${BOARD} )
17
17
18
18
if (NOT FLASH_SIZE)
19
- if (${BASE_BOARD} MATCHES "tlsr9118bdk40d" )
19
+ if (${BASE_BOARD} MATCHES "tlsr9118bdk40d" OR ${BASE_BOARD} MATCHES "tlsr9118bdk40d_v1"
20
+ OR ${BASE_BOARD} MATCHES "tlsr9118bdk40d_v2" )
20
21
set (FLASH_SIZE "3m" )
21
22
else ()
22
23
set (FLASH_SIZE "2m" )
@@ -86,17 +87,23 @@ endif()
86
87
87
88
set (GLOBAL_BOOT_DTC_OVERLAY_FILE "${CHIP_ROOT} /src/platform/telink/${BASE_BOARD} .overlay" )
88
89
if (NOT EXISTS "${GLOBAL_BOOT_DTC_OVERLAY_FILE} " )
89
- message (FATAL_ERROR "${GLOBAL_BOOT_DTC_OVERLAY_FILE} doesn't exist" )
90
+ message (STATUS "${GLOBAL_BOOT_DTC_OVERLAY_FILE} doesn't exist" )
91
+ unset (GLOBAL_BOOT_DTC_OVERLAY_FILE)
90
92
endif ()
91
93
92
94
set (GLOBAL_DTC_OVERLAY_FILE "${CHIP_ROOT} /src/platform/telink/${BOARD} .overlay" )
93
95
if (NOT EXISTS "${GLOBAL_DTC_OVERLAY_FILE} " )
94
- message (FATAL_ERROR "${GLOBAL_DTC_OVERLAY_FILE} doesn't exist" )
96
+ message (STATUS "${GLOBAL_DTC_OVERLAY_FILE} doesn't exist" )
97
+ unset (GLOBAL_DTC_OVERLAY_FILE)
95
98
endif ()
96
99
97
100
set (FLASH_DTC_OVERLAY_FILE "${CHIP_ROOT} /src/platform/telink/${BASE_BOARD} _${FLASH_SIZE} _flash.overlay" )
98
101
if (NOT EXISTS "${FLASH_DTC_OVERLAY_FILE} " )
99
- message (FATAL_ERROR "${FLASH_DTC_OVERLAY_FILE} doesn't exist" )
102
+ if (${BASE_BOARD} MATCHES "tlsr9118bdk40d_v1" OR ${BASE_BOARD} MATCHES "tlsr9118bdk40d_v2" )
103
+ set (FLASH_DTC_OVERLAY_FILE "${CHIP_ROOT} /src/platform/telink/tlsr9118bdk40d_${FLASH_SIZE} _flash.overlay" )
104
+ else ()
105
+ message (FATAL_ERROR "${FLASH_DTC_OVERLAY_FILE} doesn't exist" )
106
+ endif ()
100
107
endif ()
101
108
102
109
if (DTC_OVERLAY_FILE)
Original file line number Diff line number Diff line change @@ -414,9 +414,7 @@ void AppTaskCommon::InitPwms()
414
414
415
415
void AppTaskCommon::LinkPwms (PwmManager & pwmManager)
416
416
{
417
- #if CONFIG_BOARD_TLSR9118BDK40D // TLSR9118BDK40D EVK supports only 1 PWM channel connected to LED
418
- pwmManager.linkPwm (PwmManager::EAppPwm_Red, 0 );
419
- #elif CONFIG_WS2812_STRIP
417
+ #if CONFIG_WS2812_STRIP
420
418
pwmManager.linkPwm (PwmManager::EAppPwm_Red, 0 );
421
419
pwmManager.linkPwm (PwmManager::EAppPwm_Green, 1 );
422
420
pwmManager.linkPwm (PwmManager::EAppPwm_Blue, 2 );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments