├── .gitignore
├── LICENSE
├── README.md
└── Software
├── CMSIS-DAP.uvmpw
├── Common
├── CMSIS-DAP
│ ├── Include
│ │ └── DAP.h
│ └── Source
│ │ ├── DAP.c
│ │ ├── DAP_vendor.c
│ │ ├── JTAG_DP.c
│ │ ├── SWO.c
│ │ └── SW_DP.c
├── DAP_Common.h
├── STM32F0xx_HAL_Driver
│ ├── Inc
│ │ ├── Legacy
│ │ │ └── stm32_hal_legacy.h
│ │ ├── stm32_assert_template.h
│ │ ├── stm32f0xx_hal.h
│ │ ├── stm32f0xx_hal_adc.h
│ │ ├── stm32f0xx_hal_adc_ex.h
│ │ ├── stm32f0xx_hal_can.h
│ │ ├── stm32f0xx_hal_cec.h
│ │ ├── stm32f0xx_hal_comp.h
│ │ ├── stm32f0xx_hal_conf_template.h
│ │ ├── stm32f0xx_hal_cortex.h
│ │ ├── stm32f0xx_hal_crc.h
│ │ ├── stm32f0xx_hal_crc_ex.h
│ │ ├── stm32f0xx_hal_dac.h
│ │ ├── stm32f0xx_hal_dac_ex.h
│ │ ├── stm32f0xx_hal_def.h
│ │ ├── stm32f0xx_hal_dma.h
│ │ ├── stm32f0xx_hal_dma_ex.h
│ │ ├── stm32f0xx_hal_flash.h
│ │ ├── stm32f0xx_hal_flash_ex.h
│ │ ├── stm32f0xx_hal_gpio.h
│ │ ├── stm32f0xx_hal_gpio_ex.h
│ │ ├── stm32f0xx_hal_i2c.h
│ │ ├── stm32f0xx_hal_i2c_ex.h
│ │ ├── stm32f0xx_hal_i2s.h
│ │ ├── stm32f0xx_hal_irda.h
│ │ ├── stm32f0xx_hal_irda_ex.h
│ │ ├── stm32f0xx_hal_iwdg.h
│ │ ├── stm32f0xx_hal_pcd.h
│ │ ├── stm32f0xx_hal_pcd_ex.h
│ │ ├── stm32f0xx_hal_pwr.h
│ │ ├── stm32f0xx_hal_pwr_ex.h
│ │ ├── stm32f0xx_hal_rcc.h
│ │ ├── stm32f0xx_hal_rcc_ex.h
│ │ ├── stm32f0xx_hal_rtc.h
│ │ ├── stm32f0xx_hal_rtc_ex.h
│ │ ├── stm32f0xx_hal_smartcard.h
│ │ ├── stm32f0xx_hal_smartcard_ex.h
│ │ ├── stm32f0xx_hal_smbus.h
│ │ ├── stm32f0xx_hal_spi.h
│ │ ├── stm32f0xx_hal_spi_ex.h
│ │ ├── stm32f0xx_hal_tim.h
│ │ ├── stm32f0xx_hal_tim_ex.h
│ │ ├── stm32f0xx_hal_tsc.h
│ │ ├── stm32f0xx_hal_uart.h
│ │ ├── stm32f0xx_hal_uart_ex.h
│ │ ├── stm32f0xx_hal_usart.h
│ │ ├── stm32f0xx_hal_usart_ex.h
│ │ ├── stm32f0xx_hal_wwdg.h
│ │ ├── stm32f0xx_ll_adc.h
│ │ ├── stm32f0xx_ll_bus.h
│ │ ├── stm32f0xx_ll_comp.h
│ │ ├── stm32f0xx_ll_cortex.h
│ │ ├── stm32f0xx_ll_crc.h
│ │ ├── stm32f0xx_ll_crs.h
│ │ ├── stm32f0xx_ll_dac.h
│ │ ├── stm32f0xx_ll_dma.h
│ │ ├── stm32f0xx_ll_exti.h
│ │ ├── stm32f0xx_ll_gpio.h
│ │ ├── stm32f0xx_ll_i2c.h
│ │ ├── stm32f0xx_ll_iwdg.h
│ │ ├── stm32f0xx_ll_pwr.h
│ │ ├── stm32f0xx_ll_rcc.h
│ │ ├── stm32f0xx_ll_rtc.h
│ │ ├── stm32f0xx_ll_spi.h
│ │ ├── stm32f0xx_ll_system.h
│ │ ├── stm32f0xx_ll_tim.h
│ │ ├── stm32f0xx_ll_usart.h
│ │ ├── stm32f0xx_ll_utils.h
│ │ └── stm32f0xx_ll_wwdg.h
│ └── Src
│ │ ├── stm32f0xx_hal.c
│ │ ├── stm32f0xx_hal_adc.c
│ │ ├── stm32f0xx_hal_adc_ex.c
│ │ ├── stm32f0xx_hal_can.c
│ │ ├── stm32f0xx_hal_cec.c
│ │ ├── stm32f0xx_hal_comp.c
│ │ ├── stm32f0xx_hal_cortex.c
│ │ ├── stm32f0xx_hal_crc.c
│ │ ├── stm32f0xx_hal_crc_ex.c
│ │ ├── stm32f0xx_hal_dac.c
│ │ ├── stm32f0xx_hal_dac_ex.c
│ │ ├── stm32f0xx_hal_dma.c
│ │ ├── stm32f0xx_hal_flash.c
│ │ ├── stm32f0xx_hal_flash_ex.c
│ │ ├── stm32f0xx_hal_gpio.c
│ │ ├── stm32f0xx_hal_i2c.c
│ │ ├── stm32f0xx_hal_i2c_ex.c
│ │ ├── stm32f0xx_hal_i2s.c
│ │ ├── stm32f0xx_hal_irda.c
│ │ ├── stm32f0xx_hal_iwdg.c
│ │ ├── stm32f0xx_hal_msp_template.c
│ │ ├── stm32f0xx_hal_pcd.c
│ │ ├── stm32f0xx_hal_pcd_ex.c
│ │ ├── stm32f0xx_hal_pwr.c
│ │ ├── stm32f0xx_hal_pwr_ex.c
│ │ ├── stm32f0xx_hal_rcc.c
│ │ ├── stm32f0xx_hal_rcc_ex.c
│ │ ├── stm32f0xx_hal_rtc.c
│ │ ├── stm32f0xx_hal_rtc_ex.c
│ │ ├── stm32f0xx_hal_smartcard.c
│ │ ├── stm32f0xx_hal_smartcard_ex.c
│ │ ├── stm32f0xx_hal_smbus.c
│ │ ├── stm32f0xx_hal_spi.c
│ │ ├── stm32f0xx_hal_spi_ex.c
│ │ ├── stm32f0xx_hal_tim.c
│ │ ├── stm32f0xx_hal_tim_ex.c
│ │ ├── stm32f0xx_hal_tsc.c
│ │ ├── stm32f0xx_hal_uart.c
│ │ ├── stm32f0xx_hal_uart_ex.c
│ │ ├── stm32f0xx_hal_usart.c
│ │ ├── stm32f0xx_hal_wwdg.c
│ │ ├── stm32f0xx_ll_adc.c
│ │ ├── stm32f0xx_ll_comp.c
│ │ ├── stm32f0xx_ll_crc.c
│ │ ├── stm32f0xx_ll_crs.c
│ │ ├── stm32f0xx_ll_dac.c
│ │ ├── stm32f0xx_ll_dma.c
│ │ ├── stm32f0xx_ll_exti.c
│ │ ├── stm32f0xx_ll_gpio.c
│ │ ├── stm32f0xx_ll_i2c.c
│ │ ├── stm32f0xx_ll_pwr.c
│ │ ├── stm32f0xx_ll_rcc.c
│ │ ├── stm32f0xx_ll_rtc.c
│ │ ├── stm32f0xx_ll_spi.c
│ │ ├── stm32f0xx_ll_tim.c
│ │ ├── stm32f0xx_ll_usart.c
│ │ └── stm32f0xx_ll_utils.c
├── STM32F10x_StdPeriph_Driver
│ ├── inc
│ │ ├── misc.h
│ │ ├── stm32f10x_adc.h
│ │ ├── stm32f10x_bkp.h
│ │ ├── stm32f10x_can.h
│ │ ├── stm32f10x_cec.h
│ │ ├── stm32f10x_crc.h
│ │ ├── stm32f10x_dac.h
│ │ ├── stm32f10x_dbgmcu.h
│ │ ├── stm32f10x_dma.h
│ │ ├── stm32f10x_exti.h
│ │ ├── stm32f10x_flash.h
│ │ ├── stm32f10x_fsmc.h
│ │ ├── stm32f10x_gpio.h
│ │ ├── stm32f10x_i2c.h
│ │ ├── stm32f10x_iwdg.h
│ │ ├── stm32f10x_pwr.h
│ │ ├── stm32f10x_rcc.h
│ │ ├── stm32f10x_rtc.h
│ │ ├── stm32f10x_sdio.h
│ │ ├── stm32f10x_spi.h
│ │ ├── stm32f10x_tim.h
│ │ ├── stm32f10x_usart.h
│ │ └── stm32f10x_wwdg.h
│ └── src
│ │ ├── misc.c
│ │ ├── stm32f10x_adc.c
│ │ ├── stm32f10x_bkp.c
│ │ ├── stm32f10x_can.c
│ │ ├── stm32f10x_cec.c
│ │ ├── stm32f10x_crc.c
│ │ ├── stm32f10x_dac.c
│ │ ├── stm32f10x_dbgmcu.c
│ │ ├── stm32f10x_dma.c
│ │ ├── stm32f10x_exti.c
│ │ ├── stm32f10x_flash.c
│ │ ├── stm32f10x_fsmc.c
│ │ ├── stm32f10x_gpio.c
│ │ ├── stm32f10x_i2c.c
│ │ ├── stm32f10x_iwdg.c
│ │ ├── stm32f10x_pwr.c
│ │ ├── stm32f10x_rcc.c
│ │ ├── stm32f10x_rtc.c
│ │ ├── stm32f10x_sdio.c
│ │ ├── stm32f10x_spi.c
│ │ ├── stm32f10x_tim.c
│ │ ├── stm32f10x_usart.c
│ │ └── stm32f10x_wwdg.c
├── STM32_USB_Device_Library
│ ├── Class
│ │ └── CustomHID
│ │ │ ├── Inc
│ │ │ ├── usbd_customhid.h
│ │ │ └── usbd_customhid_if_template.h
│ │ │ └── Src
│ │ │ ├── usbd_customhid.c
│ │ │ └── usbd_customhid_if_template.c
│ └── Core
│ │ ├── Inc
│ │ ├── usbd_conf_template.h
│ │ ├── usbd_core.h
│ │ ├── usbd_ctlreq.h
│ │ ├── usbd_def.h
│ │ └── usbd_ioreq.h
│ │ └── Src
│ │ ├── usbd_conf_template.c
│ │ ├── usbd_core.c
│ │ ├── usbd_ctlreq.c
│ │ └── usbd_ioreq.c
└── nRF_SDK
│ ├── ant
│ ├── ant_channel_config
│ │ ├── ant_channel_config.c
│ │ └── ant_channel_config.h
│ ├── ant_encryption
│ │ ├── ant_encrypt_config.c
│ │ ├── ant_encrypt_config.h
│ │ ├── ant_encrypt_negotiation_slave.c
│ │ └── ant_encrypt_negotiation_slave.h
│ ├── ant_key_manager
│ │ ├── ant_key_manager.c
│ │ ├── ant_key_manager.h
│ │ └── config
│ │ │ └── ant_key_manager_config.h
│ ├── ant_profiles
│ │ ├── ant_bpwr
│ │ │ ├── ant_bpwr.c
│ │ │ ├── ant_bpwr.h
│ │ │ ├── ant_bpwr_local.h
│ │ │ ├── pages
│ │ │ │ ├── ant_bpwr_common_data.c
│ │ │ │ ├── ant_bpwr_common_data.h
│ │ │ │ ├── ant_bpwr_page_1.c
│ │ │ │ ├── ant_bpwr_page_1.h
│ │ │ │ ├── ant_bpwr_page_16.c
│ │ │ │ ├── ant_bpwr_page_16.h
│ │ │ │ ├── ant_bpwr_page_17.c
│ │ │ │ ├── ant_bpwr_page_17.h
│ │ │ │ ├── ant_bpwr_page_18.c
│ │ │ │ ├── ant_bpwr_page_18.h
│ │ │ │ ├── ant_bpwr_page_torque.c
│ │ │ │ ├── ant_bpwr_page_torque.h
│ │ │ │ ├── ant_bpwr_pages.h
│ │ │ │ └── logger
│ │ │ │ │ └── ant_bpwr_page_logger.h
│ │ │ ├── simulator
│ │ │ │ ├── ant_bpwr_simulator.c
│ │ │ │ ├── ant_bpwr_simulator.h
│ │ │ │ └── ant_bpwr_simulator_local.h
│ │ │ └── utils
│ │ │ │ └── ant_bpwr_utils.h
│ │ ├── ant_bsc
│ │ │ ├── ant_bsc.c
│ │ │ ├── ant_bsc.h
│ │ │ ├── ant_bsc_local.h
│ │ │ ├── pages
│ │ │ │ ├── ant_bsc_combined_page_0.c
│ │ │ │ ├── ant_bsc_combined_page_0.h
│ │ │ │ ├── ant_bsc_page_0.c
│ │ │ │ ├── ant_bsc_page_0.h
│ │ │ │ ├── ant_bsc_page_1.c
│ │ │ │ ├── ant_bsc_page_1.h
│ │ │ │ ├── ant_bsc_page_2.c
│ │ │ │ ├── ant_bsc_page_2.h
│ │ │ │ ├── ant_bsc_page_3.c
│ │ │ │ ├── ant_bsc_page_3.h
│ │ │ │ ├── ant_bsc_page_4.c
│ │ │ │ ├── ant_bsc_page_4.h
│ │ │ │ ├── ant_bsc_page_5.c
│ │ │ │ ├── ant_bsc_page_5.h
│ │ │ │ ├── ant_bsc_pages.h
│ │ │ │ └── logger
│ │ │ │ │ └── ant_bsc_page_logger.h
│ │ │ ├── simulator
│ │ │ │ ├── ant_bsc_simulator.c
│ │ │ │ ├── ant_bsc_simulator.h
│ │ │ │ └── ant_bsc_simulator_local.h
│ │ │ └── utils
│ │ │ │ └── ant_bsc_utils.h
│ │ ├── ant_common
│ │ │ ├── ant_request_controller
│ │ │ │ ├── ant_request_controller.c
│ │ │ │ └── ant_request_controller.h
│ │ │ └── pages
│ │ │ │ ├── ant_common_page_70.c
│ │ │ │ ├── ant_common_page_70.h
│ │ │ │ ├── ant_common_page_80.c
│ │ │ │ ├── ant_common_page_80.h
│ │ │ │ ├── ant_common_page_81.c
│ │ │ │ ├── ant_common_page_81.h
│ │ │ │ └── logger
│ │ │ │ └── ant_common_page_logger.h
│ │ ├── ant_hrm
│ │ │ ├── ant_hrm.c
│ │ │ ├── ant_hrm.h
│ │ │ ├── ant_hrm_local.h
│ │ │ ├── pages
│ │ │ │ ├── ant_hrm_page_0.c
│ │ │ │ ├── ant_hrm_page_0.h
│ │ │ │ ├── ant_hrm_page_1.c
│ │ │ │ ├── ant_hrm_page_1.h
│ │ │ │ ├── ant_hrm_page_2.c
│ │ │ │ ├── ant_hrm_page_2.h
│ │ │ │ ├── ant_hrm_page_3.c
│ │ │ │ ├── ant_hrm_page_3.h
│ │ │ │ ├── ant_hrm_page_4.c
│ │ │ │ ├── ant_hrm_page_4.h
│ │ │ │ ├── ant_hrm_pages.h
│ │ │ │ └── logger
│ │ │ │ │ └── ant_hrm_page_logger.h
│ │ │ ├── simulator
│ │ │ │ ├── ant_hrm_simulator.c
│ │ │ │ ├── ant_hrm_simulator.h
│ │ │ │ └── ant_hrm_simulator_local.h
│ │ │ └── utils
│ │ │ │ └── ant_hrm_utils.h
│ │ └── ant_sdm
│ │ │ ├── ant_sdm.c
│ │ │ ├── ant_sdm.h
│ │ │ ├── ant_sdm_local.h
│ │ │ ├── pages
│ │ │ ├── ant_sdm_common_data.c
│ │ │ ├── ant_sdm_common_data.h
│ │ │ ├── ant_sdm_page_1.c
│ │ │ ├── ant_sdm_page_1.h
│ │ │ ├── ant_sdm_page_16.c
│ │ │ ├── ant_sdm_page_16.h
│ │ │ ├── ant_sdm_page_2.c
│ │ │ ├── ant_sdm_page_2.h
│ │ │ ├── ant_sdm_page_22.c
│ │ │ ├── ant_sdm_page_22.h
│ │ │ ├── ant_sdm_page_3.c
│ │ │ ├── ant_sdm_page_3.h
│ │ │ ├── ant_sdm_pages.h
│ │ │ └── logger
│ │ │ │ └── ant_sdm_page_logger.h
│ │ │ ├── simulator
│ │ │ ├── ant_sdm_simulator.c
│ │ │ ├── ant_sdm_simulator.h
│ │ │ └── ant_sdm_simulator_local.h
│ │ │ └── utils
│ │ │ └── ant_sdm_utils.h
│ ├── ant_search_config
│ │ ├── ant_search_config.c
│ │ └── ant_search_config.h
│ ├── ant_stack_config
│ │ ├── ant_stack_config.c
│ │ ├── ant_stack_config.h
│ │ └── config
│ │ │ └── ant_stack_config_defs.h
│ └── ant_state_indicator
│ │ ├── ant_state_indicator.c
│ │ └── ant_state_indicator.h
│ ├── ble
│ ├── ble_advertising
│ │ ├── ble_advertising.c
│ │ └── ble_advertising.h
│ ├── ble_db_discovery
│ │ ├── ble_db_discovery.c
│ │ └── ble_db_discovery.h
│ ├── ble_debug_assert_handler
│ │ ├── ble_debug_assert_handler.c
│ │ └── ble_debug_assert_handler.h
│ ├── ble_dtm
│ │ ├── ble_dtm.c
│ │ └── ble_dtm.h
│ ├── ble_error_log
│ │ ├── ble_error_log.c
│ │ └── ble_error_log.h
│ ├── ble_racp
│ │ ├── ble_racp.c
│ │ └── ble_racp.h
│ ├── ble_radio_notification
│ │ ├── ble_radio_notification.c
│ │ └── ble_radio_notification.h
│ ├── ble_services
│ │ ├── ble_ancs_c
│ │ │ ├── ble_ancs_c.c
│ │ │ └── ble_ancs_c.h
│ │ ├── ble_ans_c
│ │ │ ├── ble_ans_c.c
│ │ │ └── ble_ans_c.h
│ │ ├── ble_bas
│ │ │ ├── ble_bas.c
│ │ │ └── ble_bas.h
│ │ ├── ble_bas_c
│ │ │ ├── ble_bas_c.c
│ │ │ └── ble_bas_c.h
│ │ ├── ble_bps
│ │ │ ├── ble_bps.c
│ │ │ └── ble_bps.h
│ │ ├── ble_cscs
│ │ │ ├── ble_cscs.c
│ │ │ ├── ble_cscs.h
│ │ │ ├── ble_sc_ctrlpt.c
│ │ │ └── ble_sc_ctrlpt.h
│ │ ├── ble_cts_c
│ │ │ ├── ble_cts_c.c
│ │ │ └── ble_cts_c.h
│ │ ├── ble_dfu
│ │ │ ├── ble_dfu.c
│ │ │ └── ble_dfu.h
│ │ ├── ble_dis
│ │ │ ├── ble_dis.c
│ │ │ └── ble_dis.h
│ │ ├── ble_gls
│ │ │ ├── ble_gls.c
│ │ │ ├── ble_gls.h
│ │ │ ├── ble_gls_db.c
│ │ │ └── ble_gls_db.h
│ │ ├── ble_hids
│ │ │ ├── ble_hids.c
│ │ │ └── ble_hids.h
│ │ ├── ble_hrs
│ │ │ ├── ble_hrs.c
│ │ │ └── ble_hrs.h
│ │ ├── ble_hrs_c
│ │ │ ├── ble_hrs_c.c
│ │ │ └── ble_hrs_c.h
│ │ ├── ble_hts
│ │ │ ├── ble_hts.c
│ │ │ └── ble_hts.h
│ │ ├── ble_ias
│ │ │ ├── ble_ias.c
│ │ │ └── ble_ias.h
│ │ ├── ble_ias_c
│ │ │ ├── ble_ias_c.c
│ │ │ └── ble_ias_c.h
│ │ ├── ble_lbs
│ │ │ ├── ble_lbs.c
│ │ │ └── ble_lbs.h
│ │ ├── ble_lbs_c
│ │ │ ├── ble_lbs_c.c
│ │ │ └── ble_lbs_c.h
│ │ ├── ble_lls
│ │ │ ├── ble_lls.c
│ │ │ └── ble_lls.h
│ │ ├── ble_nus
│ │ │ ├── ble_nus.c
│ │ │ └── ble_nus.h
│ │ ├── ble_nus_c
│ │ │ ├── ble_nus_c.c
│ │ │ └── ble_nus_c.h
│ │ ├── ble_rscs
│ │ │ ├── ble_rscs.c
│ │ │ └── ble_rscs.h
│ │ ├── ble_rscs_c
│ │ │ ├── ble_rscs_c.c
│ │ │ └── ble_rscs_c.h
│ │ ├── ble_tps
│ │ │ ├── ble_tps.c
│ │ │ └── ble_tps.h
│ │ └── experimental_ble_lns
│ │ │ ├── ble_ln_common.h
│ │ │ ├── ble_ln_cp.c
│ │ │ ├── ble_ln_cp.h
│ │ │ ├── ble_ln_db.c
│ │ │ ├── ble_ln_db.h
│ │ │ ├── ble_lns.c
│ │ │ └── ble_lns.h
│ ├── common
│ │ ├── ble_advdata.c
│ │ ├── ble_advdata.h
│ │ ├── ble_conn_params.c
│ │ ├── ble_conn_params.h
│ │ ├── ble_conn_state.c
│ │ ├── ble_conn_state.h
│ │ ├── ble_date_time.h
│ │ ├── ble_gatt_db.h
│ │ ├── ble_sensor_location.h
│ │ ├── ble_srv_common.c
│ │ └── ble_srv_common.h
│ ├── device_manager
│ │ ├── config
│ │ │ └── device_manager_cnfg.h
│ │ ├── device_manager.h
│ │ ├── device_manager_central.c
│ │ └── device_manager_peripheral.c
│ └── peer_manager
│ │ ├── gatt_cache_manager.c
│ │ ├── gatt_cache_manager.h
│ │ ├── gattc_cache_manager.c
│ │ ├── gattc_cache_manager.h
│ │ ├── gatts_cache_manager.c
│ │ ├── gatts_cache_manager.h
│ │ ├── id_manager.c
│ │ ├── id_manager.h
│ │ ├── peer_data.c
│ │ ├── peer_data.h
│ │ ├── peer_data_storage.c
│ │ ├── peer_data_storage.h
│ │ ├── peer_database.c
│ │ ├── peer_database.h
│ │ ├── peer_id.c
│ │ ├── peer_id.h
│ │ ├── peer_manager.c
│ │ ├── peer_manager.h
│ │ ├── peer_manager_internal.h
│ │ ├── peer_manager_types.h
│ │ ├── pm_buffer.c
│ │ ├── pm_buffer.h
│ │ ├── pm_mutex.c
│ │ ├── pm_mutex.h
│ │ ├── security_dispatcher.c
│ │ ├── security_dispatcher.h
│ │ ├── security_manager.c
│ │ └── security_manager.h
│ ├── bsp
│ ├── boards.h
│ ├── bsp.c
│ ├── bsp.h
│ ├── bsp_btn_ant.c
│ ├── bsp_btn_ant.h
│ ├── bsp_btn_ble.c
│ ├── bsp_btn_ble.h
│ ├── n5_starterkit.h
│ ├── nrf6310.h
│ ├── pca10000.h
│ ├── pca10001.h
│ ├── pca10003.h
│ ├── pca10028.h
│ ├── pca10031.h
│ ├── pca10036.h
│ ├── pca10040.h
│ ├── pca20006.h
│ └── wt51822.h
│ ├── device
│ ├── compiler_abstraction.h
│ ├── nrf.h
│ ├── nrf51.h
│ ├── nrf51_bitfields.h
│ ├── nrf51_deprecated.h
│ ├── nrf51_to_nrf52.h
│ ├── nrf52.h
│ ├── nrf52_bitfields.h
│ └── nrf52_name_change.h
│ ├── drivers_ext
│ ├── adns2080
│ │ ├── adns2080.c
│ │ └── adns2080.h
│ ├── cherry8x16
│ │ ├── cherry8x16.c
│ │ └── cherry8x16.h
│ ├── ds1624
│ │ ├── ds1624.c
│ │ └── ds1624.h
│ ├── mpu6050
│ │ ├── mpu6050.c
│ │ └── mpu6050.h
│ ├── nrf6350
│ │ ├── nrf6350.c
│ │ └── nrf6350.h
│ └── synaptics_touchpad
│ │ ├── synaptics_touchpad.c
│ │ └── synaptics_touchpad.h
│ ├── drivers_nrf
│ ├── adc
│ │ ├── nrf_drv_adc.c
│ │ └── nrf_drv_adc.h
│ ├── ble_flash
│ │ ├── ble_flash.c
│ │ └── ble_flash.h
│ ├── clock
│ │ ├── nrf_drv_clock.c
│ │ └── nrf_drv_clock.h
│ ├── common
│ │ ├── nrf_drv_common.c
│ │ └── nrf_drv_common.h
│ ├── comp
│ │ ├── nrf_drv_comp.c
│ │ └── nrf_drv_comp.h
│ ├── config
│ │ ├── nrf_drv_config.h
│ │ └── nrf_drv_config_validation.h
│ ├── delay
│ │ ├── nrf_delay.c
│ │ └── nrf_delay.h
│ ├── gpiote
│ │ ├── nrf_drv_gpiote.c
│ │ └── nrf_drv_gpiote.h
│ ├── hal
│ │ ├── nrf_adc.c
│ │ ├── nrf_adc.h
│ │ ├── nrf_clock.h
│ │ ├── nrf_comp.h
│ │ ├── nrf_ecb.c
│ │ ├── nrf_ecb.h
│ │ ├── nrf_egu.h
│ │ ├── nrf_gpio.h
│ │ ├── nrf_gpiote.h
│ │ ├── nrf_i2s.h
│ │ ├── nrf_lpcomp.h
│ │ ├── nrf_nvmc.c
│ │ ├── nrf_nvmc.h
│ │ ├── nrf_pdm.h
│ │ ├── nrf_ppi.h
│ │ ├── nrf_pwm.h
│ │ ├── nrf_qdec.h
│ │ ├── nrf_rng.h
│ │ ├── nrf_rtc.h
│ │ ├── nrf_saadc.c
│ │ ├── nrf_saadc.h
│ │ ├── nrf_spi.h
│ │ ├── nrf_spim.h
│ │ ├── nrf_spis.h
│ │ ├── nrf_temp.h
│ │ ├── nrf_timer.h
│ │ ├── nrf_twi.h
│ │ ├── nrf_twim.h
│ │ ├── nrf_twis.h
│ │ ├── nrf_uart.h
│ │ ├── nrf_uarte.h
│ │ └── nrf_wdt.h
│ ├── i2s
│ │ ├── nrf_drv_i2s.c
│ │ └── nrf_drv_i2s.h
│ ├── lpcomp
│ │ ├── nrf_drv_lpcomp.c
│ │ └── nrf_drv_lpcomp.h
│ ├── nrf_soc_nosd
│ │ ├── nrf_error.h
│ │ ├── nrf_nvic.c
│ │ ├── nrf_nvic.h
│ │ ├── nrf_soc.c
│ │ └── nrf_soc.h
│ ├── pdm
│ │ ├── nrf_drv_pdm.c
│ │ └── nrf_drv_pdm.h
│ ├── ppi
│ │ ├── nrf_drv_ppi.c
│ │ └── nrf_drv_ppi.h
│ ├── pstorage
│ │ ├── config
│ │ │ └── pstorage_platform.h
│ │ ├── pstorage.c
│ │ ├── pstorage.h
│ │ ├── pstorage_nosd.c
│ │ └── pstorage_raw.c
│ ├── pwm
│ │ ├── nrf_drv_pwm.c
│ │ └── nrf_drv_pwm.h
│ ├── qdec
│ │ ├── nrf_drv_qdec.c
│ │ └── nrf_drv_qdec.h
│ ├── radio_config
│ │ ├── radio_config.c
│ │ └── radio_config.h
│ ├── rng
│ │ ├── nrf_drv_rng.c
│ │ └── nrf_drv_rng.h
│ ├── rtc
│ │ ├── nrf_drv_rtc.c
│ │ └── nrf_drv_rtc.h
│ ├── saadc
│ │ ├── nrf_drv_saadc.c
│ │ └── nrf_drv_saadc.h
│ ├── sdio
│ │ ├── config
│ │ │ └── sdio_config.h
│ │ ├── sdio.c
│ │ └── sdio.h
│ ├── spi_master
│ │ ├── nrf_drv_spi.c
│ │ ├── nrf_drv_spi.h
│ │ ├── spi_5W_master.c
│ │ └── spi_5W_master.h
│ ├── spi_slave
│ │ ├── nrf_drv_spis.c
│ │ └── nrf_drv_spis.h
│ ├── swi
│ │ ├── nrf_drv_swi.c
│ │ └── nrf_drv_swi.h
│ ├── timer
│ │ ├── nrf_drv_timer.c
│ │ └── nrf_drv_timer.h
│ ├── twi_master
│ │ ├── deprecated
│ │ │ ├── config
│ │ │ │ └── twi_master_config.h
│ │ │ ├── twi_hw_master.c
│ │ │ ├── twi_master.h
│ │ │ └── twi_sw_master.c
│ │ ├── nrf_drv_twi.c
│ │ └── nrf_drv_twi.h
│ ├── twis_slave
│ │ ├── nrf_drv_twis.c
│ │ ├── nrf_drv_twis.h
│ │ └── nrf_drv_twis_inst.def
│ ├── uart
│ │ ├── nrf_drv_uart.c
│ │ └── nrf_drv_uart.h
│ └── wdt
│ │ ├── nrf_drv_wdt.c
│ │ └── nrf_drv_wdt.h
│ ├── libraries
│ ├── ant_fs
│ │ ├── antfs.c
│ │ ├── antfs.h
│ │ ├── crc.c
│ │ ├── crc.h
│ │ └── defines.h
│ ├── bootloader_dfu
│ │ ├── ble_transport
│ │ │ └── hci_mem_pool_internal.h
│ │ ├── bootloader.c
│ │ ├── bootloader.h
│ │ ├── bootloader_settings.c
│ │ ├── bootloader_settings.h
│ │ ├── bootloader_types.h
│ │ ├── bootloader_util.c
│ │ ├── bootloader_util.h
│ │ ├── dfu.h
│ │ ├── dfu_app_handler.c
│ │ ├── dfu_app_handler.h
│ │ ├── dfu_bank_internal.h
│ │ ├── dfu_ble_svc.h
│ │ ├── dfu_ble_svc_internal.h
│ │ ├── dfu_dual_bank.c
│ │ ├── dfu_init.h
│ │ ├── dfu_init_template.c
│ │ ├── dfu_single_bank.c
│ │ ├── dfu_transport.h
│ │ ├── dfu_transport_ble.c
│ │ ├── dfu_transport_serial.c
│ │ ├── dfu_types.h
│ │ ├── experimental
│ │ │ ├── dfu_init_template_signing.c
│ │ │ └── nrf_sec.h
│ │ └── hci_transport
│ │ │ ├── hci_mem_pool_internal.h
│ │ │ └── hci_transport_config.h
│ ├── button
│ │ ├── app_button.c
│ │ └── app_button.h
│ ├── crc16
│ │ ├── crc16.c
│ │ └── crc16.h
│ ├── crc32
│ │ ├── crc32.c
│ │ └── crc32.h
│ ├── ecc
│ │ ├── ecc.c
│ │ └── ecc.h
│ ├── experimental_section_vars
│ │ └── section_vars.h
│ ├── fds
│ │ ├── config
│ │ │ └── fds_config.h
│ │ ├── fds.c
│ │ ├── fds.h
│ │ └── fds_internal_defs.h
│ ├── fifo
│ │ ├── app_fifo.c
│ │ └── app_fifo.h
│ ├── fstorage
│ │ ├── config
│ │ │ └── fstorage_config.h
│ │ ├── fstorage.c
│ │ ├── fstorage.h
│ │ ├── fstorage_internal_defs.h
│ │ └── fstorage_nosd.c
│ ├── gpiote
│ │ ├── app_gpiote.c
│ │ ├── app_gpiote.h
│ │ └── app_gpiote_fast_detect.c
│ ├── hardfault
│ │ ├── hardfault.h
│ │ ├── hardfault_implementation.c
│ │ ├── nrf51
│ │ │ └── handler
│ │ │ │ ├── hardfault_handler_gcc.c
│ │ │ │ ├── hardfault_handler_iar.c
│ │ │ │ └── hardfault_handler_keil.c
│ │ └── nrf52
│ │ │ └── handler
│ │ │ ├── hardfault_handler_gcc.c
│ │ │ ├── hardfault_handler_iar.c
│ │ │ └── hardfault_handler_keil.c
│ ├── hci
│ │ ├── config
│ │ │ ├── hci_mem_pool_internal.h
│ │ │ └── hci_transport_config.h
│ │ ├── hci_mem_pool.c
│ │ ├── hci_mem_pool.h
│ │ ├── hci_slip.c
│ │ ├── hci_slip.h
│ │ ├── hci_transport.c
│ │ └── hci_transport.h
│ ├── ic_info
│ │ ├── nrf_ic_info.c
│ │ └── nrf_ic_info.h
│ ├── led_softblink
│ │ ├── led_softblink.c
│ │ └── led_softblink.h
│ ├── low_power_pwm
│ │ ├── low_power_pwm.c
│ │ └── low_power_pwm.h
│ ├── mailbox
│ │ ├── app_mailbox.c
│ │ ├── app_mailbox.h
│ │ └── app_mailbox_local.h
│ ├── mem_manager
│ │ ├── mem_manager.c
│ │ └── mem_manager.h
│ ├── pwm
│ │ ├── app_pwm.c
│ │ └── app_pwm.h
│ ├── scheduler
│ │ ├── app_scheduler.c
│ │ ├── app_scheduler.h
│ │ └── app_scheduler_serconn.c
│ ├── sensorsim
│ │ ├── sensorsim.c
│ │ └── sensorsim.h
│ ├── sha256
│ │ ├── sha256.c
│ │ └── sha256.h
│ ├── simple_timer
│ │ ├── app_simple_timer.c
│ │ └── app_simple_timer.h
│ ├── slip
│ │ ├── slip.c
│ │ └── slip.h
│ ├── timer
│ │ ├── app_timer.c
│ │ ├── app_timer.h
│ │ ├── app_timer_appsh.c
│ │ ├── app_timer_appsh.h
│ │ ├── app_timer_ble_gzll.c
│ │ ├── app_timer_freertos.c
│ │ └── app_timer_rtx.c
│ ├── trace
│ │ ├── app_trace.c
│ │ └── app_trace.h
│ ├── twi
│ │ ├── app_twi.c
│ │ └── app_twi.h
│ ├── uart
│ │ ├── app_uart.c
│ │ ├── app_uart.h
│ │ ├── app_uart_fifo.c
│ │ └── retarget.c
│ └── util
│ │ ├── app_error.c
│ │ ├── app_error.h
│ │ ├── app_error_weak.c
│ │ ├── app_error_weak.h
│ │ ├── app_util.h
│ │ ├── app_util_bds.h
│ │ ├── app_util_platform.c
│ │ ├── app_util_platform.h
│ │ ├── common.h
│ │ ├── nordic_common.h
│ │ ├── nrf_assert.c
│ │ ├── nrf_assert.h
│ │ ├── nrf_log.c
│ │ ├── nrf_log.h
│ │ ├── sdk_common.h
│ │ ├── sdk_errors.h
│ │ ├── sdk_macros.h
│ │ ├── sdk_mapped_flags.c
│ │ ├── sdk_mapped_flags.h
│ │ ├── sdk_os.h
│ │ └── sdk_resources.h
│ ├── nfc
│ ├── ndef
│ │ ├── connection_handover
│ │ │ ├── ac_rec
│ │ │ │ ├── nfc_ac_rec.c
│ │ │ │ └── nfc_ac_rec.h
│ │ │ ├── ep_oob_rec
│ │ │ │ ├── nfc_ep_oob_rec.c
│ │ │ │ └── nfc_ep_oob_rec.h
│ │ │ ├── hs_rec
│ │ │ │ ├── nfc_hs_rec.c
│ │ │ │ └── nfc_hs_rec.h
│ │ │ ├── le_oob_rec
│ │ │ │ ├── nfc_le_oob_rec.c
│ │ │ │ └── nfc_le_oob_rec.h
│ │ │ ├── nfc_ble_pair_msg.c
│ │ │ └── nfc_ble_pair_msg.h
│ │ ├── generic
│ │ │ ├── message
│ │ │ │ ├── nfc_ndef_msg.c
│ │ │ │ └── nfc_ndef_msg.h
│ │ │ └── record
│ │ │ │ ├── nfc_ndef_record.c
│ │ │ │ └── nfc_ndef_record.h
│ │ ├── launchapp
│ │ │ ├── nfc_launchapp_msg.c
│ │ │ ├── nfc_launchapp_msg.h
│ │ │ ├── nfc_launchapp_rec.c
│ │ │ └── nfc_launchapp_rec.h
│ │ ├── parser
│ │ │ ├── message
│ │ │ │ ├── nfc_ndef_msg_parser.c
│ │ │ │ ├── nfc_ndef_msg_parser.h
│ │ │ │ ├── nfc_ndef_msg_parser_local.c
│ │ │ │ └── nfc_ndef_msg_parser_local.h
│ │ │ └── record
│ │ │ │ ├── nfc_ndef_parser_logger.h
│ │ │ │ ├── nfc_ndef_record_parser.c
│ │ │ │ └── nfc_ndef_record_parser.h
│ │ ├── text
│ │ │ ├── nfc_text_rec.c
│ │ │ └── nfc_text_rec.h
│ │ └── uri
│ │ │ ├── nfc_uri_msg.c
│ │ │ ├── nfc_uri_msg.h
│ │ │ ├── nfc_uri_rec.c
│ │ │ └── nfc_uri_rec.h
│ ├── t2t_lib
│ │ ├── hal_t2t
│ │ │ ├── hal_nfc_t2t.c
│ │ │ ├── hal_nfc_t2t.h
│ │ │ └── hal_nfc_t2t_logger.h
│ │ ├── nfc_fixes.h
│ │ ├── nfc_t2t_lib.h
│ │ ├── nfc_t2t_lib_gcc.a
│ │ ├── nfc_t2t_lib_iar.a
│ │ └── nfc_t2t_lib_keil.lib
│ └── t2t_parser
│ │ ├── nfc_t2t_parser.c
│ │ ├── nfc_t2t_parser.h
│ │ └── nfc_tlv_block.h
│ ├── properitary_rf
│ ├── esb
│ │ ├── nrf_esb.c
│ │ ├── nrf_esb.h
│ │ ├── nrf_esb.h~RF5ee587a.TMP
│ │ ├── nrf_esb_error_codes.h
│ │ └── nrf_esb_resources.h
│ └── gzll
│ │ ├── arm
│ │ ├── gzll_arm.lib
│ │ └── gzll_sd_resources_arm.lib
│ │ ├── config
│ │ └── nrf_gzp_config.h
│ │ ├── gcc
│ │ ├── gzll_gcc.a
│ │ └── gzll_sd_resources_gcc.a
│ │ ├── iar
│ │ ├── gzll_iar.a
│ │ └── gzll_sd_resource_iar.a
│ │ ├── nrf_gzll.h
│ │ ├── nrf_gzll_constants.h
│ │ ├── nrf_gzll_resources.h
│ │ ├── nrf_gzp.c
│ │ ├── nrf_gzp.h
│ │ ├── nrf_gzp_device.c
│ │ ├── nrf_gzp_host.c
│ │ └── nrf_gzp_host_nrf51.c
│ ├── serialization
│ ├── application
│ │ ├── codecs
│ │ │ ├── common
│ │ │ │ ├── ble_dtm_app.c
│ │ │ │ ├── ble_dtm_app.h
│ │ │ │ ├── ble_dtm_init.c
│ │ │ │ ├── conn_systemreset.c
│ │ │ │ └── conn_systemreset.h
│ │ │ └── s130
│ │ │ │ ├── middleware
│ │ │ │ ├── app_mw_ble.c
│ │ │ │ ├── app_mw_ble_gap.c
│ │ │ │ ├── app_mw_ble_gattc.c
│ │ │ │ ├── app_mw_ble_gatts.c
│ │ │ │ ├── app_mw_ble_l2cap.c
│ │ │ │ └── app_mw_nrf_soc.c
│ │ │ │ └── serializers
│ │ │ │ ├── app_ble_gap_sec_keys.c
│ │ │ │ ├── app_ble_gap_sec_keys.h
│ │ │ │ ├── app_ble_user_mem.c
│ │ │ │ ├── app_ble_user_mem.h
│ │ │ │ ├── ble_app.h
│ │ │ │ ├── ble_enable.c
│ │ │ │ ├── ble_event.c
│ │ │ │ ├── ble_evt_app.h
│ │ │ │ ├── ble_evt_tx_complete.c
│ │ │ │ ├── ble_evt_user_mem_release.c
│ │ │ │ ├── ble_evt_user_mem_request.c
│ │ │ │ ├── ble_gap_address_get.c
│ │ │ │ ├── ble_gap_address_set.c
│ │ │ │ ├── ble_gap_adv_data_set.c
│ │ │ │ ├── ble_gap_adv_start.c
│ │ │ │ ├── ble_gap_adv_stop.c
│ │ │ │ ├── ble_gap_app.h
│ │ │ │ ├── ble_gap_appearance_get.c
│ │ │ │ ├── ble_gap_appearance_set.c
│ │ │ │ ├── ble_gap_auth_key_reply.c
│ │ │ │ ├── ble_gap_authenticate.c
│ │ │ │ ├── ble_gap_conn_param_update.c
│ │ │ │ ├── ble_gap_conn_sec_get.c
│ │ │ │ ├── ble_gap_connect.c
│ │ │ │ ├── ble_gap_connect_cancel.c
│ │ │ │ ├── ble_gap_device_name_get.c
│ │ │ │ ├── ble_gap_device_name_set.c
│ │ │ │ ├── ble_gap_disconnect.c
│ │ │ │ ├── ble_gap_encrypt.c
│ │ │ │ ├── ble_gap_evt_adv_report.c
│ │ │ │ ├── ble_gap_evt_app.h
│ │ │ │ ├── ble_gap_evt_auth_key_request.c
│ │ │ │ ├── ble_gap_evt_auth_status.c
│ │ │ │ ├── ble_gap_evt_conn_param_update.c
│ │ │ │ ├── ble_gap_evt_conn_param_update_request.c
│ │ │ │ ├── ble_gap_evt_conn_sec_update.c
│ │ │ │ ├── ble_gap_evt_connected.c
│ │ │ │ ├── ble_gap_evt_disconnected.c
│ │ │ │ ├── ble_gap_evt_key_pressed.c
│ │ │ │ ├── ble_gap_evt_lesc_dhkey_request.c
│ │ │ │ ├── ble_gap_evt_passkey_display.c
│ │ │ │ ├── ble_gap_evt_rssi_changed.c
│ │ │ │ ├── ble_gap_evt_scan_req_report.c
│ │ │ │ ├── ble_gap_evt_sec_info_request.c
│ │ │ │ ├── ble_gap_evt_sec_params_request.c
│ │ │ │ ├── ble_gap_evt_sec_request.c
│ │ │ │ ├── ble_gap_evt_timeout.c
│ │ │ │ ├── ble_gap_keypress_notify.c
│ │ │ │ ├── ble_gap_lesc_dhkey_reply.c
│ │ │ │ ├── ble_gap_lesc_oob_data_get.c
│ │ │ │ ├── ble_gap_lesc_oob_data_set.c
│ │ │ │ ├── ble_gap_ppcp_get.c
│ │ │ │ ├── ble_gap_ppcp_set.c
│ │ │ │ ├── ble_gap_rssi_get.c
│ │ │ │ ├── ble_gap_rssi_start.c
│ │ │ │ ├── ble_gap_rssi_stop.c
│ │ │ │ ├── ble_gap_scan_start.c
│ │ │ │ ├── ble_gap_scan_stop.c
│ │ │ │ ├── ble_gap_sec_info_reply.c
│ │ │ │ ├── ble_gap_sec_params_reply.c
│ │ │ │ ├── ble_gap_tx_power_set.c
│ │ │ │ ├── ble_gattc_app.h
│ │ │ │ ├── ble_gattc_attr_info_discover.c
│ │ │ │ ├── ble_gattc_char_value_by_uuid_read.c
│ │ │ │ ├── ble_gattc_char_values_read.c
│ │ │ │ ├── ble_gattc_characteristics_discover.c
│ │ │ │ ├── ble_gattc_descriptors_discover.c
│ │ │ │ ├── ble_gattc_evt_app.h
│ │ │ │ ├── ble_gattc_evt_attr_info_disc_rsp.c
│ │ │ │ ├── ble_gattc_evt_char_disc_rsp.c
│ │ │ │ ├── ble_gattc_evt_char_val_by_uuid_read_rsp.c
│ │ │ │ ├── ble_gattc_evt_char_vals_read_rsp.c
│ │ │ │ ├── ble_gattc_evt_desc_disc_rsp.c
│ │ │ │ ├── ble_gattc_evt_hvx.c
│ │ │ │ ├── ble_gattc_evt_prim_srvc_disc_rsp.c
│ │ │ │ ├── ble_gattc_evt_read_rsp.c
│ │ │ │ ├── ble_gattc_evt_rel_disc_rsp.c
│ │ │ │ ├── ble_gattc_evt_timeout.c
│ │ │ │ ├── ble_gattc_evt_write_rsp.c
│ │ │ │ ├── ble_gattc_hv_confirm.c
│ │ │ │ ├── ble_gattc_primary_services_discover.c
│ │ │ │ ├── ble_gattc_read.c
│ │ │ │ ├── ble_gattc_relationships_discover.c
│ │ │ │ ├── ble_gattc_write.c
│ │ │ │ ├── ble_gatts_app.h
│ │ │ │ ├── ble_gatts_attr_get.c
│ │ │ │ ├── ble_gatts_characteristic_add.c
│ │ │ │ ├── ble_gatts_descriptor_add.c
│ │ │ │ ├── ble_gatts_evt_app.h
│ │ │ │ ├── ble_gatts_evt_hvc.c
│ │ │ │ ├── ble_gatts_evt_rw_authorize_request.c
│ │ │ │ ├── ble_gatts_evt_sc_confirm.c
│ │ │ │ ├── ble_gatts_evt_sys_attr_missing.c
│ │ │ │ ├── ble_gatts_evt_timeout.c
│ │ │ │ ├── ble_gatts_evt_write.c
│ │ │ │ ├── ble_gatts_hvx.c
│ │ │ │ ├── ble_gatts_include_add.c
│ │ │ │ ├── ble_gatts_initial_user_handle_get.c
│ │ │ │ ├── ble_gatts_rw_authorize_reply.c
│ │ │ │ ├── ble_gatts_service_add.c
│ │ │ │ ├── ble_gatts_service_changed.c
│ │ │ │ ├── ble_gatts_sys_attr_get.c
│ │ │ │ ├── ble_gatts_sys_attr_set.c
│ │ │ │ ├── ble_gatts_value_get.c
│ │ │ │ ├── ble_gatts_value_set.c
│ │ │ │ ├── ble_l2cap_app.h
│ │ │ │ ├── ble_l2cap_cid_register.c
│ │ │ │ ├── ble_l2cap_cid_unregister.c
│ │ │ │ ├── ble_l2cap_evt_app.h
│ │ │ │ ├── ble_l2cap_evt_rx.c
│ │ │ │ ├── ble_l2cap_tx.c
│ │ │ │ ├── ble_opt_get.c
│ │ │ │ ├── ble_opt_set.c
│ │ │ │ ├── ble_tx_packet_count_get.c
│ │ │ │ ├── ble_user_mem_reply.c
│ │ │ │ ├── ble_uuid_decode.c
│ │ │ │ ├── ble_uuid_encode.c
│ │ │ │ ├── ble_uuid_vs_add.c
│ │ │ │ ├── ble_version_get.c
│ │ │ │ ├── ecb_block_encrypt.c
│ │ │ │ ├── nrf_soc_app.h
│ │ │ │ ├── power_system_off.c
│ │ │ │ └── temp_get.c
│ │ ├── hal
│ │ │ ├── arm_startup_nrf51.s
│ │ │ ├── ser_app_hal.h
│ │ │ ├── ser_app_hal_nrf51.c
│ │ │ ├── ser_app_power_system_off.c
│ │ │ └── ser_app_power_system_off.h
│ │ └── transport
│ │ │ ├── ser_sd_transport.c
│ │ │ ├── ser_sd_transport.h
│ │ │ ├── ser_softdevice_handler.c
│ │ │ └── ser_softdevice_handler.h
│ ├── common
│ │ ├── ble_serialization.c
│ │ ├── ble_serialization.h
│ │ ├── cond_field_serialization.c
│ │ ├── cond_field_serialization.h
│ │ ├── ser_config.h
│ │ ├── struct_ser
│ │ │ └── s130
│ │ │ │ ├── ble_gap_struct_serialization.c
│ │ │ │ ├── ble_gap_struct_serialization.h
│ │ │ │ ├── ble_gattc_struct_serialization.c
│ │ │ │ ├── ble_gattc_struct_serialization.h
│ │ │ │ ├── ble_gatts_struct_serialization.c
│ │ │ │ ├── ble_gatts_struct_serialization.h
│ │ │ │ ├── ble_struct_serialization.c
│ │ │ │ ├── ble_struct_serialization.h
│ │ │ │ ├── nrf_soc_struct_serialization.c
│ │ │ │ └── nrf_soc_struct_serialization.h
│ │ └── transport
│ │ │ ├── debug
│ │ │ ├── debug_hci_config_nrf6310.h
│ │ │ └── debug_hci_nrf6310.c
│ │ │ ├── dtm_uart_params.h
│ │ │ ├── ser_hal_transport.c
│ │ │ ├── ser_hal_transport.h
│ │ │ ├── ser_phy
│ │ │ ├── config
│ │ │ │ ├── ser_config_5W_app.h
│ │ │ │ ├── ser_phy_config_app_nrf51.h
│ │ │ │ ├── ser_phy_config_conn_nrf51.h
│ │ │ │ ├── ser_phy_debug_app.h
│ │ │ │ └── ser_phy_debug_conn.h
│ │ │ ├── ser_phy.c
│ │ │ ├── ser_phy.h
│ │ │ ├── ser_phy_hci.c
│ │ │ ├── ser_phy_hci.h
│ │ │ ├── ser_phy_hci_slip.c
│ │ │ ├── ser_phy_nohci.c
│ │ │ ├── ser_phy_nrf51_nrf_drv_spi.c
│ │ │ ├── ser_phy_nrf51_spi_5W_master.c
│ │ │ ├── ser_phy_nrf51_spi_5W_slave.c
│ │ │ ├── ser_phy_nrf51_spi_slave.c
│ │ │ ├── ser_phy_nrf51_uart.c
│ │ │ ├── ser_phy_nrf51_uart_stm_app.c
│ │ │ ├── ser_phy_nrf51_uart_stm_conn.c
│ │ │ ├── spi_5W_master.c
│ │ │ └── spi_5W_master.h
│ │ │ └── ser_phy_debug_comm.h
│ └── connectivity
│ │ ├── codecs
│ │ ├── common
│ │ │ ├── ble_dtm_conn.h
│ │ │ ├── ble_dtm_init.c
│ │ │ ├── conn_mw.c
│ │ │ └── conn_mw.h
│ │ └── s130
│ │ │ ├── middleware
│ │ │ ├── conn_mw.h
│ │ │ ├── conn_mw_ble.c
│ │ │ ├── conn_mw_ble.h
│ │ │ ├── conn_mw_ble_gap.c
│ │ │ ├── conn_mw_ble_gap.h
│ │ │ ├── conn_mw_ble_gattc.c
│ │ │ ├── conn_mw_ble_gattc.h
│ │ │ ├── conn_mw_ble_gatts.c
│ │ │ ├── conn_mw_ble_gatts.h
│ │ │ ├── conn_mw_ble_l2cap.c
│ │ │ ├── conn_mw_ble_l2cap.h
│ │ │ ├── conn_mw_items.c
│ │ │ ├── conn_mw_nrf_soc.c
│ │ │ └── conn_mw_nrf_soc.h
│ │ │ └── serializers
│ │ │ ├── ble_conn.h
│ │ │ ├── ble_enable.c
│ │ │ ├── ble_event.c
│ │ │ ├── ble_evt_conn.h
│ │ │ ├── ble_evt_tx_complete.c
│ │ │ ├── ble_evt_user_mem_release.c
│ │ │ ├── ble_evt_user_mem_request.c
│ │ │ ├── ble_gap_address_get.c
│ │ │ ├── ble_gap_address_set.c
│ │ │ ├── ble_gap_adv_data_set.c
│ │ │ ├── ble_gap_adv_start.c
│ │ │ ├── ble_gap_adv_stop.c
│ │ │ ├── ble_gap_appearance_get.c
│ │ │ ├── ble_gap_appearance_set.c
│ │ │ ├── ble_gap_auth_key_reply.c
│ │ │ ├── ble_gap_authenticate.c
│ │ │ ├── ble_gap_conn.h
│ │ │ ├── ble_gap_conn_param_update.c
│ │ │ ├── ble_gap_conn_sec_get.c
│ │ │ ├── ble_gap_connect.c
│ │ │ ├── ble_gap_connect_cancel.c
│ │ │ ├── ble_gap_device_name_get.c
│ │ │ ├── ble_gap_device_name_set.c
│ │ │ ├── ble_gap_disconnect.c
│ │ │ ├── ble_gap_encrypt.c
│ │ │ ├── ble_gap_evt_adv_report.c
│ │ │ ├── ble_gap_evt_auth_key_request.c
│ │ │ ├── ble_gap_evt_auth_status.c
│ │ │ ├── ble_gap_evt_conn.h
│ │ │ ├── ble_gap_evt_conn_param_update.c
│ │ │ ├── ble_gap_evt_conn_param_update_request.c
│ │ │ ├── ble_gap_evt_conn_sec_update.c
│ │ │ ├── ble_gap_evt_connected.c
│ │ │ ├── ble_gap_evt_disconnected.c
│ │ │ ├── ble_gap_evt_key_pressed.c
│ │ │ ├── ble_gap_evt_lesc_dhkey_request.c
│ │ │ ├── ble_gap_evt_passkey_display.c
│ │ │ ├── ble_gap_evt_rssi_changed.c
│ │ │ ├── ble_gap_evt_scan_req_report.c
│ │ │ ├── ble_gap_evt_sec_info_request.c
│ │ │ ├── ble_gap_evt_sec_params_request.c
│ │ │ ├── ble_gap_evt_sec_request.c
│ │ │ ├── ble_gap_evt_timeout.c
│ │ │ ├── ble_gap_keypress_notify.c
│ │ │ ├── ble_gap_lesc_dhkey_reply.c
│ │ │ ├── ble_gap_lesc_oob_data_get.c
│ │ │ ├── ble_gap_lesc_oob_data_set.c
│ │ │ ├── ble_gap_ppcp_get.c
│ │ │ ├── ble_gap_ppcp_set.c
│ │ │ ├── ble_gap_rssi_get.c
│ │ │ ├── ble_gap_rssi_start.c
│ │ │ ├── ble_gap_rssi_stop.c
│ │ │ ├── ble_gap_scan_start.c
│ │ │ ├── ble_gap_scan_stop.c
│ │ │ ├── ble_gap_sec_info_reply.c
│ │ │ ├── ble_gap_sec_params_reply.c
│ │ │ ├── ble_gap_tx_power_set.c
│ │ │ ├── ble_gattc_attr_info_discover.c
│ │ │ ├── ble_gattc_char_value_by_uuid_read.c
│ │ │ ├── ble_gattc_char_values_read.c
│ │ │ ├── ble_gattc_characteristics_discover.c
│ │ │ ├── ble_gattc_conn.h
│ │ │ ├── ble_gattc_descriptors_discover.c
│ │ │ ├── ble_gattc_evt_attr_info_disc_rsp.c
│ │ │ ├── ble_gattc_evt_char_disc_rsp.c
│ │ │ ├── ble_gattc_evt_char_val_by_uuid_read_rsp.c
│ │ │ ├── ble_gattc_evt_char_vals_read_rsp.c
│ │ │ ├── ble_gattc_evt_conn.h
│ │ │ ├── ble_gattc_evt_desc_disc_rsp.c
│ │ │ ├── ble_gattc_evt_hvx.c
│ │ │ ├── ble_gattc_evt_prim_srvc_disc_rsp.c
│ │ │ ├── ble_gattc_evt_read_rsp.c
│ │ │ ├── ble_gattc_evt_rel_disc_rsp.c
│ │ │ ├── ble_gattc_evt_timeout.c
│ │ │ ├── ble_gattc_evt_write_rsp.c
│ │ │ ├── ble_gattc_hv_confirm.c
│ │ │ ├── ble_gattc_primary_services_discover.c
│ │ │ ├── ble_gattc_read.c
│ │ │ ├── ble_gattc_relationships_discover.c
│ │ │ ├── ble_gattc_write.c
│ │ │ ├── ble_gatts_attr_get.c
│ │ │ ├── ble_gatts_characteristic_add.c
│ │ │ ├── ble_gatts_conn.h
│ │ │ ├── ble_gatts_descriptor_add.c
│ │ │ ├── ble_gatts_evt_conn.h
│ │ │ ├── ble_gatts_evt_hvc.c
│ │ │ ├── ble_gatts_evt_rw_authorize_request.c
│ │ │ ├── ble_gatts_evt_sc_confirm.c
│ │ │ ├── ble_gatts_evt_sys_attr_missing.c
│ │ │ ├── ble_gatts_evt_timeout.c
│ │ │ ├── ble_gatts_evt_write.c
│ │ │ ├── ble_gatts_hvx.c
│ │ │ ├── ble_gatts_include_add.c
│ │ │ ├── ble_gatts_initial_user_handle_get.c
│ │ │ ├── ble_gatts_rw_authorize_reply.c
│ │ │ ├── ble_gatts_service_add.c
│ │ │ ├── ble_gatts_service_changed.c
│ │ │ ├── ble_gatts_sys_attr_get.c
│ │ │ ├── ble_gatts_sys_attr_set.c
│ │ │ ├── ble_gatts_value_get.c
│ │ │ ├── ble_gatts_value_set.c
│ │ │ ├── ble_l2cap_cid_register.c
│ │ │ ├── ble_l2cap_cid_unregister.c
│ │ │ ├── ble_l2cap_conn.h
│ │ │ ├── ble_l2cap_evt_conn.h
│ │ │ ├── ble_l2cap_evt_rx.c
│ │ │ ├── ble_l2cap_tx.c
│ │ │ ├── ble_opt_get.c
│ │ │ ├── ble_opt_id_pre_decoder.c
│ │ │ ├── ble_opt_set.c
│ │ │ ├── ble_tx_packet_count_get.c
│ │ │ ├── ble_user_mem_reply.c
│ │ │ ├── ble_uuid_decode.c
│ │ │ ├── ble_uuid_encode.c
│ │ │ ├── ble_uuid_vs_add.c
│ │ │ ├── ble_version_get.c
│ │ │ ├── conn_ble_gap_sec_keys.c
│ │ │ ├── conn_ble_gap_sec_keys.h
│ │ │ ├── conn_ble_user_mem.c
│ │ │ ├── conn_ble_user_mem.h
│ │ │ ├── ecb_block_encrypt.c
│ │ │ ├── nrf_soc_conn.h
│ │ │ ├── power_system_off.c
│ │ │ └── temp_get.c
│ │ ├── hal
│ │ ├── dtm_uart.c
│ │ └── dtm_uart.h
│ │ ├── pstorage_platform.h
│ │ ├── ser_conn_cmd_decoder.c
│ │ ├── ser_conn_cmd_decoder.h
│ │ ├── ser_conn_dtm_cmd_decoder.c
│ │ ├── ser_conn_dtm_cmd_decoder.h
│ │ ├── ser_conn_error_handling.c
│ │ ├── ser_conn_event_encoder.c
│ │ ├── ser_conn_event_encoder.h
│ │ ├── ser_conn_handlers.c
│ │ ├── ser_conn_handlers.h
│ │ ├── ser_conn_pkt_decoder.c
│ │ ├── ser_conn_pkt_decoder.h
│ │ ├── ser_conn_reset_cmd_decoder.c
│ │ ├── ser_conn_reset_cmd_decoder.h
│ │ └── startup
│ │ └── arm
│ │ └── arm_startup_nrf51.s
│ ├── softdevice
│ ├── common
│ │ └── softdevice_handler
│ │ │ ├── ant_stack_handler_types.h
│ │ │ ├── app_ram_base.h
│ │ │ ├── ble_stack_handler_types.h
│ │ │ ├── softdevice_handler.c
│ │ │ ├── softdevice_handler.h
│ │ │ ├── softdevice_handler_appsh.c
│ │ │ └── softdevice_handler_appsh.h
│ ├── s130
│ │ ├── doc
│ │ │ ├── s130_nrf51822_2.0.0_licence_agreement.pdf
│ │ │ ├── s130_nrf51822_2.0.0_readme.txt
│ │ │ ├── s130_nrf51822_2.0.0_releasenotes.pdf
│ │ │ ├── s130_nrf51_2.0.0_licence_agreement.txt
│ │ │ └── s13x_nrf5x_2.0.0_migration_document.pdf
│ │ ├── headers
│ │ │ ├── ble.h
│ │ │ ├── ble_err.h
│ │ │ ├── ble_gap.h
│ │ │ ├── ble_gatt.h
│ │ │ ├── ble_gattc.h
│ │ │ ├── ble_gatts.h
│ │ │ ├── ble_hci.h
│ │ │ ├── ble_l2cap.h
│ │ │ ├── ble_ranges.h
│ │ │ ├── ble_types.h
│ │ │ ├── nrf51
│ │ │ │ └── nrf_mbr.h
│ │ │ ├── nrf_error.h
│ │ │ ├── nrf_error_sdm.h
│ │ │ ├── nrf_error_soc.h
│ │ │ ├── nrf_nvic.h
│ │ │ ├── nrf_sd_def.h
│ │ │ ├── nrf_sdm.h
│ │ │ ├── nrf_soc.h
│ │ │ └── nrf_svc.h
│ │ ├── hex
│ │ │ └── s130_nrf51_2.0.0_softdevice.hex
│ │ └── toolchain
│ │ │ ├── armgcc
│ │ │ ├── armgcc_s130_nrf51422_xxaa.ld
│ │ │ ├── armgcc_s130_nrf51422_xxac.ld
│ │ │ ├── armgcc_s130_nrf51822_xxaa.ld
│ │ │ └── armgcc_s130_nrf51822_xxab.ld
│ │ │ └── iar
│ │ │ ├── iar_s130_nrf51422_xxaa.icf
│ │ │ ├── iar_s130_nrf51422_xxac.icf
│ │ │ ├── iar_s130_nrf51822_xxaa.icf
│ │ │ └── iar_s130_nrf51822_xxab.icf
│ ├── s132
│ │ ├── doc
│ │ │ ├── s132_nrf52_2.0.0_licence_agreement.pdf
│ │ │ ├── s132_nrf52_2.0.0_licence_agreement.txt
│ │ │ ├── s132_nrf52_2.0.0_readme.txt
│ │ │ ├── s132_nrf52_2.0.0_releasenotes.pdf
│ │ │ └── s13x_nrf5x_2.0.0_migration_document.pdf
│ │ ├── headers
│ │ │ ├── ble.h
│ │ │ ├── ble_err.h
│ │ │ ├── ble_gap.h
│ │ │ ├── ble_gatt.h
│ │ │ ├── ble_gattc.h
│ │ │ ├── ble_gatts.h
│ │ │ ├── ble_hci.h
│ │ │ ├── ble_l2cap.h
│ │ │ ├── ble_ranges.h
│ │ │ ├── ble_types.h
│ │ │ ├── nrf52
│ │ │ │ └── nrf_mbr.h
│ │ │ ├── nrf_error.h
│ │ │ ├── nrf_error_sdm.h
│ │ │ ├── nrf_error_soc.h
│ │ │ ├── nrf_nvic.h
│ │ │ ├── nrf_sd_def.h
│ │ │ ├── nrf_sdm.h
│ │ │ ├── nrf_soc.h
│ │ │ └── nrf_svc.h
│ │ ├── hex
│ │ │ └── s132_nrf52_2.0.0_softdevice.hex
│ │ └── toolchain
│ │ │ ├── armgcc
│ │ │ └── armgcc_s132_nrf52832_xxaa.ld
│ │ │ └── iar
│ │ │ └── iar_s132_nrf52832_xxaa.icf
│ ├── s212
│ │ ├── headers
│ │ │ └── nrf_sd_def.h
│ │ └── toolchain
│ │ │ ├── armgcc
│ │ │ └── armgcc_s212_nrf52832_xxaa.ld
│ │ │ └── iar
│ │ │ └── iar_s212_nrf52832_xxaa.icf
│ └── s332
│ │ ├── headers
│ │ └── nrf_sd_def.h
│ │ └── toolchain
│ │ ├── armgcc
│ │ └── armgcc_s332_nrf52832_xxaa.ld
│ │ └── iar
│ │ └── iar_s332_nrf52832_xxaa.icf
│ └── toolchain
│ ├── CMSIS
│ └── Include
│ │ ├── arm_common_tables.h
│ │ ├── arm_const_structs.h
│ │ ├── arm_math.h
│ │ ├── cmsis_armcc.h
│ │ ├── cmsis_armcc_V6.h
│ │ ├── cmsis_gcc.h
│ │ ├── core_cm0.h
│ │ ├── core_cm0plus.h
│ │ ├── core_cm3.h
│ │ ├── core_cm4.h
│ │ ├── core_cm7.h
│ │ ├── core_cmFunc.h
│ │ ├── core_cmInstr.h
│ │ ├── core_cmSimd.h
│ │ ├── core_sc000.h
│ │ └── core_sc300.h
│ ├── arm
│ ├── arm_startup_nrf51.s
│ ├── arm_startup_nrf52.s
│ └── uicr_config.h
│ ├── gcc
│ ├── Makefile.common
│ ├── Makefile.posix
│ ├── Makefile.windows
│ ├── gcc_nrf51_common.ld
│ ├── gcc_startup_nrf51.s
│ ├── gcc_startup_nrf52.s
│ ├── nrf51_common.ld
│ ├── nrf51_xxaa.ld
│ ├── nrf51_xxab.ld
│ ├── nrf51_xxac.ld
│ ├── nrf52_common.ld
│ ├── nrf52_xxaa.ld
│ └── nrf5x_common.ld
│ ├── iar
│ ├── iar_nrf51_blank_xxaa.icf
│ ├── iar_nrf51_blank_xxac.icf
│ ├── iar_startup_nrf51.s
│ └── iar_startup_nrf52.s
│ ├── system_nrf51.c
│ ├── system_nrf51.h
│ ├── system_nrf51422.c
│ ├── system_nrf52.c
│ └── system_nrf52.h
├── Project_STM32_HID
├── Includes
│ ├── mxconstants.h
│ ├── stm32f0xx_hal_conf.h
│ ├── stm32f0xx_it.h
│ ├── usb_device.h
│ ├── usbd_conf.h
│ ├── usbd_custom_hid_if.h
│ └── usbd_desc.h
├── Outputs
│ └── Project_STM32_HID.hex
├── Project_STM32_HID.uvprojx
├── RTE
│ └── RTE_Components.h
└── Sources
│ ├── Device
│ ├── startup_stm32f072xb.lst
│ ├── startup_stm32f072xb.s
│ ├── stm32f072xb.h
│ ├── stm32f0xx.h
│ ├── system_stm32f0xx.c
│ └── system_stm32f0xx.h
│ ├── main.c
│ ├── stm32f0xx_hal_msp.c
│ ├── stm32f0xx_it.c
│ ├── usb_device.c
│ ├── usbd_conf.c
│ ├── usbd_custom_hid_if.c
│ └── usbd_desc.c
└── Project_nRF_ESB_SPI
├── Outputs
└── nrf51_esb.hex
├── Project_nRF_ESB_SPI.uvprojx
├── RTE
└── RTE_Components.h
└── Sources
├── Device
├── arm_startup_nrf51.s
└── system_nrf51.c
├── esb_spi_bridge.c
└── nrf_drv_config.h
/.gitignore:
--------------------------------------------------------------------------------
1 | /Hardware/*
2 |
3 | /Software/*
4 | !/Software/*.uvmpw
5 |
6 | !/Software/Common/
7 |
8 | !/Software/Project_nRF_ESB_SPI/
9 | /Software/Project_nRF_ESB_SPI/*.*
10 | !/Software/Project_nRF_ESB_SPI/*.uvprojx
11 | /Software/Project_nRF_ESB_SPI/Outputs/*
12 | !/Software/Project_nRF_ESB_SPI/Outputs/*.hex
13 |
14 | !/Software/Project_STM32_HID/
15 | /Software/Project_STM32_HID/*.*
16 | !/Software/Project_STM32_HID/*.uvprojx
17 | /Software/Project_STM32_HID/Outputs/*
18 | !/Software/Project_STM32_HID/Outputs/*.hex
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CMSIS-DAP-Wireless
--------------------------------------------------------------------------------
/Software/CMSIS-DAP.uvmpw:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1.0
5 |
6 | ### uVision Project, (C) Keil Software
7 |
8 | WorkSpace
9 |
10 |
11 | .\Project_STM32_HID\Project_STM32_HID.uvprojx
12 | 1
13 | 1
14 |
15 |
16 |
17 | .\Project_Device_STM32\CMSIS_DAP_Interface.uvprojx
18 |
19 |
20 |
21 | .\Project_nRF_ESB_SPI\Project_nRF_ESB_SPI.uvprojx
22 | 1
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.c
--------------------------------------------------------------------------------
/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.c
--------------------------------------------------------------------------------
/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_key_manager/ant_key_manager.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #include
13 | #include "ant_key_manager.h"
14 | #include "ant_key_manager_config.h"
15 | #include "ant_interface.h"
16 | #include "nrf_assert.h"
17 |
18 | static uint8_t m_ant_plus_network_key[] = ANT_PLUS_NETWORK_KEY;
19 | static uint8_t m_ant_fs_network_key[] = ANT_FS_NETWORK_KEY;
20 |
21 | uint32_t ant_custom_key_set(uint8_t network_number, uint8_t * network_key)
22 | {
23 | ASSERT(network_key != NULL);
24 | return sd_ant_network_address_set(network_number, network_key);
25 | }
26 |
27 | uint32_t ant_plus_key_set(uint8_t network_number)
28 | {
29 | return sd_ant_network_address_set(network_number, m_ant_plus_network_key);
30 | }
31 |
32 | uint32_t ant_fs_key_set(uint8_t network_number)
33 | {
34 | return sd_ant_network_address_set(network_number, m_ant_fs_network_key);
35 | }
36 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_key_manager/config/ant_key_manager_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_KEY_MANAGER_CONFIG_H__
14 | #define ANT_KEY_MANAGER_CONFIG_H__
15 |
16 | /**
17 | * @addtogroup ant_key_manager
18 | * @{
19 | */
20 |
21 | #ifndef ANT_PLUS_NETWORK_KEY
22 | #define ANT_PLUS_NETWORK_KEY {0, 0, 0, 0, 0, 0, 0, 0} /**< The ANT+ network key. */
23 | #endif //ANT_PLUS_NETWORK_KEY
24 |
25 | #ifndef ANT_FS_NETWORK_KEY
26 | #define ANT_FS_NETWORK_KEY {0, 0, 0, 0, 0, 0, 0, 0} /**< The ANT-FS network key. */
27 | #endif // ANT_FS_NETWORK_KEY
28 |
29 | /**
30 | * @}
31 | */
32 |
33 | #endif // ANT_KEY_MANAGER_CONFIG_H__
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bpwr/pages/ant_bpwr_page_17.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ant_bpwr_page_17.h"
14 | #include "app_util.h"
15 | #include "ant_bpwr_page_logger.h"
16 |
17 | static void page17_data_log(ant_bpwr_page17_data_t const * p_page_data)
18 | {
19 | LOG_PAGE17("Wheel:\n\r");
20 | #ifdef TRACE_BPWR_PAGE_17_ENABLE
21 | ant_bpwr_page_torque_log((ant_bpwr_page_torque_data_t *) p_page_data);
22 | #endif // TRACE_BPWR_PAGE_17_ENABLE
23 | }
24 |
25 |
26 | void ant_bpwr_page_17_encode(uint8_t * p_page_buffer,
27 | ant_bpwr_page17_data_t const * p_page_data)
28 | {
29 | ant_bpwr_page_torque_encode(p_page_buffer, (ant_bpwr_page_torque_data_t *)p_page_data);
30 | page17_data_log(p_page_data);
31 | }
32 |
33 |
34 | void ant_bpwr_page_17_decode(uint8_t const * p_page_buffer,
35 | ant_bpwr_page17_data_t * p_page_data)
36 | {
37 | ant_bpwr_page_torque_decode(p_page_buffer, (ant_bpwr_page_torque_data_t *) p_page_data);
38 | page17_data_log(p_page_data);
39 | }
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bpwr/pages/ant_bpwr_page_18.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ant_bpwr_page_18.h"
14 | #include "app_util.h"
15 | #include "ant_bpwr_page_logger.h"
16 |
17 | static void page18_data_log(ant_bpwr_page18_data_t const * p_page_data)
18 | {
19 | LOG_PAGE18("Crank:\n\r");
20 | #ifdef TRACE_BPWR_PAGE_18_ENABLE
21 | ant_bpwr_page_torque_log((ant_bpwr_page_torque_data_t *) p_page_data);
22 | #endif // TRACE_BPWR_PAGE_18_ENABLE
23 | }
24 |
25 |
26 | void ant_bpwr_page_18_encode(uint8_t * p_page_buffer,
27 | ant_bpwr_page18_data_t const * p_page_data)
28 | {
29 | ant_bpwr_page_torque_encode(p_page_buffer, (ant_bpwr_page_torque_data_t *)p_page_data);
30 | page18_data_log(p_page_data);
31 | }
32 |
33 |
34 | void ant_bpwr_page_18_decode(uint8_t const * p_page_buffer,
35 | ant_bpwr_page18_data_t * p_page_data)
36 | {
37 | ant_bpwr_page_torque_decode(p_page_buffer, (ant_bpwr_page_torque_data_t *) p_page_data);
38 | page18_data_log(p_page_data);
39 | }
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bpwr/pages/ant_bpwr_page_18.h:
--------------------------------------------------------------------------------
1 | #ifndef ANT_BPWR_PAGE_18_H__
2 | #define ANT_BPWR_PAGE_18_H__
3 |
4 | /** @file
5 | *
6 | * @defgroup ant_sdk_profiles_bpwr_page18 Bicycle Power profile page 18
7 | * @{
8 | * @ingroup ant_sdk_profiles_bpwr_pages
9 | */
10 |
11 | #include
12 | #include "ant_bpwr_page_torque.h"
13 |
14 | /**@brief Data structure for Bicycle Power data page 18.
15 | *
16 | * @note This structure implements only page 18 specific data.
17 | */
18 | typedef ant_bpwr_page_torque_data_t ant_bpwr_page18_data_t;
19 |
20 | /**@brief Initialize page 18.
21 | */
22 | #define DEFAULT_ANT_BPWR_PAGE18() (ant_bpwr_page18_data_t) DEFAULT_ANT_BPWR_PAGE_TORQUE(0, 0, 0, 0)
23 |
24 | /**@brief Function for encoding page 18.
25 | *
26 | * @param[in] p_page_data Pointer to the page data.
27 | * @param[out] p_page_buffer Pointer to the data buffer.
28 | */
29 | void ant_bpwr_page_18_encode(uint8_t * p_page_buffer,
30 | ant_bpwr_page18_data_t const * p_page_data);
31 |
32 | /**@brief Function for decoding page 18.
33 | *
34 | * @param[in] p_page_buffer Pointer to the data buffer.
35 | * @param[out] p_page_data Pointer to the page data.
36 | */
37 | void ant_bpwr_page_18_decode(uint8_t const * p_page_buffer,
38 | ant_bpwr_page18_data_t * p_page_data);
39 |
40 | #endif // ANT_BPWR_PAGE_18_H__
41 | /** @} */
42 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bpwr/pages/ant_bpwr_pages.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_BPWR_PAGES_H__
14 | #define ANT_BPWR_PAGES_H__
15 |
16 | /** @file
17 | *
18 | * @defgroup ant_sdk_profiles_bpwr_pages Bicycle Power profile pages
19 | * @{
20 | * @ingroup ant_sdk_profiles_bpwr
21 | * @brief This module implements functions for the BPWR data pages.
22 | */
23 |
24 | #include "ant_bpwr_page_1.h" // Calibration message main data page.
25 | #include "ant_bpwr_page_16.h" // Standard power-only page.
26 | #include "ant_bpwr_page_17.h" // Wheel Torque main data page.
27 | #include "ant_bpwr_page_18.h" // Crank Torque main data page.
28 | #include "ant_bpwr_common_data.h" // Instantaneous cadence data.
29 | #include "ant_common_page_80.h" // Manufacturer's information data page.
30 | #include "ant_common_page_81.h" // Product information data page.
31 |
32 | #endif // ANT_BPWR_PAGES_H__
33 | /** @} */
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bpwr/simulator/ant_bpwr_simulator_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_BPWR_SIMULATOR_LOCAL_H__
14 | #define ANT_BPWR_SIMULATOR_LOCAL_H__
15 |
16 | #include
17 | #include
18 | #include "bsp.h"
19 | #include "ant_bpwr.h"
20 | #include "sensorsim.h"
21 |
22 | /**
23 | * @ingroup ant_sdk_bpwr_simulator
24 | * @brief BPWR simulator control block structure. */
25 | typedef struct
26 | {
27 | bool auto_change; ///< Power will change automatically (if auto_change is set) or manually.
28 | uint32_t tick_incr; ///< Fractional part of tick increment.
29 | sensorsim_state_t power_sensorsim_state; ///< Power state of the simulated sensor.
30 | sensorsim_cfg_t power_sensorsim_cfg; ///< Power configuration of the simulated sensor.
31 | sensorsim_state_t cadence_sensorsim_state; ///< Cadence stated of the simulated sensor.
32 | sensorsim_cfg_t cadence_sensorsim_cfg; ///< Cadence configuration of the simulated sensor.
33 | sensorsim_state_t pedal_sensorsim_state; ///< Pedal state of the simulated sensor.
34 | sensorsim_cfg_t pedal_sensorsim_cfg; ///< Pedal configuration of the simulated sensor.
35 | }ant_bpwr_simulator_cb_t;
36 |
37 |
38 | #endif // ANT_BPWR_SIMULATOR_LOCAL_H__
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bsc/ant_bsc_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 |
14 | #ifndef ANT_BSC_LOCAL_H__
15 | #define ANT_BSC_LOCAL_H__
16 |
17 | #include
18 | #include
19 | #include "ant_bsc.h"
20 |
21 | /**
22 | * @addtogroup ant_sdk_profiles_bsc
23 | * @{
24 | */
25 |
26 | /**@brief BSC Sensor control block. */
27 | typedef struct
28 | {
29 | uint8_t device_type;
30 | uint8_t toggle_bit : 1;
31 | ant_bsc_page_t main_page_number : 7;
32 | uint8_t page_1_present : 1;
33 | uint8_t page_4_present : 1;
34 | ant_bsc_page_t bkgd_page_number : 6;
35 | uint8_t message_counter;
36 | }ant_bsc_sens_cb_t;
37 |
38 | /**@brief BSC Display control block. */
39 | typedef struct
40 | {
41 | uint8_t device_type;
42 | }ant_bsc_disp_cb_t;
43 |
44 | /**
45 | * @}
46 | */
47 |
48 | #endif // ANT_BSC_LOCAL_H__
49 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bsc/pages/ant_bsc_page_1.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef ANT_BSC_PAGE_1_H__
13 | #define ANT_BSC_PAGE_1_H__
14 |
15 | /** @file
16 | *
17 | * @defgroup ant_sdk_profiles_bsc_page1 BSC profile page 1
18 | * @{
19 | * @ingroup ant_sdk_profiles_bsc_pages
20 | */
21 |
22 | #include
23 |
24 | /**@brief Data structure for BSC data page 1.
25 | *
26 | * This structure implements only page 1 specific data.
27 | */
28 | typedef struct
29 | {
30 | uint32_t operating_time; ///< Operating time.
31 | } ant_bsc_page1_data_t;
32 |
33 | /**@brief Initialize page 1.
34 | */
35 | #define DEFAULT_ANT_BSC_PAGE1() \
36 | (ant_bsc_page1_data_t) \
37 | { \
38 | .operating_time = 0, \
39 | }
40 |
41 | /**@brief Function for encoding page 1.
42 | *
43 | * @param[in] p_page_data Pointer to the page data.
44 | * @param[out] p_page_buffer Pointer to the data buffer.
45 | */
46 | void ant_bsc_page_1_encode(uint8_t * p_page_buffer, ant_bsc_page1_data_t const * p_page_data);
47 |
48 | /**@brief Function for decoding page 1.
49 | *
50 | * @param[in] p_page_buffer Pointer to the data buffer.
51 | * @param[out] p_page_data Pointer to the page data.
52 | */
53 | void ant_bsc_page_1_decode(uint8_t const * p_page_buffer, ant_bsc_page1_data_t * p_page_data);
54 |
55 | #endif // ANT_BSC_PAGE_1_H__
56 | /** @} */
57 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_bsc/pages/ant_bsc_pages.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef __ANT_BSC_PAGES_H
13 | #define __ANT_BSC_PAGES_H
14 |
15 | /** @file
16 | *
17 | * @defgroup ant_sdk_profiles_bsc_pages Bicycle Speed and Cadence profile pages
18 | * @{
19 | * @ingroup ant_sdk_profiles_bsc
20 | * @brief This module implements functions for the BSC data pages.
21 | */
22 |
23 | #include "ant_bsc_page_0.h"
24 | #include "ant_bsc_page_1.h"
25 | #include "ant_bsc_page_2.h"
26 | #include "ant_bsc_page_3.h"
27 | #include "ant_bsc_page_4.h"
28 | #include "ant_bsc_page_5.h"
29 | #include "ant_bsc_combined_page_0.h"
30 |
31 | #endif // __ANT_BSC_PAGES_H
32 | /** @} */
33 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_common/pages/logger/ant_common_page_logger.h:
--------------------------------------------------------------------------------
1 | #ifndef ANT_COMMON_PAGE_LOGGER_H__
2 | #define ANT_COMMON_PAGE_LOGGER_H__
3 |
4 | #ifdef TRACE_COMMON_PAGE_70_ENABLE
5 | #include "app_trace.h"
6 | #define LOG_PAGE70 app_trace_log
7 | #else
8 | #define LOG_PAGE70(...)
9 | #endif // TRACE_COMMON_PAGE_70_ENABLE
10 |
11 | #ifdef TRACE_COMMON_PAGE_80_ENABLE
12 | #include "app_trace.h"
13 | #define LOG_PAGE80 app_trace_log
14 | #else
15 | #define LOG_PAGE80(...)
16 | #endif // TRACE_COMMON_PAGE_80_ENABLE
17 |
18 | #ifdef TRACE_COMMON_PAGE_81_ENABLE
19 | #include "app_trace.h"
20 | #define LOG_PAGE81 app_trace_log
21 | #else
22 | #define LOG_PAGE81(...)
23 | #endif // TRACE_COMMON_PAGE_81_ENABLE
24 |
25 |
26 | #endif // ANT_COMMON_PAGE_LOGGER_H__
27 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_hrm/ant_hrm_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 |
14 | #ifndef ANT_HRM_LOCAL_H__
15 | #define ANT_HRM_LOCAL_H__
16 |
17 | #include
18 | #include
19 | #include "ant_hrm.h"
20 |
21 | /**
22 | * @addtogroup ant_sdk_profiles_hrm
23 | * @{
24 | */
25 |
26 | /** @brief HRM Sensor control block. */
27 | typedef struct
28 | {
29 | uint8_t toggle_bit;
30 | ant_hrm_page_t main_page_number;
31 | uint8_t page_1_present;
32 | ant_hrm_page_t ext_page_number;
33 | uint8_t message_counter;
34 | } ant_hrm_sens_cb_t;
35 |
36 | /**
37 | * @}
38 | */
39 |
40 | #endif // ANT_HRM_LOCAL_H__
41 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_hrm/pages/ant_hrm_pages.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef __ANT_HRM_PAGES_H
13 | #define __ANT_HRM_PAGES_H
14 |
15 | /** @file
16 | *
17 | * @defgroup ant_sdk_profiles_hrm_pages Heart Rate Monitor profile pages
18 | * @{
19 | * @ingroup ant_sdk_profiles_hrm
20 | * @brief This module implements functions for the HRM data pages.
21 | */
22 |
23 | #include "ant_hrm_page_0.h"
24 | #include "ant_hrm_page_1.h"
25 | #include "ant_hrm_page_2.h"
26 | #include "ant_hrm_page_3.h"
27 | #include "ant_hrm_page_4.h"
28 |
29 | #endif // __ANT_HRM_PAGES_H
30 | /** @} */
31 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_hrm/pages/logger/ant_hrm_page_logger.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef ANT_HRM_PAGE_LOGGER_H__
13 | #define ANT_HRM_PAGE_LOGGER_H__
14 |
15 | #ifdef TRACE_HRM_GENERAL_ENABLE
16 | #include "app_trace.h"
17 | #define LOG_HRM app_trace_log
18 | #else
19 | #define LOG_HRM(...)
20 | #endif // TRACE_HRM_GENERAL_ENABLE
21 |
22 | #ifdef TRACE_HRM_PAGE_0_ENABLE
23 | #include "app_trace.h"
24 | #define LOG_PAGE0 app_trace_log
25 | #else
26 | #define LOG_PAGE0(...)
27 | #endif // TRACE_HRM_PAGE_0_ENABLE
28 |
29 | #ifdef TRACE_HRM_PAGE_1_ENABLE
30 | #include "app_trace.h"
31 | #define LOG_PAGE1 app_trace_log
32 | #else
33 | #define LOG_PAGE1(...)
34 | #endif // TRACE_HRM_PAGE_1_ENABLE
35 |
36 | #ifdef TRACE_HRM_PAGE_2_ENABLE
37 | #include "app_trace.h"
38 | #define LOG_PAGE2 app_trace_log
39 | #else
40 | #define LOG_PAGE2(...)
41 | #endif // TRACE_HRM_PAGE_2_ENABLE
42 |
43 | #ifdef TRACE_HRM_PAGE_3_ENABLE
44 | #include "app_trace.h"
45 | #define LOG_PAGE3 app_trace_log
46 | #else
47 | #define LOG_PAGE3(...)
48 | #endif // TRACE_HRM_PAGE_3_ENABLE
49 |
50 | #ifdef TRACE_HRM_PAGE_4_ENABLE
51 | #include "app_trace.h"
52 | #define LOG_PAGE4 app_trace_log
53 | #else
54 | #define LOG_PAGE4(...)
55 | #endif // TRACE_HRM_PAGE_4_ENABLE
56 |
57 | #endif // ANT_HRM_UTILS_H__
58 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_hrm/simulator/ant_hrm_simulator_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_HRM_SIMULATOR_LOCAL_H__
14 | #define ANT_HRM_SIMULATOR_LOCAL_H__
15 |
16 | #include
17 | #include
18 | #include "bsp.h"
19 | #include "ant_hrm.h"
20 | #include "sensorsim.h"
21 |
22 | /**
23 | * @ingroup ant_sdk_hrm_simulator
24 | * @brief HRM simulator control block structure. */
25 | typedef struct
26 | {
27 | bool auto_change; ///< Cadence will change automatically (if auto_change is set) or manually.
28 | uint32_t time_since_last_hb; ///< Time since last heart beat occurred (integer part).
29 | uint64_t fraction_since_last_hb; ///< Time since last heart beat occurred (fractional part).
30 | sensorsim_state_t sensorsim_state; ///< State of the simulated sensor.
31 | sensorsim_cfg_t sensorsim_cfg; ///< Configuration of the simulated sensor.
32 | } ant_hrm_simulator_cb_t;
33 |
34 | #endif // ANT_HRM_SIMULATOR_LOCAL_H__
35 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_sdm/ant_sdm_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 |
14 | #ifndef ANT_SDM_LOCAL_H__
15 | #define ANT_SDM_LOCAL_H__
16 |
17 | #include
18 | #include
19 | #include "ant_sdm.h"
20 |
21 | /**
22 | * @addtogroup ant_sdk_profiles_sdm
23 | * @{
24 | */
25 |
26 | /** @brief SDM Display control block. */
27 | typedef struct
28 | {
29 | ant_request_controller_t req_controller;
30 | }ant_sdm_disp_cb_t;
31 |
32 | /**@brief SDM Sensor control block. */
33 | typedef struct
34 | {
35 | uint8_t supp_page_control;
36 | ant_sdm_page_t supp_page_number;
37 | ant_sdm_page_t common_page_number;
38 | uint8_t message_counter;
39 | ant_request_controller_t req_controller;
40 | }ant_sdm_sens_cb_t;
41 |
42 | /**
43 | * @}
44 | */
45 |
46 | #endif // ANT_SDM_LOCAL_H__
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_sdm/pages/ant_sdm_page_16.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_SDM_PAGE_16_H__
14 | #define ANT_SDM_PAGE_16_H__
15 |
16 | /** @file
17 | *
18 | * @defgroup ant_sdk_profiles_sdm_page16 Stride Based Speed and Distance Monitor profile page 16
19 | * @{
20 | * @ingroup ant_sdk_profiles_sdm_pages
21 | */
22 |
23 | #include
24 | #include "ant_sdm_common_data.h"
25 |
26 | /**@brief Function for encoding page 16.
27 | *
28 | * @param[in] p_common_data Pointer to the page data.
29 | * @param[out] p_page_buffer Pointer to the data buffer.
30 | */
31 | void ant_sdm_page_16_encode(uint8_t * p_page_buffer,
32 | ant_sdm_common_data_t const * p_common_data);
33 |
34 | /**@brief Function for decoding page 16.
35 | *
36 | * @param[in] p_page_buffer Pointer to the data buffer.
37 | * @param[out] p_common_data Pointer to the page data.
38 | */
39 | void ant_sdm_page_16_decode(uint8_t const * p_page_buffer,
40 | ant_sdm_common_data_t * p_common_data);
41 |
42 | #endif // ANT_SDM_PAGE_16_H__
43 | /** @} */
44 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_sdm/pages/ant_sdm_page_3.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ant_sdm_page_3.h"
14 | #include "ant_sdm_utils.h"
15 | #include "ant_sdm_page_logger.h"
16 |
17 | /**@brief SDM page 3 data layout structure. */
18 | typedef struct
19 | {
20 | uint8_t reserved0[5];
21 | uint8_t calories;
22 | uint8_t reserved1;
23 | }ant_sdm_page3_data_layout_t;
24 |
25 | static void page_3_data_log(ant_sdm_page3_data_t const * p_page_data)
26 | {
27 | LOG_PAGE3("Calories: %u\n\r", p_page_data->calories);
28 | }
29 |
30 |
31 | void ant_sdm_page_3_encode(uint8_t * p_page_buffer,
32 | ant_sdm_page3_data_t const * p_page_data)
33 | {
34 | ant_sdm_page3_data_layout_t * p_outcoming_data = (ant_sdm_page3_data_layout_t *)p_page_buffer;
35 |
36 | p_outcoming_data->calories = p_page_data->calories;
37 | page_3_data_log(p_page_data);
38 | }
39 |
40 |
41 | void ant_sdm_page_3_decode(uint8_t const * p_page_buffer,
42 | ant_sdm_page3_data_t * p_page_data)
43 | {
44 | ant_sdm_page3_data_layout_t const * p_incoming_data =
45 | (ant_sdm_page3_data_layout_t *)p_page_buffer;
46 |
47 | p_page_data->calories = p_incoming_data->calories;
48 |
49 | page_3_data_log(p_page_data);
50 | }
51 |
52 |
53 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_sdm/pages/ant_sdm_pages.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef __ANT_SDM_PAGES_H
14 | #define __ANT_SDM_PAGES_H
15 |
16 | /** @file
17 | *
18 | * @defgroup ant_sdk_profiles_sdm_pages Stride Based Speed and Distance Monitor profile pages
19 | * @{
20 | * @ingroup ant_sdk_profiles_sdm
21 | * @brief This module implements functions for the SDM data pages.
22 | */
23 |
24 | #include "ant_sdm_page_1.h"
25 | #include "ant_sdm_page_2.h"
26 | #include "ant_sdm_page_3.h"
27 | #include "ant_sdm_page_16.h"
28 | #include "ant_sdm_page_22.h"
29 | #include "ant_sdm_common_data.h"
30 | #include "ant_common_page_70.h"
31 | #include "ant_common_page_80.h"
32 | #include "ant_common_page_81.h"
33 | #endif // __ANT_SDM_PAGES_H
34 | /** @} */
35 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_profiles/ant_sdm/simulator/ant_sdm_simulator_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_SDM_SIMULATOR_LOCAL_H__
14 | #define ANT_SDM_SIMULATOR_LOCAL_H__
15 |
16 | #include
17 | #include
18 | #include "bsp.h"
19 | #include "ant_sdm.h"
20 | #include "sensorsim.h"
21 |
22 | /**
23 | * @ingroup ant_sdk_sdm_simulator
24 | * @brief SDM simulator control block structure. */
25 | typedef struct
26 | {
27 | bool auto_change; ///< Cadence will change automatically (if auto_change is set) or manually.
28 | uint8_t stride_length; ///< Length of a stride (in cm).
29 | uint8_t burn_rate; ///< Kcal per kilometer.
30 | uint32_t stride_incr; ///< Fractional part of stride increment.
31 | uint64_t time; ///< Simulation time.
32 | sensorsim_state_t sensorsim_state; ///< State of the simulated sensor.
33 | sensorsim_cfg_t sensorsim_cfg; ///< Configuration of the simulated sensor.
34 | }ant_sdm_simulator_cb_t;
35 |
36 | #endif // ANT_SDM_SIMULATOR_LOCAL_H__
37 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_stack_config/ant_stack_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_STACK_CONFIG_H__
14 | #define ANT_STACK_CONFIG_H__
15 |
16 | #include
17 |
18 | /**
19 | * @file
20 | */
21 |
22 | /**
23 | * @defgroup ant_stack_config ANT stack configuration
24 | * @{
25 | * @ingroup ant_sdk_utils
26 | * @brief Configuration of resources used in the ANT stack.
27 | *
28 | * This module initializes the stack according to the configuration of the ANT channels.
29 | */
30 |
31 | /**
32 | * @brief Function for configuring and enabling the ANT stack.
33 | * @details The function sets the channel configuration for the stack using the parameters provided
34 | * in the ant_stack_config_defs.h file. It also assigns a correspondingly large buffer
35 | * as static resource.
36 | *
37 | * @return A SoftDevice error code.
38 | */
39 | uint32_t ant_stack_static_config(void);
40 |
41 | /**
42 | * @}
43 | */
44 |
45 | #endif // ANT_STACK_CONFIG_H__
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ant/ant_stack_config/config/ant_stack_config_defs.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef ANT_STACK_CONFIG_DEFS_H__
14 | #define ANT_STACK_CONFIG_DEFS_H__
15 |
16 | #define ANT_CONFIG_TOTAL_CHANNELS_ALLOCATED 0
17 | #define ANT_CONFIG_ENCRYPTED_CHANNELS 0
18 | #define ANT_CONFIG_BURST_QUEUE_SIZE 128
19 |
20 | #endif // ANT_STACK_CONFIG_DEFS_H__
21 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_racp/ble_racp.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | */
11 |
12 | #include "ble_racp.h"
13 | #include
14 |
15 |
16 | void ble_racp_decode(uint8_t data_len, uint8_t * p_data, ble_racp_value_t * p_racp_val)
17 | {
18 | p_racp_val->opcode = 0xFF;
19 | p_racp_val->operator = 0xFF;
20 | p_racp_val->operand_len = 0;
21 | p_racp_val->p_operand = NULL;
22 |
23 | if (data_len > 0)
24 | {
25 | p_racp_val->opcode = p_data[0];
26 | }
27 | if (data_len > 1)
28 | {
29 | p_racp_val->operator = p_data[1]; //lint !e415
30 | }
31 | if (data_len > 2)
32 | {
33 | p_racp_val->operand_len = data_len - 2;
34 | p_racp_val->p_operand = &p_data[2]; //lint !e416
35 | }
36 | }
37 |
38 |
39 | uint8_t ble_racp_encode(const ble_racp_value_t * p_racp_val, uint8_t * p_data)
40 | {
41 | uint8_t len = 0;
42 | int i;
43 |
44 | if (p_data != NULL)
45 | {
46 | p_data[len++] = p_racp_val->opcode;
47 | p_data[len++] = p_racp_val->operator;
48 |
49 | for (i = 0; i < p_racp_val->operand_len; i++)
50 | {
51 | p_data[len++] = p_racp_val->p_operand[i];
52 | }
53 | }
54 |
55 | return len;
56 | }
57 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_ans_c/ble_ans_c.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_ans_c/ble_ans_c.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_bas/ble_bas.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_bas/ble_bas.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_bps/ble_bps.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_bps/ble_bps.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_cscs/ble_cscs.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_cscs/ble_cscs.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_cscs/ble_sc_ctrlpt.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_cscs/ble_sc_ctrlpt.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_dis/ble_dis.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_dis/ble_dis.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_gls/ble_gls.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_gls/ble_gls.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_hids/ble_hids.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_hids/ble_hids.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_hrs/ble_hrs.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_hrs/ble_hrs.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_hts/ble_hts.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_hts/ble_hts.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_ias/ble_ias.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_ias/ble_ias.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_lls/ble_lls.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_lls/ble_lls.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_rscs/ble_rscs.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_rscs/ble_rscs.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/ble_services/ble_tps/ble_tps.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/ble_services/ble_tps/ble_tps.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/common/ble_date_time.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/common/ble_date_time.h
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/common/ble_sensor_location.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/common/ble_sensor_location.h
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/ble/common/ble_srv_common.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/ble/common/ble_srv_common.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/delay/nrf_delay.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include "compiler_abstraction.h"
15 | #include "nrf.h"
16 | #include "nrf_delay.h"
17 |
18 | /*lint --e{438} "Variable not used" */
19 | void nrf_delay_ms(uint32_t volatile number_of_ms)
20 | {
21 | while(number_of_ms != 0)
22 | {
23 | number_of_ms--;
24 | nrf_delay_us(999);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/hal/nrf_saadc.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**
14 | * @file
15 | * @brief SAADC HAL implementation
16 | */
17 |
18 | #include "nrf_saadc.h"
19 |
20 | void nrf_saadc_channel_init(uint8_t channel, nrf_saadc_channel_config_t const * const config)
21 | {
22 | NRF_SAADC->CH[channel].CONFIG =
23 | ((config->resistor_p << SAADC_CH_CONFIG_RESP_Pos) & SAADC_CH_CONFIG_RESP_Msk)
24 | | ((config->resistor_n << SAADC_CH_CONFIG_RESN_Pos) & SAADC_CH_CONFIG_RESN_Msk)
25 | | ((config->gain << SAADC_CH_CONFIG_GAIN_Pos) & SAADC_CH_CONFIG_GAIN_Msk)
26 | | ((config->reference << SAADC_CH_CONFIG_REFSEL_Pos) & SAADC_CH_CONFIG_REFSEL_Msk)
27 | | ((config->acq_time << SAADC_CH_CONFIG_TACQ_Pos) & SAADC_CH_CONFIG_TACQ_Msk)
28 | | ((config->mode << SAADC_CH_CONFIG_MODE_Pos) & SAADC_CH_CONFIG_MODE_Msk);
29 | nrf_saadc_channel_input_set(channel, config->pin_p, config->pin_n);
30 | return;
31 | }
32 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/nrf_soc_nosd/nrf_soc.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include "nrf_soc.h"
15 | #include "nrf_error.h"
16 |
17 | uint32_t sd_app_evt_wait(void)
18 | {
19 | __WFE();
20 | return NRF_SUCCESS;
21 | }
22 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/radio_config/radio_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef RADIO_CONFIG_H
13 | #define RADIO_CONFIG_H
14 |
15 | #define PACKET_BASE_ADDRESS_LENGTH (4UL) //!< Packet base address length field size in bytes
16 | #define PACKET_STATIC_LENGTH (1UL) //!< Packet static length in bytes
17 | #define PACKET_PAYLOAD_MAXSIZE (PACKET_STATIC_LENGTH) //!< Packet payload maximum size in bytes
18 |
19 | void radio_configure(void);
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/sdio/config/sdio_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef SDIO_CONFIG_H
13 | #define SDIO_CONFIG_H
14 |
15 | #define SDIO_CONFIG_CLOCK_PIN_NUMBER 24
16 | #define SDIO_CONFIG_DATA_PIN_NUMBER 25
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/twi_master/deprecated/config/twi_master_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef TWI_MASTER_CONFIG
13 | #define TWI_MASTER_CONFIG
14 |
15 | #define TWI_MASTER_CONFIG_CLOCK_PIN_NUMBER (24U)
16 | #define TWI_MASTER_CONFIG_DATA_PIN_NUMBER (25U)
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/drivers_nrf/twis_slave/nrf_drv_twis_inst.def:
--------------------------------------------------------------------------------
1 | /**
2 | * @file
3 | * @brief Xmacro file with contains enumeration of TWIS instances to implement
4 | *
5 | * Use this file everywhere where anything has to be generated for all active TWIS instances.
6 | * Xmacro format:
7 | *
8 | * @code
9 | X(n)
10 | * @endcode
11 | *
12 | * Where @em n is number of the instance itself (0 for NRF_TWIS0).
13 | */
14 | #if (TWIS0_ENABLED == 1)
15 | X(0)
16 | #endif
17 | #if (TWIS1_ENABLED == 1)
18 | X(1)
19 | #endif
20 | #undef X
21 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/ant_fs/antfs.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/ant_fs/antfs.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/ant_fs/antfs.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/ant_fs/antfs.h
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/ant_fs/crc.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/ant_fs/crc.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/ant_fs/crc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/ant_fs/crc.h
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/ant_fs/defines.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/ant_fs/defines.h
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/ble_transport/hci_mem_pool_internal.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup memory_pool_internal Memory Pool Internal
16 | * @{
17 | * @ingroup memory_pool
18 | *
19 | * @brief Memory pool internal definitions
20 | */
21 |
22 | #ifndef MEM_POOL_INTERNAL_H__
23 | #define MEM_POOL_INTERNAL_H__
24 |
25 | #define TX_BUF_SIZE 4u /**< TX buffer size in bytes. */
26 | #define RX_BUF_SIZE 32u /**< RX buffer size in bytes. */
27 |
28 | #define RX_BUF_QUEUE_SIZE 8u /**< RX buffer element size. */
29 |
30 | #endif // MEM_POOL_INTERNAL_H__
31 |
32 | /** @} */
33 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/bootloader_settings.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**@file
14 | *
15 | * @defgroup nrf_bootloader_settings Bootloader settings API.
16 | * @{
17 | *
18 | * @brief Bootloader settings module interface.
19 | */
20 |
21 | #ifndef BOOTLOADER_SETTINGS_H__
22 | #define BOOTLOADER_SETTINGS_H__
23 |
24 | #include
25 | #include "bootloader_types.h"
26 |
27 | /**@brief Function for getting the bootloader settings.
28 | *
29 | * @param[out] pp_bootloader_settings Bootloader settings.
30 | */
31 | void bootloader_util_settings_get(const bootloader_settings_t ** pp_bootloader_settings);
32 |
33 | #endif // BOOTLOADER_SETTINGS_H__
34 |
35 | /**@} */
36 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/bootloader_util.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**@file
14 | *
15 | * @defgroup nrf_bootloader_util Bootloader util API.
16 | * @{
17 | *
18 | * @brief Bootloader util module interface.
19 | */
20 |
21 | #ifndef BOOTLOADER_UTIL_H__
22 | #define BOOTLOADER_UTIL_H__
23 |
24 | #include
25 | #include "bootloader_types.h"
26 |
27 | /**@brief Function for starting the application (or bootloader) at the provided address.
28 | *
29 | * @param[in] start_addr Start address.
30 | *
31 | * @note This function will never retrun. Instead it will reset into the application of the
32 | * provided address.
33 | */
34 | void bootloader_util_app_start(uint32_t start_addr);
35 |
36 | #endif // BOOTLOADER_UTIL_H__
37 |
38 | /**@} */
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/dfu_ble_svc_internal.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup nrf_dfu_ble_svc_internal DFU BLE SVC internal
16 | * @{
17 | *
18 | * @brief DFU BLE SVC internal functions in bootloader. The DFU BLE SuperVisor Calls allow an
19 | * application to execute functions in the installed bootloader. This interface provides
20 | * internal Bootloader DFU functions for retrieving data exchanged through SuperVisor Calls.
21 | *
22 | */
23 |
24 | #ifndef DFU_BLE_SVC_INTERNAL_H__
25 | #define DFU_BLE_SVC_INTERNAL_H__
26 |
27 | #include
28 | #include "dfu_ble_svc.h"
29 | #include "ble_gap.h"
30 |
31 | /**@brief Internal bootloader/DFU function for retrieving peer data provided from application.
32 | *
33 | * @param[out] p_peer_data Peer data set by application to be used for DFU connection.
34 | *
35 | * @retval NRF_SUCCESS If peer data is valid and can be used for connection.
36 | * @retval NRF_ERROR_NULL If p_peer_data is a NULL pointer.
37 | * @retval NRF_ERROR_INVALID_DATA If peer data is not available or invalid.
38 | */
39 | uint32_t dfu_ble_peer_data_get(dfu_ble_peer_data_t * p_peer_data);
40 |
41 | #endif // DFU_BLE_SVC_INTERNAL_H__
42 |
43 | /** @} */
44 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/dfu_transport.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**@file
14 | *
15 | * @defgroup nrf_dfu_transport DFU transport API.
16 | * @{
17 | *
18 | * @brief DFU transport module interface.
19 | */
20 |
21 | #ifndef DFU_TRANSPORT_H__
22 | #define DFU_TRANSPORT_H__
23 |
24 | #include
25 |
26 | /**@brief Function for starting the update of Device Firmware.
27 | *
28 | * @retval NRF_SUCCESS Operation success.
29 | */
30 | uint32_t dfu_transport_update_start(void);
31 |
32 | /**@brief Function for closing the transport layer.
33 | *
34 | * @retval NRF_SUCCESS Operation success.
35 | */
36 | uint32_t dfu_transport_close(void);
37 |
38 | #endif // DFU_TRANSPORT_H__
39 |
40 | /**@} */
41 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/bootloader_dfu/hci_transport/hci_mem_pool_internal.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup memory_pool_internal Memory Pool Internal
16 | * @{
17 | * @ingroup memory_pool
18 | *
19 | * @brief Memory pool internal definitions
20 | */
21 |
22 | #ifndef MEM_POOL_INTERNAL_H__
23 | #define MEM_POOL_INTERNAL_H__
24 |
25 | #define TX_BUF_SIZE 32u /**< TX buffer size in bytes. */
26 | #define RX_BUF_SIZE 600u /**< RX buffer size in bytes. */
27 |
28 | #define RX_BUF_QUEUE_SIZE 2u /**< RX buffer element size. */
29 |
30 | #endif // MEM_POOL_INTERNAL_H__
31 |
32 | /** @} */
33 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/crc16/crc16.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "crc16.h"
14 |
15 | #include
16 |
17 | uint16_t crc16_compute(uint8_t const * p_data, uint32_t size, uint16_t const * p_crc)
18 | {
19 | uint16_t crc = (p_crc == NULL) ? 0xFFFF : *p_crc;
20 |
21 | for (uint32_t i = 0; i < size; i++)
22 | {
23 | crc = (uint8_t)(crc >> 8) | (crc << 8);
24 | crc ^= p_data[i];
25 | crc ^= (uint8_t)(crc & 0xFF) >> 4;
26 | crc ^= (crc << 8) << 4;
27 | crc ^= ((crc & 0xFF) << 4) << 1;
28 | }
29 |
30 | return crc;
31 | }
32 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/crc16/crc16.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup crc_compute CRC compute
16 | * @{
17 | * @ingroup hci_transport
18 | *
19 | * @brief This module implements CRC-16-CCITT (polynomial 0x1021) with 0xFFFF initial value.
20 | * The data can be passed in multiple blocks.
21 | */
22 |
23 | #ifndef CRC16_H__
24 | #define CRC16_H__
25 |
26 | #include
27 |
28 | /**@brief Function for calculating CRC-16 in blocks.
29 | *
30 | * Feed each consecutive data block into this function, along with the current value of p_crc as
31 | * returned by the previous call of this function. The first call of this function should pass NULL
32 | * as the initial value of the crc in p_crc.
33 | *
34 | * @param[in] p_data The input data block for computation.
35 | * @param[in] size The size of the input data block in bytes.
36 | * @param[in] p_crc The previous calculated CRC-16 value or NULL if first call.
37 | *
38 | * @return The updated CRC-16 value, based on the input supplied.
39 | */
40 | uint16_t crc16_compute(uint8_t const * p_data, uint32_t size, uint16_t const * p_crc);
41 |
42 | #endif // CRC16_H__
43 |
44 | /** @} */
45 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/crc32/crc32.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "crc32.h"
14 |
15 | #include
16 |
17 | uint32_t crc32_compute(uint8_t const * p_data, uint32_t size, uint32_t const * p_crc)
18 | {
19 | uint32_t crc;
20 |
21 | crc = (p_crc == NULL) ? 0xFFFFFFFF : ~(*p_crc);
22 | for (uint32_t i = 0; i < size; i++)
23 | {
24 | crc = crc ^ p_data[i];
25 | for (uint32_t j = 8; j > 0; j--)
26 | {
27 | crc = (crc >> 1) ^ (0xEDB88320 & -(crc & 1));
28 | }
29 | }
30 | return ~crc;
31 | }
32 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/crc32/crc32.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup crc_compute CRC compute
16 | * @{
17 | * @ingroup hci_transport
18 | *
19 | * @brief This module implements the CRC-32 calculation in the blocks.
20 | */
21 |
22 | #ifndef CRC32_H__
23 | #define CRC32_H__
24 |
25 | #include
26 |
27 | /**@brief Function for calculating CRC-32 in blocks.
28 | *
29 | * Feed each consecutive data block into this function, along with the current value of p_crc as
30 | * returned by the previous call of this function. The first call of this function should pass NULL
31 | * as the initial value of the crc in p_crc.
32 | *
33 | * @param[in] p_data The input data block for computation.
34 | * @param[in] size The size of the input data block in bytes.
35 | * @param[in] p_crc The previous calculated CRC-32 value or NULL if first call.
36 | *
37 | * @return The updated CRC-32 value, based on the input supplied.
38 | */
39 | uint32_t crc32_compute(uint8_t const * p_data, uint32_t size, uint32_t const * p_crc);
40 |
41 | #endif // CRC32_H__
42 |
43 | /** @} */
44 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/fstorage/fstorage_nosd.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/libraries/fstorage/fstorage_nosd.c
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/hardfault/hardfault_implementation.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #include "hardfault.h"
13 | #include "nrf.h"
14 | #include "compiler_abstraction.h"
15 | #include "nordic_common.h"
16 | #ifdef SOFTDEVICE_PRESENT
17 | #include "nrf_soc.h"
18 | #endif
19 |
20 | #if defined(DEBUG_NRF)
21 | /**
22 | * @brief Pointer to the last received stack pointer.
23 | *
24 | * This pointer is set in the debug version of the HardFault handler.
25 | * It helps to debug HardFault reasons.
26 | */
27 | volatile HardFault_stack_t *HardFault_p_stack;
28 | #endif
29 |
30 | /*lint -save -e14 */
31 | __WEAK void HardFault_process(HardFault_stack_t *p_stack)
32 | {
33 | // Restart the system by default
34 | NVIC_SystemReset();
35 | }
36 | /*lint -restore */
37 |
38 | void HardFault_c_handler( uint32_t *p_stack_address )
39 | {
40 | #if defined(DEBUG_NRF)
41 | HardFault_p_stack = (HardFault_stack_t*)p_stack_address;
42 | /* Generate breakpoint if debugger is connected */
43 | __BKPT(0);
44 | #endif
45 |
46 | HardFault_process((HardFault_stack_t*)p_stack_address);
47 | }
48 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/hci/config/hci_mem_pool_internal.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @file
14 | *
15 | * @defgroup memory_pool_internal Memory Pool Internal
16 | * @{
17 | * @ingroup memory_pool
18 | *
19 | * @brief Memory pool internal definitions
20 | */
21 |
22 | #ifndef MEM_POOL_INTERNAL_H__
23 | #define MEM_POOL_INTERNAL_H__
24 |
25 | #define TX_BUF_SIZE 600u /**< TX buffer size in bytes. */
26 | #define RX_BUF_SIZE TX_BUF_SIZE /**< RX buffer size in bytes. */
27 |
28 | #define RX_BUF_QUEUE_SIZE 4u /**< RX buffer element size. */
29 |
30 | #endif // MEM_POOL_INTERNAL_H__
31 |
32 | /** @} */
33 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/mailbox/app_mailbox_local.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**
14 | * @cond (NODOX)
15 | * @defgroup app_mailbox_internal Auxiliary internal types declarations
16 | * @{
17 | * @ingroup app_mailbox
18 | * @internal
19 | *
20 | * @brief Module for internal usage inside the library only
21 | *
22 | * Some definitions must be included in the header file because
23 | * of the way the library is set up. In this way, the are accessible to the user.
24 | * However, any functions and variables defined here may change at any time
25 | * without a warning, so you should not access them directly.
26 | */
27 | /**
28 | * @brief Mailbox handle used for managing a mailbox queue.
29 | */
30 | typedef struct
31 | {
32 | uint8_t r_idx; /**< Read index for the mailbox queue. */
33 | uint8_t w_idx; /**< Write index for the mailbox queue. */
34 | uint8_t len; /**< Number of elements currently in the mailbox queue. */
35 | app_mailbox_overflow_mode_t mode; /**< Mode of overflow handling. */
36 | } app_mailbox_cb_t;
37 |
38 |
39 | /** @}
40 | * @endcond
41 | */
42 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/timer/app_timer_appsh.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "app_timer_appsh.h"
14 | #include "app_scheduler.h"
15 |
16 | static void app_timer_evt_get(void * p_event_data, uint16_t event_size)
17 | {
18 | app_timer_event_t * p_timer_event = (app_timer_event_t *)p_event_data;
19 |
20 | APP_ERROR_CHECK_BOOL(event_size == sizeof(app_timer_event_t));
21 | p_timer_event->timeout_handler(p_timer_event->p_context);
22 | }
23 |
24 | uint32_t app_timer_evt_schedule(app_timer_timeout_handler_t timeout_handler,
25 | void * p_context)
26 | {
27 | app_timer_event_t timer_event;
28 |
29 | timer_event.timeout_handler = timeout_handler;
30 | timer_event.p_context = p_context;
31 |
32 | return app_sched_event_put(&timer_event, sizeof(timer_event), app_timer_evt_get);
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/trace/app_trace.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 |
18 |
19 | #ifdef ENABLE_DEBUG_LOG_SUPPORT
20 | #include "app_trace.h"
21 | #include "nrf_log.h"
22 |
23 | void app_trace_init(void)
24 | {
25 | (void)NRF_LOG_INIT();
26 | }
27 |
28 | void app_trace_dump(uint8_t * p_buffer, uint32_t len)
29 | {
30 | app_trace_log("\r\n");
31 | for (uint32_t index = 0; index < len; index++)
32 | {
33 | app_trace_log("0x%02X ", p_buffer[index]);
34 | }
35 | app_trace_log("\r\n");
36 | }
37 |
38 | #endif // ENABLE_DEBUG_LOG_SUPPORT
39 |
40 | /**
41 | *@}
42 | **/
43 |
44 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/trace/app_trace.h:
--------------------------------------------------------------------------------
1 | #ifndef __DEBUG_H_
2 | #define __DEBUG_H_
3 |
4 | #include
5 | #include
6 |
7 | /**
8 | * @defgroup app_trace Debug Logger
9 | * @ingroup app_common
10 | * @{
11 | * @brief Enables debug logs/ trace over UART.
12 | * @details Enables debug logs/ trace over UART. Tracing is enabled only if
13 | * ENABLE_DEBUG_LOG_SUPPORT is defined in the project.
14 | */
15 | #ifdef ENABLE_DEBUG_LOG_SUPPORT
16 | #include "nrf_log.h"
17 | /**
18 | * @brief Module Initialization.
19 | *
20 | * @details Initializes the module to use UART as trace output.
21 | *
22 | * @warning This function will configure UART using default board configuration.
23 | * Do not call this function if UART is configured from a higher level in the application.
24 | */
25 | void app_trace_init(void);
26 |
27 | /**
28 | * @brief Log debug messages.
29 | *
30 | * @details This API logs messages over UART. The module must be initialized before using this API.
31 | *
32 | * @note Though this is currently a macro, it should be used used and treated as function.
33 | */
34 | #define app_trace_log NRF_LOG_PRINTF
35 |
36 | /**
37 | * @brief Dump auxiliary byte buffer to the debug trace.
38 | *
39 | * @details This API logs messages over UART. The module must be initialized before using this API.
40 | *
41 | * @param[in] p_buffer Buffer to be dumped on the debug trace.
42 | * @param[in] len Size of the buffer.
43 | */
44 | void app_trace_dump(uint8_t * p_buffer, uint32_t len);
45 |
46 | #else // ENABLE_DEBUG_LOG_SUPPORT
47 |
48 | #define app_trace_init(...)
49 | #define app_trace_log(...)
50 | #define app_trace_dump(...)
51 |
52 | #endif // ENABLE_DEBUG_LOG_SUPPORT
53 |
54 | /** @} */
55 |
56 | #endif //__DEBUG_H_
57 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/util/app_util_platform.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "app_util_platform.h"
14 |
15 | static uint32_t m_in_critical_region = 0;
16 |
17 | void app_util_disable_irq(void)
18 | {
19 | __disable_irq();
20 | m_in_critical_region++;
21 | }
22 |
23 | void app_util_enable_irq(void)
24 | {
25 | m_in_critical_region--;
26 | if (m_in_critical_region == 0)
27 | {
28 | __enable_irq();
29 | }
30 | }
31 |
32 | void app_util_critical_region_enter(uint8_t *p_nested)
33 | {
34 | #ifdef NRF52
35 | ASSERT(APP_LEVEL_PRIVILEGED == privilege_level_get())
36 | #endif
37 |
38 | #if defined(SOFTDEVICE_PRESENT)
39 | /* return value can be safely ignored */
40 | (void) sd_nvic_critical_region_enter(p_nested);
41 | #else
42 | app_util_disable_irq();
43 | #endif
44 | }
45 |
46 | void app_util_critical_region_exit(uint8_t nested)
47 | {
48 | #ifdef NRF52
49 | ASSERT(APP_LEVEL_PRIVILEGED == privilege_level_get())
50 | #endif
51 |
52 | #if defined(SOFTDEVICE_PRESENT)
53 | /* return value can be safely ignored */
54 | (void) sd_nvic_critical_region_exit(nested);
55 | #else
56 | app_util_enable_irq();
57 | #endif
58 | }
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/util/common.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef COMMON_H
14 | #define COMMON_H
15 |
16 | /*lint ++flb "Enter library region" */
17 |
18 | #include
19 | #include
20 |
21 | /* @file
22 | * @brief Common header file for generic macros and definitions
23 | *
24 | */
25 |
26 | /*
27 | * GPIO glue macros, this can be used to define a pin number in source/header file and use that macro for pin
28 | * configuration using this expansion.
29 | * example:
30 | * #define RESET_PIN 8
31 | * NRF_GPIO->PINCNF(RESET_PIN) = XXX ; // Expanded NRF_GPIO->PIN_CNF[8] = XXX
32 | */
33 | #define PINX_GLUE(x, y, z) x##y##_##z /*!< first level glue for pin macros */
34 | #define PINCNF(p) PINX_GLUE(PIN,p,CNF) /*!< gpio configure pin number 'p' */
35 | #define PINOUT(p) PINX_GLUE(PIN,p,OUT) /*!< gpio out pin number 'p' */
36 |
37 | /*lint --flb "Leave library region" */
38 | #endif
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/util/nrf_assert.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2006 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #include "nrf_assert.h"
13 | #include "app_error.h"
14 | #include "nordic_common.h"
15 |
16 | #if defined(DEBUG_NRF)
17 | void assert_nrf_callback(uint16_t line_num, const uint8_t * file_name)
18 | {
19 | assert_info_t assert_info =
20 | {
21 | .line_num = line_num,
22 | .p_file_name = file_name,
23 | };
24 | app_error_fault_handler(NRF_FAULT_ID_SDK_ASSERT, 0, (uint32_t)(&assert_info));
25 |
26 | UNUSED_VARIABLE(assert_info);
27 | }
28 | #endif /* DEBUG_NRF */
29 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/libraries/util/sdk_os.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /** @cond */
14 | /**@file
15 | *
16 | * @defgroup sdk_os SDK OS Abstraction
17 | * @ingroup experimental_api
18 | * @details In order to made SDK modules independent of use of an embedded OS, and permit
19 | * application with varied task architecture, SDK abstracts the OS specific
20 | * elements here in order to make all other modules agnostic to the OS or task
21 | * architecture.
22 | * @{
23 | */
24 |
25 | #ifndef SDK_OS_H__
26 | #define SDK_OS_H__
27 |
28 | #define SDK_MUTEX_DEFINE(X)
29 | #define SDK_MUTEX_INIT(X)
30 | #define SDK_MUTEX_LOCK(X)
31 | #define SDK_MUTEX_UNLOCK(X)
32 |
33 | /**
34 | * @defgroup os_data_type Data types.
35 | */
36 |
37 | /** @} */
38 | /** @endcond */
39 | #endif // SDK_OS_H__
40 |
41 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/nfc/ndef/parser/record/nfc_ndef_parser_logger.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NFC_NDEF_PARSER_LOGGER_H__
14 | #define NFC_NDEF_PARSER_LOGGER_H__
15 |
16 | #ifdef NDEF_PARSER_LOG_ENABLE
17 | #ifdef ENABLE_DEBUG_LOG_SUPPORT
18 |
19 | #include "app_trace.h"
20 |
21 | #define NDEF_PARSER_TRACE app_trace_log
22 |
23 | #elif defined(NRF_LOG_USES_RTT)
24 |
25 | #include "nrf_log.h"
26 |
27 |
28 | #define NDEF_PARSER_TRACE(...) NRF_LOG_PRINTF(##__VA_ARGS__)
29 | #endif
30 | #endif
31 |
32 | #ifndef NDEF_PARSER_TRACE
33 | #define NDEF_PARSER_TRACE(...)
34 | #endif
35 |
36 | #endif // NFC_NDEF_PARSER_LOGGER_H__
37 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/nfc/t2t_lib/hal_t2t/hal_nfc_t2t_logger.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef HAL_NFC_LOGGER_H__
14 | #define HAL_NFC_LOGGER_H__
15 |
16 | #include "nrf_log.h"
17 |
18 | #define LOG_HAL_NFC(...) NRF_LOG_PRINTF(__VA_ARGS__)
19 |
20 | #endif // HAL_NFC_LOGGER_H__
21 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_gcc.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_gcc.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_iar.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_iar.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_keil.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/nfc/t2t_lib/nfc_t2t_lib_keil.lib
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/esb/nrf_esb_error_codes.h:
--------------------------------------------------------------------------------
1 | #ifndef __NRF_ESB_ERROR_CODES_H__
2 | #define __NRF_ESB_ERROR_CODES_H__
3 |
4 | #define NRF_ERROR_BUFFER_EMPTY (0x0100)
5 |
6 | #define NRF_ESB_ERROR_NOT_IN_RX_MODE (0x0101)
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/esb/nrf_esb_resources.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_ESB_RESOURCES_H__
14 | #define NRF_ESB_RESOURCES_H__
15 |
16 | #include
17 |
18 | #ifndef ESB_ALTERNATIVE_RESOURCES
19 | #define ESB_PPI_CHANNELS_USED 0x00000007uL /**< PPI channels utilized by ESB (not available to th spplication). */
20 | #define ESB_TIMERS_USED 0x00000004uL /**< Timers used by ESB. */
21 | #define ESB_SWI_USED 0x00000001uL /**< Software interrupts used by ESB */
22 | #else
23 | #define ESB_PPI_CHANNELS_USED 0x00000700uL /**< PPI channels utilized by ESB (not available to th spplication). */
24 | #define ESB_TIMERS_USED 0x00000001uL /**< Timers used by ESB. */
25 | #define ESB_SWI_USED 0x00000002uL /**< Software interrupts used by ESB */
26 | #endif
27 |
28 |
29 |
30 | #endif /* NRF_ESB_RESOURCES_H__ */
31 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/arm/gzll_arm.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/arm/gzll_arm.lib
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/arm/gzll_sd_resources_arm.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/arm/gzll_sd_resources_arm.lib
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/gcc/gzll_gcc.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/gcc/gzll_gcc.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/gcc/gzll_sd_resources_gcc.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/gcc/gzll_sd_resources_gcc.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/iar/gzll_iar.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/iar/gzll_iar.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/iar/gzll_sd_resource_iar.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/properitary_rf/gzll/iar/gzll_sd_resource_iar.a
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/nrf_gzll_resources.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_GZLL_RESOURCES_H__
14 | #define NRF_GZLL_RESOURCES_H__
15 |
16 | #include
17 |
18 | #ifndef GAZELL_ALTERNATIVE_RESOURCES
19 | #define GZLL_PPI_CHANNELS_USED 0x00000007uL /**< PPI channels utilized by Gazell (not available to th spplication). */
20 | #define GZLL_TIMERS_USED 0x00000004uL /**< Timers used by Gazell. */
21 | #define GZLL_SWI_USED 0x00000001uL /**< Software interrupts used by Gazell */
22 | #else
23 | #define GZLL_PPI_CHANNELS_USED 0x00000700uL /**< PPI channels utilized by Gazell (not available to th spplication). */
24 | #define GZLL_TIMERS_USED 0x00000001uL /**< Timers used by Gazell. */
25 | #define GZLL_SWI_USED 0x00000002uL /**< Software interrupts used by Gazell */
26 | #endif
27 |
28 |
29 |
30 | #endif /* NRF_GZLL_RESOURCES_H__ */
31 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/properitary_rf/gzll/nrf_gzp_host_nrf51.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is confidential property of Nordic
4 | * Semiconductor ASA.Terms and conditions of usage are described in detail
5 | * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | * $LastChangedRevision: 133 $
12 | */
13 |
14 |
15 | #include "nrf_gzp.h"
16 | #include "nrf_nvmc.h"
17 |
18 | /**
19 | * @file
20 | * @brief Implementation of Gazell Pairing Library (gzp), nRF51 specific Host functions.
21 | * @defgroup gzp_source_host_nrf51 Gazell Pairing Host nRF51 specific implementation
22 | * @{
23 | * @ingroup gzp_04_source
24 | */
25 |
26 |
27 | void gzp_host_chip_id_read(uint8_t *dst, uint8_t n)
28 | {
29 | uint8_t i;
30 | uint8_t random_number;
31 |
32 | if( *((uint8_t*)(GZP_PARAMS_STORAGE_ADR + GZP_HOST_ID_LENGTH + 1)) == 0xff)
33 | {
34 | nrf_nvmc_write_byte((GZP_PARAMS_STORAGE_ADR + GZP_HOST_ID_LENGTH + 1) , 0x00);
35 |
36 | for(i = 0; i < n; i++)
37 | {
38 | gzp_random_numbers_generate(&random_number, 1);
39 | nrf_nvmc_write_byte((GZP_PARAMS_STORAGE_ADR + GZP_HOST_ID_LENGTH + 2 + i) , random_number);
40 | }
41 | }
42 |
43 | for(i = 0; i < n; i++)
44 | {
45 | *(dst++) = *((uint8_t*)(GZP_PARAMS_STORAGE_ADR + GZP_HOST_ID_LENGTH + 2 + i));
46 | }
47 | }
48 |
49 | /** @} */
50 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/common/conn_systemreset.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include "ble_serialization.h"
15 | #include "ser_hal_transport.h"
16 | #include "ser_sd_transport.h"
17 |
18 |
19 | uint32_t conn_systemreset(void)
20 | {
21 | uint32_t err_code = NRF_SUCCESS;
22 | uint8_t * p_tx_buf = NULL;
23 | uint32_t tx_buf_len = 0;
24 |
25 | err_code = ser_hal_transport_tx_pkt_alloc(&p_tx_buf, (uint16_t *)&tx_buf_len);
26 | if (err_code != NRF_SUCCESS)
27 | {
28 | return err_code;
29 | }
30 |
31 | SER_ASSERT_LENGTH_LEQ(SER_PKT_TYPE_SIZE, tx_buf_len);
32 | p_tx_buf[SER_PKT_TYPE_POS] = SER_PKT_TYPE_RESET_CMD;
33 | tx_buf_len = SER_PKT_TYPE_SIZE;
34 |
35 | err_code = ser_sd_transport_cmd_write(p_tx_buf, tx_buf_len, NULL);
36 | if (err_code != NRF_SUCCESS)
37 | {
38 | err_code = NRF_ERROR_INTERNAL;
39 | }
40 |
41 | return err_code;
42 | }
43 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/common/conn_systemreset.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef CONN_SYSTEMRESET_H__
14 | #define CONN_SYSTEMRESET_H__
15 |
16 | /**
17 | * @addtogroup ser_codecs Serialization codecs
18 | * @ingroup ble_sdk_lib_serialization
19 | */
20 |
21 | /**
22 | * @addtogroup ser_app_common_codecs Application common codecs
23 | * @ingroup ser_codecs
24 | */
25 |
26 | /**@file
27 | *
28 | * @defgroup conn_systemreset Connectivity chip reset command request encoder.
29 | * @{
30 | * @ingroup ser_app_common_codecs
31 | *
32 | * @brief Connectivity chip reset command request encoder.
33 | */
34 |
35 | /**@brief Function for performing the connectivity chip reset.
36 | *
37 | * @retval NRF_SUCCESS Encoding success.
38 | * @retval NRF_ERROR_INTERNAL Encoding failure. Transport error.
39 | */
40 | uint32_t conn_systemreset(void);
41 |
42 | /** @} */
43 | #endif // CONN_SYSTEMRESET_H__
44 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_enable.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include
15 | #include "ble_app.h"
16 | #include "ble_serialization.h"
17 | #include "ble_struct_serialization.h"
18 | #include "cond_field_serialization.h"
19 | #include "app_util.h"
20 |
21 |
22 | uint32_t ble_enable_req_enc(ble_enable_params_t * p_ble_enable_params,
23 | uint8_t * const p_buf,
24 | uint32_t * const p_buf_len)
25 | {
26 | uint32_t index = 0;
27 | uint32_t err_code = NRF_SUCCESS;
28 |
29 | SER_ASSERT_NOT_NULL(p_buf);
30 | SER_ASSERT_NOT_NULL(p_buf_len);
31 |
32 | SER_ASSERT_LENGTH_LEQ(index + 2, *p_buf_len);
33 |
34 | p_buf[index++] = SD_BLE_ENABLE;
35 |
36 | err_code = cond_field_enc(p_ble_enable_params, p_buf, *p_buf_len, &index, ble_enable_params_t_enc);
37 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
38 |
39 | *p_buf_len = index;
40 |
41 | return err_code;
42 | }
43 |
44 |
45 | uint32_t ble_enable_rsp_dec(uint8_t const * const p_buf,
46 | uint32_t packet_len,
47 | uint32_t * const p_result_code)
48 | {
49 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_ENABLE, p_result_code);
50 | }
51 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_evt_tx_complete.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_evt_app.h"
14 | #include "ble_serialization.h"
15 |
16 |
17 | uint32_t ble_evt_tx_complete_dec(uint8_t const * const p_buf,
18 | uint32_t packet_len,
19 | ble_evt_t * const p_event,
20 | uint32_t * const p_event_len)
21 | {
22 | uint32_t index = 0;
23 |
24 | SER_ASSERT_NOT_NULL(p_buf);
25 | SER_ASSERT_NOT_NULL(p_event_len);
26 |
27 | SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
28 |
29 | uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_evt_tx_complete_t);
30 |
31 | if (p_event == NULL)
32 | {
33 | *p_event_len = event_len;
34 | return NRF_SUCCESS;
35 | }
36 |
37 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
38 |
39 | p_event->header.evt_id = BLE_EVT_TX_COMPLETE;
40 | p_event->header.evt_len = event_len;
41 |
42 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.common_evt.conn_handle);
43 | uint8_dec(p_buf, packet_len, &index, &p_event->evt.common_evt.params.tx_complete.count);
44 |
45 | SER_ASSERT_LENGTH_EQ(index, packet_len);
46 | *p_event_len = event_len;
47 |
48 | return NRF_SUCCESS;
49 | }
50 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_adv_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t ble_gap_adv_stop_req_enc(uint8_t * const p_buf,
17 | uint32_t * const p_buf_len)
18 | {
19 | SER_ASSERT_NOT_NULL(p_buf);
20 | SER_ASSERT_NOT_NULL(p_buf_len);
21 |
22 | uint8_t op_code = SD_BLE_GAP_ADV_STOP;
23 | uint32_t err_code = NRF_SUCCESS;
24 | uint32_t buf_len = *p_buf_len;
25 | uint32_t index = 0;
26 |
27 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
28 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
29 |
30 | *p_buf_len = index;
31 |
32 | return err_code;
33 | }
34 |
35 | uint32_t ble_gap_adv_stop_rsp_dec(uint8_t const * const p_buf,
36 | uint32_t packet_len,
37 | uint32_t * const p_result_code)
38 | {
39 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_ADV_STOP, p_result_code);
40 | }
41 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_appearance_set.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 | #include "ble_gap.h"
16 | #include "app_util.h"
17 |
18 |
19 | uint32_t ble_gap_appearance_set_req_enc(uint16_t appearance,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_buf_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(index + 1 + 2, *p_buf_len);
29 |
30 | p_buf[index++] = SD_BLE_GAP_APPEARANCE_SET;
31 | index += uint16_encode(appearance, &p_buf[index]);
32 |
33 | *p_buf_len = index;
34 |
35 | return NRF_SUCCESS;
36 | }
37 |
38 |
39 | uint32_t ble_gap_appearance_set_rsp_dec(uint8_t const * const p_buf,
40 | uint32_t packet_len,
41 | uint32_t * const p_result_code)
42 | {
43 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_APPEARANCE_SET, p_result_code);
44 | }
45 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_connect_cancel.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 | #include "cond_field_serialization.h"
16 | #include "ble_gap_struct_serialization.h"
17 |
18 | uint32_t ble_gap_connect_cancel_req_enc(uint8_t * const p_buf,
19 | uint32_t * const p_buf_len)
20 | {
21 | SER_ASSERT_NOT_NULL(p_buf);
22 | SER_ASSERT_NOT_NULL(p_buf_len);
23 |
24 | uint8_t op_code = SD_BLE_GAP_CONNECT_CANCEL;
25 | uint32_t err_code = NRF_SUCCESS;
26 | uint32_t buf_len = *p_buf_len;
27 | uint32_t index = 0;
28 |
29 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
30 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
31 |
32 | *p_buf_len = index;
33 |
34 | return err_code;
35 | }
36 |
37 | uint32_t ble_gap_connect_cancel_rsp_dec(uint8_t const * const p_buf,
38 | uint32_t packet_len,
39 | uint32_t * const p_result_code)
40 | {
41 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_CONNECT_CANCEL, p_result_code);
42 | }
43 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_disconnect.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_disconnect_req_enc(uint16_t conn_handle,
19 | uint8_t hci_status_code,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_buf_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(index + 4, *p_buf_len);
29 |
30 | p_buf[index++] = SD_BLE_GAP_DISCONNECT;
31 | index += uint16_encode(conn_handle, &p_buf[index]);
32 | p_buf[index++] = hci_status_code;
33 |
34 | *p_buf_len = index;
35 |
36 | return NRF_SUCCESS;
37 | }
38 |
39 |
40 | uint32_t ble_gap_disconnect_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_DISCONNECT, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_evt_auth_key_request.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_evt_auth_key_request_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 | uint32_t event_len;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_event_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(3, packet_len);
30 |
31 | event_len = SER_EVT_CONN_HANDLE_SIZE + 1;
32 |
33 | if (p_event == NULL)
34 | {
35 | *p_event_len = event_len;
36 | return NRF_SUCCESS;
37 | }
38 |
39 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
40 |
41 | p_event->header.evt_id = BLE_GAP_EVT_AUTH_KEY_REQUEST;
42 | p_event->header.evt_len = event_len;
43 |
44 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.conn_handle);
45 |
46 | uint8_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.params.auth_key_request.key_type);
47 |
48 | SER_ASSERT_LENGTH_EQ(index, packet_len);
49 |
50 | *p_event_len = event_len;
51 |
52 | return NRF_SUCCESS;
53 | }
54 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_evt_disconnected.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_evt_disconnected_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_event_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(3, packet_len);
29 |
30 | uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_gap_evt_disconnected_t);
31 |
32 | if (p_event == NULL)
33 | {
34 | *p_event_len = event_len;
35 | return NRF_SUCCESS;
36 | }
37 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
38 |
39 | p_event->header.evt_id = BLE_GAP_EVT_DISCONNECTED;
40 | p_event->header.evt_len = event_len;
41 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.conn_handle);
42 | uint8_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.params.disconnected.reason);
43 |
44 | SER_ASSERT_LENGTH_EQ(index, packet_len);
45 | *p_event_len = event_len;
46 |
47 | return NRF_SUCCESS;
48 | }
49 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_evt_rssi_changed.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_evt_rssi_changed_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 | uint32_t event_len;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_event_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
30 |
31 | event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_gap_evt_rssi_changed_t);
32 |
33 | if (p_event == NULL)
34 | {
35 | *p_event_len = event_len;
36 | return NRF_SUCCESS;
37 | }
38 |
39 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
40 |
41 | p_event->header.evt_id = BLE_GAP_EVT_RSSI_CHANGED;
42 | p_event->header.evt_len = event_len;
43 |
44 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.conn_handle);
45 | int8_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.params.rssi_changed.rssi);
46 |
47 | SER_ASSERT_LENGTH_EQ(index, packet_len);
48 |
49 | *p_event_len = event_len;
50 |
51 | return NRF_SUCCESS;
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_evt_timeout.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_evt_timeout_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 | uint32_t event_len;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_event_len);
28 |
29 | SER_ASSERT_LENGTH_EQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
30 |
31 | event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_gap_evt_timeout_t);
32 |
33 | if (p_event == NULL)
34 | {
35 | *p_event_len = event_len;
36 | return NRF_SUCCESS;
37 | }
38 |
39 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
40 |
41 | p_event->header.evt_id = BLE_GAP_EVT_TIMEOUT;
42 | p_event->header.evt_len = event_len;
43 |
44 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.conn_handle);
45 | uint8_dec(p_buf, packet_len, &index, &p_event->evt.gap_evt.params.timeout.src);
46 |
47 | SER_ASSERT_LENGTH_EQ(index, packet_len);
48 |
49 | *p_event_len = event_len;
50 |
51 | return NRF_SUCCESS;
52 | }
53 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_rssi_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 | uint32_t ble_gap_rssi_stop_req_enc(uint16_t conn_handle,
18 | uint8_t * const p_buf,
19 | uint32_t * const p_buf_len)
20 | {
21 | SER_ASSERT_NOT_NULL(p_buf);
22 | SER_ASSERT_NOT_NULL(p_buf_len);
23 |
24 | uint32_t err_code = NRF_SUCCESS;
25 | uint32_t buf_len = *p_buf_len;
26 | uint32_t index = 0;
27 |
28 | uint8_t op_code = SD_BLE_GAP_RSSI_STOP;
29 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
30 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
31 |
32 | err_code = uint16_t_enc(&conn_handle, p_buf, buf_len, &index);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | *p_buf_len = index;
36 |
37 | return err_code;
38 | }
39 |
40 | uint32_t ble_gap_rssi_stop_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_RSSI_STOP, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_scan_start.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "cond_field_serialization.h"
15 | #include "ble_serialization.h"
16 | #include "ble_gap_struct_serialization.h"
17 |
18 | uint32_t ble_gap_scan_start_req_enc(ble_gap_scan_params_t const * p_scan_params,
19 | uint8_t * const p_buf,
20 | uint32_t * const p_buf_len)
21 | {
22 | SER_ASSERT_NOT_NULL(p_buf);
23 | SER_ASSERT_NOT_NULL(p_buf_len);
24 |
25 | uint8_t op_code = SD_BLE_GAP_SCAN_START;
26 | uint32_t err_code = NRF_SUCCESS;
27 | uint32_t buf_len = *p_buf_len;
28 | uint32_t index = 0;
29 |
30 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
31 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
32 | err_code = cond_field_enc(p_scan_params, p_buf, buf_len, &index, ble_gap_scan_params_t_enc);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | *p_buf_len = index;
36 |
37 | return err_code;
38 | }
39 |
40 | uint32_t ble_gap_scan_start_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_SCAN_START, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_scan_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t ble_gap_scan_stop_req_enc(uint8_t * const p_buf,
17 | uint32_t * const p_buf_len)
18 | {
19 | SER_ASSERT_NOT_NULL(p_buf);
20 | SER_ASSERT_NOT_NULL(p_buf_len);
21 |
22 | uint8_t op_code = SD_BLE_GAP_SCAN_STOP;
23 | uint32_t err_code = NRF_SUCCESS;
24 | uint32_t buf_len = *p_buf_len;
25 | uint32_t index = 0;
26 |
27 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
28 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
29 |
30 | *p_buf_len = index;
31 |
32 | return err_code;
33 | }
34 |
35 | uint32_t ble_gap_scan_stop_rsp_dec(uint8_t const * const p_buf,
36 | uint32_t packet_len,
37 | uint32_t * const p_result_code)
38 | {
39 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_SCAN_STOP, p_result_code);
40 | }
41 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gap_tx_power_set.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 | uint32_t ble_gap_tx_power_set_req_enc(int8_t tx_power,
18 | uint8_t * const p_buf,
19 | uint32_t * const p_buf_len)
20 | {
21 | SER_ASSERT_NOT_NULL(p_buf);
22 | SER_ASSERT_NOT_NULL(p_buf_len);
23 |
24 | uint8_t op_code = SD_BLE_GAP_TX_POWER_SET;
25 | uint32_t err_code = NRF_SUCCESS;
26 | uint32_t buf_len = *p_buf_len;
27 | uint32_t index = 0;
28 |
29 | err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
30 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
31 |
32 | err_code = uint8_t_enc(&tx_power, p_buf, buf_len, &index);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | *p_buf_len = index;
36 |
37 | return err_code;
38 | }
39 |
40 | uint32_t ble_gap_tx_power_set_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_TX_POWER_SET, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gattc_read.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gattc_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gattc_read_req_enc(uint16_t conn_handle,
19 | uint16_t handle,
20 | uint16_t offset,
21 | uint8_t * const p_buf,
22 | uint32_t * p_buf_len)
23 | {
24 | uint32_t index = 0;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + 7, *p_buf_len);
30 |
31 | p_buf[index++] = SD_BLE_GATTC_READ;
32 | index += uint16_encode(conn_handle, &p_buf[index]);
33 | index += uint16_encode(handle, &p_buf[index]);
34 | index += uint16_encode(offset, &p_buf[index]);
35 |
36 | *p_buf_len = index;
37 |
38 | return NRF_SUCCESS;
39 | }
40 |
41 |
42 | uint32_t ble_gattc_read_rsp_dec(uint8_t const * const p_buf,
43 | uint32_t packet_len,
44 | uint32_t * const p_result_code)
45 | {
46 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GATTC_READ, p_result_code);
47 | }
48 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gatts_evt_hvc.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_hvc_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_event_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
29 |
30 | uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_gatts_evt_hvc_t);
31 |
32 | if (p_event == NULL)
33 | {
34 | *p_event_len = event_len;
35 | return NRF_SUCCESS;
36 | }
37 |
38 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
39 |
40 | p_event->header.evt_id = BLE_GATTS_EVT_HVC;
41 | p_event->header.evt_len = event_len;
42 |
43 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gatts_evt.conn_handle);
44 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gatts_evt.params.hvc.handle);
45 |
46 | SER_ASSERT_LENGTH_EQ(index, packet_len);
47 |
48 | *p_event_len = event_len;
49 |
50 | return NRF_SUCCESS;
51 | }
52 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gatts_evt_sc_confirm.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_sc_confirm_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_event_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE, packet_len);
29 |
30 | uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE;
31 |
32 | if (p_event == NULL)
33 | {
34 | *p_event_len = event_len;
35 | return NRF_SUCCESS;
36 | }
37 |
38 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
39 |
40 | p_event->header.evt_id = BLE_GATTS_EVT_SC_CONFIRM;
41 | p_event->header.evt_len = event_len;
42 |
43 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gatts_evt.conn_handle);
44 |
45 | SER_ASSERT_LENGTH_EQ(index, packet_len);
46 | *p_event_len = event_len;
47 |
48 | return NRF_SUCCESS;
49 | }
50 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_gatts_evt_timeout.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_app.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_timeout_dec(uint8_t const * const p_buf,
19 | uint32_t packet_len,
20 | ble_evt_t * const p_event,
21 | uint32_t * const p_event_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_event_len);
27 |
28 | SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
29 |
30 | uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_gatts_evt_timeout_t);
31 |
32 | if (p_event == NULL)
33 | {
34 | *p_event_len = event_len;
35 | return NRF_SUCCESS;
36 | }
37 |
38 | SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
39 |
40 | p_event->header.evt_id = BLE_GATTS_EVT_TIMEOUT;
41 | p_event->header.evt_len = event_len;
42 |
43 | uint16_dec(p_buf, packet_len, &index, &p_event->evt.gatts_evt.conn_handle);
44 | uint8_dec(p_buf, packet_len, &index, &p_event->evt.gatts_evt.params.timeout.src);
45 |
46 | SER_ASSERT_LENGTH_EQ(index, packet_len);
47 | *p_event_len = event_len;
48 |
49 | return NRF_SUCCESS;
50 | }
51 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_l2cap_cid_register.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include
15 | #include "ble_serialization.h"
16 | #include "ble_gap.h"
17 | #include "app_util.h"
18 |
19 | uint32_t ble_l2cap_cid_register_req_enc(uint16_t cid,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 | uint32_t err_code = NRF_SUCCESS;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + 3, *p_buf_len);
30 |
31 | p_buf[index++] = SD_BLE_L2CAP_CID_REGISTER;
32 | err_code = uint16_t_enc(&cid, p_buf, *p_buf_len, &index);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | *p_buf_len = index;
36 |
37 | return err_code;
38 | }
39 |
40 | uint32_t ble_l2cap_cid_register_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_L2CAP_CID_REGISTER, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/ble_l2cap_cid_unregister.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_app.h"
14 | #include
15 | #include "ble_serialization.h"
16 | #include "ble_gap.h"
17 | #include "app_util.h"
18 |
19 | uint32_t ble_l2cap_cid_unregister_req_enc(uint16_t cid,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 | uint32_t err_code = NRF_SUCCESS;
25 |
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + 3, *p_buf_len);
30 |
31 | p_buf[index++] = SD_BLE_L2CAP_CID_UNREGISTER;
32 | err_code = uint16_t_enc(&cid, p_buf, *p_buf_len, &index);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | *p_buf_len = index;
36 |
37 | return err_code;
38 | }
39 |
40 | uint32_t ble_l2cap_cid_unregister_rsp_dec(uint8_t const * const p_buf,
41 | uint32_t packet_len,
42 | uint32_t * const p_result_code)
43 | {
44 | return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_L2CAP_CID_UNREGISTER, p_result_code);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/codecs/s130/serializers/power_system_off.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
3 | *
4 | * The information contained herein is property of Nordic Semiconductor ASA.
5 | * Terms and conditions of usage are described in detail in NORDIC
6 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
7 | *
8 | * Licensees are granted free, non-transferable use of the information. NO
9 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
10 | * the file.
11 | */
12 |
13 | #include "nrf_soc_app.h"
14 | #include "ble_serialization.h"
15 | #include "nrf_soc.h"
16 |
17 |
18 | uint32_t power_system_off_req_enc(uint8_t * const p_buf, uint32_t * const p_buf_len)
19 | {
20 | uint32_t index = 0;
21 |
22 | SER_ASSERT_NOT_NULL(p_buf);
23 | SER_ASSERT_NOT_NULL(p_buf_len);
24 |
25 | SER_ASSERT_LENGTH_LEQ(1, *p_buf_len);
26 |
27 | p_buf[index++] = SD_POWER_SYSTEM_OFF;
28 |
29 | *p_buf_len = index;
30 |
31 | return NRF_SUCCESS;
32 | }
33 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/hal/ser_app_power_system_off.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "nrf.h"
14 | #include "ser_app_power_system_off.h"
15 |
16 | static bool m_power_system_off = false;
17 |
18 |
19 | void ser_app_power_system_off_set(void)
20 | {
21 | m_power_system_off = true;
22 | }
23 |
24 | bool ser_app_power_system_off_get(void)
25 | {
26 | return m_power_system_off;
27 | }
28 |
29 | void ser_app_power_system_off_enter(void)
30 | {
31 | NRF_POWER->SYSTEMOFF = POWER_SYSTEMOFF_SYSTEMOFF_Enter;
32 |
33 | /*Only for debugging purpose, will not be reached without connected debugger*/
34 | while(1);
35 | }
36 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/hal/ser_app_power_system_off.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef APP_POWER_SYSTEM_OFF_H
14 | #define APP_POWER_SYSTEM_OFF_H
15 |
16 | #include
17 |
18 | void ser_app_power_system_off_set(void);
19 |
20 | bool ser_app_power_system_off_get(void);
21 |
22 | void ser_app_power_system_off_enter(void);
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/application/transport/ser_softdevice_handler.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**
14 | * @addtogroup ser_app Application side code
15 | * @ingroup ble_sdk_lib_serialization
16 | */
17 |
18 | /** @file
19 | *
20 | * @defgroup ser_softdevice_handler Serialization SoftDevice Handler
21 | * @{
22 | * @ingroup ser_app
23 | *
24 | * @brief Serialization SoftDevice Handler on application side.
25 | *
26 | */
27 | #ifndef SER_SOFTDEVICE_HANDLER_H_
28 | #define SER_SOFTDEVICE_HANDLER_H_
29 |
30 | #include
31 | #include
32 |
33 |
34 | /**@brief Function for checking if there is any more events in the internal mailbox.
35 | *
36 | * @param[in] p_mailbox_length Pointer to mailbox length.
37 | *
38 | * @retval ::NRF_SUCCESS Length succesfully obtained.
39 | * @retval ::NRF_ERROR_NULL Null pointer provided.
40 | */
41 | uint32_t sd_ble_evt_mailbox_length_get(uint32_t * p_mailbox_length);
42 |
43 | #endif /* SER_SOFTDEVICE_HANDLER_H_ */
44 | /** @} */
45 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/common/struct_ser/s130/nrf_soc_struct_serialization.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "nrf_soc.h"
14 |
15 | uint32_t nrf_ecb_hal_data_t_in_enc(void const * const p_data,
16 | uint8_t * const p_buf,
17 | uint32_t buf_len,
18 | uint32_t * const p_index);
19 |
20 | uint32_t nrf_ecb_hal_data_t_in_dec(uint8_t const * const p_buf,
21 | uint32_t buf_len,
22 | uint32_t * const p_index,
23 | void * const p_data);
24 |
25 | uint32_t nrf_ecb_hal_data_t_out_enc(void const * const p_data,
26 | uint8_t * const p_buf,
27 | uint32_t buf_len,
28 | uint32_t * const p_index);
29 |
30 | uint32_t nrf_ecb_hal_data_t_out_dec(uint8_t const * const p_buf,
31 | uint32_t buf_len,
32 | uint32_t * const p_index,
33 | void * const p_data);
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/common/transport/debug/debug_hci_config_nrf6310.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef DEBUG_HCI_CONFIG_NRF6310_H__
14 | #define DEBUG_HCI_CONFIG_NRF6310_H__
15 |
16 | #include "boards.h"
17 |
18 | // define CONN_DGB to prevent CONN chip from being reseted while connected via DBG
19 | #define nCONN_DGB
20 |
21 | #define PIN_EVT_DBG
22 |
23 | #define LED_MEM_CALLBACK LED_3
24 | #define LED_RX_CALLBACK LED_4
25 | #define LED_TX_CALLBACK LED_5
26 | #define LED_DP_CALLBACK LED_6
27 | #define LED_TX_ERR_CALLBACK LED_7
28 |
29 | #define PIO_SLIP_EVT_PKT_TX 24
30 | #define PIO_SLIP_EVT_ACK_TX 25
31 | #define PIO_SLIP_EVT_PKT_TXED 28
32 | #define PIO_SLIP_EVT_ACK_TXED 29
33 | #define PIO_SLIP_EVT_PKT_RXED 0
34 | #define PIO_SLIP_EVT_ACK_RXED 1
35 | #define PIO_TIMER_EVT_TIMEOUT 2
36 | #define PIO_HCI_RETX 3
37 | #define PIO_MAIN_BUSY 4
38 | #define PIO_TX_REQ 5
39 |
40 | #define PIO_SLIP_EVT_ERR_RXED LED_2 // only pulses not change of state
41 |
42 |
43 | #endif //DEBUG_CONFIG_NRF6310_H__
44 |
45 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/common/transport/ser_phy/config/ser_config_5W_app.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef SER_CONFIG_5W_APP_H__
14 | #define SER_CONFIG_5W_APP_H__
15 |
16 | #endif /* SER_CONFIG_APP_H__ */
17 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/common/conn_mw.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef _CONN_MW_H
13 | #define _CONN_MW_H
14 |
15 | #include
16 |
17 | /**@brief Connectivity Middleware dispatcher function
18 | *
19 | * @details It will handle decode the opcode from RX buffer and based on the opcode it will search
20 | * for registered handler. Handler is called once it is found.
21 | *
22 | * @param[in] p_rx_buf Pointer to input buffer.
23 | * @param[in] rx_buf_len Size of p_rx_buf.
24 | * @param[out] p_tx_buf Pointer to output buffer.
25 | * @param[in,out] p_tx_buf_len \c in: size of \p p_tx_buf buffer.
26 | * \c out: Length of valid data in \p p_tx_buf.
27 | *
28 | * @retval NRF_SUCCESS Handler success.
29 | * @retval NRF_ERROR_NULL Handler failure. NULL pointer supplied.
30 | * @retval NRF_ERROR_INVALID_LENGTH Handler failure. Incorrect buffer length.
31 | * @retval NRF_ERROR_INVALID_PARAM Handler failure. Invalid operation type.
32 | * @retval NRF_ERROR_NOT_SUPPORTED Handler failure. Opcode not supported.
33 | */
34 | uint32_t conn_mw_handler (uint8_t const * const p_rx_buf,
35 | uint32_t rx_buf_len,
36 | uint8_t * const p_tx_buf,
37 | uint32_t * const p_tx_buf_len);
38 | #endif //_CONN_MW_H
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/middleware/conn_mw.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 | #ifndef _CONN_MW_H
13 | #define _CONN_MW_H
14 |
15 | #include
16 |
17 | /**@brief Connectivity Middleware dispatcher function
18 | *
19 | * @details It will handle decode the opcode from RX buffer and based on the opcode it will search
20 | * for registered handler. Handler is called once it is found.
21 | *
22 | * @param[in] p_rx_buf Pointer to input buffer.
23 | * @param[in] rx_buf_len Size of p_rx_buf.
24 | * @param[out] p_tx_buf Pointer to output buffer.
25 | * @param[in,out] p_tx_buf_len \c in: size of \p p_tx_buf buffer.
26 | * \c out: Length of valid data in \p p_tx_buf.
27 | *
28 | * @retval NRF_SUCCESS Handler success.
29 | * @retval NRF_ERROR_NULL Handler failure. NULL pointer supplied.
30 | * @retval NRF_ERROR_INVALID_LENGTH Handler failure. Incorrect buffer length.
31 | * @retval NRF_ERROR_INVALID_PARAM Handler failure. Invalid operation type.
32 | * @retval NRF_ERROR_NOT_SUPPORTED Handler failure. Opcode not supported.
33 | */
34 | uint32_t conn_mw_handler (uint8_t const * const p_rx_buf,
35 | uint32_t rx_buf_len,
36 | uint8_t * const p_tx_buf,
37 | uint32_t * const p_tx_buf_len);
38 | #endif //_CONN_MW_H
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_enable.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include
14 | #include "ble_conn.h"
15 | #include "ble_serialization.h"
16 | #include "cond_field_serialization.h"
17 | #include "ble_struct_serialization.h"
18 | #include "app_util.h"
19 |
20 |
21 | uint32_t ble_enable_req_dec(uint8_t const * const p_buf,
22 | uint32_t packet_len,
23 | ble_enable_params_t * * const pp_ble_enable_params)
24 | {
25 | uint32_t index = SER_CMD_DATA_POS;
26 | uint32_t err_code;
27 |
28 | SER_ASSERT_NOT_NULL(p_buf);
29 | SER_ASSERT_NOT_NULL(pp_ble_enable_params);
30 | SER_ASSERT_NOT_NULL(*pp_ble_enable_params);
31 | err_code = cond_field_dec(p_buf, packet_len, &index, (void * *)pp_ble_enable_params, ble_enable_params_t_dec);
32 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
33 | SER_ASSERT_LENGTH_EQ(index, packet_len);
34 |
35 | return err_code;
36 | }
37 |
38 |
39 | uint32_t ble_enable_rsp_enc(uint32_t return_code,
40 | uint8_t * const p_buf,
41 | uint32_t * const p_buf_len)
42 | {
43 | uint32_t index = 0;
44 |
45 | return op_status_enc(SD_BLE_ENABLE, return_code, p_buf, p_buf_len, &index);
46 | }
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_evt_tx_complete.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble.h"
14 | #include
15 | #include "ble_serialization.h"
16 | #include "app_util.h"
17 |
18 |
19 | uint32_t ble_evt_tx_complete_enc(ble_evt_t const * const p_event,
20 | uint32_t event_len,
21 | uint8_t * const p_buf,
22 | uint32_t * const p_buf_len)
23 | {
24 | uint32_t index = 0;
25 |
26 | SER_ASSERT_NOT_NULL(p_event);
27 | SER_ASSERT_NOT_NULL(p_buf);
28 | SER_ASSERT_NOT_NULL(p_buf_len);
29 |
30 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 1, *p_buf_len);
31 | index += uint16_encode(BLE_EVT_TX_COMPLETE, &(p_buf[index]));
32 | index += uint16_encode(p_event->evt.common_evt.conn_handle, &(p_buf[index]));
33 | p_buf[index++] = p_event->evt.common_evt.params.tx_complete.count;
34 |
35 | *p_buf_len = index;
36 |
37 | return NRF_SUCCESS;
38 | }
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_evt_user_mem_request.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_evt_conn.h"
14 | #include
15 | #include "ble_serialization.h"
16 | #include "app_util.h"
17 |
18 |
19 | uint32_t ble_evt_user_mem_request_enc(ble_evt_t const * const p_event,
20 | uint32_t event_len,
21 | uint8_t * const p_buf,
22 | uint32_t * const p_buf_len)
23 | {
24 | SER_ASSERT_NOT_NULL(p_event);
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_buf_len);
27 |
28 | uint32_t index = 0;
29 | uint32_t total_len = *p_buf_len;
30 | uint32_t err_code = NRF_SUCCESS;
31 |
32 | const uint16_t evt_header = BLE_EVT_USER_MEM_REQUEST;
33 |
34 | err_code = uint16_t_enc((void *)&evt_header, p_buf, total_len, &index);
35 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
36 |
37 | err_code = uint16_t_enc((void *)&p_event->evt.gap_evt.conn_handle, p_buf, total_len, &index);
38 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
39 |
40 | err_code = uint8_t_enc((void *)&(p_event->evt.common_evt.params.user_mem_request.type), p_buf, *p_buf_len, &index);
41 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
42 |
43 | *p_buf_len = index;
44 |
45 | return NRF_SUCCESS;
46 | }
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_adv_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_adv_stop_rsp_enc(uint32_t return_code,
19 | uint8_t * const p_buf,
20 | uint32_t * const p_buf_len)
21 | {
22 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_ADV_STOP, return_code, p_buf, p_buf_len);
23 | }
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_appearance_set.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "nrf_error.h"
16 |
17 |
18 | uint32_t ble_gap_appearance_set_req_dec(uint8_t const * const p_buf,
19 | uint32_t buf_len,
20 | uint16_t * const p_appearance)
21 | {
22 | uint32_t index = 0;
23 |
24 | SER_ASSERT_NOT_NULL(p_appearance);
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_LENGTH_EQ(3, buf_len);
27 | SER_ASSERT(p_buf[index++] == SD_BLE_GAP_APPEARANCE_SET, NRF_ERROR_INVALID_PARAM);
28 |
29 | uint32_t err_code = uint16_t_dec(p_buf, buf_len, &index, p_appearance);
30 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
31 |
32 | return NRF_SUCCESS;
33 | }
34 |
35 |
36 | uint32_t ble_gap_appearance_set_rsp_enc(uint32_t return_code,
37 | uint8_t * const p_buf,
38 | uint32_t * const p_buf_len)
39 | {
40 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_APPEARANCE_SET, return_code,
41 | p_buf, p_buf_len);
42 | }
43 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_connect_cancel.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "cond_field_serialization.h"
16 | #include "ble_gap_struct_serialization.h"
17 | #include "app_util.h"
18 |
19 |
20 | uint32_t ble_gap_connect_cancel_rsp_enc(uint32_t return_code,
21 | uint8_t * const p_buf,
22 | uint32_t * const p_buf_len)
23 | {
24 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_CONNECT_CANCEL, return_code, p_buf, p_buf_len);
25 | }
26 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_evt_key_pressed.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble.h"
14 | #include "ble_gap_evt_conn.h"
15 | #include
16 | #include "ble_serialization.h"
17 | #include "ble_gap_struct_serialization.h"
18 | #include "app_util.h"
19 |
20 | uint32_t ble_gap_evt_key_pressed_enc(ble_evt_t const * const p_event,
21 | uint32_t event_len,
22 | uint8_t * const p_buf,
23 | uint32_t * const p_buf_len)
24 | {
25 | SER_ASSERT_NOT_NULL(p_event);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | uint32_t index = 0;
30 | uint32_t total_len = *p_buf_len;
31 | uint32_t err_code = NRF_SUCCESS;
32 | uint16_t evt_header = BLE_GAP_EVT_KEY_PRESSED;
33 |
34 | err_code = uint16_t_enc((void *)&evt_header, p_buf, total_len, &index);
35 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
36 |
37 | err_code = uint16_t_enc((void *)&p_event->evt.gap_evt.conn_handle, p_buf, total_len, &index);
38 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
39 |
40 | err_code = uint8_t_enc((void *)&p_event->evt.gap_evt.params.key_pressed.kp_not, p_buf, total_len, &index);
41 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
42 |
43 | *p_buf_len = index;
44 |
45 | return err_code;
46 | }
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_evt_rssi_changed.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 | #include "ble_gap_evt_conn.h"
17 |
18 |
19 | uint32_t ble_gap_evt_rssi_changed_enc(ble_evt_t const * const p_event,
20 | uint32_t event_len,
21 | uint8_t * const p_buf,
22 | uint32_t * const p_buf_len)
23 | {
24 | uint32_t index = 0;
25 |
26 | SER_ASSERT_NOT_NULL(p_event);
27 | SER_ASSERT_NOT_NULL(p_buf);
28 | SER_ASSERT_NOT_NULL(p_buf_len);
29 |
30 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 1, *p_buf_len);
31 | index += uint16_encode(BLE_GAP_EVT_RSSI_CHANGED, &(p_buf[index]));
32 | index += uint16_encode(p_event->evt.gap_evt.conn_handle, &(p_buf[index]));
33 | p_buf[index++] = p_event->evt.gap_evt.params.rssi_changed.rssi;
34 |
35 | *p_buf_len = index;
36 |
37 | return NRF_SUCCESS;
38 | }
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_evt_timeout.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 | #include "ble_gap_evt_conn.h"
17 |
18 |
19 | uint32_t ble_gap_evt_timeout_enc(ble_evt_t const * const p_event,
20 | uint32_t event_len,
21 | uint8_t * const p_buf,
22 | uint32_t * const p_buf_len)
23 | {
24 | uint32_t index = 0;
25 |
26 | SER_ASSERT_NOT_NULL(p_event);
27 | SER_ASSERT_NOT_NULL(p_buf);
28 | SER_ASSERT_NOT_NULL(p_buf_len);
29 |
30 | SER_ASSERT_LENGTH_LEQ(SER_EVT_HEADER_SIZE + 3, *p_buf_len);
31 | index += uint16_encode(BLE_GAP_EVT_TIMEOUT, &(p_buf[index]));
32 | index += uint16_encode(p_event->evt.gap_evt.conn_handle, &(p_buf[index]));
33 | p_buf[index++] = p_event->evt.gap_evt.params.timeout.src;
34 |
35 | *p_buf_len = index;
36 |
37 | return NRF_SUCCESS;
38 | }
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_rssi_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t ble_gap_rssi_stop_req_dec(uint8_t const * const p_buf,
17 | uint32_t buf_len,
18 | uint16_t * p_conn_handle)
19 | {
20 | SER_ASSERT_NOT_NULL(p_buf);
21 | SER_ASSERT_NOT_NULL(p_conn_handle);
22 |
23 | uint32_t err_code = NRF_SUCCESS;
24 | uint32_t index = SER_CMD_DATA_POS;
25 |
26 | err_code = uint16_t_dec(p_buf, buf_len, &index, p_conn_handle);
27 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
28 |
29 | SER_ASSERT_LENGTH_EQ(index, buf_len);
30 |
31 | return NRF_SUCCESS;
32 | }
33 |
34 | uint32_t ble_gap_rssi_stop_rsp_enc(uint32_t return_code,
35 | uint8_t * const p_buf,
36 | uint32_t * const p_buf_len)
37 | {
38 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_RSSI_STOP, return_code, p_buf, p_buf_len);
39 | }
40 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_scan_start.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "ble_gap_struct_serialization.h"
16 | #include "cond_field_serialization.h"
17 | #include "app_util.h"
18 |
19 |
20 | uint32_t ble_gap_scan_start_req_dec(uint8_t const * const p_buf,
21 | uint32_t packet_len,
22 | ble_gap_scan_params_t * * const pp_scan_params)
23 | {
24 | uint32_t index = SER_CMD_DATA_POS;
25 | uint32_t err_code = NRF_SUCCESS;
26 |
27 | SER_ASSERT_NOT_NULL(p_buf);
28 | SER_ASSERT_NOT_NULL(pp_scan_params);
29 | SER_ASSERT_NOT_NULL(*pp_scan_params);
30 |
31 | err_code = cond_field_dec(p_buf, packet_len, &index, (void * *)pp_scan_params, ble_gap_scan_params_t_dec);
32 |
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 | SER_ASSERT_LENGTH_EQ(index, packet_len);
35 |
36 | return err_code;
37 | }
38 |
39 | uint32_t ble_gap_scan_start_rsp_enc(uint32_t return_code,
40 | uint8_t * const p_buf,
41 | uint32_t * const p_buf_len)
42 | {
43 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_SCAN_START, return_code, p_buf, p_buf_len);
44 | }
45 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_scan_stop.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gap_scan_stop_rsp_enc(uint32_t return_code,
19 | uint8_t * const p_buf,
20 | uint32_t * const p_buf_len)
21 | {
22 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_SCAN_STOP, return_code, p_buf, p_buf_len);
23 | }
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gap_tx_power_set.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gap_conn.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t ble_gap_tx_power_set_req_dec(uint8_t const * const p_buf,
17 | uint32_t packet_len,
18 | int8_t * p_tx_power)
19 | {
20 | SER_ASSERT_NOT_NULL(p_buf);
21 | SER_ASSERT_NOT_NULL(p_tx_power);
22 |
23 | uint32_t err_code = NRF_SUCCESS;
24 | uint32_t index = SER_CMD_DATA_POS;
25 |
26 | err_code = uint8_t_dec(p_buf, packet_len, &index, p_tx_power);
27 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
28 |
29 | SER_ASSERT_LENGTH_EQ(index, packet_len);
30 |
31 | return NRF_SUCCESS;
32 | }
33 |
34 | uint32_t ble_gap_tx_power_set_rsp_enc(uint32_t return_code,
35 | uint8_t * const p_buf,
36 | uint32_t * const p_buf_len)
37 | {
38 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GAP_TX_POWER_SET, return_code, p_buf, p_buf_len);
39 | }
40 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gattc_evt_timeout.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gattc_evt_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gattc_evt_timeout_enc(ble_evt_t const * const p_event,
19 | uint32_t event_len,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_event);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 1, *p_buf_len);
30 | index += uint16_encode(BLE_GATTC_EVT_TIMEOUT, &(p_buf[index]));
31 | index += uint16_encode(p_event->evt.gattc_evt.conn_handle, &(p_buf[index]));
32 | p_buf[index++] = p_event->evt.gattc_evt.params.timeout.src;
33 |
34 | *p_buf_len = index;
35 |
36 | return NRF_SUCCESS;
37 | }
38 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gattc_hv_confirm.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gattc_conn.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t ble_gattc_hv_confirm_req_dec(uint8_t const * const p_buf,
17 | uint32_t packet_len,
18 | uint16_t * const p_conn_handle,
19 | uint16_t * const p_handle)
20 | {
21 | SER_ASSERT_NOT_NULL(p_buf);
22 | SER_ASSERT_NOT_NULL(p_conn_handle);
23 | SER_ASSERT_NOT_NULL(p_handle);
24 |
25 | uint32_t err_code = NRF_SUCCESS;
26 | uint32_t index = SER_CMD_DATA_POS;
27 |
28 | err_code = uint16_t_dec(p_buf, packet_len, &index, p_conn_handle);
29 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
30 |
31 | err_code = uint16_t_dec(p_buf, packet_len, &index, p_handle);
32 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
33 |
34 | SER_ASSERT_LENGTH_EQ(index, packet_len);
35 |
36 | return err_code;
37 | }
38 |
39 | uint32_t ble_gattc_hv_confirm_rsp_enc(uint32_t return_code,
40 | uint8_t * const p_buf,
41 | uint32_t * const p_buf_len)
42 | {
43 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_GATTC_HV_CONFIRM,
44 | return_code, p_buf, p_buf_len);
45 | }
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gatts_evt_hvc.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_hvc_enc(ble_evt_t const * const p_event,
19 | uint32_t event_len,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_event);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 2, *p_buf_len);
30 |
31 | index += uint16_encode(BLE_GATTS_EVT_HVC, &(p_buf[index]));
32 | index += uint16_encode(p_event->evt.gatts_evt.conn_handle, &(p_buf[index]));
33 | index += uint16_encode(p_event->evt.gatts_evt.params.hvc.handle, &(p_buf[index]));
34 |
35 | *p_buf_len = index;
36 |
37 | return NRF_SUCCESS;
38 | }
39 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gatts_evt_sc_confirm.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_sc_confirm_enc(ble_evt_t const * const p_event,
19 | uint32_t event_len,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | SER_ASSERT_NOT_NULL(p_event);
24 | SER_ASSERT_NOT_NULL(p_buf);
25 | SER_ASSERT_NOT_NULL(p_buf_len);
26 |
27 | SER_ASSERT_LENGTH_LEQ(SER_EVT_HEADER_SIZE + 2, *p_buf_len);
28 |
29 | uint32_t index = 0;
30 | index += uint16_encode(BLE_GATTS_EVT_SC_CONFIRM, &(p_buf[index]));
31 | index += uint16_encode(p_event->evt.gatts_evt.conn_handle, &(p_buf[index]));
32 |
33 |
34 | *p_buf_len = index;
35 |
36 | return NRF_SUCCESS;
37 | }
38 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gatts_evt_sys_attr_missing.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_sys_attr_missing_enc(ble_evt_t const * const p_event,
19 | uint32_t event_len,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_event);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 1, *p_buf_len);
30 | index += uint16_encode(BLE_GATTS_EVT_SYS_ATTR_MISSING, &(p_buf[index]));
31 | index += uint16_encode(p_event->evt.gatts_evt.conn_handle, &(p_buf[index]));
32 | p_buf[index++] = p_event->evt.gatts_evt.params.sys_attr_missing.hint;
33 |
34 | *p_buf_len = index;
35 |
36 | return NRF_SUCCESS;
37 | }
38 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_gatts_evt_timeout.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_gatts_evt_conn.h"
14 | #include "ble_serialization.h"
15 | #include "app_util.h"
16 |
17 |
18 | uint32_t ble_gatts_evt_timeout_enc(ble_evt_t const * const p_event,
19 | uint32_t event_len,
20 | uint8_t * const p_buf,
21 | uint32_t * const p_buf_len)
22 | {
23 | uint32_t index = 0;
24 |
25 | SER_ASSERT_NOT_NULL(p_event);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_NOT_NULL(p_buf_len);
28 |
29 | SER_ASSERT_LENGTH_LEQ(index + SER_EVT_HEADER_SIZE + 2 + 1, *p_buf_len);
30 | index += uint16_encode(BLE_GATTS_EVT_TIMEOUT, &(p_buf[index]));
31 | index += uint16_encode(p_event->evt.gatts_evt.conn_handle, &(p_buf[index]));
32 | p_buf[index++] = p_event->evt.gatts_evt.params.timeout.src;
33 |
34 | *p_buf_len = index;
35 |
36 | return NRF_SUCCESS;
37 | }
38 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_l2cap_cid_register.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_l2cap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "nrf_error.h"
16 |
17 |
18 | uint32_t ble_l2cap_cid_register_req_dec(uint8_t const * const p_buf,
19 | uint32_t buf_len,
20 | uint16_t * p_cid)
21 | {
22 | uint32_t index = 0;
23 | uint32_t err_code = NRF_SUCCESS;
24 |
25 | SER_ASSERT_NOT_NULL(p_cid);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_LENGTH_EQ(3, buf_len);
28 | SER_ASSERT(p_buf[index] == SD_BLE_L2CAP_CID_REGISTER, NRF_ERROR_INVALID_PARAM);
29 |
30 | index++;
31 | err_code = uint16_t_dec(p_buf, buf_len, &index, p_cid);
32 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
33 |
34 | SER_ASSERT_LENGTH_EQ(index, buf_len);
35 |
36 | return err_code;
37 | }
38 |
39 |
40 | uint32_t ble_l2cap_cid_register_rsp_enc(uint32_t return_code,
41 | uint8_t * const p_buf,
42 | uint32_t * const p_buf_len)
43 | {
44 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_L2CAP_CID_REGISTER, return_code,
45 | p_buf, p_buf_len);
46 | }
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_l2cap_cid_unregister.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_l2cap_conn.h"
14 | #include "ble_serialization.h"
15 | #include "nrf_error.h"
16 |
17 |
18 | uint32_t ble_l2cap_cid_unregister_req_dec(uint8_t const * const p_buf,
19 | uint32_t buf_len,
20 | uint16_t * p_cid)
21 | {
22 | uint32_t index = 0;
23 | uint32_t err_code = NRF_SUCCESS;
24 |
25 | SER_ASSERT_NOT_NULL(p_cid);
26 | SER_ASSERT_NOT_NULL(p_buf);
27 | SER_ASSERT_LENGTH_EQ(3, buf_len);
28 | SER_ASSERT(p_buf[index] == SD_BLE_L2CAP_CID_UNREGISTER, NRF_ERROR_INVALID_PARAM);
29 |
30 | index++;
31 | err_code = uint16_t_dec(p_buf, buf_len, &index, p_cid);
32 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
33 |
34 | SER_ASSERT_LENGTH_EQ(index, buf_len);
35 |
36 | return err_code;
37 | }
38 |
39 |
40 | uint32_t ble_l2cap_cid_unregister_rsp_enc(uint32_t return_code,
41 | uint8_t * const p_buf,
42 | uint32_t * const p_buf_len)
43 | {
44 | return ser_ble_cmd_rsp_status_code_enc(SD_BLE_L2CAP_CID_UNREGISTER, return_code,
45 | p_buf, p_buf_len);
46 | }
47 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/ble_opt_id_pre_decoder.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "ble_conn.h"
14 | #include
15 | #include "ble_serialization.h"
16 | #include "app_util.h"
17 |
18 | uint32_t ble_opt_id_pre_dec(uint8_t const * const p_buf,
19 | uint16_t packet_len,
20 | uint32_t * const p_opt_id)
21 | {
22 | uint32_t index = 0;
23 | uint32_t err_code;
24 |
25 | SER_ASSERT_NOT_NULL(p_buf);
26 | SER_ASSERT_NOT_NULL(p_opt_id);
27 | SER_ASSERT_LENGTH_LEQ(SER_CMD_HEADER_SIZE + 4, packet_len);
28 |
29 | SER_ASSERT(p_buf[index] == SD_BLE_OPT_SET, NRF_ERROR_INVALID_PARAM);
30 | index++;
31 |
32 | err_code = uint32_t_dec(p_buf, packet_len, &index, p_opt_id);
33 | SER_ASSERT(err_code == NRF_SUCCESS, err_code);
34 |
35 | return NRF_SUCCESS;
36 | }
37 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/codecs/s130/serializers/power_system_off.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
3 | *
4 | * The information contained herein is property of Nordic Semiconductor ASA.
5 | * Terms and conditions of usage are described in detail in NORDIC
6 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
7 | *
8 | * Licensees are granted free, non-transferable use of the information. NO
9 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
10 | * the file.
11 | */
12 |
13 | #include "nrf_soc_conn.h"
14 | #include "ble_serialization.h"
15 |
16 | uint32_t power_system_off_req_dec(uint8_t const * const p_buf,
17 | uint16_t packet_len)
18 | {
19 | SER_ASSERT_NOT_NULL(p_buf);
20 |
21 | uint32_t index = 0;
22 | SER_ASSERT_LENGTH_LEQ(1, packet_len);
23 | SER_ASSERT(p_buf[index] == SD_POWER_SYSTEM_OFF, NRF_ERROR_INVALID_PARAM);
24 | index++;
25 |
26 | SER_ASSERT_LENGTH_EQ(index, packet_len);
27 | return NRF_SUCCESS;
28 | }
29 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/hal/dtm_uart.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef DTM_UART_H__
14 | #define DTM_UART_H__
15 |
16 | #include
17 | #include "dtm_uart_params.h"
18 |
19 | #define UART_PIN_DISCONNECTED 0xFFFFFFFF /**< Value indicating that no pin is connected to this UART register. */
20 |
21 | uint32_t dtm_start(app_uart_stream_comm_params_t uart_comm_params);
22 |
23 | #endif // DTM_UART_H__
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/ser_conn_event_encoder.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**
14 | * @addtogroup ser_conn Connectivity application code
15 | * @ingroup ble_sdk_lib_serialization
16 | */
17 |
18 | /** @file
19 | *
20 | * @defgroup ser_event_encoder Events encoder in the connectivity chip
21 | * @{
22 | * @ingroup ser_conn
23 | *
24 | * @brief Events encoder for BLE SoftDevice.
25 | *
26 | * @details This file contains declaration of common function used for serializing BLE SoftDevice
27 | * events.
28 | *
29 | */
30 | #ifndef SER_CONN_EVENT_ENCODER_H__
31 | #define SER_CONN_EVENT_ENCODER_H__
32 |
33 | #include
34 |
35 | /**@brief A function for encoding a @ref ble_evt_t. The function passes the serialized byte stream
36 | * to the transport layer after encoding.
37 | *
38 | * @details The function is called by the application scheduler to process an event previously
39 | * pulled from BLE SoftDevice.
40 | * The function creates a new packet, calls an appropriate event encoder and sends the
41 | * packet to an Application Chip.
42 | *
43 | * @param[in] p_event_data Pointer to event data of type @ref ble_evt_t.
44 | * @param[in] event_size Event data size.
45 | */
46 | void ser_conn_ble_event_encoder(void * p_event_data, uint16_t event_size);
47 |
48 | #endif /* SER_CONN_EVENT_ENCODER_H__ */
49 |
50 | /** @} */
51 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/ser_conn_reset_cmd_decoder.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "nrf_nvic.h"
14 | #include "ser_conn_reset_cmd_decoder.h"
15 |
16 | void ser_conn_reset_command_process()
17 | {
18 | (void)sd_nvic_SystemReset();
19 | while(1);
20 | }
21 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/serialization/connectivity/ser_conn_reset_cmd_decoder.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | /**
14 | * @addtogroup ser_conn Connectivity application code
15 | * @ingroup ble_sdk_lib_serialization
16 | */
17 |
18 | /** @file
19 | *
20 | * @defgroup ser_reset_cmd_decoder Reset Command Decoder in the connectivity chip
21 | * @{
22 | * @ingroup ser_conn
23 | *
24 | * @brief Decoder for serialized reset command from an Application Chip.
25 | *
26 | * @details This file contains declaration of common function used for reset command decoding and
27 | * sending responses back to an Application Chip after a command is processed.
28 | */
29 |
30 | #ifndef SER_CONN_RESET_CMD_DECODER_H__
31 | #define SER_CONN_RESET_CMD_DECODER_H__
32 |
33 | #include
34 |
35 | /**@brief A function for processing the encoded reset commands from an Application Chip.
36 | *
37 | * @details The function decodes encoded system reset command and performs software reset.
38 | * This command does not send back the Command Response packet to an Application Chip.
39 | */
40 | void ser_conn_reset_command_process(void);
41 |
42 | #endif /* SER_CONN_RESET_CMD_DECODER_H__ */
43 |
44 | /** @} */
45 |
46 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/common/softdevice_handler/softdevice_handler_appsh.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #include "softdevice_handler_appsh.h"
14 | #include "app_scheduler.h"
15 | #include
16 |
17 | void softdevice_evt_get(void * p_event_data, uint16_t event_size)
18 | {
19 | APP_ERROR_CHECK_BOOL(event_size == 0);
20 | intern_softdevice_events_execute();
21 | }
22 |
23 | uint32_t softdevice_evt_schedule(void)
24 | {
25 | return app_sched_event_put(NULL, 0, softdevice_evt_get);
26 | }
27 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/common/softdevice_handler/softdevice_handler_appsh.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef SOFTDEVICE_HANDLER_APPSH_H
14 | #define SOFTDEVICE_HANDLER_APPSH_H
15 |
16 | #include "softdevice_handler.h"
17 | #include
18 |
19 | #define SOFTDEVICE_HANDLER_APPSH_INIT(CLOCK_SOURCE,USE_SCHEDULER) \
20 | SOFTDEVICE_HANDLER_INIT(CLOCK_SOURCE,(USE_SCHEDULER) ? softdevice_evt_schedule : NULL)
21 |
22 | uint32_t softdevice_evt_schedule(void);
23 |
24 | #endif //SOFTDEVICE_HANDLER_APPSH_H
25 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51822_2.0.0_licence_agreement.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51822_2.0.0_licence_agreement.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51822_2.0.0_readme.txt:
--------------------------------------------------------------------------------
1 | s130_nrf51_2.0.0
2 |
3 | This release consists of the following:
4 | - This readme file
5 | - The s130_nrf51_2.0.0 API (SoftDevice header files)
6 | - The s130_nrf51_2.0.0 license agreement
7 | - The s130_nrf51_2.0.0 release notes
8 | - The s130_nrf51_2.0.0 SoftDevice (binary hex file)
9 | - The s13x_nrf5x_2.0.0 migration document
10 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51822_2.0.0_releasenotes.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51822_2.0.0_releasenotes.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51_2.0.0_licence_agreement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s130/doc/s130_nrf51_2.0.0_licence_agreement.txt
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/doc/s13x_nrf5x_2.0.0_migration_document.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s130/doc/s13x_nrf5x_2.0.0_migration_document.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/headers/nrf_sd_def.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_SD_DEF_H__
14 | #define NRF_SD_DEF_H__
15 |
16 | #include
17 |
18 | #define SD_PPI_CHANNELS_USED 0xFFF0C000uL /**< PPI channels utilized by SotfDevice (not available to the application). */
19 | #define SD_PPI_GROUPS_USED 0x0000000CuL /**< PPI groups utilized by SoftDevice (not available to the application). */
20 | #define SD_TIMERS_USED 0x00000001uL /**< Timers used by SoftDevice. */
21 | #define SD_SWI_USED 0x0000003CuL /**< Software interrupts used by SoftDevice */
22 |
23 | #endif /* NRF_SD_DEF_H__ */
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/armgcc/armgcc_s130_nrf51422_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/armgcc/armgcc_s130_nrf51422_xxac.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/armgcc/armgcc_s130_nrf51822_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/armgcc/armgcc_s130_nrf51822_xxab.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x5000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/iar/iar_s130_nrf51422_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x1b000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x1b000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x3ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003fff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/iar/iar_s130_nrf51422_xxac.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x1b000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x1b000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x3ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20007fff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/iar/iar_s130_nrf51822_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x1b000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x1b000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x3ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003fff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s130/toolchain/iar/iar_s130_nrf51822_xxab.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x1b000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x1b000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x1ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003fff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_licence_agreement.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_licence_agreement.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_licence_agreement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_licence_agreement.txt
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_readme.txt:
--------------------------------------------------------------------------------
1 | s132_nrf52_2.0.0
2 |
3 | This release consists of the following:
4 | - This readme file
5 | - The s132_nrf52_2.0.0 API (SoftDevice header files)
6 | - The s132_nrf52_2.0.0 license agreement
7 | - The s132_nrf52_2.0.0 release notes
8 | - The s132_nrf52_2.0.0 SoftDevice (binary hex file)
9 | - The s13x_nrf5x_2.0.0 migration document
10 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_releasenotes.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s132/doc/s132_nrf52_2.0.0_releasenotes.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/doc/s13x_nrf5x_2.0.0_migration_document.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Common/nRF_SDK/softdevice/s132/doc/s13x_nrf5x_2.0.0_migration_document.pdf
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/headers/nrf_sd_def.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_SD_DEF_H__
14 | #define NRF_SD_DEF_H__
15 |
16 | #include
17 |
18 | #define SD_PPI_CHANNELS_USED 0xFFF0C000uL /**< PPI channels utilized by SotfDevice (not available to the application). */
19 | #define SD_PPI_GROUPS_USED 0x0000000CuL /**< PPI groups utilized by SoftDevice (not available to the application). */
20 | #define SD_TIMERS_USED 0x00000001uL /**< Timers used by SoftDevice. */
21 | #define SD_SWI_USED 0x0000003CuL /**< Software interrupts used by SoftDevice */
22 |
23 | #endif /* NRF_SD_DEF_H__ */
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/toolchain/armgcc/armgcc_s132_nrf52832_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x64000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s132/toolchain/iar/iar_s132_nrf52832_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x1c000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x1c000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s212/headers/nrf_sd_def.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_SD_DEF_H__
14 | #define NRF_SD_DEF_H__
15 |
16 | #include
17 |
18 | #define SD_PPI_CHANNELS_USED 0xFFF0FF00uL /**< PPI channels utilized by SotfDevice (not available to th spplication). */
19 | #define SD_PPI_GROUPS_USED 0x0000000CuL /**< PPI groups utilized by SoftDevice (not available to the application). */
20 | #define SD_TIMERS_USED 0x00000001uL /**< Timers used by SoftDevice. */
21 | #define SD_SWI_USED 0x0000003CuL /**< Software interrupts used by SoftDevice */
22 |
23 | #endif /* NRF_SD_DEF_H__ */
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s212/toolchain/armgcc/armgcc_s212_nrf52832_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x12000, LENGTH = 0x6e000
9 | RAM (rwx) : ORIGIN = 0x20000a80, LENGTH = 0xf580
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s212/toolchain/iar/iar_s212_nrf52832_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x12000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x12000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000a80;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s332/headers/nrf_sd_def.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
2 | *
3 | * The information contained herein is property of Nordic Semiconductor ASA.
4 | * Terms and conditions of usage are described in detail in NORDIC
5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 | *
7 | * Licensees are granted free, non-transferable use of the information. NO
8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9 | * the file.
10 | *
11 | */
12 |
13 | #ifndef NRF_SD_DEF_H__
14 | #define NRF_SD_DEF_H__
15 |
16 | #include
17 |
18 | #define SD_PPI_CHANNELS_USED 0xFFF0C000uL /**< PPI channels utilized by SotfDevice (not available to th spplication). */
19 | #define SD_PPI_GROUPS_USED 0x0000000CuL /**< PPI groups utilized by SoftDevice (not available to the application). */
20 | #define SD_TIMERS_USED 0x00000001uL /**< Timers used by SoftDevice. */
21 | #define SD_SWI_USED 0x0000003CuL /**< Software interrupts used by SoftDevice */
22 |
23 | #endif /* NRF_SD_DEF_H__ */
24 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s332/toolchain/armgcc/armgcc_s332_nrf52832_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0x59000
9 | RAM (rwx) : ORIGIN = 0x20001780, LENGTH = 0xe880
10 | }
11 |
12 | SECTIONS
13 | {
14 | .fs_data :
15 | {
16 | PROVIDE(__start_fs_data = .);
17 | KEEP(*(.fs_data))
18 | PROVIDE(__stop_fs_data = .);
19 | } > RAM
20 | } INSERT AFTER .data;
21 |
22 | INCLUDE "nrf5x_common.ld"
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/softdevice/s332/toolchain/iar/iar_s332_nrf52832_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x27000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x27000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20001780;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
11 | export symbol __ICFEDIT_region_RAM_start__;
12 | export symbol __ICFEDIT_region_RAM_end__;
13 | /*-Sizes-*/
14 | define symbol __ICFEDIT_size_cstack__ = 0x800;
15 | define symbol __ICFEDIT_size_heap__ = 0x200;
16 | /**** End of ICF editor section. ###ICF###*/
17 |
18 | define memory mem with size = 4G;
19 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
20 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
21 |
22 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
23 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24 |
25 | initialize by copy { readwrite };
26 | do not initialize { section .noinit };
27 |
28 | keep { section .intvec };
29 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
30 | place in ROM_region { readonly };
31 | place in RAM_region { readwrite,
32 | block CSTACK,
33 | block HEAP };
34 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/Makefile.posix:
--------------------------------------------------------------------------------
1 | GNU_INSTALL_ROOT := /usr/local/gcc-arm-none-eabi-4_9-2015q1
2 | GNU_VERSION := 4.9.3
3 | GNU_PREFIX := arm-none-eabi
4 |
5 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/Makefile.windows:
--------------------------------------------------------------------------------
1 | ifeq ($(findstring 86, $(ProgramFiles)), )
2 | PROGFILES := C:/Program Files
3 | else
4 | PROGFILES := C:/Program Files (x86)
5 | endif
6 |
7 | GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.9 2015q1
8 | GNU_VERSION := 4.9.3
9 | GNU_PREFIX := arm-none-eabi
10 |
11 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/nrf51_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
10 | }
11 |
12 |
13 | INCLUDE "nrf51_common.ld"
14 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/nrf51_xxab.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x20000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
10 | }
11 |
12 |
13 | INCLUDE "nrf51_common.ld"
14 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/nrf51_xxac.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
10 | }
11 |
12 |
13 | INCLUDE "nrf51_common.ld"
14 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/gcc/nrf52_xxaa.ld:
--------------------------------------------------------------------------------
1 | /* Linker script to configure memory regions. */
2 |
3 | SEARCH_DIR(.)
4 | GROUP(-lgcc -lc -lnosys)
5 |
6 | MEMORY
7 | {
8 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000
9 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
10 | }
11 |
12 |
13 | INCLUDE "nrf52_common.ld"
14 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/iar/iar_nrf51_blank_xxaa.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x00000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x800;
13 | define symbol __ICFEDIT_size_heap__ = 0x800;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
18 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | keep { section .intvec };
27 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
28 | place in ROM_region { readonly };
29 | place in RAM_region { readwrite,
30 | block CSTACK,
31 | block HEAP };
32 |
--------------------------------------------------------------------------------
/Software/Common/nRF_SDK/toolchain/iar/iar_nrf51_blank_xxac.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x00000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
8 | define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x800;
13 | define symbol __ICFEDIT_size_heap__ = 0x800;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
18 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | keep { section .intvec };
27 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
28 | place in ROM_region { readonly };
29 | place in RAM_region { readwrite,
30 | block CSTACK,
31 | block HEAP };
32 |
--------------------------------------------------------------------------------
/Software/Project_STM32_HID/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * Auto generated Run-Time-Environment Component Configuration File
4 | * *** Do not modify ! ***
5 | *
6 | * Project: 'Project_STM32_HID'
7 | * Target: 'STM32F072 Flash'
8 | */
9 |
10 | #ifndef RTE_COMPONENTS_H
11 | #define RTE_COMPONENTS_H
12 |
13 |
14 | /*
15 | * Define the Device Header File:
16 | */
17 | #define CMSIS_device_header "stm32f0xx.h"
18 |
19 |
20 | #endif /* RTE_COMPONENTS_H */
21 |
--------------------------------------------------------------------------------
/Software/Project_STM32_HID/Sources/Device/stm32f072xb.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Project_STM32_HID/Sources/Device/stm32f072xb.h
--------------------------------------------------------------------------------
/Software/Project_STM32_HID/Sources/Device/stm32f0xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K-O-Carnivist/CMSIS-DAP-Wireless/f7d61adf668039883b7d4c7bc64a2881cd07d2c1/Software/Project_STM32_HID/Sources/Device/stm32f0xx.h
--------------------------------------------------------------------------------
/Software/Project_nRF_ESB_SPI/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * Auto generated Run-Time-Environment Component Configuration File
4 | * *** Do not modify ! ***
5 | *
6 | * Project: 'Project_nRF_ESB_SPI'
7 | * Target: 'nrf51422_xxac'
8 | */
9 |
10 | #ifndef RTE_COMPONENTS_H
11 | #define RTE_COMPONENTS_H
12 |
13 |
14 | /*
15 | * Define the Device Header File:
16 | */
17 | #define CMSIS_device_header "nrf.h"
18 |
19 |
20 | #endif /* RTE_COMPONENTS_H */
21 |
--------------------------------------------------------------------------------