6626A/B的GPIO13做reset脚方法 __STATIC_INLINE void pmu_pin_iol3_reset_mode_enable(bool enable) { // 0: IOl3 iS RESET // 1:IOl3 is GPIO REGW(&OM_PMU->MISC_CTRL_1, MASK_1REG(PMU_MISC_CTRL_1_EN_RSTB, enable ? 0 : 1)); } /******************************************************************************* * PUBLIC FUNCTIONS */ __RAM_CODES("APP") int main(void) { pmu_pin_iol3_reset_mode_enable(1); struct ob_stack_param param = { .max_connection = OB_LE_HOST_CONNECTION_NB, .max_ext_adv_set = OB_LE_HOST_ADV_SET_NUM, .max_att_mtu = OB_LE_HOST_ATT_MTU, .max_gatt_serv_num = OB_LE_HOST_MAX_GATT_SERV_NUM, .max_gatt_write_cache = OB_LE_HOST_ATT_WRITE_CACHE_SIZE, .smp_sc_support = OB_LE_HOST_SC_PAIRING, }; …… } |