现象: 设备做为主设备,去连接从设备。每次都可以连接上,但是在发现服务的过程中出错。static uint32_t service_discover(client_t * p_client){uint32_t err_code = NRF_SUCCESS; p_client->state = STATE_SERVICE_DISC;if(p_client->client_info.uu...

这个人很懒,暂无签名信息
现象: 设备做为主设备,去连接从设备。每次都可以连接上,但是在发现服务的过程中出错。static uint32_t service_discover(client_t * p_client){uint32_t err_code = NRF_SUCCESS; p_client->state = STATE_SERVICE_DISC;if(p_client->client_info.uu...
大家好,许多天来,我一直在努力让I2C在STM32F401CE上工作(在PROTEUS中模拟)。USART工作得很好,但I2C还没有!我使用默认值,HSI 16MHz作为源时钟,没有预分频器。我需要你的帮助我初始化I2C1并发送启动条件的代码是:void i2c1_init(){ // Enable clocks to the peripherals RCC -> APB1ENR |= 1 En...