Discuz! Board

标题: nRF5_SDK_12.1.0_0d23e2a 编译出错,请高手帮忙解答! [打印本页]

作者: rex    时间: 2016-11-22 22:45
标题: nRF5_SDK_12.1.0_0d23e2a 编译出错,请高手帮忙解答!
  1. static void ble_stack_init(void)
  2. {
  3.     uint32_t err_code;

  4.     nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

  5.     // Initialize SoftDevice.
  6.     SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);

  7.     ble_enable_params_t ble_enable_params;
  8.     err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
  9.                                                     PERIPHERAL_LINK_COUNT,
  10.                                                     &ble_enable_params);
  11.     APP_ERROR_CHECK(err_code);

  12.     //Check the ram settings against the used number of links
  13.     CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);

  14.     // Enable BLE stack.
  15. #if (NRF_SD_BLE_API_VERSION == 3)
  16.     ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
  17. #endif
  18.     err_code = softdevice_enable(&ble_enable_params);
  19.     APP_ERROR_CHECK(err_code);

  20.     // Subscribe for BLE events.
  21.     err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
  22.     APP_ERROR_CHECK(err_code);
  23. }
复制代码
SDK自带的EXAMPLE CODE:  ble_app_uart_pca10028_s130,  请高手帮忙解!  感谢!感谢!

作者: admin    时间: 2016-11-26 10:43
编译出什么错误了?




欢迎光临 Discuz! Board (http://qfv8.com/) Powered by Discuz! X3