File tree 3 files changed +14
-11
lines changed
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,11 @@ void AppTask::PowerOnFactoryResetTimerEvent(struct k_timer * timer)
252
252
253
253
void AppTask::LinkLeds (LedManager & ledManager)
254
254
{
255
- #if (!CONFIG_PWM)
256
- ledManager.linkLed (LedManager::EAppLed_App0, 0 );
257
- #endif // !CONFIG_PWM
255
+ #if CONFIG_CHIP_ENABLE_APPLICATION_STATUS_LED
256
+ ledManager.linkLed (LedManager::EAppLed_Status, 0 );
257
+ #endif
258
+
259
+ #if !CONFIG_PWM
260
+ ledManager.linkLed (LedManager::EAppLed_App0, 1 );
261
+ #endif /* !CONFIG_PWM */
258
262
}
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
string (REPLACE "_retention" "" BASE_BOARD ${BOARD} )
17
+ string (REGEX REPLACE "_v[0-9]+" "" BASE_BOARD ${BASE_BOARD} )
17
18
18
19
if (NOT FLASH_SIZE)
19
- if (${BASE_BOARD} MATCHES "tlsr9118bdk40d" OR ${BASE_BOARD} MATCHES "tlsr9118bdk40d_v1"
20
- OR ${BASE_BOARD} MATCHES "tlsr9118bdk40d_v2" )
20
+ if (${BASE_BOARD} MATCHES "tlsr9118bdk40d" )
21
21
set (FLASH_SIZE "3m" )
22
22
else ()
23
23
set (FLASH_SIZE "2m" )
@@ -99,11 +99,8 @@ endif()
99
99
100
100
set (FLASH_DTC_OVERLAY_FILE "${CHIP_ROOT} /src/platform/telink/${BASE_BOARD} _${FLASH_SIZE} _flash.overlay" )
101
101
if (NOT EXISTS "${FLASH_DTC_OVERLAY_FILE} " )
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 ()
102
+ message (STATUS "${FLASH_DTC_OVERLAY_FILE} doesn't exist" )
103
+ unset (FLASH_DTC_OVERLAY_FILE)
107
104
endif ()
108
105
109
106
if (DTC_OVERLAY_FILE)
Original file line number Diff line number Diff line change @@ -416,7 +416,9 @@ void AppTaskCommon::InitPwms()
416
416
417
417
void AppTaskCommon::LinkPwms (PwmManager & pwmManager)
418
418
{
419
- #if CONFIG_WS2812_STRIP
419
+ #if CONFIG_BOARD_TLSR9118BDK40D_V1 && CONFIG_PWM // TLSR9118BDK40D_V1 EVK supports single LED PWM channel
420
+ pwmManager.linkPwm (PwmManager::EAppPwm_Red, 0 );
421
+ #elif CONFIG_WS2812_STRIP
420
422
pwmManager.linkPwm (PwmManager::EAppPwm_Red, 0 );
421
423
pwmManager.linkPwm (PwmManager::EAppPwm_Green, 1 );
422
424
pwmManager.linkPwm (PwmManager::EAppPwm_Blue, 2 );
You can’t perform that action at this time.
0 commit comments