You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/23 18:52:14 UTC
[51/70] [abbrv] [partial] incubator-mynewt-core git commit: Remove
non-Apache-compatible Nordic SDK files.
Remove non-Apache-compatible Nordic SDK files.
Portions of the Nordic SDK are now located at:
REPO:
repository.mynewt_nordic:
type: github
vers: 0-latest
user: runtimeinc
repo: mynewt_nordic
PACKAGE:
@mynewt_nordic/hw/mcu/nordic_sdk
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/a1481cb2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a1481cb2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a1481cb2
Branch: refs/heads/master
Commit: a1481cb22eaf37e325c3d23b3b1078a79d3985b6
Parents: 19e8e79
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Nov 21 19:15:12 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Nov 21 19:24:49 2016 -0800
----------------------------------------------------------------------
.../include/bsp/nrf_drv_config.h | 472 ----
hw/bsp/bmd300eval/include/bsp/nrf_drv_config.h | 471 ----
.../include/bsp/nrf_drv_config.h | 474 ----
.../nrf51-blenano/include/bsp/nrf_drv_config.h | 472 ----
.../include/bsp/nrf_drv_config.h | 474 ----
hw/bsp/nrf51dk/include/bsp/nrf_drv_config.h | 472 ----
hw/bsp/nrf52dk/include/bsp/nrf_drv_config.h | 471 ----
hw/bsp/rb-nano2/include/bsp/nrf_drv_config.h | 471 ----
hw/mcu/nordic/nrf51xxx/pkg.yml | 6 +-
hw/mcu/nordic/nrf52xxx/pkg.yml | 6 +-
.../components/drivers_nrf/adc/nrf_drv_adc.c | 253 ---
.../components/drivers_nrf/adc/nrf_drv_adc.h | 298 ---
.../drivers_nrf/ble_flash/ble_flash.c | 286 ---
.../drivers_nrf/ble_flash/ble_flash.h | 150 --
.../drivers_nrf/clock/nrf_drv_clock.c | 479 ----
.../drivers_nrf/clock/nrf_drv_clock.h | 254 ---
.../drivers_nrf/common/nrf_drv_common.c | 208 --
.../drivers_nrf/common/nrf_drv_common.h | 202 --
.../components/drivers_nrf/comp/nrf_drv_comp.c | 174 --
.../components/drivers_nrf/comp/nrf_drv_comp.h | 276 ---
.../drivers_nrf/config/nrf_drv_config.h | 472 ----
.../config/nrf_drv_config_validation.h | 91 -
.../components/drivers_nrf/delay/nrf_delay.c | 26 -
.../components/drivers_nrf/delay/nrf_delay.h | 250 ---
.../drivers_nrf/gpiote/nrf_drv_gpiote.c | 580 -----
.../drivers_nrf/gpiote/nrf_drv_gpiote.h | 317 ---
.../components/drivers_nrf/hal/nrf_adc.c | 78 -
.../components/drivers_nrf/hal/nrf_adc.h | 424 ----
.../components/drivers_nrf/hal/nrf_clock.h | 422 ----
.../components/drivers_nrf/hal/nrf_comp.h | 477 ----
.../components/drivers_nrf/hal/nrf_ecb.c | 74 -
.../components/drivers_nrf/hal/nrf_ecb.h | 74 -
.../components/drivers_nrf/hal/nrf_egu.h | 294 ---
.../components/drivers_nrf/hal/nrf_gpio.h | 655 ------
.../components/drivers_nrf/hal/nrf_gpiote.h | 399 ----
.../components/drivers_nrf/hal/nrf_i2s.h | 531 -----
.../components/drivers_nrf/hal/nrf_lpcomp.h | 375 ----
.../components/drivers_nrf/hal/nrf_nvmc.c | 117 -
.../components/drivers_nrf/hal/nrf_nvmc.h | 98 -
.../components/drivers_nrf/hal/nrf_pdm.h | 367 ----
.../components/drivers_nrf/hal/nrf_ppi.h | 410 ----
.../components/drivers_nrf/hal/nrf_pwm.h | 669 ------
.../components/drivers_nrf/hal/nrf_qdec.h | 476 ----
.../components/drivers_nrf/hal/nrf_rng.h | 219 --
.../components/drivers_nrf/hal/nrf_rtc.h | 312 ---
.../components/drivers_nrf/hal/nrf_saadc.c | 31 -
.../components/drivers_nrf/hal/nrf_saadc.h | 562 -----
.../components/drivers_nrf/hal/nrf_spi.h | 342 ---
.../components/drivers_nrf/hal/nrf_spim.h | 528 -----
.../components/drivers_nrf/hal/nrf_spis.h | 520 -----
.../components/drivers_nrf/hal/nrf_temp.h | 63 -
.../components/drivers_nrf/hal/nrf_timer.h | 584 -----
.../components/drivers_nrf/hal/nrf_twi.h | 410 ----
.../components/drivers_nrf/hal/nrf_twim.h | 486 -----
.../components/drivers_nrf/hal/nrf_twis.h | 684 ------
.../components/drivers_nrf/hal/nrf_uart.h | 479 ----
.../components/drivers_nrf/hal/nrf_uarte.h | 542 -----
.../components/drivers_nrf/hal/nrf_wdt.h | 307 ---
.../components/drivers_nrf/i2s/nrf_drv_i2s.c | 355 ---
.../components/drivers_nrf/i2s/nrf_drv_i2s.h | 227 --
.../drivers_nrf/lpcomp/nrf_drv_lpcomp.c | 151 --
.../drivers_nrf/lpcomp/nrf_drv_lpcomp.h | 115 -
.../drivers_nrf/nrf_soc_nosd/nrf_error.h | 56 -
.../drivers_nrf/nrf_soc_nosd/nrf_nvic.c | 96 -
.../drivers_nrf/nrf_soc_nosd/nrf_nvic.h | 138 --
.../drivers_nrf/nrf_soc_nosd/nrf_soc.c | 21 -
.../drivers_nrf/nrf_soc_nosd/nrf_soc.h | 52 -
.../components/drivers_nrf/pdm/nrf_drv_pdm.c | 170 --
.../components/drivers_nrf/pdm/nrf_drv_pdm.h | 175 --
.../components/drivers_nrf/ppi/nrf_drv_ppi.c | 427 ----
.../components/drivers_nrf/ppi/nrf_drv_ppi.h | 292 ---
.../pstorage/config/pstorage_platform.h | 80 -
.../components/drivers_nrf/pstorage/pstorage.c | 1572 -------------
.../components/drivers_nrf/pstorage/pstorage.h | 389 ----
.../drivers_nrf/pstorage/pstorage_nosd.c | 525 -----
.../drivers_nrf/pstorage/pstorage_raw.c | 471 ----
.../components/drivers_nrf/pwm/nrf_drv_pwm.c | 350 ---
.../components/drivers_nrf/pwm/nrf_drv_pwm.h | 434 ----
.../components/drivers_nrf/qdec/nrf_drv_qdec.c | 168 --
.../components/drivers_nrf/qdec/nrf_drv_qdec.h | 157 --
.../drivers_nrf/radio_config/radio_config.c | 160 --
.../drivers_nrf/radio_config/radio_config.h | 29 -
.../components/drivers_nrf/rng/nrf_drv_rng.c | 250 ---
.../components/drivers_nrf/rng/nrf_drv_rng.h | 123 --
.../components/drivers_nrf/rtc/nrf_drv_rtc.c | 290 ---
.../components/drivers_nrf/rtc/nrf_drv_rtc.h | 333 ---
.../drivers_nrf/saadc/nrf_drv_saadc.c | 509 -----
.../drivers_nrf/saadc/nrf_drv_saadc.h | 311 ---
.../drivers_nrf/sdio/config/sdio_config.h | 26 -
.../components/drivers_nrf/sdio/sdio.c | 217 --
.../components/drivers_nrf/sdio/sdio.h | 77 -
.../drivers_nrf/spi_master/nrf_drv_spi.c | 655 ------
.../drivers_nrf/spi_master/nrf_drv_spi.h | 376 ----
.../drivers_nrf/spi_master/spi_5W_master.c | 602 -----
.../drivers_nrf/spi_master/spi_5W_master.h | 178 --
.../drivers_nrf/spi_slave/nrf_drv_spis.c | 396 ----
.../drivers_nrf/spi_slave/nrf_drv_spis.h | 231 --
.../components/drivers_nrf/swi/nrf_drv_swi.c | 326 ---
.../components/drivers_nrf/swi/nrf_drv_swi.h | 175 --
.../drivers_nrf/timer/nrf_drv_timer.c | 280 ---
.../drivers_nrf/timer/nrf_drv_timer.h | 380 ----
.../deprecated/config/twi_master_config.h | 26 -
.../twi_master/deprecated/twi_hw_master.c | 304 ---
.../twi_master/deprecated/twi_master.h | 109 -
.../twi_master/deprecated/twi_sw_master.c | 492 -----
.../drivers_nrf/twi_master/nrf_drv_twi.c | 1014 ---------
.../drivers_nrf/twi_master/nrf_drv_twi.h | 415 ----
.../drivers_nrf/twis_slave/nrf_drv_twis.c | 881 --------
.../drivers_nrf/twis_slave/nrf_drv_twis.h | 406 ----
.../twis_slave/nrf_drv_twis_inst.def | 20 -
.../components/drivers_nrf/uart/nrf_drv_uart.c | 851 --------
.../components/drivers_nrf/uart/nrf_drv_uart.h | 301 ---
.../components/drivers_nrf/wdt/nrf_drv_wdt.c | 118 -
.../components/drivers_nrf/wdt/nrf_drv_wdt.h | 132 --
.../ble_transport/hci_mem_pool_internal.h | 40 -
.../libraries/bootloader_dfu/bootloader.c | 382 ----
.../libraries/bootloader_dfu/bootloader.h | 105 -
.../bootloader_dfu/bootloader_settings.c | 63 -
.../bootloader_dfu/bootloader_settings.h | 43 -
.../libraries/bootloader_dfu/bootloader_types.h | 67 -
.../libraries/bootloader_dfu/bootloader_util.c | 152 --
.../libraries/bootloader_dfu/bootloader_util.h | 46 -
.../components/libraries/bootloader_dfu/dfu.h | 142 --
.../libraries/bootloader_dfu/dfu_app_handler.c | 192 --
.../libraries/bootloader_dfu/dfu_app_handler.h | 94 -
.../bootloader_dfu/dfu_bank_internal.h | 95 -
.../libraries/bootloader_dfu/dfu_ble_svc.h | 88 -
.../bootloader_dfu/dfu_ble_svc_internal.h | 51 -
.../libraries/bootloader_dfu/dfu_dual_bank.c | 834 -------
.../libraries/bootloader_dfu/dfu_init.h | 142 --
.../bootloader_dfu/dfu_init_template.c | 155 --
.../libraries/bootloader_dfu/dfu_single_bank.c | 783 -------
.../libraries/bootloader_dfu/dfu_transport.h | 48 -
.../bootloader_dfu/dfu_transport_ble.c | 1100 ----------
.../bootloader_dfu/dfu_transport_serial.c | 306 ---
.../libraries/bootloader_dfu/dfu_types.h | 176 --
.../experimental/dfu_init_template_signing.c | 210 --
.../bootloader_dfu/experimental/nrf_sec.h | 116 -
.../hci_transport/hci_mem_pool_internal.h | 40 -
.../hci_transport/hci_transport_config.h | 53 -
.../components/libraries/button/app_button.c | 191 --
.../components/libraries/button/app_button.h | 120 -
.../components/libraries/crc16/crc16.c | 31 -
.../components/libraries/crc16/crc16.h | 52 -
.../components/libraries/crc32/crc32.c | 31 -
.../components/libraries/crc32/crc32.h | 51 -
.../experimental_section_vars/section_vars.h | 271 ---
.../libraries/fds/config/fds_config.h | 71 -
.../components/libraries/fds/fds.c | 2058 ------------------
.../components/libraries/fds/fds.h | 741 -------
.../libraries/fds/fds_internal_defs.h | 313 ---
.../components/libraries/fifo/app_fifo.c | 186 --
.../components/libraries/fifo/app_fifo.h | 153 --
.../libraries/fstorage/config/fstorage_config.h | 67 -
.../components/libraries/fstorage/fstorage.c | 494 -----
.../components/libraries/fstorage/fstorage.h | 243 ---
.../libraries/fstorage/fstorage_internal_defs.h | 143 --
.../libraries/fstorage/fstorage_nosd.c | 0
.../components/libraries/gpiote/app_gpiote.c | 260 ---
.../components/libraries/gpiote/app_gpiote.h | 227 --
.../libraries/gpiote/app_gpiote_fast_detect.c | 527 -----
.../components/libraries/hardfault/hardfault.h | 68 -
.../hardfault/hardfault_implementation.c | 47 -
.../nrf51/handler/hardfault_handler_gcc.c | 52 -
.../nrf51/handler/hardfault_handler_iar.c | 65 -
.../nrf51/handler/hardfault_handler_keil.c | 61 -
.../nrf52/handler/hardfault_handler_gcc.c | 49 -
.../nrf52/handler/hardfault_handler_iar.c | 64 -
.../nrf52/handler/hardfault_handler_keil.c | 60 -
.../hci/config/hci_mem_pool_internal.h | 40 -
.../libraries/hci/config/hci_transport_config.h | 48 -
.../components/libraries/hci/hci_mem_pool.c | 235 --
.../components/libraries/hci/hci_mem_pool.h | 140 --
.../components/libraries/hci/hci_slip.c | 428 ----
.../components/libraries/hci/hci_slip.h | 137 --
.../components/libraries/hci/hci_transport.c | 779 -------
.../components/libraries/hci/hci_transport.h | 228 --
.../components/libraries/ic_info/nrf_ic_info.c | 67 -
.../components/libraries/ic_info/nrf_ic_info.h | 65 -
.../libraries/led_softblink/led_softblink.c | 201 --
.../libraries/led_softblink/led_softblink.h | 139 --
.../libraries/low_power_pwm/low_power_pwm.c | 216 --
.../libraries/low_power_pwm/low_power_pwm.h | 176 --
.../components/libraries/mailbox/app_mailbox.c | 152 --
.../components/libraries/mailbox/app_mailbox.h | 151 --
.../libraries/mailbox/app_mailbox_local.h | 41 -
.../libraries/mem_manager/mem_manager.c | 925 --------
.../libraries/mem_manager/mem_manager.h | 147 --
.../components/libraries/pwm/app_pwm.c | 876 --------
.../components/libraries/pwm/app_pwm.h | 303 ---
.../libraries/scheduler/app_scheduler.c | 227 --
.../libraries/scheduler/app_scheduler.h | 171 --
.../libraries/scheduler/app_scheduler_serconn.c | 262 ---
.../components/libraries/sensorsim/sensorsim.c | 73 -
.../components/libraries/sensorsim/sensorsim.h | 93 -
.../components/libraries/sha256/sha256.c | 183 --
.../components/libraries/sha256/sha256.h | 99 -
.../libraries/simple_timer/app_simple_timer.c | 187 --
.../libraries/simple_timer/app_simple_timer.h | 106 -
.../components/libraries/slip/slip.c | 112 -
.../components/libraries/slip/slip.h | 74 -
.../components/libraries/timer/app_timer.c | 1152 ----------
.../components/libraries/timer/app_timer.h | 295 ---
.../libraries/timer/app_timer_appsh.c | 34 -
.../libraries/timer/app_timer_appsh.h | 52 -
.../libraries/timer/app_timer_ble_gzll.c | 1119 ----------
.../libraries/timer/app_timer_freertos.c | 230 --
.../components/libraries/trace/app_trace.c | 43 -
.../components/libraries/twi/app_twi.c | 376 ----
.../components/libraries/twi/app_twi.h | 298 ---
.../components/libraries/uart/app_uart.c | 132 --
.../components/libraries/uart/app_uart.h | 235 --
.../components/libraries/uart/app_uart_fifo.c | 191 --
.../components/libraries/uart/retarget.c | 101 -
.../components/libraries/util/app_error.c | 124 --
.../components/libraries/util/app_error.h | 209 --
.../components/libraries/util/app_error_weak.c | 53 -
.../components/libraries/util/app_error_weak.h | 59 -
.../components/libraries/util/app_util.h | 501 -----
.../components/libraries/util/app_util_bds.h | 421 ----
.../libraries/util/app_util_platform.c | 60 -
.../libraries/util/app_util_platform.h | 219 --
.../components/libraries/util/common.h | 46 -
.../components/libraries/util/nordic_common.h | 116 -
.../components/libraries/util/nrf_assert.c | 28 -
.../components/libraries/util/sdk_common.h | 182 --
.../components/libraries/util/sdk_errors.h | 123 --
.../components/libraries/util/sdk_macros.h | 80 -
.../libraries/util/sdk_mapped_flags.c | 161 --
.../libraries/util/sdk_mapped_flags.h | 161 --
.../components/libraries/util/sdk_os.h | 48 -
.../components/libraries/util/sdk_resources.h | 58 -
.../application/codecs/common/ble_dtm_app.c | 73 -
.../application/codecs/common/ble_dtm_app.h | 92 -
.../application/codecs/common/ble_dtm_init.c | 56 -
.../codecs/common/conn_systemreset.c | 42 -
.../codecs/common/conn_systemreset.h | 51 -
.../codecs/s130/middleware/app_mw_ble.c | 498 -----
.../codecs/s130/middleware/app_mw_ble_gap.c | 1453 -------------
.../codecs/s130/middleware/app_mw_ble_gattc.c | 467 ----
.../codecs/s130/middleware/app_mw_ble_gatts.c | 665 ------
.../codecs/s130/middleware/app_mw_ble_l2cap.c | 165 --
.../codecs/s130/middleware/app_mw_nrf_soc.c | 144 --
.../s130/serializers/app_ble_gap_sec_keys.c | 73 -
.../s130/serializers/app_ble_gap_sec_keys.h | 89 -
.../codecs/s130/serializers/app_ble_user_mem.c | 74 -
.../codecs/s130/serializers/app_ble_user_mem.h | 89 -
.../codecs/s130/serializers/ble_app.h | 455 ----
.../codecs/s130/serializers/ble_enable.c | 50 -
.../codecs/s130/serializers/ble_event.c | 262 ---
.../codecs/s130/serializers/ble_evt_app.h | 119 -
.../s130/serializers/ble_evt_tx_complete.c | 49 -
.../s130/serializers/ble_evt_user_mem_release.c | 78 -
.../s130/serializers/ble_evt_user_mem_request.c | 52 -
.../s130/serializers/ble_gap_address_get.c | 75 -
.../s130/serializers/ble_gap_address_set.c | 60 -
.../s130/serializers/ble_gap_adv_data_set.c | 52 -
.../codecs/s130/serializers/ble_gap_adv_start.c | 72 -
.../codecs/s130/serializers/ble_gap_adv_stop.c | 40 -
.../codecs/s130/serializers/ble_gap_app.h | 1328 -----------
.../s130/serializers/ble_gap_appearance_get.c | 70 -
.../s130/serializers/ble_gap_appearance_set.c | 44 -
.../s130/serializers/ble_gap_auth_key_reply.c | 76 -
.../s130/serializers/ble_gap_authenticate.c | 52 -
.../serializers/ble_gap_conn_param_update.c | 55 -
.../s130/serializers/ble_gap_conn_sec_get.c | 74 -
.../codecs/s130/serializers/ble_gap_connect.c | 54 -
.../s130/serializers/ble_gap_connect_cancel.c | 42 -
.../s130/serializers/ble_gap_device_name_get.c | 84 -
.../s130/serializers/ble_gap_device_name_set.c | 66 -
.../s130/serializers/ble_gap_disconnect.c | 45 -
.../codecs/s130/serializers/ble_gap_encrypt.c | 68 -
.../s130/serializers/ble_gap_evt_adv_report.c | 72 -
.../codecs/s130/serializers/ble_gap_evt_app.h | 466 ----
.../serializers/ble_gap_evt_auth_key_request.c | 53 -
.../s130/serializers/ble_gap_evt_auth_status.c | 72 -
.../serializers/ble_gap_evt_conn_param_update.c | 58 -
.../ble_gap_evt_conn_param_update_request.c | 59 -
.../serializers/ble_gap_evt_conn_sec_update.c | 57 -
.../s130/serializers/ble_gap_evt_connected.c | 53 -
.../s130/serializers/ble_gap_evt_disconnected.c | 48 -
.../s130/serializers/ble_gap_evt_key_pressed.c | 52 -
.../ble_gap_evt_lesc_dhkey_request.c | 71 -
.../serializers/ble_gap_evt_passkey_display.c | 63 -
.../s130/serializers/ble_gap_evt_rssi_changed.c | 53 -
.../serializers/ble_gap_evt_scan_req_report.c | 58 -
.../serializers/ble_gap_evt_sec_info_request.c | 55 -
.../ble_gap_evt_sec_params_request.c | 55 -
.../s130/serializers/ble_gap_evt_sec_request.c | 59 -
.../s130/serializers/ble_gap_evt_timeout.c | 52 -
.../s130/serializers/ble_gap_keypress_notify.c | 52 -
.../s130/serializers/ble_gap_lesc_dhkey_reply.c | 52 -
.../serializers/ble_gap_lesc_oob_data_get.c | 77 -
.../serializers/ble_gap_lesc_oob_data_set.c | 56 -
.../codecs/s130/serializers/ble_gap_ppcp_get.c | 68 -
.../codecs/s130/serializers/ble_gap_ppcp_set.c | 54 -
.../codecs/s130/serializers/ble_gap_rssi_get.c | 80 -
.../s130/serializers/ble_gap_rssi_start.c | 53 -
.../codecs/s130/serializers/ble_gap_rssi_stop.c | 45 -
.../s130/serializers/ble_gap_scan_start.c | 45 -
.../codecs/s130/serializers/ble_gap_scan_stop.c | 40 -
.../s130/serializers/ble_gap_sec_info_reply.c | 78 -
.../s130/serializers/ble_gap_sec_params_reply.c | 87 -
.../s130/serializers/ble_gap_tx_power_set.c | 45 -
.../codecs/s130/serializers/ble_gattc_app.h | 451 ----
.../serializers/ble_gattc_attr_info_discover.c | 49 -
.../ble_gattc_char_value_by_uuid_read.c | 61 -
.../serializers/ble_gattc_char_values_read.c | 48 -
.../ble_gattc_characteristics_discover.c | 57 -
.../ble_gattc_descriptors_discover.c | 53 -
.../codecs/s130/serializers/ble_gattc_evt_app.h | 319 ---
.../ble_gattc_evt_attr_info_disc_rsp.c | 62 -
.../serializers/ble_gattc_evt_char_disc_rsp.c | 103 -
.../ble_gattc_evt_char_val_by_uuid_read_rsp.c | 78 -
.../ble_gattc_evt_char_vals_read_rsp.c | 66 -
.../serializers/ble_gattc_evt_desc_disc_rsp.c | 95 -
.../codecs/s130/serializers/ble_gattc_evt_hvx.c | 65 -
.../ble_gattc_evt_prim_srvc_disc_rsp.c | 78 -
.../s130/serializers/ble_gattc_evt_read_rsp.c | 66 -
.../serializers/ble_gattc_evt_rel_disc_rsp.c | 65 -
.../s130/serializers/ble_gattc_evt_timeout.c | 75 -
.../s130/serializers/ble_gattc_evt_write_rsp.c | 66 -
.../s130/serializers/ble_gattc_hv_confirm.c | 49 -
.../ble_gattc_primary_services_discover.c | 59 -
.../codecs/s130/serializers/ble_gattc_read.c | 47 -
.../ble_gattc_relationships_discover.c | 57 -
.../codecs/s130/serializers/ble_gattc_write.c | 68 -
.../codecs/s130/serializers/ble_gatts_app.h | 639 ------
.../s130/serializers/ble_gatts_attr_get.c | 86 -
.../serializers/ble_gatts_characteristic_add.c | 89 -
.../s130/serializers/ble_gatts_descriptor_add.c | 91 -
.../codecs/s130/serializers/ble_gatts_evt_app.h | 194 --
.../codecs/s130/serializers/ble_gatts_evt_hvc.c | 51 -
.../ble_gatts_evt_rw_authorize_request.c | 78 -
.../s130/serializers/ble_gatts_evt_sc_confirm.c | 49 -
.../ble_gatts_evt_sys_attr_missing.c | 51 -
.../s130/serializers/ble_gatts_evt_timeout.c | 50 -
.../s130/serializers/ble_gatts_evt_write.c | 78 -
.../codecs/s130/serializers/ble_gatts_hvx.c | 115 -
.../s130/serializers/ble_gatts_include_add.c | 74 -
.../ble_gatts_initial_user_handle_get.c | 78 -
.../serializers/ble_gatts_rw_authorize_reply.c | 57 -
.../s130/serializers/ble_gatts_service_add.c | 83 -
.../serializers/ble_gatts_service_changed.c | 55 -
.../s130/serializers/ble_gatts_sys_attr_get.c | 113 -
.../s130/serializers/ble_gatts_sys_attr_set.c | 65 -
.../s130/serializers/ble_gatts_value_get.c | 126 --
.../s130/serializers/ble_gatts_value_set.c | 84 -
.../codecs/s130/serializers/ble_l2cap_app.h | 170 --
.../s130/serializers/ble_l2cap_cid_register.c | 45 -
.../s130/serializers/ble_l2cap_cid_unregister.c | 45 -
.../codecs/s130/serializers/ble_l2cap_evt_app.h | 69 -
.../codecs/s130/serializers/ble_l2cap_evt_rx.c | 56 -
.../codecs/s130/serializers/ble_l2cap_tx.c | 61 -
.../codecs/s130/serializers/ble_opt_get.c | 126 --
.../codecs/s130/serializers/ble_opt_set.c | 117 -
.../s130/serializers/ble_tx_packet_count_get.c | 72 -
.../s130/serializers/ble_user_mem_reply.c | 65 -
.../codecs/s130/serializers/ble_uuid_decode.c | 84 -
.../codecs/s130/serializers/ble_uuid_encode.c | 93 -
.../codecs/s130/serializers/ble_uuid_vs_add.c | 83 -
.../codecs/s130/serializers/ble_version_get.c | 73 -
.../codecs/s130/serializers/ecb_block_encrypt.c | 79 -
.../codecs/s130/serializers/nrf_soc_app.h | 134 --
.../codecs/s130/serializers/power_system_off.c | 32 -
.../codecs/s130/serializers/temp_get.c | 71 -
.../application/hal/arm_startup_nrf51.s | 240 --
.../serialization/application/hal/ser_app_hal.h | 88 -
.../application/hal/ser_app_hal_nrf51.c | 139 --
.../application/hal/ser_app_power_system_off.c | 35 -
.../application/hal/ser_app_power_system_off.h | 32 -
.../application/transport/ser_sd_transport.c | 259 ---
.../application/transport/ser_sd_transport.h | 161 --
.../transport/ser_softdevice_handler.c | 200 --
.../transport/ser_softdevice_handler.h | 52 -
.../serialization/common/ble_serialization.c | 520 -----
.../serialization/common/ble_serialization.h | 590 -----
.../common/cond_field_serialization.c | 62 -
.../common/cond_field_serialization.h | 64 -
.../serialization/common/ser_config.h | 121 -
.../s130/ble_gap_struct_serialization.c | 1495 -------------
.../s130/ble_gap_struct_serialization.h | 383 ----
.../s130/ble_gattc_struct_serialization.c | 523 -----
.../s130/ble_gattc_struct_serialization.h | 125 --
.../s130/ble_gatts_struct_serialization.c | 899 --------
.../s130/ble_gatts_struct_serialization.h | 158 --
.../struct_ser/s130/ble_struct_serialization.c | 571 -----
.../struct_ser/s130/ble_struct_serialization.h | 135 --
.../s130/nrf_soc_struct_serialization.c | 82 -
.../s130/nrf_soc_struct_serialization.h | 33 -
.../transport/debug/debug_hci_config_nrf6310.h | 52 -
.../common/transport/debug/debug_hci_nrf6310.c | 228 --
.../common/transport/dtm_uart_params.h | 65 -
.../common/transport/ser_hal_transport.c | 460 ----
.../common/transport/ser_hal_transport.h | 239 --
.../ser_phy/config/ser_config_5W_app.h | 24 -
.../ser_phy/config/ser_phy_config_app_nrf51.h | 78 -
.../ser_phy/config/ser_phy_config_conn_nrf51.h | 50 -
.../ser_phy/config/ser_phy_debug_app.h | 170 --
.../ser_phy/config/ser_phy_debug_conn.h | 138 --
.../common/transport/ser_phy/ser_phy.c | 61 -
.../common/transport/ser_phy/ser_phy.h | 264 ---
.../common/transport/ser_phy/ser_phy_hci.c | 1668 --------------
.../common/transport/ser_phy/ser_phy_hci.h | 155 --
.../common/transport/ser_phy/ser_phy_hci_slip.c | 634 ------
.../common/transport/ser_phy/ser_phy_nohci.c | 356 ---
.../ser_phy/ser_phy_nrf51_nrf_drv_spi.c | 784 -------
.../ser_phy/ser_phy_nrf51_spi_5W_master.c | 803 -------
.../ser_phy/ser_phy_nrf51_spi_5W_slave.c | 618 ------
.../transport/ser_phy/ser_phy_nrf51_spi_slave.c | 580 -----
.../transport/ser_phy/ser_phy_nrf51_uart.c | 440 ----
.../ser_phy/ser_phy_nrf51_uart_stm_app.c | 754 -------
.../ser_phy/ser_phy_nrf51_uart_stm_conn.c | 784 -------
.../common/transport/ser_phy/spi_5W_master.c | 603 -----
.../common/transport/ser_phy/spi_5W_master.h | 178 --
.../common/transport/ser_phy_debug_comm.h | 175 --
.../connectivity/codecs/common/ble_dtm_conn.h | 85 -
.../connectivity/codecs/common/ble_dtm_init.c | 56 -
.../connectivity/codecs/common/conn_mw.c | 84 -
.../connectivity/codecs/common/conn_mw.h | 46 -
.../codecs/s130/middleware/conn_mw.h | 46 -
.../codecs/s130/middleware/conn_mw_ble.c | 312 ---
.../codecs/s130/middleware/conn_mw_ble.h | 187 --
.../codecs/s130/middleware/conn_mw_ble_gap.c | 967 --------
.../codecs/s130/middleware/conn_mw_ble_gap.h | 615 ------
.../codecs/s130/middleware/conn_mw_ble_gattc.c | 322 ---
.../codecs/s130/middleware/conn_mw_ble_gattc.h | 204 --
.../codecs/s130/middleware/conn_mw_ble_gatts.c | 463 ----
.../codecs/s130/middleware/conn_mw_ble_gatts.h | 260 ---
.../codecs/s130/middleware/conn_mw_ble_l2cap.c | 91 -
.../codecs/s130/middleware/conn_mw_ble_l2cap.h | 80 -
.../codecs/s130/middleware/conn_mw_items.c | 83 -
.../codecs/s130/middleware/conn_mw_nrf_soc.c | 86 -
.../codecs/s130/middleware/conn_mw_nrf_soc.h | 82 -
.../codecs/s130/serializers/ble_conn.h | 457 ----
.../codecs/s130/serializers/ble_enable.c | 46 -
.../codecs/s130/serializers/ble_event.c | 193 --
.../codecs/s130/serializers/ble_evt_conn.h | 103 -
.../s130/serializers/ble_evt_tx_complete.c | 38 -
.../s130/serializers/ble_evt_user_mem_release.c | 56 -
.../s130/serializers/ble_evt_user_mem_request.c | 46 -
.../s130/serializers/ble_gap_address_get.c | 79 -
.../s130/serializers/ble_gap_address_set.c | 52 -
.../s130/serializers/ble_gap_adv_data_set.c | 49 -
.../codecs/s130/serializers/ble_gap_adv_start.c | 88 -
.../codecs/s130/serializers/ble_gap_adv_stop.c | 23 -
.../s130/serializers/ble_gap_appearance_get.c | 76 -
.../s130/serializers/ble_gap_appearance_set.c | 42 -
.../s130/serializers/ble_gap_auth_key_reply.c | 68 -
.../s130/serializers/ble_gap_authenticate.c | 57 -
.../codecs/s130/serializers/ble_gap_conn.h | 1212 -----------
.../serializers/ble_gap_conn_param_update.c | 71 -
.../s130/serializers/ble_gap_conn_sec_get.c | 75 -
.../codecs/s130/serializers/ble_gap_connect.c | 55 -
.../s130/serializers/ble_gap_connect_cancel.c | 25 -
.../s130/serializers/ble_gap_device_name_get.c | 92 -
.../s130/serializers/ble_gap_device_name_set.c | 61 -
.../s130/serializers/ble_gap_disconnect.c | 52 -
.../codecs/s130/serializers/ble_gap_encrypt.c | 60 -
.../s130/serializers/ble_gap_evt_adv_report.c | 61 -
.../serializers/ble_gap_evt_auth_key_request.c | 49 -
.../s130/serializers/ble_gap_evt_auth_status.c | 64 -
.../codecs/s130/serializers/ble_gap_evt_conn.h | 384 ----
.../serializers/ble_gap_evt_conn_param_update.c | 49 -
.../ble_gap_evt_conn_param_update_request.c | 49 -
.../serializers/ble_gap_evt_conn_sec_update.c | 51 -
.../s130/serializers/ble_gap_evt_connected.c | 49 -
.../s130/serializers/ble_gap_evt_disconnected.c | 49 -
.../s130/serializers/ble_gap_evt_key_pressed.c | 46 -
.../ble_gap_evt_lesc_dhkey_request.c | 52 -
.../serializers/ble_gap_evt_passkey_display.c | 47 -
.../s130/serializers/ble_gap_evt_rssi_changed.c | 38 -
.../serializers/ble_gap_evt_scan_req_report.c | 49 -
.../serializers/ble_gap_evt_sec_info_request.c | 51 -
.../ble_gap_evt_sec_params_request.c | 51 -
.../s130/serializers/ble_gap_evt_sec_request.c | 49 -
.../s130/serializers/ble_gap_evt_timeout.c | 38 -
.../s130/serializers/ble_gap_keypress_notify.c | 56 -
.../s130/serializers/ble_gap_lesc_dhkey_reply.c | 56 -
.../serializers/ble_gap_lesc_oob_data_get.c | 75 -
.../serializers/ble_gap_lesc_oob_data_set.c | 61 -
.../codecs/s130/serializers/ble_gap_ppcp_get.c | 80 -
.../codecs/s130/serializers/ble_gap_ppcp_set.c | 64 -
.../codecs/s130/serializers/ble_gap_rssi_get.c | 77 -
.../s130/serializers/ble_gap_rssi_start.c | 49 -
.../codecs/s130/serializers/ble_gap_rssi_stop.c | 39 -
.../s130/serializers/ble_gap_scan_start.c | 44 -
.../codecs/s130/serializers/ble_gap_scan_stop.c | 23 -
.../s130/serializers/ble_gap_sec_info_reply.c | 72 -
.../s130/serializers/ble_gap_sec_params_reply.c | 90 -
.../s130/serializers/ble_gap_tx_power_set.c | 39 -
.../serializers/ble_gattc_attr_info_discover.c | 59 -
.../ble_gattc_char_value_by_uuid_read.c | 65 -
.../serializers/ble_gattc_char_values_read.c | 53 -
.../ble_gattc_characteristics_discover.c | 63 -
.../codecs/s130/serializers/ble_gattc_conn.h | 442 ----
.../ble_gattc_descriptors_discover.c | 62 -
.../ble_gattc_evt_attr_info_disc_rsp.c | 51 -
.../serializers/ble_gattc_evt_char_disc_rsp.c | 73 -
.../ble_gattc_evt_char_val_by_uuid_read_rsp.c | 52 -
.../ble_gattc_evt_char_vals_read_rsp.c | 59 -
.../s130/serializers/ble_gattc_evt_conn.h | 264 ---
.../serializers/ble_gattc_evt_desc_disc_rsp.c | 53 -
.../codecs/s130/serializers/ble_gattc_evt_hvx.c | 52 -
.../ble_gattc_evt_prim_srvc_disc_rsp.c | 62 -
.../s130/serializers/ble_gattc_evt_read_rsp.c | 52 -
.../serializers/ble_gattc_evt_rel_disc_rsp.c | 51 -
.../s130/serializers/ble_gattc_evt_timeout.c | 37 -
.../s130/serializers/ble_gattc_evt_write_rsp.c | 53 -
.../s130/serializers/ble_gattc_hv_confirm.c | 45 -
.../ble_gattc_primary_services_discover.c | 67 -
.../codecs/s130/serializers/ble_gattc_read.c | 49 -
.../ble_gattc_relationships_discover.c | 64 -
.../codecs/s130/serializers/ble_gattc_write.c | 59 -
.../s130/serializers/ble_gatts_attr_get.c | 80 -
.../serializers/ble_gatts_characteristic_add.c | 88 -
.../codecs/s130/serializers/ble_gatts_conn.h | 599 -----
.../s130/serializers/ble_gatts_descriptor_add.c | 94 -
.../s130/serializers/ble_gatts_evt_conn.h | 164 --
.../codecs/s130/serializers/ble_gatts_evt_hvc.c | 38 -
.../ble_gatts_evt_rw_authorize_request.c | 59 -
.../s130/serializers/ble_gatts_evt_sc_confirm.c | 37 -
.../ble_gatts_evt_sys_attr_missing.c | 37 -
.../s130/serializers/ble_gatts_evt_timeout.c | 37 -
.../s130/serializers/ble_gatts_evt_write.c | 63 -
.../codecs/s130/serializers/ble_gatts_hvx.c | 81 -
.../s130/serializers/ble_gatts_include_add.c | 74 -
.../ble_gatts_initial_user_handle_get.c | 69 -
.../serializers/ble_gatts_rw_authorize_reply.c | 53 -
.../s130/serializers/ble_gatts_service_add.c | 76 -
.../serializers/ble_gatts_service_changed.c | 55 -
.../s130/serializers/ble_gatts_sys_attr_get.c | 125 --
.../s130/serializers/ble_gatts_sys_attr_set.c | 76 -
.../s130/serializers/ble_gatts_value_get.c | 105 -
.../s130/serializers/ble_gatts_value_set.c | 74 -
.../s130/serializers/ble_l2cap_cid_register.c | 46 -
.../s130/serializers/ble_l2cap_cid_unregister.c | 46 -
.../codecs/s130/serializers/ble_l2cap_conn.h | 164 --
.../s130/serializers/ble_l2cap_evt_conn.h | 64 -
.../codecs/s130/serializers/ble_l2cap_evt_rx.c | 50 -
.../codecs/s130/serializers/ble_l2cap_tx.c | 67 -
.../codecs/s130/serializers/ble_opt_get.c | 130 --
.../s130/serializers/ble_opt_id_pre_decoder.c | 36 -
.../codecs/s130/serializers/ble_opt_set.c | 109 -
.../s130/serializers/ble_tx_packet_count_get.c | 69 -
.../s130/serializers/ble_user_mem_reply.c | 66 -
.../codecs/s130/serializers/ble_uuid_decode.c | 77 -
.../codecs/s130/serializers/ble_uuid_encode.c | 117 -
.../codecs/s130/serializers/ble_uuid_vs_add.c | 73 -
.../codecs/s130/serializers/ble_version_get.c | 77 -
.../s130/serializers/conn_ble_gap_sec_keys.c | 73 -
.../s130/serializers/conn_ble_gap_sec_keys.h | 96 -
.../codecs/s130/serializers/conn_ble_user_mem.c | 78 -
.../codecs/s130/serializers/conn_ble_user_mem.h | 89 -
.../codecs/s130/serializers/ecb_block_encrypt.c | 72 -
.../codecs/s130/serializers/nrf_soc_conn.h | 135 --
.../codecs/s130/serializers/power_system_off.c | 28 -
.../codecs/s130/serializers/temp_get.c | 72 -
.../serialization/connectivity/hal/dtm_uart.c | 233 --
.../serialization/connectivity/hal/dtm_uart.h | 31 -
.../connectivity/pstorage_platform.h | 78 -
.../connectivity/ser_conn_cmd_decoder.c | 97 -
.../connectivity/ser_conn_cmd_decoder.h | 61 -
.../connectivity/ser_conn_dtm_cmd_decoder.c | 94 -
.../connectivity/ser_conn_dtm_cmd_decoder.h | 70 -
.../connectivity/ser_conn_error_handling.c | 104 -
.../connectivity/ser_conn_event_encoder.c | 75 -
.../connectivity/ser_conn_event_encoder.h | 58 -
.../connectivity/ser_conn_handlers.c | 129 --
.../connectivity/ser_conn_handlers.h | 92 -
.../connectivity/ser_conn_pkt_decoder.c | 86 -
.../connectivity/ser_conn_pkt_decoder.h | 62 -
.../connectivity/ser_conn_reset_cmd_decoder.c | 20 -
.../connectivity/ser_conn_reset_cmd_decoder.h | 53 -
.../startup/arm/arm_startup_nrf51.s | 240 --
575 files changed, 6 insertions(+), 113400 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/bsp/arduino_primo_nrf52/include/bsp/nrf_drv_config.h
----------------------------------------------------------------------
diff --git a/hw/bsp/arduino_primo_nrf52/include/bsp/nrf_drv_config.h b/hw/bsp/arduino_primo_nrf52/include/bsp/nrf_drv_config.h
deleted file mode 100644
index 643d968..0000000
--- a/hw/bsp/arduino_primo_nrf52/include/bsp/nrf_drv_config.h
+++ /dev/null
@@ -1,472 +0,0 @@
-/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#ifndef NRF_DRV_CONFIG_H
-#define NRF_DRV_CONFIG_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Provide a non-zero value here in applications that need to use several
- * peripherals with the same ID that are sharing certain resources
- * (for example, SPI0 and TWI0). Obviously, such peripherals cannot be used
- * simultaneously. Therefore, this definition allows to initialize the driver
- * for another peripheral from a given group only after the previously used one
- * is uninitialized. Normally, this is not possible, because interrupt handlers
- * are implemented in individual drivers.
- * This functionality requires a more complicated interrupt handling and driver
- * initialization, hence it is not always desirable to use it.
- */
-#define PERIPHERAL_RESOURCE_SHARING_ENABLED 1
-
-/* CLOCK */
-#define CLOCK_ENABLED 1
-
-#if (CLOCK_ENABLED == 1)
-#define CLOCK_CONFIG_XTAL_FREQ NRF_CLOCK_XTALFREQ_Default
-#define CLOCK_CONFIG_LF_SRC NRF_CLOCK_LFCLK_Xtal
-#define CLOCK_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* GPIOTE */
-#define GPIOTE_ENABLED 1
-
-#if (GPIOTE_ENABLED == 1)
-#define GPIOTE_CONFIG_USE_SWI_EGU false
-#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
-#endif
-
-/* TIMER */
-#define TIMER0_ENABLED 1
-
-#if (TIMER0_ENABLED == 1)
-#define TIMER0_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER0_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER0_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_32Bit
-#define TIMER0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER0_INSTANCE_INDEX 0
-#endif
-
-#define TIMER1_ENABLED 0
-
-#if (TIMER1_ENABLED == 1)
-#define TIMER1_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER1_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER1_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER1_INSTANCE_INDEX (TIMER0_ENABLED)
-#endif
-
-#define TIMER2_ENABLED 0
-
-#if (TIMER2_ENABLED == 1)
-#define TIMER2_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER2_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER2_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER2_INSTANCE_INDEX (TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER3_ENABLED 0
-
-#if (TIMER3_ENABLED == 1)
-#define TIMER3_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER3_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER3_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER3_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER3_INSTANCE_INDEX (TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER4_ENABLED 0
-
-#if (TIMER4_ENABLED == 1)
-#define TIMER4_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER4_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER4_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER4_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER4_INSTANCE_INDEX (TIMER3_ENABLED+TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-
-#define TIMER_COUNT (TIMER0_ENABLED + TIMER1_ENABLED + TIMER2_ENABLED + TIMER3_ENABLED + TIMER4_ENABLED)
-
-/* RTC */
-#define RTC0_ENABLED 0
-
-#if (RTC0_ENABLED == 1)
-#define RTC0_CONFIG_FREQUENCY 32678
-#define RTC0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC0_CONFIG_RELIABLE false
-
-#define RTC0_INSTANCE_INDEX 0
-#endif
-
-#define RTC1_ENABLED 0
-
-#if (RTC1_ENABLED == 1)
-#define RTC1_CONFIG_FREQUENCY 32768
-#define RTC1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC1_CONFIG_RELIABLE false
-
-#define RTC1_INSTANCE_INDEX (RTC0_ENABLED)
-#endif
-
-#define RTC2_ENABLED 0
-
-#if (RTC2_ENABLED == 1)
-#define RTC2_CONFIG_FREQUENCY 32768
-#define RTC2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC2_CONFIG_RELIABLE false
-
-#define RTC2_INSTANCE_INDEX (RTC0_ENABLED+RTC1_ENABLED)
-#endif
-
-
-#define RTC_COUNT (RTC0_ENABLED+RTC1_ENABLED+RTC2_ENABLED)
-
-#define NRF_MAXIMUM_LATENCY_US 2000
-
-/* RNG */
-#define RNG_ENABLED 1
-
-#if (RNG_ENABLED == 1)
-#define RNG_CONFIG_ERROR_CORRECTION true
-#define RNG_CONFIG_POOL_SIZE 8
-#define RNG_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PWM */
-
-#define PWM0_ENABLED 1
-
-#if (PWM0_ENABLED == 1)
-#define PWM0_CONFIG_OUT0_PIN 2
-#define PWM0_CONFIG_OUT1_PIN 3
-#define PWM0_CONFIG_OUT2_PIN 4
-#define PWM0_CONFIG_OUT3_PIN 5
-#define PWM0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM0_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM0_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM0_CONFIG_TOP_VALUE 1000
-#define PWM0_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM0_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM0_INSTANCE_INDEX 0
-#endif
-
-#define PWM1_ENABLED 0
-
-#if (PWM1_ENABLED == 1)
-#define PWM1_CONFIG_OUT0_PIN 2
-#define PWM1_CONFIG_OUT1_PIN 3
-#define PWM1_CONFIG_OUT2_PIN 4
-#define PWM1_CONFIG_OUT3_PIN 5
-#define PWM1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM1_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM1_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM1_CONFIG_TOP_VALUE 1000
-#define PWM1_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM1_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM1_INSTANCE_INDEX (PWM0_ENABLED)
-#endif
-
-#define PWM2_ENABLED 0
-
-#if (PWM2_ENABLED == 1)
-#define PWM2_CONFIG_OUT0_PIN 2
-#define PWM2_CONFIG_OUT1_PIN 3
-#define PWM2_CONFIG_OUT2_PIN 4
-#define PWM2_CONFIG_OUT3_PIN 5
-#define PWM2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM2_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM2_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM2_CONFIG_TOP_VALUE 1000
-#define PWM2_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM2_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM2_INSTANCE_INDEX (PWM0_ENABLED + PWM1_ENABLED)
-#endif
-
-#define PWM_COUNT (PWM0_ENABLED + PWM1_ENABLED + PWM2_ENABLED)
-
-/* SPI */
-#define SPI0_ENABLED 1
-
-#if (SPI0_ENABLED == 1)
-#define SPI0_USE_EASY_DMA 0
-
-#define SPI0_CONFIG_SCK_PIN 2
-#define SPI0_CONFIG_MOSI_PIN 3
-#define SPI0_CONFIG_MISO_PIN 4
-#define SPI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI0_INSTANCE_INDEX 0
-#endif
-
-#define SPI1_ENABLED 0
-
-#if (SPI1_ENABLED == 1)
-#define SPI1_USE_EASY_DMA 0
-
-#define SPI1_CONFIG_SCK_PIN 2
-#define SPI1_CONFIG_MOSI_PIN 3
-#define SPI1_CONFIG_MISO_PIN 4
-#define SPI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI1_INSTANCE_INDEX (SPI0_ENABLED)
-#endif
-
-#define SPI2_ENABLED 0
-
-#if (SPI2_ENABLED == 1)
-#define SPI2_USE_EASY_DMA 0
-
-#define SPI2_CONFIG_SCK_PIN 2
-#define SPI2_CONFIG_MOSI_PIN 3
-#define SPI2_CONFIG_MISO_PIN 4
-#define SPI2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI2_INSTANCE_INDEX (SPI0_ENABLED + SPI1_ENABLED)
-#endif
-
-#define SPI_COUNT (SPI0_ENABLED + SPI1_ENABLED + SPI2_ENABLED)
-
-/* SPIS */
-#define SPIS0_ENABLED 1
-
-#if (SPIS0_ENABLED == 1)
-#define SPIS0_CONFIG_SCK_PIN 2
-#define SPIS0_CONFIG_MOSI_PIN 3
-#define SPIS0_CONFIG_MISO_PIN 4
-#define SPIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS0_INSTANCE_INDEX 0
-#endif
-
-#define SPIS1_ENABLED 0
-
-#if (SPIS1_ENABLED == 1)
-#define SPIS1_CONFIG_SCK_PIN 2
-#define SPIS1_CONFIG_MOSI_PIN 3
-#define SPIS1_CONFIG_MISO_PIN 4
-#define SPIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS1_INSTANCE_INDEX SPIS0_ENABLED
-#endif
-
-#define SPIS2_ENABLED 0
-
-#if (SPIS2_ENABLED == 1)
-#define SPIS2_CONFIG_SCK_PIN 2
-#define SPIS2_CONFIG_MOSI_PIN 3
-#define SPIS2_CONFIG_MISO_PIN 4
-#define SPIS2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS2_INSTANCE_INDEX (SPIS0_ENABLED + SPIS1_ENABLED)
-#endif
-
-#define SPIS_COUNT (SPIS0_ENABLED + SPIS1_ENABLED + SPIS2_ENABLED)
-
-/* UART */
-#define UART0_ENABLED 1
-
-#if (UART0_ENABLED == 1)
-#define UART0_CONFIG_HWFC NRF_UART_HWFC_DISABLED
-#define UART0_CONFIG_PARITY NRF_UART_PARITY_EXCLUDED
-#define UART0_CONFIG_BAUDRATE NRF_UART_BAUDRATE_115200
-#define UART0_CONFIG_PSEL_TXD 0
-#define UART0_CONFIG_PSEL_RXD 0
-#define UART0_CONFIG_PSEL_CTS 0
-#define UART0_CONFIG_PSEL_RTS 0
-#define UART0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#ifdef NRF52
-#define UART0_CONFIG_USE_EASY_DMA false
-//Compile time flag
-#define UART_EASY_DMA_SUPPORT 1
-#define UART_LEGACY_SUPPORT 1
-#endif //NRF52
-#endif
-
-#define TWI0_ENABLED 1
-
-#if (TWI0_ENABLED == 1)
-#define TWI0_USE_EASY_DMA 0
-
-#define TWI0_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI0_CONFIG_SCL 0
-#define TWI0_CONFIG_SDA 1
-#define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI0_INSTANCE_INDEX 0
-#endif
-
-#define TWI1_ENABLED 1
-
-#if (TWI1_ENABLED == 1)
-#define TWI1_USE_EASY_DMA 0
-
-#define TWI1_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI1_CONFIG_SCL 0
-#define TWI1_CONFIG_SDA 1
-#define TWI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI1_INSTANCE_INDEX (TWI0_ENABLED)
-#endif
-
-#define TWI_COUNT (TWI0_ENABLED + TWI1_ENABLED)
-
-/* TWIS */
-#define TWIS0_ENABLED 1
-
-#if (TWIS0_ENABLED == 1)
- #define TWIS0_CONFIG_ADDR0 0
- #define TWIS0_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS0_CONFIG_SCL 0
- #define TWIS0_CONFIG_SDA 1
- #define TWIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS0_INSTANCE_INDEX 0
-#endif
-
-#define TWIS1_ENABLED 0
-
-#if (TWIS1_ENABLED == 1)
- #define TWIS1_CONFIG_ADDR0 0
- #define TWIS1_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS1_CONFIG_SCL 0
- #define TWIS1_CONFIG_SDA 1
- #define TWIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS1_INSTANCE_INDEX (TWIS0_ENABLED)
-#endif
-
-#define TWIS_COUNT (TWIS0_ENABLED + TWIS1_ENABLED)
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_NO_SYNC_MODE 0
-
-/* QDEC */
-#define QDEC_ENABLED 1
-
-#if (QDEC_ENABLED == 1)
-#define QDEC_CONFIG_REPORTPER NRF_QDEC_REPORTPER_10
-#define QDEC_CONFIG_SAMPLEPER NRF_QDEC_SAMPLEPER_16384us
-#define QDEC_CONFIG_PIO_A 1
-#define QDEC_CONFIG_PIO_B 2
-#define QDEC_CONFIG_PIO_LED 3
-#define QDEC_CONFIG_LEDPRE 511
-#define QDEC_CONFIG_LEDPOL NRF_QDEC_LEPOL_ACTIVE_HIGH
-#define QDEC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define QDEC_CONFIG_DBFEN false
-#define QDEC_CONFIG_SAMPLE_INTEN false
-#endif
-
-/* ADC */
-#define ADC_ENABLED 0
-
-#if (ADC_ENABLED == 1)
-#define ADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-
-/* SAADC */
-#define SAADC_ENABLED 1
-
-#if (SAADC_ENABLED == 1)
-#define SAADC_CONFIG_RESOLUTION NRF_SAADC_RESOLUTION_10BIT
-#define SAADC_CONFIG_OVERSAMPLE NRF_SAADC_OVERSAMPLE_DISABLED
-#define SAADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PDM */
-#define PDM_ENABLED 0
-
-#if (PDM_ENABLED == 1)
-#define PDM_CONFIG_MODE NRF_PDM_MODE_MONO
-#define PDM_CONFIG_EDGE NRF_PDM_EDGE_LEFTFALLING
-#define PDM_CONFIG_CLOCK_FREQ NRF_PDM_FREQ_1032K
-#define PDM_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* COMP */
-#define COMP_ENABLED 1
-
-#if (COMP_ENABLED == 1)
-#define COMP_CONFIG_REF NRF_COMP_REF_Int1V8
-#define COMP_CONFIG_MAIN_MODE NRF_COMP_MAIN_MODE_SE
-#define COMP_CONFIG_SPEED_MODE NRF_COMP_SP_MODE_High
-#define COMP_CONFIG_HYST NRF_COMP_HYST_NoHyst
-#define COMP_CONFIG_ISOURCE NRF_COMP_ISOURCE_Off
-#define COMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define COMP_CONFIG_INPUT NRF_COMP_INPUT_0
-#endif
-
-/* LPCOMP */
-#define LPCOMP_ENABLED 1
-
-#if (LPCOMP_ENABLED == 1)
-#define LPCOMP_CONFIG_REFERENCE NRF_LPCOMP_REF_SUPPLY_4_8
-#define LPCOMP_CONFIG_DETECTION NRF_LPCOMP_DETECT_DOWN
-#define LPCOMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define LPCOMP_CONFIG_INPUT NRF_LPCOMP_INPUT_0
-#endif
-
-/* WDT */
-#define WDT_ENABLED 1
-
-#if (WDT_ENABLED == 1)
-#define WDT_CONFIG_BEHAVIOUR NRF_WDT_BEHAVIOUR_RUN_SLEEP
-#define WDT_CONFIG_RELOAD_VALUE 2000
-#define WDT_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#endif
-
-/* SWI EGU */
-#ifdef NRF52
- #define EGU_ENABLED 0
-#endif
-
-/* I2S */
-#define I2S_ENABLED 1
-
-#if (I2S_ENABLED == 1)
-#define I2S_CONFIG_SCK_PIN 22
-#define I2S_CONFIG_LRCK_PIN 23
-#define I2S_CONFIG_MCK_PIN NRF_DRV_I2S_PIN_NOT_USED
-#define I2S_CONFIG_SDOUT_PIN 24
-#define I2S_CONFIG_SDIN_PIN 25
-#define I2S_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#define I2S_CONFIG_MASTER NRF_I2S_MODE_MASTER
-#define I2S_CONFIG_FORMAT NRF_I2S_FORMAT_I2S
-#define I2S_CONFIG_ALIGN NRF_I2S_ALIGN_LEFT
-#define I2S_CONFIG_SWIDTH NRF_I2S_SWIDTH_16BIT
-#define I2S_CONFIG_CHANNELS NRF_I2S_CHANNELS_STEREO
-#define I2S_CONFIG_MCK_SETUP NRF_I2S_MCK_32MDIV8
-#define I2S_CONFIG_RATIO NRF_I2S_RATIO_256X
-#endif
-
-#include "nrf_drv_config_validation.h"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // NRF_DRV_CONFIG_H
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/bsp/bmd300eval/include/bsp/nrf_drv_config.h
----------------------------------------------------------------------
diff --git a/hw/bsp/bmd300eval/include/bsp/nrf_drv_config.h b/hw/bsp/bmd300eval/include/bsp/nrf_drv_config.h
deleted file mode 100644
index 5341c32..0000000
--- a/hw/bsp/bmd300eval/include/bsp/nrf_drv_config.h
+++ /dev/null
@@ -1,471 +0,0 @@
-/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#ifndef NRF_DRV_CONFIG_H
-#define NRF_DRV_CONFIG_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Provide a non-zero value here in applications that need to use several
- * peripherals with the same ID that are sharing certain resources
- * (for example, SPI0 and TWI0). Obviously, such peripherals cannot be used
- * simultaneously. Therefore, this definition allows to initialize the driver
- * for another peripheral from a given group only after the previously used one
- * is uninitialized. Normally, this is not possible, because interrupt handlers
- * are implemented in individual drivers.
- * This functionality requires a more complicated interrupt handling and driver
- * initialization, hence it is not always desirable to use it.
- */
-#define PERIPHERAL_RESOURCE_SHARING_ENABLED 1
-
-/* CLOCK */
-#define CLOCK_ENABLED 1
-
-#if (CLOCK_ENABLED == 1)
-#define CLOCK_CONFIG_XTAL_FREQ NRF_CLOCK_XTALFREQ_Default
-#define CLOCK_CONFIG_LF_SRC NRF_CLOCK_LFCLK_Xtal
-#define CLOCK_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* GPIOTE */
-#define GPIOTE_ENABLED 1
-
-#if (GPIOTE_ENABLED == 1)
-#define GPIOTE_CONFIG_USE_SWI_EGU false
-#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
-#endif
-
-/* TIMER */
-#define TIMER0_ENABLED 1
-
-#if (TIMER0_ENABLED == 1)
-#define TIMER0_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER0_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER0_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_32Bit
-#define TIMER0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER0_INSTANCE_INDEX 0
-#endif
-
-#define TIMER1_ENABLED 0
-
-#if (TIMER1_ENABLED == 1)
-#define TIMER1_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER1_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER1_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER1_INSTANCE_INDEX (TIMER0_ENABLED)
-#endif
-
-#define TIMER2_ENABLED 0
-
-#if (TIMER2_ENABLED == 1)
-#define TIMER2_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER2_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER2_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER2_INSTANCE_INDEX (TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER3_ENABLED 0
-
-#if (TIMER3_ENABLED == 1)
-#define TIMER3_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER3_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER3_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER3_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER3_INSTANCE_INDEX (TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER4_ENABLED 0
-
-#if (TIMER4_ENABLED == 1)
-#define TIMER4_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER4_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER4_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER4_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER4_INSTANCE_INDEX (TIMER3_ENABLED+TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-
-#define TIMER_COUNT (TIMER0_ENABLED + TIMER1_ENABLED + TIMER2_ENABLED + TIMER3_ENABLED + TIMER4_ENABLED)
-
-/* RTC */
-#define RTC0_ENABLED 0
-
-#if (RTC0_ENABLED == 1)
-#define RTC0_CONFIG_FREQUENCY 32678
-#define RTC0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC0_CONFIG_RELIABLE false
-
-#define RTC0_INSTANCE_INDEX 0
-#endif
-
-#define RTC1_ENABLED 0
-
-#if (RTC1_ENABLED == 1)
-#define RTC1_CONFIG_FREQUENCY 32768
-#define RTC1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC1_CONFIG_RELIABLE false
-
-#define RTC1_INSTANCE_INDEX (RTC0_ENABLED)
-#endif
-
-#define RTC2_ENABLED 0
-
-#if (RTC2_ENABLED == 1)
-#define RTC2_CONFIG_FREQUENCY 32768
-#define RTC2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC2_CONFIG_RELIABLE false
-
-#define RTC2_INSTANCE_INDEX (RTC0_ENABLED+RTC1_ENABLED)
-#endif
-
-
-#define RTC_COUNT (RTC0_ENABLED+RTC1_ENABLED+RTC2_ENABLED)
-
-#define NRF_MAXIMUM_LATENCY_US 2000
-
-/* RNG */
-#define RNG_ENABLED 1
-
-#if (RNG_ENABLED == 1)
-#define RNG_CONFIG_ERROR_CORRECTION true
-#define RNG_CONFIG_POOL_SIZE 8
-#define RNG_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PWM */
-
-#define PWM0_ENABLED 1
-
-#if (PWM0_ENABLED == 1)
-#define PWM0_CONFIG_OUT0_PIN 2
-#define PWM0_CONFIG_OUT1_PIN 3
-#define PWM0_CONFIG_OUT2_PIN 4
-#define PWM0_CONFIG_OUT3_PIN 5
-#define PWM0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM0_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM0_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM0_CONFIG_TOP_VALUE 1000
-#define PWM0_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM0_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM0_INSTANCE_INDEX 0
-#endif
-
-#define PWM1_ENABLED 0
-
-#if (PWM1_ENABLED == 1)
-#define PWM1_CONFIG_OUT0_PIN 2
-#define PWM1_CONFIG_OUT1_PIN 3
-#define PWM1_CONFIG_OUT2_PIN 4
-#define PWM1_CONFIG_OUT3_PIN 5
-#define PWM1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM1_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM1_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM1_CONFIG_TOP_VALUE 1000
-#define PWM1_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM1_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM1_INSTANCE_INDEX (PWM0_ENABLED)
-#endif
-
-#define PWM2_ENABLED 0
-
-#if (PWM2_ENABLED == 1)
-#define PWM2_CONFIG_OUT0_PIN 2
-#define PWM2_CONFIG_OUT1_PIN 3
-#define PWM2_CONFIG_OUT2_PIN 4
-#define PWM2_CONFIG_OUT3_PIN 5
-#define PWM2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM2_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM2_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM2_CONFIG_TOP_VALUE 1000
-#define PWM2_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM2_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM2_INSTANCE_INDEX (PWM0_ENABLED + PWM1_ENABLED)
-#endif
-
-#define PWM_COUNT (PWM0_ENABLED + PWM1_ENABLED + PWM2_ENABLED)
-
-/* SPI */
-#define SPI0_ENABLED 1
-
-#if (SPI0_ENABLED == 1)
-#define SPI0_USE_EASY_DMA 1
-#define SPI0_CONFIG_SCK_PIN 23
-#define SPI0_CONFIG_MOSI_PIN 24
-#define SPI0_CONFIG_MISO_PIN 25
-#define SPI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI0_INSTANCE_INDEX 0
-#endif
-
-#define SPI1_ENABLED 0
-
-#if (SPI1_ENABLED == 1)
-#define SPI1_USE_EASY_DMA 0
-
-#define SPI1_CONFIG_SCK_PIN 2
-#define SPI1_CONFIG_MOSI_PIN 3
-#define SPI1_CONFIG_MISO_PIN 4
-#define SPI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI1_INSTANCE_INDEX (SPI0_ENABLED)
-#endif
-
-#define SPI2_ENABLED 0
-
-#if (SPI2_ENABLED == 1)
-#define SPI2_USE_EASY_DMA 0
-
-#define SPI2_CONFIG_SCK_PIN 2
-#define SPI2_CONFIG_MOSI_PIN 3
-#define SPI2_CONFIG_MISO_PIN 4
-#define SPI2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI2_INSTANCE_INDEX (SPI0_ENABLED + SPI1_ENABLED)
-#endif
-
-#define SPI_COUNT (SPI0_ENABLED + SPI1_ENABLED + SPI2_ENABLED)
-
-/* SPIS */
-#define SPIS0_ENABLED 1
-
-#if (SPIS0_ENABLED == 1)
-#define SPIS0_CONFIG_SCK_PIN 23
-#define SPIS0_CONFIG_MOSI_PIN 24
-#define SPIS0_CONFIG_MISO_PIN 25
-#define SPIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS0_INSTANCE_INDEX 0
-#endif
-
-#define SPIS1_ENABLED 0
-
-#if (SPIS1_ENABLED == 1)
-#define SPIS1_CONFIG_SCK_PIN 2
-#define SPIS1_CONFIG_MOSI_PIN 3
-#define SPIS1_CONFIG_MISO_PIN 4
-#define SPIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS1_INSTANCE_INDEX SPIS0_ENABLED
-#endif
-
-#define SPIS2_ENABLED 0
-
-#if (SPIS2_ENABLED == 1)
-#define SPIS2_CONFIG_SCK_PIN 2
-#define SPIS2_CONFIG_MOSI_PIN 3
-#define SPIS2_CONFIG_MISO_PIN 4
-#define SPIS2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS2_INSTANCE_INDEX (SPIS0_ENABLED + SPIS1_ENABLED)
-#endif
-
-#define SPIS_COUNT (SPIS0_ENABLED + SPIS1_ENABLED + SPIS2_ENABLED)
-
-/* UART */
-#define UART0_ENABLED 1
-
-#if (UART0_ENABLED == 1)
-#define UART0_CONFIG_HWFC NRF_UART_HWFC_DISABLED
-#define UART0_CONFIG_PARITY NRF_UART_PARITY_EXCLUDED
-#define UART0_CONFIG_BAUDRATE NRF_UART_BAUDRATE_115200
-#define UART0_CONFIG_PSEL_TXD 0
-#define UART0_CONFIG_PSEL_RXD 0
-#define UART0_CONFIG_PSEL_CTS 0
-#define UART0_CONFIG_PSEL_RTS 0
-#define UART0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#ifdef NRF52
-#define UART0_CONFIG_USE_EASY_DMA false
-//Compile time flag
-#define UART_EASY_DMA_SUPPORT 1
-#define UART_LEGACY_SUPPORT 1
-#endif //NRF52
-#endif
-
-#define TWI0_ENABLED 1
-
-#if (TWI0_ENABLED == 1)
-#define TWI0_USE_EASY_DMA 0
-
-#define TWI0_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI0_CONFIG_SCL 0
-#define TWI0_CONFIG_SDA 1
-#define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI0_INSTANCE_INDEX 0
-#endif
-
-#define TWI1_ENABLED 1
-
-#if (TWI1_ENABLED == 1)
-#define TWI1_USE_EASY_DMA 0
-
-#define TWI1_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI1_CONFIG_SCL 0
-#define TWI1_CONFIG_SDA 1
-#define TWI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI1_INSTANCE_INDEX (TWI0_ENABLED)
-#endif
-
-#define TWI_COUNT (TWI0_ENABLED + TWI1_ENABLED)
-
-/* TWIS */
-#define TWIS0_ENABLED 1
-
-#if (TWIS0_ENABLED == 1)
- #define TWIS0_CONFIG_ADDR0 0
- #define TWIS0_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS0_CONFIG_SCL 0
- #define TWIS0_CONFIG_SDA 1
- #define TWIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS0_INSTANCE_INDEX 0
-#endif
-
-#define TWIS1_ENABLED 0
-
-#if (TWIS1_ENABLED == 1)
- #define TWIS1_CONFIG_ADDR0 0
- #define TWIS1_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS1_CONFIG_SCL 0
- #define TWIS1_CONFIG_SDA 1
- #define TWIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS1_INSTANCE_INDEX (TWIS0_ENABLED)
-#endif
-
-#define TWIS_COUNT (TWIS0_ENABLED + TWIS1_ENABLED)
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_NO_SYNC_MODE 0
-
-/* QDEC */
-#define QDEC_ENABLED 1
-
-#if (QDEC_ENABLED == 1)
-#define QDEC_CONFIG_REPORTPER NRF_QDEC_REPORTPER_10
-#define QDEC_CONFIG_SAMPLEPER NRF_QDEC_SAMPLEPER_16384us
-#define QDEC_CONFIG_PIO_A 1
-#define QDEC_CONFIG_PIO_B 2
-#define QDEC_CONFIG_PIO_LED 3
-#define QDEC_CONFIG_LEDPRE 511
-#define QDEC_CONFIG_LEDPOL NRF_QDEC_LEPOL_ACTIVE_HIGH
-#define QDEC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define QDEC_CONFIG_DBFEN false
-#define QDEC_CONFIG_SAMPLE_INTEN false
-#endif
-
-/* ADC */
-#define ADC_ENABLED 0
-
-#if (ADC_ENABLED == 1)
-#define ADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-
-/* SAADC */
-#define SAADC_ENABLED 1
-
-#if (SAADC_ENABLED == 1)
-#define SAADC_CONFIG_RESOLUTION NRF_SAADC_RESOLUTION_10BIT
-#define SAADC_CONFIG_OVERSAMPLE NRF_SAADC_OVERSAMPLE_DISABLED
-#define SAADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PDM */
-#define PDM_ENABLED 0
-
-#if (PDM_ENABLED == 1)
-#define PDM_CONFIG_MODE NRF_PDM_MODE_MONO
-#define PDM_CONFIG_EDGE NRF_PDM_EDGE_LEFTFALLING
-#define PDM_CONFIG_CLOCK_FREQ NRF_PDM_FREQ_1032K
-#define PDM_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* COMP */
-#define COMP_ENABLED 1
-
-#if (COMP_ENABLED == 1)
-#define COMP_CONFIG_REF NRF_COMP_REF_Int1V8
-#define COMP_CONFIG_MAIN_MODE NRF_COMP_MAIN_MODE_SE
-#define COMP_CONFIG_SPEED_MODE NRF_COMP_SP_MODE_High
-#define COMP_CONFIG_HYST NRF_COMP_HYST_NoHyst
-#define COMP_CONFIG_ISOURCE NRF_COMP_ISOURCE_Off
-#define COMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define COMP_CONFIG_INPUT NRF_COMP_INPUT_0
-#endif
-
-/* LPCOMP */
-#define LPCOMP_ENABLED 1
-
-#if (LPCOMP_ENABLED == 1)
-#define LPCOMP_CONFIG_REFERENCE NRF_LPCOMP_REF_SUPPLY_4_8
-#define LPCOMP_CONFIG_DETECTION NRF_LPCOMP_DETECT_DOWN
-#define LPCOMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define LPCOMP_CONFIG_INPUT NRF_LPCOMP_INPUT_0
-#endif
-
-/* WDT */
-#define WDT_ENABLED 1
-
-#if (WDT_ENABLED == 1)
-#define WDT_CONFIG_BEHAVIOUR NRF_WDT_BEHAVIOUR_RUN_SLEEP
-#define WDT_CONFIG_RELOAD_VALUE 2000
-#define WDT_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#endif
-
-/* SWI EGU */
-#ifdef NRF52
- #define EGU_ENABLED 0
-#endif
-
-/* I2S */
-#define I2S_ENABLED 1
-
-#if (I2S_ENABLED == 1)
-#define I2S_CONFIG_SCK_PIN 22
-#define I2S_CONFIG_LRCK_PIN 23
-#define I2S_CONFIG_MCK_PIN NRF_DRV_I2S_PIN_NOT_USED
-#define I2S_CONFIG_SDOUT_PIN 24
-#define I2S_CONFIG_SDIN_PIN 25
-#define I2S_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#define I2S_CONFIG_MASTER NRF_I2S_MODE_MASTER
-#define I2S_CONFIG_FORMAT NRF_I2S_FORMAT_I2S
-#define I2S_CONFIG_ALIGN NRF_I2S_ALIGN_LEFT
-#define I2S_CONFIG_SWIDTH NRF_I2S_SWIDTH_16BIT
-#define I2S_CONFIG_CHANNELS NRF_I2S_CHANNELS_STEREO
-#define I2S_CONFIG_MCK_SETUP NRF_I2S_MCK_32MDIV8
-#define I2S_CONFIG_RATIO NRF_I2S_RATIO_256X
-#endif
-
-#include "nrf_drv_config_validation.h"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // NRF_DRV_CONFIG_H
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/bsp/nrf51-arduino_101/include/bsp/nrf_drv_config.h
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51-arduino_101/include/bsp/nrf_drv_config.h b/hw/bsp/nrf51-arduino_101/include/bsp/nrf_drv_config.h
deleted file mode 100644
index d111ac3..0000000
--- a/hw/bsp/nrf51-arduino_101/include/bsp/nrf_drv_config.h
+++ /dev/null
@@ -1,474 +0,0 @@
-/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#ifndef NRF_DRV_CONFIG_H
-#define NRF_DRV_CONFIG_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Provide a non-zero value here in applications that need to use several
- * peripherals with the same ID that are sharing certain resources
- * (for example, SPI0 and TWI0). Obviously, such peripherals cannot be used
- * simultaneously. Therefore, this definition allows to initialize the driver
- * for another peripheral from a given group only after the previously used one
- * is uninitialized. Normally, this is not possible, because interrupt handlers
- * are implemented in individual drivers.
- * This functionality requires a more complicated interrupt handling and driver
- * initialization, hence it is not always desirable to use it.
- */
-#define PERIPHERAL_RESOURCE_SHARING_ENABLED 1
-
-/* CLOCK */
-#define CLOCK_ENABLED 1
-
-#if (CLOCK_ENABLED == 1)
-#define CLOCK_CONFIG_XTAL_FREQ NRF_CLOCK_XTALFREQ_Default
-#define CLOCK_CONFIG_LF_SRC NRF_CLOCK_LFCLK_Xtal
-#define CLOCK_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* GPIOTE */
-#define GPIOTE_ENABLED 1
-
-#if (GPIOTE_ENABLED == 1)
-#define GPIOTE_CONFIG_USE_SWI_EGU false
-#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
-#endif
-
-/* TIMER */
-#define TIMER0_ENABLED 1
-
-#if (TIMER0_ENABLED == 1)
-#define TIMER0_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER0_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER0_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_32Bit
-#define TIMER0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER0_INSTANCE_INDEX 0
-#endif
-
-#define TIMER1_ENABLED 0
-
-#if (TIMER1_ENABLED == 1)
-#define TIMER1_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER1_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER1_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER1_INSTANCE_INDEX (TIMER0_ENABLED)
-#endif
-
-#define TIMER2_ENABLED 0
-
-#if (TIMER2_ENABLED == 1)
-#define TIMER2_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER2_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER2_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER2_INSTANCE_INDEX (TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER3_ENABLED 0
-
-#if (TIMER3_ENABLED == 1)
-#define TIMER3_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER3_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER3_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER3_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER3_INSTANCE_INDEX (TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-#define TIMER4_ENABLED 0
-
-#if (TIMER4_ENABLED == 1)
-#define TIMER4_CONFIG_FREQUENCY NRF_TIMER_FREQ_16MHz
-#define TIMER4_CONFIG_MODE TIMER_MODE_MODE_Timer
-#define TIMER4_CONFIG_BIT_WIDTH TIMER_BITMODE_BITMODE_16Bit
-#define TIMER4_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TIMER4_INSTANCE_INDEX (TIMER3_ENABLED+TIMER2_ENABLED+TIMER1_ENABLED+TIMER0_ENABLED)
-#endif
-
-
-#define TIMER_COUNT (TIMER0_ENABLED + TIMER1_ENABLED + TIMER2_ENABLED + TIMER3_ENABLED + TIMER4_ENABLED)
-
-/* RTC */
-#define RTC0_ENABLED 0
-
-#if (RTC0_ENABLED == 1)
-#define RTC0_CONFIG_FREQUENCY 32678
-#define RTC0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC0_CONFIG_RELIABLE false
-
-#define RTC0_INSTANCE_INDEX 0
-#endif
-
-#define RTC1_ENABLED 0
-
-#if (RTC1_ENABLED == 1)
-#define RTC1_CONFIG_FREQUENCY 32768
-#define RTC1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC1_CONFIG_RELIABLE false
-
-#define RTC1_INSTANCE_INDEX (RTC0_ENABLED)
-#endif
-
-#define RTC2_ENABLED 0
-
-#if (RTC2_ENABLED == 1)
-#define RTC2_CONFIG_FREQUENCY 32768
-#define RTC2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define RTC2_CONFIG_RELIABLE false
-
-#define RTC2_INSTANCE_INDEX (RTC0_ENABLED+RTC1_ENABLED)
-#endif
-
-
-#define RTC_COUNT (RTC0_ENABLED+RTC1_ENABLED+RTC2_ENABLED)
-
-#define NRF_MAXIMUM_LATENCY_US 2000
-
-/* RNG */
-#define RNG_ENABLED 1
-
-#if (RNG_ENABLED == 1)
-#define RNG_CONFIG_ERROR_CORRECTION true
-#define RNG_CONFIG_POOL_SIZE 8
-#define RNG_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PWM */
-
-#define PWM0_ENABLED 1
-
-#if (PWM0_ENABLED == 1)
-#define PWM0_CONFIG_OUT0_PIN 2
-#define PWM0_CONFIG_OUT1_PIN 3
-#define PWM0_CONFIG_OUT2_PIN 4
-#define PWM0_CONFIG_OUT3_PIN 5
-#define PWM0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM0_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM0_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM0_CONFIG_TOP_VALUE 1000
-#define PWM0_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM0_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM0_INSTANCE_INDEX 0
-#endif
-
-#define PWM1_ENABLED 0
-
-#if (PWM1_ENABLED == 1)
-#define PWM1_CONFIG_OUT0_PIN 2
-#define PWM1_CONFIG_OUT1_PIN 3
-#define PWM1_CONFIG_OUT2_PIN 4
-#define PWM1_CONFIG_OUT3_PIN 5
-#define PWM1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM1_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM1_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM1_CONFIG_TOP_VALUE 1000
-#define PWM1_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM1_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM1_INSTANCE_INDEX (PWM0_ENABLED)
-#endif
-
-#define PWM2_ENABLED 0
-
-#if (PWM2_ENABLED == 1)
-#define PWM2_CONFIG_OUT0_PIN 2
-#define PWM2_CONFIG_OUT1_PIN 3
-#define PWM2_CONFIG_OUT2_PIN 4
-#define PWM2_CONFIG_OUT3_PIN 5
-#define PWM2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define PWM2_CONFIG_BASE_CLOCK NRF_PWM_CLK_1MHz
-#define PWM2_CONFIG_COUNT_MODE NRF_PWM_MODE_UP
-#define PWM2_CONFIG_TOP_VALUE 1000
-#define PWM2_CONFIG_LOAD_MODE NRF_PWM_LOAD_COMMON
-#define PWM2_CONFIG_STEP_MODE NRF_PWM_STEP_AUTO
-
-#define PWM2_INSTANCE_INDEX (PWM0_ENABLED + PWM1_ENABLED)
-#endif
-
-#define PWM_COUNT (PWM0_ENABLED + PWM1_ENABLED + PWM2_ENABLED)
-
-/* SPI */
-#define SPI0_ENABLED 1
-
-#if (SPI0_ENABLED == 1)
-#define SPI0_USE_EASY_DMA 0
-/* NOTE: SCK definitions match NRF51 DK product brief */
-#define SPI0_CONFIG_CSN_PIN 24 /* Note: not defined by SDK */
-#define SPI0_CONFIG_SCK_PIN 29
-#define SPI0_CONFIG_MOSI_PIN 25
-#define SPI0_CONFIG_MISO_PIN 28
-#define SPI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI0_INSTANCE_INDEX 0
-#endif
-
-#define SPI1_ENABLED 0
-
-#if (SPI1_ENABLED == 1)
-#define SPI1_USE_EASY_DMA 0
-
-#define SPI1_CONFIG_SCK_PIN 2
-#define SPI1_CONFIG_MOSI_PIN 3
-#define SPI1_CONFIG_MISO_PIN 4
-#define SPI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI1_INSTANCE_INDEX (SPI0_ENABLED)
-#endif
-
-#define SPI2_ENABLED 0
-
-#if (SPI2_ENABLED == 1)
-#define SPI2_USE_EASY_DMA 0
-
-#define SPI2_CONFIG_SCK_PIN 2
-#define SPI2_CONFIG_MOSI_PIN 3
-#define SPI2_CONFIG_MISO_PIN 4
-#define SPI2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPI2_INSTANCE_INDEX (SPI0_ENABLED + SPI1_ENABLED)
-#endif
-
-#define SPI_COUNT (SPI0_ENABLED + SPI1_ENABLED + SPI2_ENABLED)
-
-/* SPIS */
-#define SPIS0_ENABLED 0
-
-#if (SPIS0_ENABLED == 1)
-#define SPIS0_CONFIG_SCK_PIN 2
-#define SPIS0_CONFIG_MOSI_PIN 3
-#define SPIS0_CONFIG_MISO_PIN 4
-#define SPIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS0_INSTANCE_INDEX 0
-#endif
-
-#define SPIS1_ENABLED 1
-
-#if (SPIS1_ENABLED == 1)
-#define SPIS1_CONFIG_CSN_PIN 24 /* Note: not defined by SDK */
-#define SPIS1_CONFIG_SCK_PIN 29
-#define SPIS1_CONFIG_MOSI_PIN 25
-#define SPIS1_CONFIG_MISO_PIN 28
-#define SPIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS1_INSTANCE_INDEX SPIS0_ENABLED
-#endif
-
-#define SPIS2_ENABLED 0
-
-#if (SPIS2_ENABLED == 1)
-#define SPIS2_CONFIG_SCK_PIN 2
-#define SPIS2_CONFIG_MOSI_PIN 3
-#define SPIS2_CONFIG_MISO_PIN 4
-#define SPIS2_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define SPIS2_INSTANCE_INDEX (SPIS0_ENABLED + SPIS1_ENABLED)
-#endif
-
-#define SPIS_COUNT (SPIS0_ENABLED + SPIS1_ENABLED + SPIS2_ENABLED)
-
-/* UART */
-#define UART0_ENABLED 1
-
-#if (UART0_ENABLED == 1)
-#define UART0_CONFIG_HWFC NRF_UART_HWFC_DISABLED
-#define UART0_CONFIG_PARITY NRF_UART_PARITY_EXCLUDED
-#define UART0_CONFIG_BAUDRATE NRF_UART_BAUDRATE_115200
-#define UART0_CONFIG_PSEL_TXD 0
-#define UART0_CONFIG_PSEL_RXD 0
-#define UART0_CONFIG_PSEL_CTS 0
-#define UART0_CONFIG_PSEL_RTS 0
-#define UART0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#ifdef NRF52
-#define UART0_CONFIG_USE_EASY_DMA false
-//Compile time flag
-#define UART_EASY_DMA_SUPPORT 1
-#define UART_LEGACY_SUPPORT 1
-#endif //NRF52
-#endif
-
-#define TWI0_ENABLED 1
-
-#if (TWI0_ENABLED == 1)
-#define TWI0_USE_EASY_DMA 0
-
-#define TWI0_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI0_CONFIG_SCL 0
-#define TWI0_CONFIG_SDA 1
-#define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI0_INSTANCE_INDEX 0
-#endif
-
-#define TWI1_ENABLED 0
-
-#if (TWI1_ENABLED == 1)
-#define TWI1_USE_EASY_DMA 0
-
-#define TWI1_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
-#define TWI1_CONFIG_SCL 0
-#define TWI1_CONFIG_SDA 1
-#define TWI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
-#define TWI1_INSTANCE_INDEX (TWI0_ENABLED)
-#endif
-
-#define TWI_COUNT (TWI0_ENABLED + TWI1_ENABLED)
-
-/* TWIS */
-#define TWIS0_ENABLED 0
-
-#if (TWIS0_ENABLED == 1)
- #define TWIS0_CONFIG_ADDR0 0
- #define TWIS0_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS0_CONFIG_SCL 0
- #define TWIS0_CONFIG_SDA 1
- #define TWIS0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS0_INSTANCE_INDEX 0
-#endif
-
-#define TWIS1_ENABLED 0
-
-#if (TWIS1_ENABLED == 1)
- #define TWIS1_CONFIG_ADDR0 0
- #define TWIS1_CONFIG_ADDR1 0 /* 0: Disabled */
- #define TWIS1_CONFIG_SCL 0
- #define TWIS1_CONFIG_SDA 1
- #define TWIS1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-
- #define TWIS1_INSTANCE_INDEX (TWIS0_ENABLED)
-#endif
-
-#define TWIS_COUNT (TWIS0_ENABLED + TWIS1_ENABLED)
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
-/* For more documentation see nrf_drv_twis.h file */
-#define TWIS_NO_SYNC_MODE 0
-
-/* QDEC */
-#define QDEC_ENABLED 1
-
-#if (QDEC_ENABLED == 1)
-#define QDEC_CONFIG_REPORTPER NRF_QDEC_REPORTPER_10
-#define QDEC_CONFIG_SAMPLEPER NRF_QDEC_SAMPLEPER_16384us
-#define QDEC_CONFIG_PIO_A 1
-#define QDEC_CONFIG_PIO_B 2
-#define QDEC_CONFIG_PIO_LED 3
-#define QDEC_CONFIG_LEDPRE 511
-#define QDEC_CONFIG_LEDPOL NRF_QDEC_LEPOL_ACTIVE_HIGH
-#define QDEC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define QDEC_CONFIG_DBFEN false
-#define QDEC_CONFIG_SAMPLE_INTEN false
-#endif
-
-/* ADC */
-#define ADC_ENABLED 1
-
-#if (ADC_ENABLED == 1)
-#define ADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-
-/* SAADC */
-#define SAADC_ENABLED 0
-
-#if (SAADC_ENABLED == 1)
-#define SAADC_CONFIG_RESOLUTION NRF_SAADC_RESOLUTION_10BIT
-#define SAADC_CONFIG_OVERSAMPLE NRF_SAADC_OVERSAMPLE_DISABLED
-#define SAADC_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* PDM */
-#define PDM_ENABLED 0
-
-#if (PDM_ENABLED == 1)
-#define PDM_CONFIG_MODE NRF_PDM_MODE_MONO
-#define PDM_CONFIG_EDGE NRF_PDM_EDGE_LEFTFALLING
-#define PDM_CONFIG_CLOCK_FREQ NRF_PDM_FREQ_1032K
-#define PDM_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#endif
-
-/* COMP */
-#define COMP_ENABLED 0
-
-#if (COMP_ENABLED == 1)
-#define COMP_CONFIG_REF NRF_COMP_REF_Int1V8
-#define COMP_CONFIG_MAIN_MODE NRF_COMP_MAIN_MODE_SE
-#define COMP_CONFIG_SPEED_MODE NRF_COMP_SP_MODE_High
-#define COMP_CONFIG_HYST NRF_COMP_HYST_NoHyst
-#define COMP_CONFIG_ISOURCE NRF_COMP_ISOURCE_Off
-#define COMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define COMP_CONFIG_INPUT NRF_COMP_INPUT_0
-#endif
-
-/* LPCOMP */
-#define LPCOMP_ENABLED 1
-
-#if (LPCOMP_ENABLED == 1)
-#define LPCOMP_CONFIG_REFERENCE NRF_LPCOMP_REF_SUPPLY_4_8
-#define LPCOMP_CONFIG_DETECTION NRF_LPCOMP_DETECT_DOWN
-#define LPCOMP_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
-#define LPCOMP_CONFIG_INPUT NRF_LPCOMP_INPUT_0
-#endif
-
-/* WDT */
-#define WDT_ENABLED 1
-
-#if (WDT_ENABLED == 1)
-#define WDT_CONFIG_BEHAVIOUR NRF_WDT_BEHAVIOUR_RUN_SLEEP
-#define WDT_CONFIG_RELOAD_VALUE 2000
-#define WDT_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#endif
-
-/* SWI EGU */
-#ifdef NRF52
- #define EGU_ENABLED 0
-#endif
-
-/* I2S */
-#define I2S_ENABLED 0
-
-#if (I2S_ENABLED == 1)
-#define I2S_CONFIG_SCK_PIN 22
-#define I2S_CONFIG_LRCK_PIN 23
-#define I2S_CONFIG_MCK_PIN NRF_DRV_I2S_PIN_NOT_USED
-#define I2S_CONFIG_SDOUT_PIN 24
-#define I2S_CONFIG_SDIN_PIN 25
-#define I2S_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
-#define I2S_CONFIG_MASTER NRF_I2S_MODE_MASTER
-#define I2S_CONFIG_FORMAT NRF_I2S_FORMAT_I2S
-#define I2S_CONFIG_ALIGN NRF_I2S_ALIGN_LEFT
-#define I2S_CONFIG_SWIDTH NRF_I2S_SWIDTH_16BIT
-#define I2S_CONFIG_CHANNELS NRF_I2S_CHANNELS_STEREO
-#define I2S_CONFIG_MCK_SETUP NRF_I2S_MCK_32MDIV8
-#define I2S_CONFIG_RATIO NRF_I2S_RATIO_256X
-#endif
-
-#include "nrf_drv_config_validation.h"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // NRF_DRV_CONFIG_H