/********************************************************************** * * strong_symbol.c * 定义库里面部分WEAK函数的Strong函数,动态关闭库代码 ***********************************************************************/ #include "include.h" #if (UART0_PRINTF_SEL == PRINTF_NONE) void wdt_irq_init(void) {} #endif #if !LE_EN AT(.bcom_text.bb.leisr) void ble_isr(void) {} AT(.bcom_text.bb.leisr) void ble_evt_instant(void *evt, uint32_t *next_basetimecnt, bool role) {} AT(.bcom_text.bb.leisr) void ble_evt_schedule(void) {} AT(.bcom_text.bb.leisr) uint32_t ble_evt_time_get(void) { return 0; } AT(.bcom_text.bb.leisr) uint8_t mgr_set_adv_data(void const *param) { return 0; } AT(.bcom_text.bb.leisr) void ble_lm_adv_data_update(void) {} AT(.bcom_text.bb.leisr) void ble_lc_check_update_evt_sent(uint16_t conhdl, void *evt_new) {} AT(.bcom_text.bb.leisr) void ble_evt_free_do(void *evt) {} void ll_con_update_ind(uint16_t conhdl, void *evt_new, void *ll_env_ptr,uint16_t msg_id_con, uint16_t msg_id_sup) {} void ll_con_update_cmd_complete_send(uint8_t status, uint16_t conhdl, void *evt, uint16_t msg_id) {} void ll_map_update_ind(uint16_t conhdl, void *param) {} void ll_common_nb_of_pkt_comp_evt_send(uint16_t conhdl, uint8_t nb_of_pkt, uint16_t msg_id) {} void ble_ll_init(void) {} void ble_ll_reset(void) {} bool ble_event_cmd_complete(uint8_t *packet, int size) { return false; } void ble_event_meta(uint8_t *packet, int size) {} int att_server_notify_do(void) { return 1;} void hci_run_le_connection(void) {} void btstack_ble_init(void) {} void btstack_ble_send_req(void) {} void btstack_ble_update_conn_param(void) {} void btstack_ble_set_adv_interval(void) {} void ble_set_adv_interval(u16 interval) {} void btstack_adv0_ctrl(uint opcode){} uint8_t ble_adv0_get_adv_en(void) {return 0;} #endif #if !LE_BQB_RF_EN AT(.com_text.bb.leisr) bool ble_data_ind_test_mode(uint8_t rx_cnt, uint8_t rx_hdl) {return false;} #endif #if (UART0_PRINTF_SEL == PRINTF_NONE) AT(.com_text.err) void sys_error_hook(u8 err_no) { WDT_RST(); while(1); } AT(.com_text.exception) WEAK void exception_isr(void) { sys_error_hook(2); } #endif #if BT_ID3_TAG_EN bool bt_id3_en(void) { return BT_ID3_TAG_EN; } #endif #if !SYS_COTIME_EN bool co_timer_set(co_timer_t *timer, uint32_t delay, co_timer_mode_t mode, co_timer_callback_t callback, void *param) {return false;} ALIGNED(512) void co_timer_del(co_timer_t *timer) {} bool co_timer_reset(co_timer_t *timer) {return false;} bool co_timer_enable(co_timer_t *timer, bool en) {return false;} bool co_timer_set_sleep(co_timer_t *timer, bool is_acitve) {return false;} AT(.com_text.co_time) bool co_timer_handle_valid(co_timer_t *timer) {return false;} void co_timer_max_num_set(u8 num) {} void co_timer_init(void) {} AT(.com_text.co_time) bool co_timer_pro(bool is_sleep_mode) {return false;} AT(.com_text.co_time) bool co_timer_pro_sleep(void) {return false;} bool co_timer_is_plan(void) {return false;} AT(.com_text.co_time) u32 co_timer_get_min_time(bool type) {return 0;} bool co_timer_sleep_10ms_enable(void) {return false;} // AT(.com_text.co_time) // u32 co_timer_tick_get(void); // AT(.com_text.co_time) // bool co_timer_check_expire(u32 tick, u32 co_expire); #endif