Skip to content

Commit

Permalink
[Telink] Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Dec 2, 2024
1 parent bf1b9c8 commit 951f73a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/telink/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ add_dependencies(process_binaries ${ZEPHYR_FINAL_EXECUTABLE})
# Define 'build_mcuboot' target for building the MCUBoot bootloader
# ==============================================================================

if (CONFIG_BOOTLOADER_MCUBOOT AND (CONFIG_SOC_SERIES_RISCV_TELINK_B9X OR CONFIG_SOC_SERIES_RISCV_TELINK_TLX))
if (CONFIG_BOOTLOADER_MCUBOOT AND (CONFIG_SOC_RISCV_TELINK_B9X OR CONFIG_SOC_RISCV_TELINK_TLX))
add_custom_target(build_mcuboot ALL
COMMAND
west build -b ${BASE_BOARD} -d build_mcuboot ${ZEPHYR_BASE}/../bootloader/mcuboot/boot/zephyr
Expand Down
2 changes: 1 addition & 1 deletion config/telink/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,5 @@ config CHIP_TASK_STACK_SIZE

config CHIP_USE_MARS_SENSOR
bool "Use Mars board sensor"
depends on SOC_SERIES_RISCV_TELINK_B9X && (BOARD_TLSR9518ADK80D || BOARD_TLSR9518ADK80D_RETENTION)
depends on CONFIG_SOC_RISCV_TELINK_B9X && (BOARD_TLSR9518ADK80D || BOARD_TLSR9518ADK80D_RETENTION)
default n
4 changes: 2 additions & 2 deletions config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ config BT_DEVICE_NAME_GATT_WRITABLE
bool
default n

if SOC_SERIES_RISCV_TELINK_B9X || SOC_SERIES_RISCV_TELINK_TLX
if SOC_RISCV_TELINK_B9X || SOC_RISCV_TELINK_TLX

config TL_BLE_CTRL_THREAD_STACK_SIZE
default 648
Expand All @@ -216,7 +216,7 @@ choice TL_BLE_CTRL_MAC_TYPE
default TL_BLE_CTRL_MAC_TYPE_RANDOM_STATIC
endchoice

endif # SOC_SERIES_RISCV_TELINK_B9X || SOC_SERIES_RISCV_TELINK_TLX
endif # SOC_RISCV_TELINK_B9X || SOC_RISCV_TELINK_TLX


endif # BT
Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/FactoryDataParser.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static inline bool uint16_decode(zcbor_state_t * states, uint16_t * value)
bool ParseFactoryData(uint8_t * buffer, uint16_t bufferSize, struct FactoryData * factoryData)
{
memset(factoryData, 0, sizeof(*factoryData));
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1);
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1, 0);

bool res = zcbor_map_start_decode(states);
struct zcbor_string currentString;
Expand Down

0 comments on commit 951f73a

Please sign in to comment.