930电子网

 找回密码
 立即注册
艾克姆科技推出最新产品STC32G12K128开发板
查看: 11535|回复: 1

发现协议栈没有使用RTC0计数器 和timer0定时器,但是开发手册却说协议栈用到

[复制链接]

57

主题

80

帖子

366

积分

中级会员

Rank: 3Rank: 3

积分
366
发表于 2020-9-27 14:21:39 | 显示全部楼层 |阅读模式
int main(void)
{
ble_stack_init();
log_init();
uart_config();
timers_init();
leds_init();
power_management_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
  conn_params_init();
//timer0_init();
  NRF_LOG_INFO("BLE Template example started.");  
//application_timers_start();
//nrf_gpio_cfg_output(GPIO_TOGGLE_PIN);       //Set LED pin as output
//nrf_gpio_pin_set(GPIO_TOGGLE_PIN);
//start_timer();                          //Configure and start timer

//advertising_start();

while(true)
{

  if(flag)
  {
    flag = 0;
    send_handler();
  }
  
  idle_state_handle();
// printf("BLE Template example started.");
  
}
}
这段代码,没发现协议栈用到RTC0 和TIMER0,只是利用到RTC1。
回复

使用道具 举报

52

主题

339

帖子

6487

积分

版主

Rank: 7Rank: 7Rank: 7

积分
6487
发表于 2020-9-27 17:02:02 | 显示全部楼层
协议栈内部使用了RTC0和Timer0,因为协议栈没有源码,所以看不到代码部分。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|官方淘宝店|930电子网 ( 皖ICP备16000695号-2 )

GMT+8, 2024-4-25 11:40 , Processed in 0.062996 second(s), 21 queries .

快速回复 返回顶部 返回列表