Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and s07641069 committed Dec 2, 2024
1 parent 1ea5831 commit 368924c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/platform/telink/common/src/mainCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ int main(void)
err = GetAppTask().StartApp();

exit:
LOG_ERR("Exit err %d" , err.Format());
LOG_ERR("Exit err %d", err.Format());
return (err == CHIP_NO_ERROR) ? EXIT_SUCCESS : EXIT_FAILURE;
}
3 changes: 1 addition & 2 deletions examples/platform/telink/zephyr_ext/zephyr_key_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ static void key_matrix_poll(struct key_matrix_data * key_matrix, bool init)
/* Key matrix scan worker */
static void key_matrix_scan_work(struct k_work * item)
{
struct key_matrix_data * key_matrix =
CONTAINER_OF(k_work_delayable_from_work(item), struct key_matrix_data, work);
struct key_matrix_data * key_matrix = CONTAINER_OF(k_work_delayable_from_work(item), struct key_matrix_data, work);

(void) k_work_schedule(&key_matrix->work, K_MSEC(KEY_MATRIX_SCAN_PERIOD_MS));
key_matrix_poll(key_matrix, false);
Expand Down
3 changes: 1 addition & 2 deletions examples/platform/telink/zephyr_ext/zephyr_key_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ static void key_pool_poll(struct key_pool_data * key_pool, bool init)
/* Key pool scan worker */
static void key_pool_event_work(struct k_work * item)
{
struct key_pool_data * key_pool =
CONTAINER_OF(k_work_delayable_from_work(item), struct key_pool_data, work);
struct key_pool_data * key_pool = CONTAINER_OF(k_work_delayable_from_work(item), struct key_pool_data, work);

key_pool_poll(key_pool, false);
}
Expand Down
3 changes: 1 addition & 2 deletions examples/platform/telink/zephyr_ext/zephyr_led_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ static void led_pool_aux_update(const struct led_pool_data * led_pool)
/* Led pool worker */
static void led_pool_event_work(struct k_work * item)
{
struct led_pool_data * led_pool =
CONTAINER_OF(k_work_delayable_from_work(item), struct led_pool_data, work);
struct led_pool_data * led_pool = CONTAINER_OF(k_work_delayable_from_work(item), struct led_pool_data, work);

led_pool_aux_update(led_pool);
(void) k_work_reschedule(&led_pool->work, led_pool_aux_timeout(led_pool));
Expand Down
3 changes: 1 addition & 2 deletions examples/platform/telink/zephyr_ext/zephyr_pwm_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ static void pwm_pool_aux_update(const struct pwm_pool_data * pwm_pool)
/* Pwm pool worker */
static void pwm_pool_event_work(struct k_work * item)
{
struct pwm_pool_data * pwm_pool =
CONTAINER_OF(k_work_delayable_from_work(item), struct pwm_pool_data, work);
struct pwm_pool_data * pwm_pool = CONTAINER_OF(k_work_delayable_from_work(item), struct pwm_pool_data, work);

pwm_pool_aux_update(pwm_pool);
(void) k_work_reschedule(&pwm_pool->work, pwm_pool_aux_timeout(pwm_pool));
Expand Down
7 changes: 3 additions & 4 deletions src/platform/telink/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,15 @@ extern "C" {

#ifdef CONFIG_BT_B9X

extern __attribute__((noinline)) int b9x_bt_blc_mac_init(uint8_t *bt_mac);
extern __attribute__((noinline)) int b9x_bt_blc_mac_init(uint8_t * bt_mac);
/**
* @brief bt mac initialization
*/
__attribute__((noinline)) void telink_bt_blc_mac_init(uint8_t *bt_mac)
__attribute__((noinline)) void telink_bt_blc_mac_init(uint8_t * bt_mac)
{
b9x_bt_blc_mac_init(bt_mac);
b9x_bt_blc_mac_init(bt_mac);
}
#endif

}

#if defined(CONFIG_PM) && !defined(CONFIG_CHIP_ENABLE_PM_DURING_BLE)
Expand Down

0 comments on commit 368924c

Please sign in to comment.