├── README.md ├── USB-IF ├── DAPLink.jpg ├── README.md └── interface.jpg ├── nRF51822 ├── README.md ├── arduino │ ├── 98-daplink.rules │ ├── README.md │ ├── VERSION.md │ └── arduino-1.6.x │ │ └── hardware │ │ └── RBL │ │ └── RBL_nRF51822 │ │ ├── avrdude_conf │ │ └── avrdude.conf │ │ ├── boards.txt │ │ ├── bootloaders │ │ └── bootloader.hex │ │ ├── cores │ │ └── RBL_nRF51822 │ │ │ ├── Arduino.h │ │ │ ├── BLE_API.h │ │ │ ├── HardwareSerial.h │ │ │ ├── Print.cpp │ │ │ ├── Print.h │ │ │ ├── Printable.h │ │ │ ├── WCharacter.h │ │ │ ├── WMath.cpp │ │ │ ├── WMath.h │ │ │ ├── WStream.cpp │ │ │ ├── WStream.h │ │ │ ├── WString.cpp │ │ │ ├── WString.h │ │ │ ├── avr │ │ │ └── pgmspace.h │ │ │ ├── binary.h │ │ │ ├── ble-master │ │ │ ├── .gitignore │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── DOXYGEN_FRONTPAGE.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── apache-2.0.txt │ │ │ ├── ble.doxyfile │ │ │ ├── ble │ │ │ │ ├── BLE.h │ │ │ │ ├── BLEInstanceBase.h │ │ │ │ ├── BLEProtocol.h │ │ │ │ ├── CallChainOfFunctionPointersWithContext.h │ │ │ │ ├── CharacteristicDescriptorDiscovery.h │ │ │ │ ├── DiscoveredCharacteristic.h │ │ │ │ ├── DiscoveredCharacteristicDescriptor.h │ │ │ │ ├── DiscoveredService.h │ │ │ │ ├── FunctionPointerWithContext.h │ │ │ │ ├── Gap.h │ │ │ │ ├── GapAdvertisingData.h │ │ │ │ ├── GapAdvertisingParams.h │ │ │ │ ├── GapEvents.h │ │ │ │ ├── GapScanningParams.h │ │ │ │ ├── GattAttribute.h │ │ │ │ ├── GattCallbackParamTypes.h │ │ │ │ ├── GattCharacteristic.h │ │ │ │ ├── GattClient.h │ │ │ │ ├── GattServer.h │ │ │ │ ├── GattServerEvents.h │ │ │ │ ├── GattService.h │ │ │ │ ├── SafeBool.h │ │ │ │ ├── SecurityManager.h │ │ │ │ ├── ServiceDiscovery.h │ │ │ │ ├── UUID.h │ │ │ │ ├── blecommon.h │ │ │ │ ├── deprecate.h │ │ │ │ └── services │ │ │ │ │ ├── BatteryService.h │ │ │ │ │ ├── DFUService.h │ │ │ │ │ ├── DeviceInformationService.h │ │ │ │ │ ├── EddystoneConfigService.h │ │ │ │ │ ├── EddystoneService.h │ │ │ │ │ ├── EnvironmentalService.h │ │ │ │ │ ├── HealthThermometerService.h │ │ │ │ │ ├── HeartRateService.h │ │ │ │ │ ├── LinkLossService.h │ │ │ │ │ ├── UARTService.h │ │ │ │ │ ├── URIBeaconConfigService.h │ │ │ │ │ └── iBeacon.h │ │ │ ├── module.json │ │ │ └── source │ │ │ │ ├── BLE.cpp │ │ │ │ ├── DiscoveredCharacteristic.cpp │ │ │ │ ├── GapScanningParams.cpp │ │ │ │ └── services │ │ │ │ ├── DFUService.cpp │ │ │ │ ├── UARTService.cpp │ │ │ │ └── URIBeaconConfigService.cpp │ │ │ ├── ble-nrf51822-master │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── apache-2.0.txt │ │ │ ├── module.json │ │ │ ├── softdevice_nrf51822_licence_agreement.txt │ │ │ └── source │ │ │ │ ├── btle │ │ │ │ ├── btle.cpp │ │ │ │ ├── btle.h │ │ │ │ ├── btle_advertising.cpp │ │ │ │ ├── btle_advertising.h │ │ │ │ ├── btle_discovery.cpp │ │ │ │ ├── btle_discovery.h │ │ │ │ ├── btle_gap.cpp │ │ │ │ ├── btle_gap.h │ │ │ │ ├── btle_security.cpp │ │ │ │ ├── btle_security.h │ │ │ │ └── custom │ │ │ │ │ ├── custom_helper.cpp │ │ │ │ │ └── custom_helper.h │ │ │ │ ├── common │ │ │ │ ├── ansi_escape.h │ │ │ │ ├── assertion.h │ │ │ │ ├── binary.h │ │ │ │ ├── ble_error.h │ │ │ │ ├── common.h │ │ │ │ └── compiler.h │ │ │ │ ├── nRF5xCharacteristicDescriptorDiscoverer.cpp │ │ │ │ ├── nRF5xCharacteristicDescriptorDiscoverer.h │ │ │ │ ├── nRF5xDiscoveredCharacteristic.cpp │ │ │ │ ├── nRF5xDiscoveredCharacteristic.h │ │ │ │ ├── nRF5xGap.cpp │ │ │ │ ├── nRF5xGap.h │ │ │ │ ├── nRF5xGattClient.cpp │ │ │ │ ├── nRF5xGattClient.h │ │ │ │ ├── nRF5xGattServer.cpp │ │ │ │ ├── nRF5xGattServer.h │ │ │ │ ├── nRF5xSecurityManager.h │ │ │ │ ├── nRF5xServiceDiscovery.cpp │ │ │ │ ├── nRF5xServiceDiscovery.h │ │ │ │ ├── nRF5xn.cpp │ │ │ │ ├── nRF5xn.h │ │ │ │ ├── nordic_sdk │ │ │ │ └── components │ │ │ │ │ ├── ble │ │ │ │ │ ├── ble_radio_notification │ │ │ │ │ │ ├── ble_radio_notification.c │ │ │ │ │ │ └── ble_radio_notification.h │ │ │ │ │ ├── ble_services │ │ │ │ │ │ └── ble_dfu │ │ │ │ │ │ │ ├── ble_dfu.c │ │ │ │ │ │ │ └── ble_dfu.h │ │ │ │ │ ├── common │ │ │ │ │ │ ├── ble_advdata.c │ │ │ │ │ │ ├── ble_advdata.h │ │ │ │ │ │ ├── ble_conn_params.cpp │ │ │ │ │ │ ├── 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_peripheral.c │ │ │ │ │ └── peer_manager │ │ │ │ │ │ ├── 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_types.h │ │ │ │ │ │ ├── pm_buffer.c │ │ │ │ │ │ ├── pm_buffer.h │ │ │ │ │ │ ├── pm_mutex.c │ │ │ │ │ │ └── pm_mutex.h │ │ │ │ │ ├── device │ │ │ │ │ ├── compiler_abstraction.h │ │ │ │ │ ├── nrf.h │ │ │ │ │ ├── nrf51.h │ │ │ │ │ ├── nrf51_bitfields.h │ │ │ │ │ └── nrf51_deprecated.h │ │ │ │ │ ├── drivers_nrf │ │ │ │ │ ├── ble_flash │ │ │ │ │ │ ├── ble_flash.c │ │ │ │ │ │ └── ble_flash.h │ │ │ │ │ ├── delay │ │ │ │ │ │ ├── nrf_delay.c │ │ │ │ │ │ └── nrf_delay.h │ │ │ │ │ ├── hal │ │ │ │ │ │ ├── nrf_ecb.c │ │ │ │ │ │ ├── nrf_ecb.h │ │ │ │ │ │ ├── nrf_gpio.h │ │ │ │ │ │ ├── nrf_gpiote.h │ │ │ │ │ │ ├── nrf_nvmc.c │ │ │ │ │ │ ├── nrf_nvmc.h │ │ │ │ │ │ ├── nrf_temp.h │ │ │ │ │ │ └── nrf_wdt.h │ │ │ │ │ └── pstorage │ │ │ │ │ │ ├── config │ │ │ │ │ │ └── pstorage_platform.h │ │ │ │ │ │ ├── pstorage.c │ │ │ │ │ │ └── pstorage.h │ │ │ │ │ ├── libraries │ │ │ │ │ ├── bootloader_dfu │ │ │ │ │ │ ├── bootloader.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_init.h │ │ │ │ │ │ ├── dfu_init_template.c │ │ │ │ │ │ ├── dfu_transport.h │ │ │ │ │ │ ├── dfu_types.h │ │ │ │ │ │ └── hci_transport │ │ │ │ │ │ │ └── hci_mem_pool_internal.h │ │ │ │ │ ├── crc16 │ │ │ │ │ │ ├── crc16.c │ │ │ │ │ │ └── crc16.h │ │ │ │ │ ├── experimental_section_vars │ │ │ │ │ │ └── section_vars.h │ │ │ │ │ ├── fds │ │ │ │ │ │ ├── fds.c │ │ │ │ │ │ ├── fds.h │ │ │ │ │ │ ├── fds_config.h │ │ │ │ │ │ └── fds_types_internal.h │ │ │ │ │ ├── fstorage │ │ │ │ │ │ ├── fstorage.c │ │ │ │ │ │ ├── fstorage.h │ │ │ │ │ │ ├── fstorage_config.h │ │ │ │ │ │ └── fstorage_nosd.c │ │ │ │ │ ├── hci │ │ │ │ │ │ ├── hci_mem_pool.c │ │ │ │ │ │ └── hci_mem_pool.h │ │ │ │ │ ├── scheduler │ │ │ │ │ │ ├── app_scheduler.c │ │ │ │ │ │ └── app_scheduler.h │ │ │ │ │ ├── timer │ │ │ │ │ │ └── app_timer.h │ │ │ │ │ └── util │ │ │ │ │ │ ├── app_error.c │ │ │ │ │ │ ├── app_error.h │ │ │ │ │ │ ├── app_util.h │ │ │ │ │ │ ├── app_util_platform.c │ │ │ │ │ │ ├── app_util_platform.h │ │ │ │ │ │ ├── common.h │ │ │ │ │ │ ├── nordic_common.h │ │ │ │ │ │ ├── nrf_assert.c │ │ │ │ │ │ ├── nrf_assert.h │ │ │ │ │ │ ├── sdk_common.h │ │ │ │ │ │ ├── sdk_errors.h │ │ │ │ │ │ ├── sdk_mapped_flags.c │ │ │ │ │ │ ├── sdk_mapped_flags.h │ │ │ │ │ │ └── sdk_os.h │ │ │ │ │ └── softdevice │ │ │ │ │ ├── common │ │ │ │ │ └── softdevice_handler │ │ │ │ │ │ ├── ant_stack_handler_types.h │ │ │ │ │ │ ├── ble_stack_handler_types.h │ │ │ │ │ │ ├── softdevice_handler.c │ │ │ │ │ │ ├── softdevice_handler.h │ │ │ │ │ │ ├── softdevice_handler_appsh.c │ │ │ │ │ │ └── softdevice_handler_appsh.h │ │ │ │ │ └── s130 │ │ │ │ │ └── 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 │ │ │ │ │ ├── nrf_error.h │ │ │ │ │ ├── nrf_error_sdm.h │ │ │ │ │ ├── nrf_error_soc.h │ │ │ │ │ ├── nrf_mbr.h │ │ │ │ │ ├── nrf_sdm.h │ │ │ │ │ ├── nrf_soc.h │ │ │ │ │ ├── nrf_svc.h │ │ │ │ │ └── softdevice_assert.h │ │ │ │ ├── projectconfig.h │ │ │ │ └── supress-warnings.cmake │ │ │ ├── itoa.c │ │ │ ├── itoa.h │ │ │ ├── main.cpp │ │ │ ├── mbed │ │ │ ├── .yotta_ignore │ │ │ ├── CMakeLists.txt │ │ │ ├── api │ │ │ │ ├── AnalogIn.h │ │ │ │ ├── AnalogOut.h │ │ │ │ ├── BusIn.h │ │ │ │ ├── BusInOut.h │ │ │ │ ├── BusOut.h │ │ │ │ ├── CAN.h │ │ │ │ ├── CThunk.h │ │ │ │ ├── CallChain.h │ │ │ │ ├── CircularBuffer.h │ │ │ │ ├── DigitalIn.h │ │ │ │ ├── DigitalInOut.h │ │ │ │ ├── DigitalOut.h │ │ │ │ ├── DirHandle.h │ │ │ │ ├── Ethernet.h │ │ │ │ ├── FileBase.h │ │ │ │ ├── FileHandle.h │ │ │ │ ├── FileLike.h │ │ │ │ ├── FilePath.h │ │ │ │ ├── FileSystemLike.h │ │ │ │ ├── FunctionPointer.h │ │ │ │ ├── I2C.h │ │ │ │ ├── I2CSlave.h │ │ │ │ ├── InterruptIn.h │ │ │ │ ├── InterruptManager.h │ │ │ │ ├── LocalFileSystem.h │ │ │ │ ├── LowPowerTicker.h │ │ │ │ ├── LowPowerTimeout.h │ │ │ │ ├── LowPowerTimer.h │ │ │ │ ├── PortIn.h │ │ │ │ ├── PortInOut.h │ │ │ │ ├── PortOut.h │ │ │ │ ├── PwmOut.h │ │ │ │ ├── RawSerial.h │ │ │ │ ├── SPI.h │ │ │ │ ├── SPISlave.h │ │ │ │ ├── Serial.h │ │ │ │ ├── SerialBase.h │ │ │ │ ├── Stream.h │ │ │ │ ├── Ticker.h │ │ │ │ ├── Timeout.h │ │ │ │ ├── Timer.h │ │ │ │ ├── TimerEvent.h │ │ │ │ ├── Transaction.h │ │ │ │ ├── can_helper.h │ │ │ │ ├── mbed.h │ │ │ │ ├── mbed_assert.h │ │ │ │ ├── mbed_debug.h │ │ │ │ ├── mbed_error.h │ │ │ │ ├── mbed_interface.h │ │ │ │ ├── platform.h │ │ │ │ ├── rtc_time.h │ │ │ │ ├── semihost_api.h │ │ │ │ ├── toolchain.h │ │ │ │ └── wait_api.h │ │ │ ├── common │ │ │ │ ├── BusIn.cpp │ │ │ │ ├── BusInOut.cpp │ │ │ │ ├── BusOut.cpp │ │ │ │ ├── CAN.cpp │ │ │ │ ├── CallChain.cpp │ │ │ │ ├── Ethernet.cpp │ │ │ │ ├── FileBase.cpp │ │ │ │ ├── FileLike.cpp │ │ │ │ ├── FilePath.cpp │ │ │ │ ├── FileSystemLike.cpp │ │ │ │ ├── I2C.cpp │ │ │ │ ├── I2CSlave.cpp │ │ │ │ ├── InterruptIn.cpp │ │ │ │ ├── InterruptManager.cpp │ │ │ │ ├── LocalFileSystem.cpp │ │ │ │ ├── RawSerial.cpp │ │ │ │ ├── SPI.cpp │ │ │ │ ├── SPISlave.cpp │ │ │ │ ├── Serial.cpp │ │ │ │ ├── SerialBase.cpp │ │ │ │ ├── Stream.cpp │ │ │ │ ├── Ticker.cpp │ │ │ │ ├── Timeout.cpp │ │ │ │ ├── Timer.cpp │ │ │ │ ├── TimerEvent.cpp │ │ │ │ ├── assert.c │ │ │ │ ├── board.c │ │ │ │ ├── error.c │ │ │ │ ├── gpio.c │ │ │ │ ├── lp_ticker_api.c │ │ │ │ ├── mbed_interface.c │ │ │ │ ├── pinmap_common.c │ │ │ │ ├── retarget.cpp │ │ │ │ ├── rtc_time.c │ │ │ │ ├── semihost_api.c │ │ │ │ ├── ticker_api.c │ │ │ │ ├── us_ticker_api.c │ │ │ │ └── wait_api.c │ │ │ ├── hal │ │ │ │ ├── analogin_api.h │ │ │ │ ├── analogout_api.h │ │ │ │ ├── buffer.h │ │ │ │ ├── can_api.h │ │ │ │ ├── dma_api.h │ │ │ │ ├── ethernet_api.h │ │ │ │ ├── gpio_api.h │ │ │ │ ├── gpio_irq_api.h │ │ │ │ ├── i2c_api.h │ │ │ │ ├── lp_ticker_api.h │ │ │ │ ├── pinmap.h │ │ │ │ ├── port_api.h │ │ │ │ ├── pwmout_api.h │ │ │ │ ├── rtc_api.h │ │ │ │ ├── serial_api.h │ │ │ │ ├── sleep_api.h │ │ │ │ ├── spi_api.h │ │ │ │ ├── ticker_api.h │ │ │ │ └── us_ticker_api.h │ │ │ ├── module.json │ │ │ └── targets │ │ │ │ ├── cmsis │ │ │ │ ├── TARGET_NORDIC │ │ │ │ │ └── TARGET_MCU_NRF51822 │ │ │ │ │ │ ├── cmsis.h │ │ │ │ │ │ ├── cmsis_nvic.c │ │ │ │ │ │ ├── cmsis_nvic.h │ │ │ │ │ │ ├── compiler_abstraction.h │ │ │ │ │ │ ├── nrf.h │ │ │ │ │ │ ├── nrf51.h │ │ │ │ │ │ ├── nrf51.hxxxx │ │ │ │ │ │ ├── nrf51_bitfields.h │ │ │ │ │ │ ├── nrf51_bitfields.hxxxx │ │ │ │ │ │ ├── nrf_delay.h │ │ │ │ │ │ ├── system_nrf51.c │ │ │ │ │ │ └── system_nrf51.h │ │ │ │ ├── arm_common_tables.h │ │ │ │ ├── arm_const_structs.h │ │ │ │ ├── arm_math.h │ │ │ │ ├── core_ca9.h │ │ │ │ ├── core_caFunc.h │ │ │ │ ├── core_caInstr.h │ │ │ │ ├── core_ca_mmu.h │ │ │ │ ├── core_cm0.h │ │ │ │ ├── core_cm0plus.h │ │ │ │ ├── core_cm3.h │ │ │ │ ├── core_cm4.h │ │ │ │ ├── core_cm4_simd.h │ │ │ │ ├── core_cm7.h │ │ │ │ ├── core_cmFunc.h │ │ │ │ ├── core_cmInstr.h │ │ │ │ ├── core_cmSimd.h │ │ │ │ ├── core_sc000.h │ │ │ │ └── core_sc300.h │ │ │ │ └── hal │ │ │ │ └── TARGET_NORDIC │ │ │ │ └── TARGET_MCU_NRF51822 │ │ │ │ ├── PeripheralNames.h │ │ │ │ ├── PortNames.h │ │ │ │ ├── TARGET_RBLAB_BLENANO │ │ │ │ ├── PinNames.h │ │ │ │ └── device.h │ │ │ │ ├── TARGET_RBLAB_NRF51822 │ │ │ │ ├── PinNames.h │ │ │ │ └── device.h │ │ │ │ ├── analogin_api.c │ │ │ │ ├── gpio_api.c │ │ │ │ ├── gpio_irq_api.c │ │ │ │ ├── gpio_object.h │ │ │ │ ├── i2c_api.c │ │ │ │ ├── objects.h │ │ │ │ ├── pinmap.c │ │ │ │ ├── port_api.c │ │ │ │ ├── pwmout_api.c │ │ │ │ ├── serial_api.c │ │ │ │ ├── sleep.c │ │ │ │ ├── spi_api.c │ │ │ │ ├── twi_config.h │ │ │ │ ├── twi_master.c │ │ │ │ ├── twi_master.h │ │ │ │ └── us_ticker.c │ │ │ ├── nRF51822_API.h │ │ │ ├── pin_transform.cpp │ │ │ ├── pin_transform.h │ │ │ ├── startup_NRF51822.S │ │ │ ├── wiring_analog.cpp │ │ │ ├── wiring_analog.h │ │ │ ├── wiring_buffer.cpp │ │ │ ├── wiring_buffer.h │ │ │ ├── wiring_constants.h │ │ │ ├── wiring_delay.cpp │ │ │ ├── wiring_delay.h │ │ │ ├── wiring_digital.cpp │ │ │ ├── wiring_digital.h │ │ │ ├── wiring_interrupter.cpp │ │ │ ├── wiring_interrupter.h │ │ │ ├── wiring_serial.cpp │ │ │ ├── wiring_serial.h │ │ │ ├── wiring_shift_pulseIn.cpp │ │ │ └── wiring_shift_pulseIn.h │ │ ├── libraries │ │ ├── BLE_Examples │ │ │ ├── examples │ │ │ │ ├── BLEController │ │ │ │ │ ├── BLEController.ino │ │ │ │ │ └── pin_inf.h │ │ │ │ ├── BLE_CentralTest │ │ │ │ │ └── BLE_CentralTest.ino │ │ │ │ ├── BLE_HRM │ │ │ │ │ └── BLE_HRM.ino │ │ │ │ ├── BLE_RGB_Switch │ │ │ │ │ └── BLE_RGB_Switch.ino │ │ │ │ ├── BLE_ScanReport │ │ │ │ │ └── BLE_ScanReport.ino │ │ │ │ ├── BLE_Serial │ │ │ │ │ └── BLE_Serial.ino │ │ │ │ ├── BLE_SimplePeripheral │ │ │ │ │ └── BLE_SimplePeripheral.ino │ │ │ │ ├── BLE_beacon │ │ │ │ │ └── BLE_beacon.ino │ │ │ │ ├── BLE_multi_role │ │ │ │ │ └── BLE_multi_role.ino │ │ │ │ ├── SimpleChat │ │ │ │ │ └── SimpleChat.ino │ │ │ │ └── SimpleControls │ │ │ │ │ └── SimpleControls.ino │ │ │ ├── keywords.txt │ │ │ ├── library.properties │ │ │ └── src │ │ │ │ └── invalid.h │ │ ├── SPI_Master │ │ │ ├── SPI_Master.cpp │ │ │ ├── SPI_Master.h │ │ │ ├── examples │ │ │ │ ├── SPI_Flash_45DB021D │ │ │ │ │ └── SPI_Flash_45DB021D.ino │ │ │ │ └── SPI_Master_write │ │ │ │ │ └── SPI_Master_write.ino │ │ │ └── keywords.txt │ │ ├── Servo │ │ │ ├── Servo.cpp │ │ │ ├── Servo.h │ │ │ ├── examples │ │ │ │ └── Sweep │ │ │ │ │ └── Sweep.ino │ │ │ └── keywords.txt │ │ ├── Wire │ │ │ ├── Wire.cpp │ │ │ ├── Wire.h │ │ │ ├── examples │ │ │ │ ├── AT24C512_Demo │ │ │ │ │ └── AT24C512_Demo.ino │ │ │ │ ├── master_read │ │ │ │ │ └── master_read.ino │ │ │ │ └── master_write │ │ │ │ │ └── master_write.ino │ │ │ └── keywords.txt │ │ └── nRF_Examples │ │ │ ├── README.adoc │ │ │ ├── examples │ │ │ ├── External_Interrupter │ │ │ │ └── External_Interrupter.ino │ │ │ ├── Serial_IRQ_Handle │ │ │ │ └── Serial_IRQ_Handle.ino │ │ │ └── Ticker_Task │ │ │ │ └── Ticker_Task.ino │ │ │ ├── keywords.txt │ │ │ ├── library.properties │ │ │ └── src │ │ │ └── invalid.h │ │ ├── platform.txt │ │ ├── programmers.txt │ │ └── variants │ │ ├── BLE_Nano │ │ ├── linker_scripts │ │ │ └── gcc │ │ │ │ └── RBL_nRF51822.ld │ │ └── pins_arduino.h │ │ ├── BLE_Nano_32KB │ │ ├── linker_scripts │ │ │ └── gcc │ │ │ │ ├── RBL_nRF51822.ld │ │ │ │ └── RBL_nRF51822.ldxxx │ │ └── pins_arduino.h │ │ ├── RBL_nRF51822 │ │ ├── linker_scripts │ │ │ └── gcc │ │ │ │ └── RBL_nRF51822.ld │ │ └── pins_arduino.h │ │ └── RBL_nRF51822_32KB │ │ ├── linker_scripts │ │ └── gcc │ │ │ └── RBL_nRF51822.ld │ │ └── pins_arduino.h ├── daplink │ ├── DAPLink_MK20_RBL_nRF51822.bin │ ├── F103-DAPLink │ │ ├── board_v1.0 │ │ │ └── DAPLink_F103_BLENano.bin │ │ └── board_v1.5 │ │ │ └── gd32f103cb_rblnano_if_crc_legacy_0x8000_20161130.bin │ └── MK20-USB │ │ ├── board_v1.0 │ │ └── DAPLink_MK20_BLENano.bin │ │ └── board_v1.5 │ │ ├── CMSIS-DAP_MK20_BLENano.bin │ │ └── RBL_nRF51822_MK20.bin ├── datasheet │ └── README.md ├── dfu │ ├── README.md │ ├── SoftdeviceS130_1.0_Bootloader_20160824.hex │ ├── SoftdeviceS130_1.0_Bootloader_Blinky_20160824.hex │ ├── bootloader.hex │ └── rbl_nrf51822_bootloader │ │ ├── Abstract.txt │ │ ├── config │ │ └── pstorage_platform.h │ │ ├── dfu_ble_svc.c │ │ ├── dfu_gcc_nrf51.ld │ │ ├── hex │ │ └── dfu_dual_bank_ble_s130_pca10028.hex │ │ ├── license.txt │ │ ├── main.c │ │ └── pca10028 │ │ └── dual_bank_ble_s130 │ │ ├── arm4 │ │ ├── dfu_dual_bank_ble_s130_pca10028.uvgui │ │ ├── dfu_dual_bank_ble_s130_pca10028.uvopt │ │ └── dfu_dual_bank_ble_s130_pca10028.uvproj │ │ ├── arm5_no_packs │ │ ├── RTE │ │ │ ├── Device │ │ │ │ ├── nRF51422_xxAC │ │ │ │ │ ├── arm_startup_nrf51.s │ │ │ │ │ ├── arm_startup_nrf51.s.0000 │ │ │ │ │ ├── system_nrf51.c │ │ │ │ │ └── system_nrf51.c.0000 │ │ │ │ └── nRF51822_xxAA │ │ │ │ │ ├── arm_startup_nrf51.s │ │ │ │ │ └── system_nrf51.c │ │ │ └── RTE_Components.h │ │ ├── dfu_dual_bank_ble_s130_pca10028.uvoptx │ │ └── dfu_dual_bank_ble_s130_pca10028.uvprojx │ │ └── armgcc │ │ └── Makefile ├── docs │ ├── RB_Nano_Doc_6-8-15.pdf │ ├── images │ │ └── ble_nano_pinout.png │ └── nRF51822 Nano V1.5.dxf ├── mbed │ └── README.md ├── pcb │ ├── BLE Nano v1.5 gerber.zip │ ├── README.md │ └── schematic │ │ ├── BLENano_1.0_20141010.pdf │ │ ├── DAPLink_USB_1.0_20160621.pdf │ │ ├── MK20_USB_1.0_20141010.pdf │ │ ├── RBL_nRF51822_1.0_Components.pdf │ │ └── RBL_nRF51822_1.0_Schematic.pdf └── test │ ├── README.md │ ├── blinky_project │ ├── Abstract.txt │ ├── blinky.eww │ ├── hex │ │ ├── blinky_pca10028.hex │ │ ├── blinky_pca10028_s130.hex │ │ ├── blinky_pca10031.hex │ │ ├── blinky_pca10031_s130.hex │ │ ├── blinky_pca10040.hex │ │ └── blinky_pca10040_s132.hex │ ├── license.txt │ ├── main.c │ └── pca10028 │ │ └── blank │ │ ├── arm4 │ │ ├── blinky_pca10028.uvopt │ │ └── blinky_pca10028.uvproj │ │ ├── arm5_no_packs │ │ ├── RTE │ │ │ ├── Device │ │ │ │ └── nRF51422_xxAC │ │ │ │ │ ├── arm_startup_nrf51.s │ │ │ │ │ ├── arm_startup_nrf51.s.0000 │ │ │ │ │ ├── system_nrf51.c │ │ │ │ │ └── system_nrf51.c.0000 │ │ │ └── RTE_Components.h │ │ ├── blinky_pca10028.uvoptx │ │ └── blinky_pca10028.uvprojx │ │ ├── armgcc │ │ ├── Makefile │ │ └── blinky_gcc_nrf51.ld │ │ ├── config │ │ └── sdk_config.h │ │ └── iar │ │ ├── blinky_iar_nRF5x.icf │ │ ├── blinky_pca10028.ewd │ │ └── blinky_pca10028.ewp │ ├── nRF51822_HeartRate_RBLAB_BLENANO.hex │ ├── nRF51822_HeartRate_RBLAB_NRF51822.hex │ ├── nRF51822_blinky_RBLAB_BLENANO.hex │ ├── nRF51822_blinky_RBLAB_NRF51822.hex │ └── nRF51822_blinky_without_sd.hex └── nRF52832 ├── README.md ├── arduino ├── README.md └── arduino-1.8.0 │ └── hardware │ └── RBL │ └── RBL_nRF52832 │ ├── boards.txt │ ├── bootloaders │ └── SoftdeviceS132_2.0_SDK11_Bootloader_20161221.hex │ ├── cores │ └── RBL_nRF52832 │ │ ├── Arduino.h │ │ ├── FEATURE_BLE │ │ ├── ble │ │ │ ├── BLE.h │ │ │ ├── BLEInstanceBase.h │ │ │ ├── BLEProtocol.h │ │ │ ├── CallChainOfFunctionPointersWithContext.h │ │ │ ├── CharacteristicDescriptorDiscovery.h │ │ │ ├── DiscoveredCharacteristic.h │ │ │ ├── DiscoveredCharacteristicDescriptor.h │ │ │ ├── DiscoveredService.h │ │ │ ├── FunctionPointerWithContext.h │ │ │ ├── Gap.h │ │ │ ├── GapAdvertisingData.h │ │ │ ├── GapAdvertisingParams.h │ │ │ ├── GapEvents.h │ │ │ ├── GapScanningParams.h │ │ │ ├── GattAttribute.h │ │ │ ├── GattCallbackParamTypes.h │ │ │ ├── GattCharacteristic.h │ │ │ ├── GattClient.h │ │ │ ├── GattServer.h │ │ │ ├── GattServerEvents.h │ │ │ ├── GattService.h │ │ │ ├── SafeBool.h │ │ │ ├── SecurityManager.h │ │ │ ├── ServiceDiscovery.h │ │ │ ├── UUID.h │ │ │ ├── blecommon.h │ │ │ ├── deprecate.h │ │ │ └── services │ │ │ │ ├── BatteryService.h │ │ │ │ ├── DFUService.h │ │ │ │ ├── DeviceInformationService.h │ │ │ │ ├── EddystoneConfigService.h │ │ │ │ ├── EddystoneService.h │ │ │ │ ├── EnvironmentalService.h │ │ │ │ ├── HealthThermometerService.h │ │ │ │ ├── HeartRateService.h │ │ │ │ ├── LinkLossService.h │ │ │ │ ├── UARTService.h │ │ │ │ ├── URIBeaconConfigService.h │ │ │ │ └── iBeacon.h │ │ ├── nRF5x_BLE_API.h │ │ ├── source │ │ │ ├── BLE.cpp │ │ │ ├── BLEInstanceBase.cpp │ │ │ ├── DiscoveredCharacteristic.cpp │ │ │ ├── GapScanningParams.cpp │ │ │ └── services │ │ │ │ ├── DFUService.cpp │ │ │ │ ├── UARTService.cpp │ │ │ │ └── URIBeaconConfigService.cpp │ │ └── targets │ │ │ └── TARGET_NORDIC │ │ │ └── TARGET_NRF5 │ │ │ └── source │ │ │ ├── btle │ │ │ ├── btle.cpp │ │ │ ├── btle.h │ │ │ ├── btle_advertising.cpp │ │ │ ├── btle_advertising.h │ │ │ ├── btle_clock.h │ │ │ ├── btle_discovery.cpp │ │ │ ├── btle_discovery.h │ │ │ ├── btle_gap.cpp │ │ │ ├── btle_gap.h │ │ │ ├── btle_security.cpp │ │ │ ├── btle_security.h │ │ │ ├── btle_security_pm.cpp │ │ │ └── custom │ │ │ │ ├── custom_helper.cpp │ │ │ │ └── custom_helper.h │ │ │ ├── common │ │ │ ├── ansi_escape.h │ │ │ ├── assertion.h │ │ │ ├── binary.h │ │ │ ├── ble_error.h │ │ │ ├── common.h │ │ │ └── compiler.h │ │ │ ├── nRF5xCharacteristicDescriptorDiscoverer.cpp │ │ │ ├── nRF5xCharacteristicDescriptorDiscoverer.h │ │ │ ├── nRF5xDiscoveredCharacteristic.cpp │ │ │ ├── nRF5xDiscoveredCharacteristic.h │ │ │ ├── nRF5xGap.cpp │ │ │ ├── nRF5xGap.h │ │ │ ├── nRF5xGattClient.cpp │ │ │ ├── nRF5xGattClient.h │ │ │ ├── nRF5xGattServer.cpp │ │ │ ├── nRF5xGattServer.h │ │ │ ├── nRF5xSecurityManager.h │ │ │ ├── nRF5xServiceDiscovery.cpp │ │ │ ├── nRF5xServiceDiscovery.h │ │ │ ├── nRF5xn.cpp │ │ │ ├── nRF5xn.h │ │ │ ├── projectconfig.h │ │ │ └── supress-warnings.cmake │ │ ├── HardwareSerial.h │ │ ├── Print.cpp │ │ ├── Print.h │ │ ├── Printable.h │ │ ├── WCharacter.h │ │ ├── WMath.cpp │ │ ├── WMath.h │ │ ├── WStream.cpp │ │ ├── WStream.h │ │ ├── WString.cpp │ │ ├── WString.h │ │ ├── avr │ │ └── pgmspace.h │ │ ├── binary.h │ │ ├── gcc_startup_nrf52.S │ │ ├── itoa.c │ │ ├── itoa.h │ │ ├── main.cpp │ │ ├── mbed_os │ │ ├── drivers │ │ │ ├── AnalogIn.cpp │ │ │ ├── AnalogIn.h │ │ │ ├── AnalogOut.h │ │ │ ├── BusIn.cpp │ │ │ ├── BusIn.h │ │ │ ├── BusInOut.cpp │ │ │ ├── BusInOut.h │ │ │ ├── BusOut.cpp │ │ │ ├── BusOut.h │ │ │ ├── CAN.cpp │ │ │ ├── CAN.h │ │ │ ├── DigitalIn.h │ │ │ ├── DigitalInOut.h │ │ │ ├── DigitalOut.h │ │ │ ├── DirHandle.h │ │ │ ├── Ethernet.cpp │ │ │ ├── Ethernet.h │ │ │ ├── FileBase.cpp │ │ │ ├── FileBase.h │ │ │ ├── FileHandle.h │ │ │ ├── FileLike.cpp │ │ │ ├── FileLike.h │ │ │ ├── FilePath.cpp │ │ │ ├── FilePath.h │ │ │ ├── FileSystemLike.cpp │ │ │ ├── FileSystemLike.h │ │ │ ├── I2C.cpp │ │ │ ├── I2C.h │ │ │ ├── I2CSlave.cpp │ │ │ ├── I2CSlave.h │ │ │ ├── InterruptIn.cpp │ │ │ ├── InterruptIn.h │ │ │ ├── InterruptManager.cpp │ │ │ ├── InterruptManager.h │ │ │ ├── LocalFileSystem.cpp │ │ │ ├── LocalFileSystem.h │ │ │ ├── LowPowerTicker.h │ │ │ ├── LowPowerTimeout.h │ │ │ ├── LowPowerTimer.h │ │ │ ├── PortIn.h │ │ │ ├── PortInOut.h │ │ │ ├── PortOut.h │ │ │ ├── PwmOut.h │ │ │ ├── RawSerial.cpp │ │ │ ├── RawSerial.h │ │ │ ├── SPI.cpp │ │ │ ├── SPI.h │ │ │ ├── SPISlave.cpp │ │ │ ├── SPISlave.h │ │ │ ├── Serial.cpp │ │ │ ├── Serial.h │ │ │ ├── SerialBase.cpp │ │ │ ├── SerialBase.h │ │ │ ├── Stream.cpp │ │ │ ├── Stream.h │ │ │ ├── Ticker.cpp │ │ │ ├── Ticker.h │ │ │ ├── Timeout.cpp │ │ │ ├── Timeout.h │ │ │ ├── Timer.cpp │ │ │ ├── Timer.h │ │ │ ├── TimerEvent.cpp │ │ │ └── TimerEvent.h │ │ ├── hal │ │ │ ├── analogin_api.h │ │ │ ├── analogout_api.h │ │ │ ├── buffer.h │ │ │ ├── can_api.h │ │ │ ├── can_helper.h │ │ │ ├── dma_api.h │ │ │ ├── ethernet_api.h │ │ │ ├── gpio_api.h │ │ │ ├── gpio_irq_api.h │ │ │ ├── hal │ │ │ │ └── emac_api.h │ │ │ ├── i2c_api.h │ │ │ ├── lp_ticker_api.h │ │ │ ├── mbed_gpio.c │ │ │ ├── mbed_lp_ticker_api.c │ │ │ ├── mbed_pinmap_common.c │ │ │ ├── mbed_ticker_api.c │ │ │ ├── mbed_us_ticker_api.c │ │ │ ├── pinmap.h │ │ │ ├── port_api.h │ │ │ ├── pwmout_api.h │ │ │ ├── rtc_api.h │ │ │ ├── serial_api.h │ │ │ ├── sleep_api.h │ │ │ ├── spi_api.h │ │ │ ├── storage_abstraction │ │ │ │ ├── Driver_Common.h │ │ │ │ └── Driver_Storage.h │ │ │ ├── ticker_api.h │ │ │ ├── trng_api.h │ │ │ └── us_ticker_api.h │ │ ├── mbed.h │ │ ├── platform │ │ │ ├── CThunk.h │ │ │ ├── CallChain.cpp │ │ │ ├── CallChain.h │ │ │ ├── Callback.h │ │ │ ├── CircularBuffer.h │ │ │ ├── FunctionPointer.h │ │ │ ├── PlatformMutex.h │ │ │ ├── SingletonPtr.h │ │ │ ├── Transaction.h │ │ │ ├── critical.h │ │ │ ├── mbed_alloc_wrappers.cpp │ │ │ ├── mbed_assert.c │ │ │ ├── mbed_assert.h │ │ │ ├── mbed_board.c │ │ │ ├── mbed_critical.c │ │ │ ├── mbed_debug.h │ │ │ ├── mbed_error.c │ │ │ ├── mbed_error.h │ │ │ ├── mbed_interface.c │ │ │ ├── mbed_interface.h │ │ │ ├── mbed_lib.json │ │ │ ├── mbed_mem_trace.c │ │ │ ├── mbed_mem_trace.h │ │ │ ├── mbed_rtc_time.cpp │ │ │ ├── mbed_semihost_api.c │ │ │ ├── mbed_stats.h │ │ │ ├── mbed_wait_api_no_rtos.c │ │ │ ├── mbed_wait_api_rtos.cpp │ │ │ ├── platform.h │ │ │ ├── retarget.cpp │ │ │ ├── rtc_time.h │ │ │ ├── semihost_api.h │ │ │ ├── toolchain.h │ │ │ └── wait_api.h │ │ ├── sdk │ │ │ ├── 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.h │ │ │ │ ├── ble_racp │ │ │ │ │ ├── ble_racp.c │ │ │ │ │ └── ble_racp.h │ │ │ │ ├── ble_radio_notification │ │ │ │ │ ├── ble_radio_notification.c │ │ │ │ │ └── ble_radio_notification.h │ │ │ │ ├── ble_services │ │ │ │ │ └── ble_dfu │ │ │ │ │ │ ├── ble_dfu.c │ │ │ │ │ │ └── ble_dfu.h │ │ │ │ ├── common │ │ │ │ │ ├── ble_advdata.c │ │ │ │ │ ├── ble_advdata.h │ │ │ │ │ ├── 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_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 │ │ │ ├── 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_nrf │ │ │ │ ├── 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 │ │ │ │ ├── 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_ecb.c │ │ │ │ │ ├── nrf_ecb.h │ │ │ │ │ ├── nrf_gpio.h │ │ │ │ │ ├── nrf_gpiote.h │ │ │ │ │ ├── nrf_nvmc.c │ │ │ │ │ ├── nrf_nvmc.h │ │ │ │ │ ├── nrf_pdm.h │ │ │ │ │ ├── nrf_ppi.h │ │ │ │ │ ├── nrf_pwm.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_uart.h │ │ │ │ │ └── nrf_wdt.h │ │ │ │ ├── ppi │ │ │ │ │ ├── nrf_drv_ppi.c │ │ │ │ │ └── nrf_drv_ppi.h │ │ │ │ ├── pstorage │ │ │ │ │ ├── config │ │ │ │ │ │ └── pstorage_platform.h │ │ │ │ │ ├── pstorage.c │ │ │ │ │ └── pstorage.h │ │ │ │ ├── pwm │ │ │ │ │ ├── nrf_drv_pwm.c │ │ │ │ │ └── nrf_drv_pwm.h │ │ │ │ ├── saadc │ │ │ │ │ ├── nrf_drv_saadc.c │ │ │ │ │ └── nrf_drv_saadc.h │ │ │ │ ├── spi_master │ │ │ │ │ ├── nrf_drv_spi.c │ │ │ │ │ └── nrf_drv_spi.h │ │ │ │ ├── spi_slave │ │ │ │ │ ├── nrf_drv_spis.c │ │ │ │ │ └── nrf_drv_spis.h │ │ │ │ ├── timer │ │ │ │ │ ├── nrf_drv_timer.c │ │ │ │ │ └── nrf_drv_timer.h │ │ │ │ └── twi_master │ │ │ │ │ ├── nrf_drv_twi.c │ │ │ │ │ └── nrf_drv_twi.h │ │ │ ├── libraries │ │ │ │ ├── bootloader_dfu │ │ │ │ │ ├── bootloader.h │ │ │ │ │ ├── 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_init.h │ │ │ │ │ ├── dfu_init_template.c │ │ │ │ │ ├── dfu_transport.h │ │ │ │ │ ├── dfu_types.h │ │ │ │ │ └── hci_transport │ │ │ │ │ │ ├── hci_mem_pool_internal.h │ │ │ │ │ │ └── hci_transport_config.h │ │ │ │ ├── crc16 │ │ │ │ │ ├── crc16.c │ │ │ │ │ └── crc16.h │ │ │ │ ├── experimental_section_vars │ │ │ │ │ └── section_vars.h │ │ │ │ ├── fds │ │ │ │ │ ├── config │ │ │ │ │ │ └── fds_config.h │ │ │ │ │ ├── fds.c │ │ │ │ │ ├── fds.h │ │ │ │ │ └── fds_internal_defs.h │ │ │ │ ├── fstorage │ │ │ │ │ ├── config │ │ │ │ │ │ └── fstorage_config.h │ │ │ │ │ ├── fstorage.c │ │ │ │ │ ├── fstorage.h │ │ │ │ │ ├── fstorage_internal_defs.h │ │ │ │ │ └── fstorage_nosd.c │ │ │ │ ├── hci │ │ │ │ │ ├── config │ │ │ │ │ │ ├── hci_mem_pool_internal.h │ │ │ │ │ │ └── hci_transport_config.h │ │ │ │ │ ├── hci_mem_pool.c │ │ │ │ │ └── hci_mem_pool.h │ │ │ │ ├── pwm │ │ │ │ │ ├── app_pwm.c │ │ │ │ │ └── app_pwm.h │ │ │ │ ├── scheduler │ │ │ │ │ ├── app_scheduler.c │ │ │ │ │ └── app_scheduler.h │ │ │ │ ├── trace │ │ │ │ │ ├── app_trace.c │ │ │ │ │ └── app_trace.h │ │ │ │ └── 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 │ │ │ └── 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 │ │ │ │ └── s132 │ │ │ │ └── headers │ │ │ │ ├── nrf52 │ │ │ │ └── nrf_mbr.h │ │ │ │ ├── nrf_ble.h │ │ │ │ ├── nrf_ble_err.h │ │ │ │ ├── nrf_ble_gap.h │ │ │ │ ├── nrf_ble_gatt.h │ │ │ │ ├── nrf_ble_gattc.h │ │ │ │ ├── nrf_ble_gatts.h │ │ │ │ ├── nrf_ble_hci.h │ │ │ │ ├── nrf_ble_l2cap.h │ │ │ │ ├── nrf_ble_ranges.h │ │ │ │ ├── nrf_ble_types.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 │ │ └── targets │ │ │ └── TARGET_NORDIC │ │ │ ├── TARGET_NRF5 │ │ │ ├── TARGET_MCU_NRF52832 │ │ │ │ ├── PeripheralNames.h │ │ │ │ ├── PortNames.h │ │ │ │ ├── TARGET_NRF52_DK │ │ │ │ │ ├── PinNames.h │ │ │ │ │ └── device.h │ │ │ │ ├── analogin_api.c │ │ │ │ ├── device │ │ │ │ │ ├── cmsis.h │ │ │ │ │ ├── cmsis_nvic.c │ │ │ │ │ ├── cmsis_nvic.h │ │ │ │ │ ├── system_nrf52.c │ │ │ │ │ └── system_nrf52.h │ │ │ │ └── pwmout_api.c │ │ │ ├── common_rtc.h │ │ │ ├── gpio_api.c │ │ │ ├── gpio_object.h │ │ │ ├── i2c_api.c │ │ │ ├── irq_handlers_hw.h │ │ │ ├── lp_ticker.c │ │ │ ├── nordic_critical.c │ │ │ ├── nrf5x_lf_clk_helper.h │ │ │ ├── objects.h │ │ │ ├── pinmap.c │ │ │ ├── port_api.c │ │ │ ├── reloc_vector_table.c │ │ │ ├── rtc_api.c │ │ │ ├── serial_api.c │ │ │ ├── sleep.c │ │ │ ├── spi_api.c │ │ │ └── us_ticker.c │ │ │ └── mbed_rtx.h │ │ ├── pin_transform.cpp │ │ ├── pin_transform.h │ │ ├── pulse_asm.S │ │ ├── wiring_analog.cpp │ │ ├── wiring_analog.h │ │ ├── wiring_buffer.cpp │ │ ├── wiring_buffer.h │ │ ├── wiring_constants.h │ │ ├── wiring_delay.cpp │ │ ├── wiring_delay.h │ │ ├── wiring_digital.cpp │ │ ├── wiring_digital.h │ │ ├── wiring_interrupts.cpp │ │ ├── wiring_interrupts.h │ │ ├── wiring_serial.cpp │ │ ├── wiring_serial.h │ │ ├── wiring_shift_pulse.cpp │ │ ├── wiring_shift_pulse.h │ │ ├── wiring_tone.cpp │ │ └── wiring_tone.h │ ├── libraries │ ├── BLE_Examples │ │ ├── README.adoc │ │ ├── examples │ │ │ ├── BLEController │ │ │ │ ├── BLEController.ino │ │ │ │ └── pin_inf.h │ │ │ ├── BLE_CentralTest │ │ │ │ └── BLE_CentralTest.ino │ │ │ ├── BLE_HRM │ │ │ │ └── BLE_HRM.ino │ │ │ ├── BLE_RGB_Switch │ │ │ │ └── BLE_RGB_Switch.ino │ │ │ ├── BLE_ScanReport │ │ │ │ └── BLE_ScanReport.ino │ │ │ ├── BLE_Security │ │ │ │ └── BLE_Security.ino │ │ │ ├── BLE_Serial │ │ │ │ └── BLE_Serial.ino │ │ │ ├── BLE_SimplePeripheral │ │ │ │ └── BLE_SimplePeripheral.ino │ │ │ ├── BLE_beacon │ │ │ │ └── BLE_beacon.ino │ │ │ ├── BLE_multi_role │ │ │ │ └── BLE_multi_role.ino │ │ │ ├── SimpleChat │ │ │ │ └── SimpleChat.ino │ │ │ └── SimpleControls │ │ │ │ └── SimpleControls.ino │ │ ├── keywords.txt │ │ ├── library.properties │ │ └── src │ │ │ └── invalid.h │ ├── Grove_Examples │ │ ├── README.adoc │ │ ├── examples │ │ │ ├── ControlRGBLEDWithAccelerationSensor │ │ │ │ └── ControlRGBLEDWithAccelerationSensor.ino │ │ │ ├── DirectionRecorder │ │ │ │ └── DirectionRecorder.ino │ │ │ ├── DisplayAnalogValueOnTM1637 │ │ │ │ └── DisplayAnalogValueOnTM1637.ino │ │ │ ├── MeasureTemparatureAndDisplayOnTM1637 │ │ │ │ └── MeasureTemparatureAndDisplayOnTM1637.ino │ │ │ ├── SingASongUsingBuzzer │ │ │ │ └── SingASongUsingBuzzer.ino │ │ │ ├── StartVibrator │ │ │ │ └── StartVibrator.ino │ │ │ ├── TemperatureAlarm │ │ │ │ └── TemperatureAlarm.ino │ │ │ └── TimeToGetUp │ │ │ │ └── TimeToGetUp.ino │ │ ├── keywords.txt │ │ ├── library.properties │ │ └── src │ │ │ ├── ChainableLED.cpp │ │ │ ├── ChainableLED.h │ │ │ ├── MMA7660.cpp │ │ │ ├── MMA7660.h │ │ │ ├── TM1637.cpp │ │ │ └── TM1637.h │ ├── SPI_Master │ │ ├── SPI_Master.cpp │ │ ├── SPI_Master.h │ │ ├── examples │ │ │ ├── SPI_Flash_45DB021D │ │ │ │ └── SPI_Flash_45DB021D.ino │ │ │ └── SPI_Master_write │ │ │ │ └── SPI_Master_write.ino │ │ ├── keywords.txt │ │ └── library.properties │ ├── Servo │ │ ├── Servo.cpp │ │ ├── Servo.h │ │ ├── examples │ │ │ └── Sweep │ │ │ │ └── Sweep.ino │ │ ├── keywords.txt │ │ └── library.properties │ ├── Wire │ │ ├── Wire.cpp │ │ ├── Wire.h │ │ ├── examples │ │ │ ├── AT24C512_Demo │ │ │ │ └── AT24C512_Demo.ino │ │ │ ├── master_read │ │ │ │ └── master_read.ino │ │ │ └── master_write │ │ │ │ └── master_write.ino │ │ ├── keywords.txt │ │ └── library.properties │ └── nRF_Examples │ │ ├── README.adoc │ │ ├── examples │ │ ├── External_Interrupter │ │ │ └── External_Interrupter.ino │ │ ├── Serial_IRQ_Handle │ │ │ └── Serial_IRQ_Handle.ino │ │ ├── Ticker_Task │ │ │ └── Ticker_Task.ino │ │ └── Tone │ │ │ └── Tone.ino │ │ ├── keywords.txt │ │ ├── library.properties │ │ └── src │ │ └── invalid.h │ ├── platform.txt │ ├── programmers.txt │ ├── system │ └── CMSIS │ │ └── Include │ │ ├── arm_common_tables.h │ │ ├── arm_math.h │ │ ├── core_cm0.h │ │ ├── core_cm0plus.h │ │ ├── core_cm3.h │ │ ├── core_cm4.h │ │ ├── core_cm4_simd.h │ │ ├── core_cmFunc.h │ │ ├── core_cmInstr.h │ │ ├── core_sc000.h │ │ └── core_sc300.h │ └── variants │ ├── BLE_Nano2 │ ├── linker_scripts │ │ └── gcc │ │ │ ├── BLE_Nano2.ld │ │ │ └── nrf52_common.ld │ └── pins_arduino.h │ ├── RBL_Blend2 │ ├── linker_scripts │ │ └── gcc │ │ │ ├── RBL_Blend2.ld │ │ │ └── nrf52_common.ld │ └── pins_arduino.h │ └── nRF52DK │ ├── linker_scripts │ └── gcc │ │ ├── nRF52DK.ld │ │ └── nrf52_common.ld │ └── pins_arduino.h ├── certs ├── 321867CERTCAB(2AKGS-MBN2 012004).pdf ├── GTS201611000157E01 Bluetooth 4.0.pdf ├── GTS201611000157E02 EN 301489.pdf ├── GTS201611000157E03 EN 62479.pdf ├── GTS201611000157EV1 R&TTE VOC.PDF ├── GTS201611000157F01 BT 4.0.pdf └── Japan-TELEC.CSRT170276.pdf ├── daplink ├── DAPLink_V1.0_Interface_nRF52.bin ├── DAPLink_V1.5_Interface_nRF52_20170106.bin ├── MK20_V1.0_Interface_nRF52_20170222.bin └── README.md ├── datasheet ├── MB-N2_Datasheet.pdf └── README.md ├── dfu ├── README.md ├── SoftdeviceS132_2.0_SDK11_Bootloader_20161221.hex └── rbl_nrf52832_bootloader │ ├── Abstract.txt │ ├── config │ └── pstorage_platform.h │ ├── dfu.eww │ ├── dfu_ble_svc.c │ ├── dfu_gcc_nrf52.ld │ ├── license.txt │ ├── main.c │ └── pca10040 │ └── dual_bank_ble_s132 │ ├── arm4 │ ├── dfu_dual_bank_ble_s132_pca10040.uvgui │ ├── dfu_dual_bank_ble_s132_pca10040.uvopt │ └── dfu_dual_bank_ble_s132_pca10040.uvproj │ ├── arm5_no_packs │ ├── RTE │ │ ├── Device │ │ │ └── nRF52832_xxAA │ │ │ │ ├── arm_startup_nrf52.s │ │ │ │ ├── arm_startup_nrf52.s.0000 │ │ │ │ ├── system_nrf52.c │ │ │ │ └── system_nrf52.c.0000 │ │ └── RTE_Components.h │ ├── dfu_dual_bank_ble_s132_pca10040.uvguix │ ├── dfu_dual_bank_ble_s132_pca10040.uvoptx │ └── dfu_dual_bank_ble_s132_pca10040.uvprojx │ ├── armgcc │ └── Makefile │ └── iar │ ├── dfu_dual_bank_ble_s132_pca10040.ewd │ ├── dfu_dual_bank_ble_s132_pca10040.ewp │ └── dfu_iar_nRF5x.icf ├── docs ├── Arduino_Board_Package_Installation_Guide.md ├── DAPLink_User_Guide.md ├── DFU_User_Guide.md ├── Getting_Started_Guide.md ├── Mbed_Eddystone_User_Guide.md ├── Mbed_IDE_User_Guide.md ├── Nordic_SDK_User_Guide.md ├── README.md ├── Specifications.md └── images │ ├── App_01.png │ ├── Arduino │ ├── arduino_board_package_1.png │ ├── arduino_board_package_2.png │ ├── arduino_board_package_3.png │ ├── arduino_board_package_4.png │ ├── arduino_board_package_5.png │ └── arduino_board_package_6.png │ ├── Blend2 │ ├── Blend2.png │ └── Blend2_Pinout.png │ ├── DAPLink │ ├── DAPLink.png │ ├── DAPLink_Driver.png │ ├── DAPLink_Keil5_1.png │ ├── DAPLink_Keil5_2.png │ ├── DAPLink_Keil5_3.png │ ├── DAPLink_Keil5_FAQ1.png │ └── DAPLink_Pinout.jpg │ ├── DFU │ ├── DFU1.png │ ├── DFU10.PNG │ ├── DFU2.png │ ├── DFU3.png │ ├── DFU4.PNG │ ├── DFU5.PNG │ ├── DFU6.PNG │ ├── DFU7.PNG │ ├── DFU8.PNG │ └── DFU9.PNG │ ├── Eddystone │ ├── eddystone_1.png │ ├── eddystone_2.png │ ├── eddystone_3.png │ ├── eddystone_4.png │ └── eddystone_5.png │ ├── MB-N2 │ ├── BLEModule.png │ ├── MB-N2.jpg │ └── MB-N2_Pinout.png │ ├── Nano2 │ ├── Nano2.png │ ├── Nano2_01.jpg │ ├── Nano2_Pinout.png │ ├── ProtoBoard.jpg │ └── ProtoBoard_01.jpg │ ├── mbed_ide │ ├── mbed_ide_1.png │ ├── mbed_ide_10.png │ ├── mbed_ide_11.png │ ├── mbed_ide_12.png │ ├── mbed_ide_13.png │ ├── mbed_ide_14.png │ ├── mbed_ide_15.png │ ├── mbed_ide_2.png │ ├── mbed_ide_3.png │ ├── mbed_ide_4.png │ ├── mbed_ide_5.png │ ├── mbed_ide_6.png │ ├── mbed_ide_7.png │ ├── mbed_ide_8.png │ └── mbed_ide_9.png │ ├── nRF52.jpg │ ├── nRF52832.png │ └── nordic_sdk │ ├── nordic_sdk_1.png │ ├── nordic_sdk_10.png │ ├── nordic_sdk_2.png │ ├── nordic_sdk_3.png │ ├── nordic_sdk_4.png │ ├── nordic_sdk_5.png │ ├── nordic_sdk_6.png │ ├── nordic_sdk_7.png │ ├── nordic_sdk_8.png │ └── nordic_sdk_9.png ├── mbed └── README.md ├── pcb ├── README.md ├── eagle │ ├── BLEND2 │ │ ├── Blend V2.0 20170309.brd │ │ └── Blend V2.0 20170309.sch │ ├── MB-N2 │ │ └── MB-N2.lbr │ └── NANO2 │ │ ├── Nano V2.0 20170111.brd │ │ ├── Nano V2.0 20170111.sch │ │ └── Nano v2.0 gerber.rar └── schematic │ ├── Blend v2.0 SCH 20161102.pdf │ ├── DAPLink V1.5 SCH 20161230.pdf │ ├── Nano ProtoBoard V1.0 20170527.pdf │ └── Nano V2.0 SCH 20161102.pdf ├── sdk └── README.md └── test ├── README.md ├── nRF52_Blink.hex ├── nRF52_EraseChip.hex ├── nRF52_HRM.hex ├── nRF52_NFC_URL.hex └── nRF52_Nano2_SimpleControls.hex /README.md: -------------------------------------------------------------------------------- 1 | # nRF5x 2 | 3 | This repository contains the resources for the RedBear nRF5x BLE development board. 4 | 5 | BLE Nano and RBL_nRF51822 6 | * [nRF51822](./nRF51822) 7 | 8 | BLE Nano 2 and Blend 2 9 | * [nRF52832](./nRF52832) 10 | -------------------------------------------------------------------------------- /USB-IF/DAPLink.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/USB-IF/DAPLink.jpg -------------------------------------------------------------------------------- /USB-IF/interface.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/USB-IF/interface.jpg -------------------------------------------------------------------------------- /nRF51822/arduino/98-daplink.rules: -------------------------------------------------------------------------------- 1 | 2 | # mbed CMSIS-DAP 3 | ATTRS{idVendor}=="0d28", ATTRS{idProduct}=="0204", MODE="664", GROUP="plugdev" 4 | KERNEL=="hidraw*", ATTRS{idVendor}=="0d28", ATTRS{idProduct}=="0204", MODE="664", GROUP="plugdev" 5 | -------------------------------------------------------------------------------- /nRF51822/arduino/VERSION.md: -------------------------------------------------------------------------------- 1 | 2 | ## Version 3 | 4 | This is about the board support package version. 5 | 6 | #### Current Version 7 | 8 | #### Version: 1.0.8 9 | 10 | * Fix bug of Example "BLEController" : "reporting pin's status too fast for andriod". 11 | * Fix function "shiftOut()" : "Not generate clock correctly". 12 | * Fix the bug "Can't use DFUService". 13 | * Fix "Wire::endTransmission()". 14 | 15 | #### Verison: 1.0.7 16 | 17 | * Use SandeepMistry's openocd to instead of arduino openocd 18 | * Fixed bug "Can't upload on macosx" 19 | * Change file "nrf_ble.h" to "ble.h" 20 | 21 | ##### kown issue 22 | 23 | * Upload problem on Linux 64bit, fix it as follow: 24 | ``` 25 | sudo apt-get install lsb-core 26 | 27 | sudo apt-get install libudev1:i386 28 | 29 | sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0 30 | ``` 31 | * Can't use DFUService. 32 | * Function "shiftOut" : "Not generate clock correctly". 33 | * Example "BLEController" not compatible with andriod. 34 | 35 | #### Version: 1.0.6 36 | 37 | * Update libraries : ble-master, ble-nrf51822-master,mbed 38 | * Update examples, add more comments 39 | * Using openocd tools to instead of avrdude for uploading 40 | * Buring bootloader using DAPLink 41 | * Fixed bug "If don't call Serial.begin(),analogRead() would not work well" 42 | * Fixed bug "launchServiceDiscovery() doesn't discover all services and characteristics" 43 | 44 | ##### kown issue 45 | 46 | * Can't upload on macosx 47 | 48 | 49 | #### Version: 1.0.5 50 | 51 | * Fixed BLE Controller Sketch 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/Arduino.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef ARDUINO_H_ 4 | #define ARDUINO_H_ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include 12 | 13 | #include "mbed.h" 14 | #include "binary.h" 15 | 16 | #include "wiring_constants.h" 17 | #include "wiring_digital.h" 18 | #include "wiring_delay.h" 19 | 20 | #include "wiring_buffer.h" 21 | #include "wiring_serial.h" 22 | 23 | #include "wiring_analog.h" 24 | #include "WMath.h" 25 | 26 | #include "wiring_shift_pulseIn.h" 27 | #include "wiring_interrupter.h" 28 | 29 | #include "pins_arduino.h" 30 | #include "pin_transform.h" 31 | 32 | /* sketch */ 33 | extern void setup( void ) ; 34 | extern void loop( void ) ; 35 | 36 | extern UARTClass Serial; 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/BLE_API.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef BLE_API_H_ 3 | #define BLE_API_H_ 4 | 5 | #include "ble/BLE.h" 6 | #include "ble/blecommon.h" 7 | #include "ble/BLEInstanceBase.h" 8 | #include "ble/BLEProtocol.h" 9 | #include "ble/CallChainOfFunctionPointersWithContext.h" 10 | #include "ble/CharacteristicDescriptorDiscovery.h" 11 | #include "ble/deprecate.h" 12 | #include "ble/DiscoveredCharacteristic.h" 13 | #include "ble/DiscoveredCharacteristicDescriptor.h" 14 | #include "ble/DiscoveredService.h" 15 | #include "ble/FunctionPointerWithContext.h" 16 | #include "ble/Gap.h" 17 | #include "ble/GapAdvertisingData.h" 18 | #include "ble/GapAdvertisingParams.h" 19 | #include "ble/GapEvents.h" 20 | #include "ble/GapScanningParams.h" 21 | #include "ble/GattAttribute.h" 22 | #include "ble/GattCallbackParamTypes.h" 23 | #include "ble/GattCharacteristic.h" 24 | #include "ble/GattClient.h" 25 | #include "ble/GattServer.h" 26 | #include "ble/GattServerEvents.h" 27 | #include "ble/GattService.h" 28 | #include "ble/SafeBool.h" 29 | #include "ble/SecurityManager.h" 30 | #include "ble/ServiceDiscovery.h" 31 | #include "ble/UUID.h" 32 | 33 | #include "BatteryService.h" 34 | #include "DeviceInformationService.h" 35 | #include "DFUService.h" 36 | #include "EddystoneConfigService.h" 37 | #include "EddystoneService.h" 38 | #include "HealthThermometerService.h" 39 | #include "EnvironmentalService.h" 40 | #include "HealthThermometerService.h" 41 | #include "HeartRateService.h" 42 | #include "iBeacon.h" 43 | #include "LinkLossService.h" 44 | #include "UARTService.h" 45 | #include "URIBeaconConfigService.h" 46 | 47 | #include "nRF51822_API.h" 48 | 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/HardwareSerial.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef HardwareSerial_h 20 | #define HardwareSerial_h 21 | 22 | #include 23 | 24 | #include "WStream.h" 25 | 26 | class HardwareSerial : public WStream 27 | { 28 | public: 29 | void begin( const uint32_t dwBaudRate ); 30 | void begin( const uint32_t dwBaudRate, PinName rx_pin, PinName tx_pin ); 31 | void end(); 32 | virtual int available(void) = 0; 33 | virtual int peek(void) = 0; 34 | virtual int read(void) = 0; 35 | virtual void flush(void) = 0; 36 | virtual size_t write(uint8_t) = 0; 37 | using Print::write; // pull in write(str) and write(buf, size) from Print 38 | virtual operator bool() = 0; 39 | }; 40 | 41 | extern void serialEvent(void) __attribute__((weak)); 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/Printable.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Printable.h - Interface class that allows printing of complex types 4 | Copyright (c) 2011 Adrian McEwen. All right reserved. 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef Printable_h 22 | #define Printable_h 23 | 24 | #include 25 | 26 | class Print; 27 | 28 | /** The Printable class provides a way for new classes to allow themselves to be printed. 29 | By deriving from Printable and implementing the printTo method, it will then be possible 30 | for users to print out instances of this class by passing them into the usual 31 | Print::print and Print::println methods. 32 | */ 33 | 34 | class Printable 35 | { 36 | public: 37 | virtual size_t printTo(Print& p) const = 0; 38 | }; 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/WMath.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _WIRING_MATH_ 21 | #define _WIRING_MATH_ 22 | 23 | extern long random( long ) ; 24 | extern long random( long, long ) ; 25 | extern void randomSeed( uint32_t dwSeed ) ; 26 | extern long map( long, long, long, long, long ) ; 27 | 28 | extern uint16_t makeWord( uint16_t w ) ; 29 | extern uint16_t makeWord( uint8_t h, uint8_t l ) ; 30 | 31 | #define word(...) makeWord(__VA_ARGS__) 32 | 33 | 34 | #endif /* _WIRING_MATH_ */ 35 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore the generated Doxygen output 2 | apidoc/ 3 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Hello! 2 | We are an open source project of [ARM mbed](https://www.mbed.com). Contributions via [pull request](https://github.com/ARMmbed/ble/pulls), and [bug reports](https://github.com/ARMmbed/ble/issues) are welcome! 3 | 4 | Please submit your pull request to the `develop` branch of [this module](https://github.com/ARMmbed/ble/tree/develop). Commits to develop will be merge into the master branch at the time of the next release. 5 | 6 | # Contributor agreement 7 | For your pull request to be accepted, we will need you to agree to our [contributor agreement](https://developer.mbed.org/contributor_agreement/) to give us the necessary rights to use and distribute your contributions. (To click through the agreement create an account on mbed.com and log in.) 8 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/DOXYGEN_FRONTPAGE.md: -------------------------------------------------------------------------------- 1 | # BLE API {#mainpage} 2 | 3 | The BLE module within mbed OS offers a high abstraction level for using 4 | Bluetooth Low Energy on multiple platforms. 5 | 6 | This documentation describes the internal structure of the mbed 7 | [BLE API](https://github.com/armmbed/ble). 8 | 9 | For getting started with BLE on mbed, check our [introduction 10 | page](https://docs.mbed.com/docs/ble-intros/en/latest/). 11 | 12 | For mbed OS examples using BLE, check [this 13 | repository](https://github.com/armmbed/ble-examples). For mbed-classic 14 | examples, please refer to [code under mbed.org](https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/). 15 | 16 | ## Supported Services 17 | 18 | Currently supported reference services include: 19 | 20 | * [Battery](@ref BatteryService) 21 | * [Device Firmware Update (DFU)](@ref DFUService) 22 | * [Device Information](@ref DeviceInformationService) 23 | * [Health Thermometer](@ref HealthThermometerService) 24 | * [Heart Rate](@ref HeartRateService) 25 | * [UART](@ref UARTService) 26 | * [UriBeacon](@ref URIBeaconConfigService) 27 | * [iBeacon](@ref iBeacon) 28 | 29 | The [documentation](https://docs.mbed.com/docs/ble-intros/en/latest/AdvSamples/Overview/) 30 | contains an overview on how to create new, application-specific services. 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/LICENSE: -------------------------------------------------------------------------------- 1 | Unless specifically indicated otherwise in a file, files are licensed 2 | under the Apache 2.0 license, as can be found in: apache-2.0.txt 3 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/README.md: -------------------------------------------------------------------------------- 1 | # mbed Bluetooth Low Energy Stack 2 | This is the Github repo for the `BLE_API` used by developer.mbed.org. Please see the [mbed BLE Homepage](https://developer.mbed.org/teams/Bluetooth-Low-Energy/) for all documentation, code examples and general help. 3 | 4 | # Supported Services 5 | Supported GATT services and constantly being added and can be found in the [ble/services/](https://github.com/ARMmbed/ble/tree/master/ble/services) folder. 6 | 7 | Currently supported services include: 8 | * Battery 9 | * Device Firmware Update (DFU) 10 | * Device Information 11 | * Eddystone Configuration Service 12 | * Health Thermometer 13 | * Heart Rate 14 | * Link Loss 15 | * UART 16 | * UriBeacon 17 | * iBeacon 18 | 19 | The [documentation](https://docs.mbed.com/docs/ble-intros/en/latest/AdvSamples/Overview/) 20 | contains an overview on how to create new, application-specific services. 21 | 22 | # Getting Started 23 | The mbed BLE API is meant to be used in projects on developer.mbed.org. Please see examples and sample project files there. 24 | A good starting point are these pages: 25 | * [mbed BLE Homepage](https://developer.mbed.org/teams/Bluetooth-Low-Energy/) for all things BLE 26 | * [mbed BLE Getting Started Guide](https://developer.mbed.org/forum/team-63-Bluetooth-Low-Energy-community/topic/5262/) a wonderful primer on using BLE with mbed 27 | * [mbed BLE doc](https://docs.mbed.com/docs/ble-intros/en/latest/) for an introduction to mbed BLE 28 | * [mbed BLE API page](https://docs.mbed.com/docs/ble-api/en/latest/api/index.html) for the Doxygen API documentation 29 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/apache-2.0.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 ARM Limited 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/ble/deprecate.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __DEPRECATE_H__ 18 | #define __DEPRECATE_H__ 19 | 20 | #ifdef YOTTA_CFG_MBED_OS 21 | #include "compiler-polyfill/attributes.h" 22 | #else 23 | #define __deprecated_message(msg) 24 | #endif 25 | 26 | #endif -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-master/module.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ble", 3 | "version": "2.6.0", 4 | "description": "The BLE module offers a high level abstraction for using Bluetooth Low Energy on multiple platforms.", 5 | "keywords": [ 6 | "Bluetooth", 7 | "BLE", 8 | "mbed", 9 | "mbed-official" 10 | ], 11 | "author": "Rohit Grover", 12 | "repository": { 13 | "url": "https://github.com/ARMmbed/ble.git", 14 | "type": "git" 15 | }, 16 | "homepage": "https://developer.mbed.org/teams/Bluetooth-Low-Energy/", 17 | "licenses": [ 18 | { 19 | "url": "https://spdx.org/licenses/Apache-2.0", 20 | "type": "Apache-2.0" 21 | } 22 | ], 23 | "dependencies": {}, 24 | "targetDependencies": { 25 | "st-ble-shield": { 26 | "x-nucleo-idb0xa1": "^2.0.0" 27 | }, 28 | "nrf51822": { 29 | "ble-nrf51822": "^2.2.8" 30 | }, 31 | "nrf52832": { 32 | "ble-nrf52832": "ARMmbed/ble-nrf52832" 33 | }, 34 | "cordio": { 35 | "ble-wicentric": "~0.0.4" 36 | }, 37 | "mbed-classic": { 38 | "mbed-classic": "~0.0.1" 39 | }, 40 | "mbed-os": { 41 | "mbed-drivers": "*", 42 | "compiler-polyfill": "^1.2.1" 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/LICENSE: -------------------------------------------------------------------------------- 1 | This module contains softdevice which comes with The Nordic Softdevice License Agreement, 2 | a BSD-like licence for binary distributions, offered by Nordic for use in mbed. Some 3 | other files come from the mbed SDK, and are licensed under Apache-2.0. Unless 4 | specifically indicated otherwise in a file, files are licensed under the 5 | Apache 2.0 license, as can be found in: apache-2.0.txt. The Nordic Semiconductor Softdevice 6 | License Agreement can be found in softdevice_nrf51822_licence_agreement.txt. 7 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/apache-2.0.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 ARM Limited 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/module.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ble-nrf51822", 3 | "version": "2.7.1", 4 | "description": "Nordic stack and drivers for the mbed BLE API.", 5 | "keywords": [ 6 | "Bluetooth", 7 | "BLE", 8 | "mbed", 9 | "mbed-official" 10 | ], 11 | "author": "Rohit Grover", 12 | "repository": { 13 | "url": "git@github.com:ARMmbed/ble-nRF51822.git", 14 | "type": "git" 15 | }, 16 | "homepage": "https://developer.mbed.org/teams/Nordic-Semiconductor/", 17 | "licenses": [ 18 | { 19 | "url": "https://spdx.org/licenses/Apache-2.0", 20 | "type": "Apache-2.0" 21 | }, 22 | { 23 | "type": "LicenseRef-softdevice_nrf51822_licence_agreement.txt" 24 | } 25 | ], 26 | "dependencies": { 27 | "ble": "^2.6.0", 28 | "nrf51-sdk": "^2.4.0" 29 | }, 30 | "extraIncludes": [ 31 | "source/btle", 32 | "source/btle/custom", 33 | "source/common" 34 | ], 35 | "targetDependencies": {} 36 | } 37 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/source/btle/btle.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_H_ 18 | #define _BTLE_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | #include "common/common.h" 25 | 26 | #include "ble_srv_common.h" 27 | #include "ble.h" 28 | 29 | error_t btle_init(void); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif // ifndef _BTLE_H_ 36 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/source/btle/btle_advertising.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_ADVERTISING_H_ 18 | #define _BTLE_ADVERTISING_H_ 19 | 20 | #include "common/common.h" 21 | 22 | error_t btle_advertising_start(void); 23 | 24 | #endif // ifndef _BTLE_ADVERTISING_H_ 25 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/source/btle/btle_discovery.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_DISCOVERY_H_ 18 | #define _BTLE_DISCOVERY_H_ 19 | 20 | void bleGattcEventHandler(const ble_evt_t *p_ble_evt); 21 | 22 | #endif /*_BTLE_DISCOVERY_H_*/ 23 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/source/btle/btle_gap.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_GAP_H_ 18 | #define _BTLE_GAP_H_ 19 | 20 | #include "common/common.h" 21 | 22 | error_t btle_gap_init(void); 23 | 24 | #endif // ifndef _BTLE_GAP_H_ 25 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/ble-nrf51822-master/source/supress-warnings.cmake: -------------------------------------------------------------------------------- 1 | # Copyright 2015 ARM Limited 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | message("suppressing warnings from ble-nrf51822") 16 | 17 | if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 18 | set_target_properties(ble-nrf51822 19 | PROPERTIES COMPILE_FLAGS "-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers" 20 | ) 21 | endif() 22 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/itoa.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _ITOA_ 21 | #define _ITOA_ 22 | 23 | #ifdef __cplusplus 24 | extern "C"{ 25 | #endif // __cplusplus 26 | 27 | #if 0 28 | 29 | extern void itoa( int n, char s[] ) ; 30 | 31 | #else 32 | 33 | extern char* itoa( int value, char *string, int radix ) ; 34 | extern char* ltoa( long value, char *string, int radix ) ; 35 | extern char* utoa( unsigned int value, char *string, int radix ) ; 36 | extern char* ultoa( unsigned long value, char *string, int radix ) ; 37 | #endif /* 0 */ 38 | 39 | #ifdef __cplusplus 40 | } // extern "C" 41 | #endif // __cplusplus 42 | 43 | #endif // _ITOA_ 44 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/main.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define ARDUINO_MAIN 3 | 4 | #include "Arduino.h" 5 | 6 | int __attribute__ ((weak)) main( void ) 7 | { 8 | setup(); 9 | 10 | while(1) 11 | { 12 | loop(); 13 | } 14 | return 0; 15 | } -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/.yotta_ignore: -------------------------------------------------------------------------------- 1 | # ignore files for targets that aren't supported by the yotta build (to 2 | # minimise the size of the published module) 3 | 4 | TARGET_ARM_SSG 5 | TARGET_Freescale 6 | TARGET_RENESAS 7 | TARGET_Silicon_Labs 8 | TARGET_Atmel 9 | TARGET_Maxim 10 | TARGET_NXP 11 | TARGET_STM 12 | TARGET_WIZNET 13 | TOOLCHAIN_IAR 14 | 15 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/FileLike.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILELIKE_H 17 | #define MBED_FILELIKE_H 18 | 19 | #include "FileBase.h" 20 | #include "FileHandle.h" 21 | 22 | namespace mbed { 23 | 24 | /* Class FileLike 25 | * A file-like object is one that can be opened with fopen by 26 | * fopen("/name", mode). It is intersection of the classes Base and 27 | * FileHandle. 28 | */ 29 | class FileLike : public FileHandle, public FileBase { 30 | 31 | public: 32 | /* Constructor FileLike 33 | * 34 | * Variables 35 | * name - The name to use to open the file. 36 | */ 37 | FileLike(const char *name); 38 | 39 | virtual ~FileLike(); 40 | }; 41 | 42 | } // namespace mbed 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/FilePath.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILEPATH_H 17 | #define MBED_FILEPATH_H 18 | 19 | #include "platform.h" 20 | 21 | #include "FileSystemLike.h" 22 | #include "FileLike.h" 23 | 24 | namespace mbed { 25 | 26 | class FilePath { 27 | public: 28 | FilePath(const char* file_path); 29 | 30 | const char* fileName(void); 31 | 32 | bool isFileSystem(void); 33 | FileSystemLike* fileSystem(void); 34 | 35 | bool isFile(void); 36 | FileLike* file(void); 37 | bool exists(void); 38 | 39 | private: 40 | const char* file_name; 41 | FileBase* fb; 42 | }; 43 | 44 | } // namespace mbed 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/LowPowerTicker.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTICKER_H 17 | #define MBED_LOWPOWERTICKER_H 18 | 19 | #include "platform.h" 20 | #include "Ticker.h" 21 | 22 | #if DEVICE_LOWPOWERTIMER 23 | 24 | #include "lp_ticker_api.h" 25 | 26 | namespace mbed { 27 | 28 | /** Low Power Ticker 29 | */ 30 | class LowPowerTicker : public Ticker { 31 | 32 | public: 33 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { 34 | } 35 | 36 | virtual ~LowPowerTicker() { 37 | } 38 | }; 39 | 40 | } // namespace mbed 41 | 42 | #endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/LowPowerTimeout.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMEOUT_H 17 | #define MBED_LOWPOWERTIMEOUT_H 18 | 19 | #include "platform.h" 20 | 21 | #if DEVICE_LOWPOWERTIMER 22 | 23 | #include "lp_ticker_api.h" 24 | #include "LowPowerTicker.h" 25 | 26 | namespace mbed { 27 | 28 | /** Low Power Timout 29 | */ 30 | class LowPowerTimeout : public LowPowerTicker { 31 | 32 | private: 33 | virtual void handler(void) { 34 | _function.call(); 35 | } 36 | }; 37 | 38 | } 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/LowPowerTimer.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMER_H 17 | #define MBED_LOWPOWERTIMER_H 18 | 19 | #include "platform.h" 20 | #include "Timer.h" 21 | 22 | #if DEVICE_LOWPOWERTIMER 23 | 24 | #include "lp_ticker_api.h" 25 | 26 | namespace mbed { 27 | 28 | /** Low power timer 29 | */ 30 | class LowPowerTimer : public Timer { 31 | 32 | public: 33 | LowPowerTimer() : Timer(get_lp_ticker_data()) { 34 | } 35 | 36 | }; 37 | 38 | } // namespace mbed 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/Timeout.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_TIMEOUT_H 17 | #define MBED_TIMEOUT_H 18 | 19 | #include "Ticker.h" 20 | 21 | namespace mbed { 22 | 23 | /** A Timeout is used to call a function at a point in the future 24 | * 25 | * You can use as many seperate Timeout objects as you require. 26 | * 27 | * Example: 28 | * @code 29 | * // Blink until timeout. 30 | * 31 | * #include "mbed.h" 32 | * 33 | * Timeout timeout; 34 | * DigitalOut led(LED1); 35 | * 36 | * int on = 1; 37 | * 38 | * void attimeout() { 39 | * on = 0; 40 | * } 41 | * 42 | * int main() { 43 | * timeout.attach(&attimeout, 5); 44 | * while(on) { 45 | * led = !led; 46 | * wait(0.2); 47 | * } 48 | * } 49 | * @endcode 50 | */ 51 | class Timeout : public Ticker { 52 | 53 | protected: 54 | virtual void handler(); 55 | }; 56 | 57 | } // namespace mbed 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/platform.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PLATFORM_H 17 | #define MBED_PLATFORM_H 18 | 19 | #define MBED_OPERATORS 1 20 | 21 | #include "device.h" 22 | #include "PinNames.h" 23 | #include "PeripheralNames.h" 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/api/toolchain.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_TOOLCHAIN_H 17 | #define MBED_TOOLCHAIN_H 18 | 19 | #if defined(TOOLCHAIN_ARM) 20 | #include 21 | #endif 22 | 23 | #ifndef FILEHANDLE 24 | typedef int FILEHANDLE; 25 | #endif 26 | 27 | #if defined (__ICCARM__) 28 | # define WEAK __weak 29 | # define PACKED __packed 30 | #else 31 | # define WEAK __attribute__((weak)) 32 | # define PACKED __attribute__((packed)) 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/FileLike.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "FileLike.h" 17 | 18 | namespace mbed { 19 | 20 | FileLike::FileLike(const char *name) : FileHandle(), FileBase(name, FilePathType) { 21 | 22 | } 23 | 24 | FileLike::~FileLike() { 25 | 26 | } 27 | 28 | } // namespace mbed 29 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/Serial.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "Serial.h" 17 | #include "wait_api.h" 18 | 19 | #if DEVICE_SERIAL 20 | 21 | namespace mbed { 22 | 23 | Serial::Serial(PinName tx, PinName rx, const char *name) : SerialBase(tx, rx), Stream(name) { 24 | } 25 | 26 | int Serial::_getc() { 27 | return _base_getc(); 28 | } 29 | 30 | int Serial::_putc(int c) { 31 | return _base_putc(c); 32 | } 33 | 34 | } // namespace mbed 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/Ticker.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "Ticker.h" 17 | 18 | #include "TimerEvent.h" 19 | #include "FunctionPointer.h" 20 | #include "ticker_api.h" 21 | 22 | namespace mbed { 23 | 24 | void Ticker::detach() { 25 | remove(); 26 | _function.attach(0); 27 | } 28 | 29 | void Ticker::setup(timestamp_t t) { 30 | remove(); 31 | _delay = t; 32 | insert(_delay + ticker_read(_ticker_data)); 33 | } 34 | 35 | void Ticker::handler() { 36 | insert(event.timestamp + _delay); 37 | _function.call(); 38 | } 39 | 40 | } // namespace mbed 41 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/Timeout.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "Timeout.h" 17 | 18 | namespace mbed { 19 | 20 | void Timeout::handler() { 21 | _function.call(); 22 | } 23 | 24 | } // namespace mbed 25 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/assert.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "mbed_assert.h" 17 | #include "mbed_error.h" 18 | 19 | void mbed_assert_internal(const char *expr, const char *file, int line) 20 | { 21 | error("mbed assertation failed: %s, file: %s, line %d \n", expr, file, line); 22 | } 23 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/error.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include 17 | #include 18 | #include "device.h" 19 | #include "toolchain.h" 20 | #include "mbed_error.h" 21 | #if DEVICE_STDIO_MESSAGES 22 | #include 23 | #endif 24 | 25 | WEAK void error(const char* format, ...) { 26 | #if DEVICE_STDIO_MESSAGES 27 | va_list arg; 28 | va_start(arg, format); 29 | vfprintf(stderr, format, arg); 30 | va_end(arg); 31 | #endif 32 | exit(1); 33 | } 34 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/lp_ticker_api.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "lp_ticker_api.h" 17 | 18 | #if DEVICE_LOWPOWERTIMER 19 | 20 | static ticker_event_queue_t events; 21 | 22 | static const ticker_interface_t lp_interface = { 23 | .init = lp_ticker_init, 24 | .read = lp_ticker_read, 25 | .disable_interrupt = lp_ticker_disable_interrupt, 26 | .clear_interrupt = lp_ticker_clear_interrupt, 27 | .set_interrupt = lp_ticker_set_interrupt, 28 | }; 29 | 30 | static const ticker_data_t lp_data = { 31 | .interface = &lp_interface, 32 | .queue = &events, 33 | }; 34 | 35 | const ticker_data_t* get_lp_ticker_data(void) 36 | { 37 | return &lp_data; 38 | } 39 | 40 | void lp_ticker_irq_handler(void) 41 | { 42 | ticker_irq_handler(&lp_data); 43 | } 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/us_ticker_api.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "us_ticker_api.h" 17 | 18 | static ticker_event_queue_t events; 19 | 20 | static const ticker_interface_t us_interface = { 21 | .init = us_ticker_init, 22 | .read = us_ticker_read, 23 | .disable_interrupt = us_ticker_disable_interrupt, 24 | .clear_interrupt = us_ticker_clear_interrupt, 25 | .set_interrupt = us_ticker_set_interrupt, 26 | }; 27 | 28 | static const ticker_data_t us_data = { 29 | .interface = &us_interface, 30 | .queue = &events, 31 | }; 32 | 33 | const ticker_data_t* get_us_ticker_data(void) 34 | { 35 | return &us_data; 36 | } 37 | 38 | void us_ticker_irq_handler(void) 39 | { 40 | ticker_irq_handler(&us_data); 41 | } 42 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/common/wait_api.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "wait_api.h" 17 | #include "us_ticker_api.h" 18 | 19 | void wait(float s) { 20 | wait_us(s * 1000000.0f); 21 | } 22 | 23 | void wait_ms(int ms) { 24 | wait_us(ms * 1000); 25 | } 26 | 27 | void wait_us(int us) { 28 | uint32_t start = us_ticker_read(); 29 | while ((us_ticker_read() - start) < (uint32_t)us); 30 | } 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/analogin_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_ANALOGIN_API_H 17 | #define MBED_ANALOGIN_API_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_ANALOGIN 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct analogin_s analogin_t; 28 | 29 | void analogin_init (analogin_t *obj, PinName pin); 30 | float analogin_read (analogin_t *obj); 31 | uint16_t analogin_read_u16(analogin_t *obj); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/analogout_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_ANALOGOUT_API_H 17 | #define MBED_ANALOGOUT_API_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_ANALOGOUT 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct dac_s dac_t; 28 | 29 | void analogout_init (dac_t *obj, PinName pin); 30 | void analogout_free (dac_t *obj); 31 | void analogout_write (dac_t *obj, float value); 32 | void analogout_write_u16(dac_t *obj, uint16_t value); 33 | float analogout_read (dac_t *obj); 34 | uint16_t analogout_read_u16 (dac_t *obj); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/buffer.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2014-2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_BUFFER_H 17 | #define MBED_BUFFER_H 18 | 19 | #include 20 | 21 | /** Generic buffer structure 22 | */ 23 | typedef struct buffer_s { 24 | void *buffer; /**< the pointer to a buffer */ 25 | size_t length; /**< the buffer length */ 26 | size_t pos; /**< actual buffer position */ 27 | uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ 28 | } buffer_t; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/dma_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2014-2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_DMA_API_H 17 | #define MBED_DMA_API_H 18 | 19 | #include 20 | 21 | #define DMA_ERROR_OUT_OF_CHANNELS (-1) 22 | 23 | typedef enum { 24 | DMA_USAGE_NEVER, 25 | DMA_USAGE_OPPORTUNISTIC, 26 | DMA_USAGE_ALWAYS, 27 | DMA_USAGE_TEMPORARY_ALLOCATED, 28 | DMA_USAGE_ALLOCATED 29 | } DMAUsage; 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | void dma_init(void); 36 | 37 | int dma_channel_allocate(uint32_t capabilities); 38 | 39 | int dma_channel_free(int channelid); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/gpio_irq_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_GPIO_IRQ_API_H 17 | #define MBED_GPIO_IRQ_API_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_INTERRUPTIN 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef enum { 28 | IRQ_NONE, 29 | IRQ_RISE, 30 | IRQ_FALL 31 | } gpio_irq_event; 32 | 33 | typedef struct gpio_irq_s gpio_irq_t; 34 | 35 | typedef void (*gpio_irq_handler)(uint32_t id, gpio_irq_event event); 36 | 37 | int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32_t id); 38 | void gpio_irq_free(gpio_irq_t *obj); 39 | void gpio_irq_set (gpio_irq_t *obj, gpio_irq_event event, uint32_t enable); 40 | void gpio_irq_enable(gpio_irq_t *obj); 41 | void gpio_irq_disable(gpio_irq_t *obj); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/pinmap.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PINMAP_H 17 | #define MBED_PINMAP_H 18 | 19 | #include "PinNames.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | typedef struct { 26 | PinName pin; 27 | int peripheral; 28 | int function; 29 | } PinMap; 30 | 31 | void pin_function(PinName pin, int function); 32 | void pin_mode (PinName pin, PinMode mode); 33 | 34 | uint32_t pinmap_peripheral(PinName pin, const PinMap* map); 35 | uint32_t pinmap_function(PinName pin, const PinMap* map); 36 | uint32_t pinmap_merge (uint32_t a, uint32_t b); 37 | void pinmap_pinout (PinName pin, const PinMap *map); 38 | uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map); 39 | uint32_t pinmap_find_function(PinName pin, const PinMap* map); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/port_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PORTMAP_H 17 | #define MBED_PORTMAP_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_PORTIN || DEVICE_PORTOUT 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct port_s port_t; 28 | 29 | PinName port_pin(PortName port, int pin_n); 30 | 31 | void port_init (port_t *obj, PortName port, int mask, PinDirection dir); 32 | void port_mode (port_t *obj, PinMode mode); 33 | void port_dir (port_t *obj, PinDirection dir); 34 | void port_write(port_t *obj, int value); 35 | int port_read (port_t *obj); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/pwmout_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PWMOUT_API_H 17 | #define MBED_PWMOUT_API_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_PWMOUT 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct pwmout_s pwmout_t; 28 | 29 | void pwmout_init (pwmout_t* obj, PinName pin); 30 | void pwmout_free (pwmout_t* obj); 31 | 32 | void pwmout_write (pwmout_t* obj, float percent); 33 | float pwmout_read (pwmout_t* obj); 34 | 35 | void pwmout_period (pwmout_t* obj, float seconds); 36 | void pwmout_period_ms (pwmout_t* obj, int ms); 37 | void pwmout_period_us (pwmout_t* obj, int us); 38 | 39 | void pwmout_pulsewidth (pwmout_t* obj, float seconds); 40 | void pwmout_pulsewidth_ms(pwmout_t* obj, int ms); 41 | void pwmout_pulsewidth_us(pwmout_t* obj, int us); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/hal/rtc_api.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_RTC_API_H 17 | #define MBED_RTC_API_H 18 | 19 | #include "device.h" 20 | 21 | #if DEVICE_RTC 22 | 23 | #include 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | void rtc_init(void); 30 | void rtc_free(void); 31 | int rtc_isenabled(void); 32 | 33 | time_t rtc_read(void); 34 | void rtc_write(time_t t); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/module.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mbed-classic", 3 | "version": "0.0.1", 4 | "description": "mbed core SDK (for mbed 2.0, *not* mbedOS)", 5 | "keywords": [ 6 | "mbed" 7 | ], 8 | "author": "Bogdan Marinescu ", 9 | "repository": { 10 | "url": "git@github.com:mbedmicro/mbed.git", 11 | "type": "git" 12 | }, 13 | "homepage": "https://github.com/mbedmicro/mbed", 14 | "licenses": [ 15 | { 16 | "url": "https://spdx.org/licenses/Apache-2.0", 17 | "type": "Apache-2.0" 18 | } 19 | ], 20 | "extraIncludes": [ 21 | "api", 22 | "hal", 23 | "targets/hal", 24 | "targets/cmsis" 25 | ], 26 | "dependencies": { 27 | }, 28 | "targetDependencies": { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library - CMSIS 2 | * Copyright (C) 2009-2011 ARM Limited. All rights reserved. 3 | * 4 | * A generic CMSIS include header, pulling in LPC407x_8x specifics 5 | */ 6 | 7 | #ifndef MBED_CMSIS_H 8 | #define MBED_CMSIS_H 9 | 10 | #include "nrf.h" 11 | #include "cmsis_nvic.h" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2013 Nordic Semiconductor 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PERIPHERALNAMES_H 17 | #define MBED_PERIPHERALNAMES_H 18 | 19 | #include "cmsis.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | #define STDIO_UART_TX TX_PIN_NUMBER 26 | #define STDIO_UART_RX RX_PIN_NUMBER 27 | #define STDIO_UART UART_0 28 | 29 | typedef enum { 30 | UART_0 = (int)NRF_UART0_BASE 31 | } UARTName; 32 | 33 | 34 | typedef enum { 35 | SPI_0 = (int)NRF_SPI0_BASE, 36 | SPI_1 = (int)NRF_SPI1_BASE, 37 | SPIS = (int)NRF_SPIS1_BASE 38 | } SPIName; 39 | 40 | typedef enum { 41 | PWM_1 = 0, 42 | PWM_2 43 | } PWMName; 44 | 45 | typedef enum { 46 | I2C_0 = (int)NRF_TWI0_BASE, 47 | I2C_1 = (int)NRF_TWI1_BASE 48 | } I2CName; 49 | 50 | typedef enum { 51 | ADC0_0 = (int)NRF_ADC_BASE 52 | } ADCName; 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PortNames.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2013 Nordic Semiconductor 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_PORTNAMES_H 17 | #define MBED_PORTNAMES_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | typedef enum { 24 | Port0 = 0 //GPIO pins 0-31 25 | } PortName; 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pinmap.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "mbed_assert.h" 17 | #include "pinmap.h" 18 | #include "mbed_error.h" 19 | 20 | void pin_function(PinName pin, int function) 21 | { 22 | } 23 | 24 | void pin_mode(PinName pin, PinMode mode) 25 | { 26 | MBED_ASSERT(pin != (PinName)NC); 27 | 28 | uint32_t pin_number = (uint32_t)pin; 29 | 30 | NRF_GPIO->PIN_CNF[pin_number] &= ~GPIO_PIN_CNF_PULL_Msk; 31 | NRF_GPIO->PIN_CNF[pin_number] |= (mode << GPIO_PIN_CNF_PULL_Pos); 32 | } 33 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "sleep_api.h" 17 | #include "cmsis.h" 18 | #include "mbed_interface.h" 19 | 20 | void sleep(void) 21 | { 22 | // ensure debug is disconnected if semihost is enabled.... 23 | NRF_POWER->TASKS_LOWPWR = 1; 24 | // wait for interrupt 25 | __WFE(); 26 | } 27 | 28 | void deepsleep(void) 29 | { 30 | sleep(); 31 | // NRF_POWER->SYSTEMOFF=1; 32 | } 33 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_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 | #include "PinNames.h" 16 | 17 | #define TWI_MASTER_CONFIG_CLOCK_PIN_NUMBER (I2C_SCL0) 18 | #define TWI_MASTER_CONFIG_DATA_PIN_NUMBER (I2C_SDA0) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/pin_transform.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Copyright (c) 2014 RedBearLab, All rights reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | */ 27 | 28 | #ifndef PIN_TRANSFORM_H_ 29 | #define PIN_TRANSFORM_H_ 30 | 31 | #include "Arduino.h" 32 | 33 | PinName Pin_nRF51822_to_Arduino(uint32_t pin); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_buffer.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "Arduino.h" 3 | #include "wiring_buffer.h" 4 | 5 | 6 | /********************************************************************** 7 | name : 8 | function : 9 | **********************************************************************/ 10 | Buffer::Buffer( void ) 11 | { 12 | memset(RX_buff, 0, SERIAL_BUFFER_MAX_SIZE); 13 | rx_Head = 0; 14 | rx_Tail = 0; 15 | } 16 | 17 | /********************************************************************** 18 | name : 19 | function : 20 | **********************************************************************/ 21 | void Buffer::store_char( uint8_t c) 22 | { 23 | uint8_t i = ( uint8_t )( rx_Head +1 ) % SERIAL_BUFFER_MAX_SIZE; 24 | 25 | if( i != rx_Tail ) 26 | { 27 | RX_buff[rx_Head] = c; 28 | rx_Head = i; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_buffer.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WIRING_BUFFER_H_ 3 | #define WIRING_BUFFER_H_ 4 | 5 | 6 | #define SERIAL_BUFFER_MAX_SIZE 64 7 | 8 | class Buffer 9 | { 10 | public: 11 | uint8_t RX_buff[SERIAL_BUFFER_MAX_SIZE]; 12 | uint8_t rx_Head; 13 | uint8_t rx_Tail; 14 | 15 | public: 16 | Buffer(void); 17 | 18 | void store_char(uint8_t c); 19 | }; 20 | 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_delay.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "Arduino.h" 3 | #include "wiring_delay.h" 4 | 5 | 6 | void delayMicroseconds(uint32_t us) 7 | { 8 | uint32_t start = us_ticker_read(); 9 | while((us_ticker_read() - start) < (uint32_t)us); 10 | } 11 | 12 | void delay(uint32_t ms) 13 | { 14 | delayMicroseconds(ms*1000); 15 | } 16 | 17 | uint32_t micros( void ) 18 | { 19 | return us_ticker_read(); 20 | } 21 | 22 | uint32_t millis( void ) 23 | { 24 | return ( us_ticker_read() / 1000); 25 | } 26 | 27 | 28 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_delay.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WIRING_DELAY_H_ 3 | #define WIRING_DELAY_H_ 4 | 5 | void delayMicroseconds(uint32_t us); 6 | void delay(uint32_t ms); 7 | uint32_t micros( void ); 8 | uint32_t millis( void ); 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_digital.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #include "Arduino.h" 4 | #include "wiring_digital.h" 5 | 6 | 7 | void pinMode(uint32_t pin, uint32_t mode) 8 | { 9 | PinName nrf_pin; 10 | gpio_t gpio; 11 | PinMode pin_mode; 12 | PinDirection direction; 13 | 14 | nrf_pin = Pin_nRF51822_to_Arduino(pin); 15 | MBED_ASSERT(nrf_pin != (PinName)NC); 16 | 17 | gpio.pin = nrf_pin; 18 | 19 | switch(mode) 20 | { 21 | case INPUT : direction = PIN_INPUT; pin_mode = PullNone; break; 22 | case OUTPUT : direction = PIN_OUTPUT; pin_mode = PullNone; break; 23 | case INPUT_PULLUP : direction = PIN_INPUT; pin_mode = PullUp; break; 24 | default : return; 25 | } 26 | gpio_dir(&gpio, direction); 27 | gpio_mode(&gpio, pin_mode); 28 | } 29 | 30 | void digitalWrite(uint32_t pin, uint32_t value) 31 | { 32 | PinName nrf_pin; 33 | 34 | nrf_pin = Pin_nRF51822_to_Arduino(pin); 35 | MBED_ASSERT(nrf_pin != (PinName)NC); 36 | if(value) 37 | NRF_GPIO->OUTSET = (1ul << nrf_pin); 38 | else 39 | NRF_GPIO->OUTCLR = (1ul << nrf_pin); 40 | } 41 | 42 | 43 | uint32_t digitalRead(uint32_t pin) 44 | { 45 | PinName nrf_pin; 46 | 47 | nrf_pin = Pin_nRF51822_to_Arduino(pin); 48 | MBED_ASSERT(nrf_pin != (PinName)NC); 49 | 50 | return ( (NRF_GPIO->IN >> nrf_pin) & 1UL ); 51 | } 52 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_digital.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef WIRING_DIGITAL_H_ 4 | #define WIRING_DIGITAL_H_ 5 | 6 | 7 | void pinMode(uint32_t pin, uint32_t mode); 8 | void digitalWrite(uint32_t pin, uint32_t value); 9 | uint32_t digitalRead(uint32_t pin); 10 | 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_interrupter.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WIRING_INTERRUPTER_H_ 3 | #define WIRING_INTERRUPTER_H_ 4 | 5 | 6 | typedef void (*irqHandle_t)(void); 7 | 8 | 9 | typedef struct{ 10 | 11 | gpio_irq_t gpio_irq; 12 | gpio_t gpio; 13 | irqHandle_t riseHandle; 14 | irqHandle_t fallHandle; 15 | 16 | }PinHandle_t; 17 | 18 | 19 | void attachInterrupt(uint32_t pin, irqHandle_t handle, uint8_t mode); 20 | void detachInterrupt(uint32_t pin ); 21 | 22 | 23 | #endif 24 | 25 | 26 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_serial.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WIRING_SERIAL_H_ 3 | #define WIRING_SERIAL_H_ 4 | 5 | #include "HardwareSerial.h" 6 | 7 | class UARTClass : public HardwareSerial 8 | { 9 | public: 10 | UARTClass(); 11 | 12 | void attach(uart_irq_handler handle); 13 | void begin(const uint32_t BaudRate ); 14 | void begin(const uint32_t BaudRate, uint32_t rx_pin, uint32_t tx_pin); 15 | void end(void); 16 | 17 | int available( void ); 18 | int read( void ); 19 | int peek( void ); 20 | void flush( void ); 21 | size_t write( const uint8_t c); //just keep the format same with the virtual function 22 | 23 | #if defined __GNUC__ /* GCC CS3 */ 24 | using Print::write ; // pull in write(str) and write(buf, size) from Print 25 | #elif defined __ICCARM__ /* IAR Ewarm 5.41+ */ 26 | //virtual void write( const char *str ) ; 27 | //virtual void write( const uint8_t *buffer, size_t size ) ; 28 | #endif 29 | operator bool() { return true; }; // USART always active 30 | }; 31 | 32 | extern "C" void store(uint8_t c); 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/wiring_shift_pulseIn.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WIRING_SHIFT_PULSEIN_H_ 3 | #define WIRING_SHIFT_PULSEIN_H_ 4 | 5 | uint32_t shiftIn(uint32_t DataPin, uint32_t ClockPin, BitOrder Order); 6 | void shiftOut(uint32_t DataPin, uint32_t ClockPin, BitOrder Order, uint8_t value); 7 | uint32_t pulseIn(uint32_t pin, uint8_t state, uint32_t timeout); 8 | 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/examples/BLEController/pin_inf.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PIN_INF_H_ 3 | #define PIN_INF_H_ 4 | 5 | #include "Arduino.h" 6 | 7 | #ifdef RBL_NRF51822 8 | 9 | #define TOTAL_ANALOG_PINS 3 10 | #define TOTAL_PINS 24 11 | #define VERSION_BLINK_PIN 13 12 | #define IS_PIN_DIGITAL(p) ( (p) >= 2 && (p) < 24 ) 13 | #define IS_PIN_ANALOG(p) ( (p) >= 19 && (p) < 24) 14 | #define IS_PIN_PWM(p) ( (p) == 3 || (p) == 5 || (p) == 6 ) 15 | #define IS_PIN_SERVO(p) ( (p) > 2 && (p) < 12 ) 16 | 17 | #define PIN_TO_DIGITAL(p) (p) 18 | #define PIN_TO_ANALOG(p) ((p)-19) 19 | #define PIN_TO_PWM(p) PIN_TO_DIGITAL(p) 20 | #define PIN_TO_SERVO(p) (p) 21 | 22 | #endif 23 | 24 | #ifdef BLE_NANO 25 | 26 | #define TOTAL_ANALOG_PINS 3 27 | #define TOTAL_PINS (14+1) 28 | #define VERSION_BLINK_PIN 13 29 | #define IS_PIN_DIGITAL(p) ( (p) >= 2 && (p) <= 14 ) 30 | #define IS_PIN_ANALOG(p) ( (p) == 8 || (p) == 9 || (p) == 10 || (p) == 11 || (p) == 12 || (p) == 14) //A0~A5 31 | #define IS_PIN_PWM(p) ( (p) == 3 || (p) == 5 || (p) == 6 ) 32 | #define IS_PIN_SERVO(p) ( (p) > 2 && (p) <= 7 ) 33 | 34 | #define PIN_TO_DIGITAL(p) (p) 35 | #define PIN_TO_PWM(p) PIN_TO_DIGITAL(p) 36 | #define PIN_TO_SERVO(p) (p) 37 | 38 | #endif 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | BLE_Exampls KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | invalid KEYWORD2 16 | 17 | ####################################### 18 | # Constants (LITERAL1) 19 | ####################################### 20 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/library.properties: -------------------------------------------------------------------------------- 1 | name=BLE_Examples 2 | version=1.0.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence=Allow 6 | paragraph=This library 7 | category=Communication 8 | url=https://github.com/redbear/nRF51822-Arduino 9 | architectures=* -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/src/invalid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/BLE_Examples/src/invalid.h -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/SPI_Master/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map SPI 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | SPI_Master KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | begin KEYWORD2 15 | endTransfer KEYWORD2 16 | transfer KEYWORD2 17 | 18 | 19 | ####################################### 20 | # Constants (LITERAL1) 21 | ####################################### 22 | SPI_MODE0 LITERAL1 23 | SPI_MODE1 LITERAL1 24 | SPI_MODE2 LITERAL1 25 | SPI_MODE3 LITERAL1 26 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/Servo/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Servo KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | attach KEYWORD2 15 | detach KEYWORD2 16 | write KEYWORD2 17 | read KEYWORD2 18 | attached KEYWORD2 19 | writeMicroseconds KEYWORD2 20 | readMicroseconds KEYWORD2 21 | 22 | ####################################### 23 | # Constants (LITERAL1) 24 | ####################################### 25 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/Wire/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Wire 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | ####################################### 10 | # Methods and Functions (KEYWORD2) 11 | ####################################### 12 | 13 | begin KEYWORD2 14 | beginTransmission KEYWORD2 15 | endTransmission KEYWORD2 16 | requestFrom KEYWORD2 17 | write KEYWORD2 18 | receive KEYWORD2 19 | 20 | ####################################### 21 | # Instances (KEYWORD2) 22 | ####################################### 23 | 24 | Wire KEYWORD2 25 | 26 | ####################################### 27 | # Constants (LITERAL1) 28 | ####################################### 29 | 30 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/nRF_Examples/README.adoc: -------------------------------------------------------------------------------- 1 | = nRF_Examples = 2 | 3 | == License == 4 | 5 | Copyright (c) 2016 RedBear 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 16 | IN THE SOFTWARE. 17 | 18 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/nRF_Examples/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | nRF_Exampls KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | invalid KEYWORD2 16 | 17 | ####################################### 18 | # Constants (LITERAL1) 19 | ####################################### 20 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/nRF_Examples/library.properties: -------------------------------------------------------------------------------- 1 | name=nRF_Examples 2 | version=1.0.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence=Allow 6 | paragraph=This library 7 | category=Communication 8 | url=https://github.com/redbear/nRF51822-Arduino 9 | architectures=* -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/nRF_Examples/src/invalid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/libraries/nRF_Examples/src/invalid.h -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/programmers.txt: -------------------------------------------------------------------------------- 1 | 2 | dap_link.name=DAPLink 3 | dap_link.communication=USB 4 | dap_link.protocol= 5 | dap_link.program.protocol= 6 | dap_link.program.tool=openocd 7 | dap_link.program.interface=cmsis-dap 8 | dap_link.program.extra_params= 9 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/variants/BLE_Nano/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define BLE_NANO 6 | 7 | #define D0 0 8 | #define D1 1 9 | #define D2 2 10 | #define D3 3 11 | 12 | #define D4 4 13 | #define D5 5 14 | #define D6 6 15 | #define D7 7 16 | 17 | #define D13 13 18 | 19 | #define D8 8 20 | #define D9 9 21 | #define D10 10 22 | #define D11 11 23 | #define D12 12 24 | #define D14 14 25 | 26 | #define A0 D8 27 | #define A1 D9 28 | #define A2 D10 29 | #define A3 D11 30 | #define A4 D12 31 | #define A5 D14 32 | 33 | #define CS D2 34 | #define SCK D3 35 | #define MISO D0 36 | #define MOSI D1 37 | 38 | #define SDA D2 39 | #define SCL D3 40 | 41 | #define DEFAULT_RX_PIN D0 42 | #define DERAULT_TX_PIN D1 43 | 44 | #define TWI_SDA SDA 45 | #define TWI_SCL SCL 46 | 47 | #define LED D13 48 | 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/variants/BLE_Nano_32KB/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define BLE_NANO 6 | 7 | #define D0 0 8 | #define D1 1 9 | #define D2 2 10 | #define D3 3 11 | 12 | #define D4 4 13 | #define D5 5 14 | #define D6 6 15 | #define D7 7 16 | 17 | #define D13 13 18 | 19 | #define D8 8 20 | #define D9 9 21 | #define D10 10 22 | #define D11 11 23 | #define D12 12 24 | #define D14 14 25 | 26 | #define A0 D8 27 | #define A1 D9 28 | #define A2 D10 29 | #define A3 D11 30 | #define A4 D12 31 | #define A5 D14 32 | 33 | #define CS D2 34 | #define SCK D3 35 | #define MISO D0 36 | #define MOSI D1 37 | 38 | #define SDA D2 39 | #define SCL D3 40 | 41 | #define DEFAULT_RX_PIN D0 42 | #define DERAULT_TX_PIN D1 43 | 44 | #define TWI_SDA SDA 45 | #define TWI_SCL SCL 46 | 47 | #define LED D13 48 | 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/variants/RBL_nRF51822/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define RBL_NRF51822 6 | 7 | //PIN Define 8 | #define D0 0 9 | #define D1 1 10 | #define D2 2 11 | #define D3 3 12 | #define D4 4 13 | #define D5 5 14 | #define D6 6 15 | #define D7 7 16 | #define D8 8 17 | #define D9 9 18 | #define D10 10 19 | #define D11 11 20 | #define D12 12 21 | #define D13 13 22 | #define D14 14 23 | #define D15 15 24 | #define D16 16 25 | #define D17 17 26 | #define D18 18 27 | #define D19 19 28 | #define D20 20 29 | #define D21 21 30 | #define D22 22 31 | #define D23 23 32 | #define D24 24 33 | 34 | #define CS D7 35 | #define SCK D16 36 | #define MISO D17 37 | #define MOSI D18 38 | 39 | #define SDA0 D2 40 | #define SCL0 D3 41 | 42 | #define SDA1 D14 43 | #define SCL1 D15 44 | 45 | #define A0 D19 46 | #define A1 D20 47 | #define A2 D21 48 | #define A3 D22 49 | #define A4 D23 50 | #define A5 D24 51 | 52 | #define DEFAULT_RX_PIN D0 53 | #define DERAULT_TX_PIN D1 54 | 55 | #define TWI_SDA SDA1 56 | #define TWI_SCL SCL1 57 | 58 | #define LED D13 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /nRF51822/arduino/arduino-1.6.x/hardware/RBL/RBL_nRF51822/variants/RBL_nRF51822_32KB/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define RBL_NRF51822 6 | 7 | //PIN Define 8 | #define D0 0 9 | #define D1 1 10 | #define D2 2 11 | #define D3 3 12 | #define D4 4 13 | #define D5 5 14 | #define D6 6 15 | #define D7 7 16 | #define D8 8 17 | #define D9 9 18 | #define D10 10 19 | #define D11 11 20 | #define D12 12 21 | #define D13 13 22 | #define D14 14 23 | #define D15 15 24 | #define D16 16 25 | #define D17 17 26 | #define D18 18 27 | #define D19 19 28 | #define D20 20 29 | #define D21 21 30 | #define D22 22 31 | #define D23 23 32 | #define D24 24 33 | 34 | #define CS D7 35 | #define SCK D16 36 | #define MISO D17 37 | #define MOSI D18 38 | 39 | #define SDA0 D2 40 | #define SCL0 D3 41 | 42 | #define SDA1 D14 43 | #define SCL1 D15 44 | 45 | #define A0 D19 46 | #define A1 D20 47 | #define A2 D21 48 | #define A3 D22 49 | #define A4 D23 50 | #define A5 D24 51 | 52 | #define DEFAULT_RX_PIN D0 53 | #define DERAULT_TX_PIN D1 54 | 55 | #define TWI_SDA SDA1 56 | #define TWI_SCL SCL1 57 | 58 | #define LED D13 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /nRF51822/daplink/DAPLink_MK20_RBL_nRF51822.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/DAPLink_MK20_RBL_nRF51822.bin -------------------------------------------------------------------------------- /nRF51822/daplink/F103-DAPLink/board_v1.0/DAPLink_F103_BLENano.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/F103-DAPLink/board_v1.0/DAPLink_F103_BLENano.bin -------------------------------------------------------------------------------- /nRF51822/daplink/F103-DAPLink/board_v1.5/gd32f103cb_rblnano_if_crc_legacy_0x8000_20161130.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/F103-DAPLink/board_v1.5/gd32f103cb_rblnano_if_crc_legacy_0x8000_20161130.bin -------------------------------------------------------------------------------- /nRF51822/daplink/MK20-USB/board_v1.0/DAPLink_MK20_BLENano.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/MK20-USB/board_v1.0/DAPLink_MK20_BLENano.bin -------------------------------------------------------------------------------- /nRF51822/daplink/MK20-USB/board_v1.5/CMSIS-DAP_MK20_BLENano.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/MK20-USB/board_v1.5/CMSIS-DAP_MK20_BLENano.bin -------------------------------------------------------------------------------- /nRF51822/daplink/MK20-USB/board_v1.5/RBL_nRF51822_MK20.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/daplink/MK20-USB/board_v1.5/RBL_nRF51822_MK20.bin -------------------------------------------------------------------------------- /nRF51822/datasheet/README.md: -------------------------------------------------------------------------------- 1 | # nRF51-Beta 2 | For nRF51 Beta Testing 3 | -------------------------------------------------------------------------------- /nRF51822/dfu/rbl_nrf51822_bootloader/Abstract.txt: -------------------------------------------------------------------------------- 1 | Documentation can be found offline at: /ARM/Pack/NordicSemiconductor//10.0.0/documentation 2 | Documentation can be found online at: http://developer.nordicsemi.com/nRF51_SDK/doc/ -------------------------------------------------------------------------------- /nRF51822/dfu/rbl_nrf51822_bootloader/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/dfu/rbl_nrf51822_bootloader/license.txt -------------------------------------------------------------------------------- /nRF51822/dfu/rbl_nrf51822_bootloader/pca10028/dual_bank_ble_s130/arm4/dfu_dual_bank_ble_s130_pca10028.uvgui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -5.1 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | 10 | 11 | 1 12 | 0 13 | 14 | 100 15 | 0 16 | 17 | ..\..\..\..\..\..\components\softdevice\s130\doc\s130_nrf51822_1.0.0_licence_agreement.txt 18 | 0 19 | 1 20 | 1 21 | 1 22 | 23 | 0 24 | 25 | 26 | 27 | 28 |
-------------------------------------------------------------------------------- /nRF51822/dfu/rbl_nrf51822_bootloader/pca10028/dual_bank_ble_s130/arm4/dfu_dual_bank_ble_s130_pca10028.uvopt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | nrf51422_xxac 10 | 0x4 11 | ARM-ADS 12 | 13 | 14 | 1 15 | 16 | 17 | Segger\JL2CM3.dll 18 | 19 | 20 | 21 | 0 22 | JL2CM3 23 | -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC2000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 24 | 25 | 26 | 0 27 | UL2CM3 28 | UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx -FS00 -FL0200000) 29 | 30 | 31 | 32 | 33 |
34 | 35 | -------------------------------------------------------------------------------- /nRF51822/dfu/rbl_nrf51822_bootloader/pca10028/dual_bank_ble_s130/arm5_no_packs/RTE/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'dfu_dual_bank_ble_s130_pca10028' 7 | * Target: 'nrf51422_xxac' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | #endif /* RTE_COMPONENTS_H */ 15 | -------------------------------------------------------------------------------- /nRF51822/docs/RB_Nano_Doc_6-8-15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/docs/RB_Nano_Doc_6-8-15.pdf -------------------------------------------------------------------------------- /nRF51822/docs/images/ble_nano_pinout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/docs/images/ble_nano_pinout.png -------------------------------------------------------------------------------- /nRF51822/mbed/README.md: -------------------------------------------------------------------------------- 1 | # nRF51-mbed 2 | 3 | * ARM mbed User Guide 4 | -------------------------------------------------------------------------------- /nRF51822/pcb/BLE Nano v1.5 gerber.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/BLE Nano v1.5 gerber.zip -------------------------------------------------------------------------------- /nRF51822/pcb/README.md: -------------------------------------------------------------------------------- 1 | # nRF51822-Beta 2 | For nRF51822 Beta Testing 3 | -------------------------------------------------------------------------------- /nRF51822/pcb/schematic/BLENano_1.0_20141010.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/schematic/BLENano_1.0_20141010.pdf -------------------------------------------------------------------------------- /nRF51822/pcb/schematic/DAPLink_USB_1.0_20160621.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/schematic/DAPLink_USB_1.0_20160621.pdf -------------------------------------------------------------------------------- /nRF51822/pcb/schematic/MK20_USB_1.0_20141010.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/schematic/MK20_USB_1.0_20141010.pdf -------------------------------------------------------------------------------- /nRF51822/pcb/schematic/RBL_nRF51822_1.0_Components.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/schematic/RBL_nRF51822_1.0_Components.pdf -------------------------------------------------------------------------------- /nRF51822/pcb/schematic/RBL_nRF51822_1.0_Schematic.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/pcb/schematic/RBL_nRF51822_1.0_Schematic.pdf -------------------------------------------------------------------------------- /nRF51822/test/README.md: -------------------------------------------------------------------------------- 1 | # nRF51822-Test 2 | 3 | This folder contains some pre-compiled test firmwares for testing. 4 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/Abstract.txt: -------------------------------------------------------------------------------- 1 | Detailed documentation can be found offline at: /ARM/Pack/NordicSemiconductor/nRF_Examples//documentation 2 | Detailed documentation can be found online at: http://developer.nordicsemi.com/nRF51_SDK/doc/ 3 | 4 | The Blinky Example shows how to configure the GPIO pins as outputs. These 5 | outputs can then be used to drive LEDs, as in this example. 6 | 7 | When the application starts, some GPIO pins are configured as outputs to drive 8 | the LEDs. The application then loops while toggling the state of one of the LEDs 9 | every 500 milliseconds. 10 | 11 | Testing: 12 | Test the Blinky Example application by performing the following steps: 13 | 14 | 1. Compile and program the application. 15 | 2. Observe that the LEDs are blinking. 16 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/blinky.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $WS_DIR$\pca10028\blank\iar\blinky_pca10028.ewp 5 | 6 | $WS_DIR$\pca10031\blank\iar\blinky_pca10031.ewp 7 | 8 | $WS_DIR$\pca10040\blank\iar\blinky_pca10040.ewp 9 | 10 | $WS_DIR$\pca10031\s130\iar\blinky_pca10031_s130.ewp 11 | 12 | $WS_DIR$\pca10028\s130\iar\blinky_pca10028_s130.ewp 13 | 14 | $WS_DIR$\pca10040\s132\iar\blinky_pca10040_s132.ewp 15 | 16 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF51822/test/blinky_project/license.txt -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/main.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 | /** @file 14 | * 15 | * @defgroup blinky_example_main main.c 16 | * @{ 17 | * @ingroup blinky_example 18 | * @brief Blinky Example Application main file. 19 | * 20 | * This file contains the source code for a sample application to blink LEDs. 21 | * 22 | */ 23 | 24 | #include 25 | #include 26 | #include "nrf_delay.h" 27 | #include "bsp.h" 28 | 29 | static const uint8_t leds_list[LEDS_NUMBER] = LEDS_LIST; 30 | 31 | /** 32 | * @brief Function for application main entry. 33 | */ 34 | int main(void) 35 | { 36 | /* Configure LED-pins as outputs. */ 37 | //LEDS_CONFIGURE(LEDS_MASK); 38 | nrf_gpio_cfg_output(15); 39 | nrf_gpio_cfg_output(19); 40 | /* Toggle LEDs. */ 41 | while (true) 42 | { 43 | // for (int i = 0; i < LEDS_NUMBER; i++) 44 | // { 45 | // LEDS_INVERT(1 << leds_list[i]); 46 | // nrf_delay_ms(500); 47 | // } 48 | nrf_delay_ms(1000); 49 | nrf_gpio_pin_toggle(15); 50 | nrf_gpio_pin_toggle(19); 51 | } 52 | } 53 | 54 | /** 55 | *@} 56 | **/ 57 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/pca10028/blank/arm4/blinky_pca10028.uvopt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | nrf51422_xxac 9 | 0x4 10 | ARM-ADS 11 | 12 | 1 13 | 14 | Segger\JL2CM3.dll 15 | 16 | 17 | 18 | 0 19 | JL2CM3 20 | -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC2000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 21 | 22 | 23 | 0 24 | UL2CM3 25 | UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx -FS00 -FL0200000) 26 | 27 | 28 | 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/pca10028/blank/arm5_no_packs/RTE/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'blinky_pca10028' 7 | * Target: 'nrf51422_xxac' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | #endif /* RTE_COMPONENTS_H */ 15 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/pca10028/blank/armgcc/blinky_gcc_nrf51.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 = 0x0, LENGTH = 0x40000 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" 23 | -------------------------------------------------------------------------------- /nRF51822/test/blinky_project/pca10028/blank/iar/blinky_iar_nRF5x.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__ = 0x0; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x0; 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 | 35 | -------------------------------------------------------------------------------- /nRF52832/arduino/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-Arduino 2 | 3 | This folder contains the board support package files for using RedBear nRF52832 boards on Arduino IDE. 4 | 5 | Note: for normal use, please use the [Arduino Installation Guide](../docs/Arduino_Board_Package_Installation_Guide.md) to set up the board files. 6 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/Arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Arduino_h 3 | #define Arduino_h 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | // some libraries and sketches depend on this 11 | // AVR stuff, assuming Arduino.h or WProgram.h 12 | // automatically includes it.. 13 | #include 14 | 15 | #include "mbed.h" 16 | 17 | #include "wiring_constants.h" 18 | 19 | #include "pins_arduino.h" 20 | #include "pin_transform.h" 21 | #include "wiring_buffer.h" 22 | #include "wiring_delay.h" 23 | #include "wiring_digital.h" 24 | #include "wiring_analog.h" 25 | #include "wiring_interrupts.h" 26 | #include "wiring_shift_pulse.h" 27 | #include "wiring_serial.h" 28 | #include "wiring_tone.h" 29 | #include "WMath.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C"{ 33 | #endif 34 | 35 | void yield(void); 36 | 37 | //sketch 38 | extern void setup( void ); 39 | extern void loop( void ); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | extern UARTClass Serial; 46 | 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/ble/deprecate.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __DEPRECATE_H__ 18 | #define __DEPRECATE_H__ 19 | 20 | #ifdef YOTTA_CFG_MBED_OS 21 | #include "compiler-polyfill/attributes.h" 22 | #else 23 | #define __deprecated_message(msg) 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/source/BLEInstanceBase.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "ble/BLE.h" 18 | #include "ble/BLEInstanceBase.h" 19 | 20 | BLEInstanceBase::~BLEInstanceBase() 21 | { 22 | // empty destructor 23 | } 24 | 25 | void BLEInstanceBase::signalEventsToProcess(BLE::InstanceID_t id) 26 | { 27 | BLE::Instance(id).signalEventsToProcess(); 28 | } 29 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_H_ 18 | #define _BTLE_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | #include "common/common.h" 25 | 26 | #include "ble_srv_common.h" 27 | #include "nrf_ble.h" 28 | 29 | error_t btle_init(void); 30 | 31 | // flag indicating if events have been signaled or not 32 | // It is used by processEvents and signalEventsToProcess 33 | // signalEventsToProcess raise the flag and processEvents 34 | // clears it. 35 | extern bool isEventsSignaled; 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | 41 | #endif // ifndef _BTLE_H_ 42 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_advertising.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_ADVERTISING_H_ 18 | #define _BTLE_ADVERTISING_H_ 19 | 20 | #include "common/common.h" 21 | 22 | error_t btle_advertising_start(void); 23 | 24 | #endif // ifndef _BTLE_ADVERTISING_H_ 25 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_discovery.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_DISCOVERY_H_ 18 | #define _BTLE_DISCOVERY_H_ 19 | 20 | void bleGattcEventHandler(const ble_evt_t *p_ble_evt); 21 | 22 | #endif /*_BTLE_DISCOVERY_H_*/ 23 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_gap.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BTLE_GAP_H_ 18 | #define _BTLE_GAP_H_ 19 | 20 | #include "common/common.h" 21 | 22 | error_t btle_gap_init(void); 23 | 24 | #endif // ifndef _BTLE_GAP_H_ 25 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/supress-warnings.cmake: -------------------------------------------------------------------------------- 1 | # Copyright 2015 ARM Limited 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | message("suppressing warnings from ble-nrf51822") 16 | 17 | if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 18 | set_target_properties(ble-nrf51822 19 | PROPERTIES COMPILE_FLAGS "-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers" 20 | ) 21 | endif() 22 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/HardwareSerial.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef HardwareSerial_h 20 | #define HardwareSerial_h 21 | 22 | #include 23 | 24 | #include "WStream.h" 25 | 26 | class HardwareSerial : public WStream 27 | { 28 | public: 29 | void begin( const uint32_t BaudRate ); 30 | void begin( const uint32_t BaudRate, uint32_t rx_pin, uint32_t tx_pin ); 31 | void end(); 32 | virtual int available(void) = 0; 33 | virtual int peek(void) = 0; 34 | virtual int read(void) = 0; 35 | virtual void flush(void) = 0; 36 | virtual size_t write(uint8_t) = 0; 37 | 38 | using Print::write; // pull in write(str) and write(buf, size) from Print 39 | virtual operator bool() = 0; 40 | }; 41 | 42 | extern void serialEvent(void) __attribute__((weak)); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/Printable.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Printable.h - Interface class that allows printing of complex types 4 | Copyright (c) 2011 Adrian McEwen. All right reserved. 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef Printable_h 22 | #define Printable_h 23 | 24 | #include 25 | 26 | class Print; 27 | 28 | /** The Printable class provides a way for new classes to allow themselves to be printed. 29 | By deriving from Printable and implementing the printTo method, it will then be possible 30 | for users to print out instances of this class by passing them into the usual 31 | Print::print and Print::println methods. 32 | */ 33 | 34 | class Printable 35 | { 36 | public: 37 | virtual size_t printTo(Print& p) const = 0; 38 | }; 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/WMath.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _WIRING_MATH_ 21 | #define _WIRING_MATH_ 22 | 23 | extern long random( long ) ; 24 | extern long random( long, long ) ; 25 | extern void randomSeed( uint32_t dwSeed ) ; 26 | extern long map( long, long, long, long, long ) ; 27 | 28 | extern uint16_t makeWord( uint16_t w ) ; 29 | extern uint16_t makeWord( uint8_t h, uint8_t l ) ; 30 | 31 | #define word(...) makeWord(__VA_ARGS__) 32 | 33 | 34 | #endif /* _WIRING_MATH_ */ 35 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/itoa.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | Copyright (c) 2011 Arduino. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | See the GNU Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef _ITOA_ 21 | #define _ITOA_ 22 | 23 | #ifdef __cplusplus 24 | extern "C"{ 25 | #endif // __cplusplus 26 | 27 | #if 0 28 | 29 | extern void itoa( int n, char s[] ) ; 30 | 31 | #else 32 | 33 | extern char* itoa( int value, char *string, int radix ) ; 34 | extern char* ltoa( long value, char *string, int radix ) ; 35 | extern char* utoa( unsigned int value, char *string, int radix ) ; 36 | extern char* ultoa( unsigned long value, char *string, int radix ) ; 37 | #endif /* 0 */ 38 | 39 | #ifdef __cplusplus 40 | } // extern "C" 41 | #endif // __cplusplus 42 | 43 | #endif // _ITOA_ 44 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/main.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define ARDUINO_MAIN 3 | 4 | #include "Arduino.h" 5 | 6 | /* 7 | * \brief Main entry point of Arduino application 8 | */ 9 | 10 | 11 | int __attribute__ ((weak)) main(void) 12 | { 13 | setup(); 14 | 15 | for (;;) 16 | { 17 | loop(); 18 | } 19 | 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/AnalogIn.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "drivers/AnalogIn.h" 18 | 19 | #if DEVICE_ANALOGIN 20 | 21 | namespace mbed { 22 | 23 | SingletonPtr AnalogIn::_mutex; 24 | 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/FileLike.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "drivers/FileLike.h" 17 | 18 | namespace mbed { 19 | 20 | FileLike::FileLike(const char *name) : FileHandle(), FileBase(name, FilePathType) { 21 | 22 | } 23 | 24 | FileLike::~FileLike() { 25 | 26 | } 27 | 28 | } // namespace mbed 29 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/FileLike.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILELIKE_H 17 | #define MBED_FILELIKE_H 18 | 19 | #include "drivers/FileBase.h" 20 | #include "drivers/FileHandle.h" 21 | 22 | namespace mbed { 23 | /** \addtogroup drivers */ 24 | /** @{*/ 25 | 26 | /* Class FileLike 27 | * A file-like object is one that can be opened with fopen by 28 | * fopen("/name", mode). It is intersection of the classes Base and 29 | * FileHandle. 30 | * 31 | * @Note Synchronization level: Set by subclass 32 | */ 33 | class FileLike : public FileHandle, public FileBase { 34 | 35 | public: 36 | /* Constructor FileLike 37 | * 38 | * Variables 39 | * name - The name to use to open the file. 40 | */ 41 | FileLike(const char *name); 42 | 43 | virtual ~FileLike(); 44 | 45 | }; 46 | 47 | } // namespace mbed 48 | 49 | #endif 50 | 51 | /** @}*/ 52 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/FilePath.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILEPATH_H 17 | #define MBED_FILEPATH_H 18 | 19 | #include "platform/platform.h" 20 | 21 | #include "drivers/FileSystemLike.h" 22 | #include "drivers/FileLike.h" 23 | 24 | namespace mbed { 25 | /** \addtogroup drivers */ 26 | /** @{*/ 27 | 28 | class FilePath { 29 | public: 30 | FilePath(const char* file_path); 31 | 32 | const char* fileName(void); 33 | 34 | bool isFileSystem(void); 35 | FileSystemLike* fileSystem(void); 36 | 37 | bool isFile(void); 38 | FileLike* file(void); 39 | bool exists(void); 40 | 41 | private: 42 | const char* file_name; 43 | FileBase* fb; 44 | }; 45 | 46 | } // namespace mbed 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/LowPowerTicker.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTICKER_H 17 | #define MBED_LOWPOWERTICKER_H 18 | 19 | #include "platform/platform.h" 20 | #include "drivers/Ticker.h" 21 | 22 | #if DEVICE_LOWPOWERTIMER 23 | 24 | #include "hal/lp_ticker_api.h" 25 | 26 | namespace mbed { 27 | /** \addtogroup drivers */ 28 | /** @{*/ 29 | 30 | /** Low Power Ticker 31 | * 32 | * @Note Synchronization level: Interrupt safe 33 | */ 34 | class LowPowerTicker : public Ticker { 35 | 36 | public: 37 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { 38 | } 39 | 40 | virtual ~LowPowerTicker() { 41 | } 42 | }; 43 | 44 | } // namespace mbed 45 | 46 | #endif 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/LowPowerTimeout.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMEOUT_H 17 | #define MBED_LOWPOWERTIMEOUT_H 18 | 19 | #include "platform/platform.h" 20 | 21 | #if DEVICE_LOWPOWERTIMER 22 | 23 | #include "hal/lp_ticker_api.h" 24 | #include "drivers/LowPowerTicker.h" 25 | 26 | namespace mbed { 27 | /** \addtogroup drivers */ 28 | /** @{*/ 29 | 30 | /** Low Power Timout 31 | * 32 | * @Note Synchronization level: Interrupt safe 33 | */ 34 | class LowPowerTimeout : public LowPowerTicker { 35 | 36 | private: 37 | virtual void handler(void) { 38 | _function.call(); 39 | } 40 | }; 41 | 42 | } 43 | 44 | #endif 45 | 46 | #endif 47 | 48 | /** @}*/ 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/LowPowerTimer.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMER_H 17 | #define MBED_LOWPOWERTIMER_H 18 | 19 | #include "platform/platform.h" 20 | #include "drivers/Timer.h" 21 | 22 | #if DEVICE_LOWPOWERTIMER 23 | 24 | #include "hal/lp_ticker_api.h" 25 | 26 | namespace mbed { 27 | /** \addtogroup drivers */ 28 | /** @{*/ 29 | 30 | /** Low power timer 31 | * 32 | * @Note Synchronization level: Interrupt safe 33 | */ 34 | class LowPowerTimer : public Timer { 35 | 36 | public: 37 | LowPowerTimer() : Timer(get_lp_ticker_data()) { 38 | } 39 | 40 | }; 41 | 42 | } // namespace mbed 43 | 44 | #endif 45 | 46 | #endif 47 | 48 | /** @}*/ 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/Serial.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "drivers/Serial.h" 17 | #include "platform/wait_api.h" 18 | 19 | #if DEVICE_SERIAL 20 | 21 | namespace mbed { 22 | 23 | Serial::Serial(PinName tx, PinName rx, const char *name, int baud) : SerialBase(tx, rx, baud), Stream(name) { 24 | } 25 | 26 | Serial::Serial(PinName tx, PinName rx, int baud): SerialBase(tx, rx, baud), Stream(NULL) { 27 | } 28 | 29 | int Serial::_getc() { 30 | // Mutex is already held 31 | return _base_getc(); 32 | } 33 | 34 | int Serial::_putc(int c) { 35 | // Mutex is already held 36 | return _base_putc(c); 37 | } 38 | 39 | void Serial::lock() { 40 | _mutex.lock(); 41 | } 42 | 43 | void Serial::unlock() { 44 | _mutex.unlock(); 45 | } 46 | 47 | } // namespace mbed 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/Ticker.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "drivers/Ticker.h" 17 | 18 | #include "drivers/TimerEvent.h" 19 | #include "platform/FunctionPointer.h" 20 | #include "hal/ticker_api.h" 21 | #include "platform/critical.h" 22 | 23 | namespace mbed { 24 | 25 | void Ticker::detach() { 26 | core_util_critical_section_enter(); 27 | remove(); 28 | _function.attach(0); 29 | core_util_critical_section_exit(); 30 | } 31 | 32 | void Ticker::setup(timestamp_t t) { 33 | core_util_critical_section_enter(); 34 | remove(); 35 | _delay = t; 36 | insert(_delay + ticker_read(_ticker_data)); 37 | core_util_critical_section_exit(); 38 | } 39 | 40 | void Ticker::handler() { 41 | insert(event.timestamp + _delay); 42 | _function.call(); 43 | } 44 | 45 | } // namespace mbed 46 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/drivers/Timeout.cpp: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "drivers/Timeout.h" 17 | 18 | namespace mbed { 19 | 20 | void Timeout::handler() { 21 | _function.call(); 22 | } 23 | 24 | } // namespace mbed 25 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/hal/buffer.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2014-2015 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_BUFFER_H 20 | #define MBED_BUFFER_H 21 | 22 | #include 23 | 24 | /** Generic buffer structure 25 | */ 26 | typedef struct buffer_s { 27 | void *buffer; /**< the pointer to a buffer */ 28 | size_t length; /**< the buffer length */ 29 | size_t pos; /**< actual buffer position */ 30 | uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ 31 | } buffer_t; 32 | 33 | #endif 34 | 35 | /** @}*/ 36 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/hal/dma_api.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2014-2015 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_DMA_API_H 20 | #define MBED_DMA_API_H 21 | 22 | #include 23 | 24 | #define DMA_ERROR_OUT_OF_CHANNELS (-1) 25 | 26 | typedef enum { 27 | DMA_USAGE_NEVER, 28 | DMA_USAGE_OPPORTUNISTIC, 29 | DMA_USAGE_ALWAYS, 30 | DMA_USAGE_TEMPORARY_ALLOCATED, 31 | DMA_USAGE_ALLOCATED 32 | } DMAUsage; 33 | 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | void dma_init(void); 39 | 40 | int dma_channel_allocate(uint32_t capabilities); 41 | 42 | int dma_channel_free(int channelid); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/hal/mbed_lp_ticker_api.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "hal/lp_ticker_api.h" 17 | 18 | #if DEVICE_LOWPOWERTIMER 19 | 20 | static ticker_event_queue_t events; 21 | 22 | static const ticker_interface_t lp_interface = { 23 | .init = lp_ticker_init, 24 | .read = lp_ticker_read, 25 | .disable_interrupt = lp_ticker_disable_interrupt, 26 | .clear_interrupt = lp_ticker_clear_interrupt, 27 | .set_interrupt = lp_ticker_set_interrupt, 28 | }; 29 | 30 | static const ticker_data_t lp_data = { 31 | .interface = &lp_interface, 32 | .queue = &events, 33 | }; 34 | 35 | const ticker_data_t* get_lp_ticker_data(void) 36 | { 37 | return &lp_data; 38 | } 39 | 40 | void lp_ticker_irq_handler(void) 41 | { 42 | ticker_irq_handler(&lp_data); 43 | } 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/hal/mbed_us_ticker_api.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "hal/us_ticker_api.h" 17 | 18 | static ticker_event_queue_t events; 19 | 20 | static const ticker_interface_t us_interface = { 21 | .init = us_ticker_init, 22 | .read = us_ticker_read, 23 | .disable_interrupt = us_ticker_disable_interrupt, 24 | .clear_interrupt = us_ticker_clear_interrupt, 25 | .set_interrupt = us_ticker_set_interrupt, 26 | }; 27 | 28 | static const ticker_data_t us_data = { 29 | .interface = &us_interface, 30 | .queue = &events, 31 | }; 32 | 33 | const ticker_data_t* get_us_ticker_data(void) 34 | { 35 | return &us_data; 36 | } 37 | 38 | void us_ticker_irq_handler(void) 39 | { 40 | ticker_irq_handler(&us_data); 41 | } 42 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/hal/pinmap.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_PINMAP_H 20 | #define MBED_PINMAP_H 21 | 22 | #include "PinNames.h" 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | typedef struct { 29 | PinName pin; 30 | int peripheral; 31 | int function; 32 | } PinMap; 33 | 34 | void pin_function(PinName pin, int function); 35 | void pin_mode (PinName pin, PinMode mode); 36 | 37 | uint32_t pinmap_peripheral(PinName pin, const PinMap* map); 38 | uint32_t pinmap_function(PinName pin, const PinMap* map); 39 | uint32_t pinmap_merge (uint32_t a, uint32_t b); 40 | void pinmap_pinout (PinName pin, const PinMap *map); 41 | uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map); 42 | uint32_t pinmap_find_function(PinName pin, const PinMap* map); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/PlatformMutex.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef PLATFORM_MUTEX_H 20 | #define PLATFORM_MUTEX_H 21 | 22 | #ifdef MBED_CONF_RTOS_PRESENT 23 | #include "rtos/Mutex.h" 24 | typedef rtos::Mutex PlatformMutex; 25 | #else 26 | /** A stub mutex for when an RTOS is not present 27 | */ 28 | class PlatformMutex { 29 | public: 30 | PlatformMutex() { 31 | // Stub 32 | 33 | } 34 | ~PlatformMutex() { 35 | // Stub 36 | } 37 | 38 | void lock() { 39 | // Do nothing 40 | } 41 | 42 | void unlock() { 43 | // Do nothing 44 | } 45 | }; 46 | 47 | #endif 48 | 49 | #endif 50 | 51 | /** @}*/ 52 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/mbed_assert.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "platform/mbed_assert.h" 17 | #include "device.h" 18 | 19 | #include "platform/mbed_interface.h" 20 | #include "platform/critical.h" 21 | 22 | void mbed_assert_internal(const char *expr, const char *file, int line) 23 | { 24 | core_util_critical_section_enter(); 25 | mbed_error_printf("mbed assertation failed: %s, file: %s, line %d \n", expr, file, line); 26 | mbed_die(); 27 | } 28 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/mbed_error.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include 17 | #include 18 | #include "device.h" 19 | #include "platform/toolchain.h" 20 | #include "platform/mbed_error.h" 21 | #include "platform/mbed_interface.h" 22 | #if DEVICE_STDIO_MESSAGES 23 | #include 24 | #endif 25 | 26 | WEAK void error(const char* format, ...) { 27 | #ifndef NDEBUG 28 | va_list arg; 29 | va_start(arg, format); 30 | mbed_error_vfprintf(format, arg); 31 | va_end(arg); 32 | #endif 33 | exit(1); 34 | } 35 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/mbed_lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "platform", 3 | "config": { 4 | "stdio-convert-newlines": { 5 | "help": "Enable conversion to standard newlines on stdin/stdout", 6 | "value": false 7 | }, 8 | 9 | "stdio-baud-rate": { 10 | "help": "Baud rate for stdio", 11 | "value": 9600 12 | }, 13 | 14 | "stdio-flush-at-exit": { 15 | "help": "Enable or disable the flush of standard I/O's at exit.", 16 | "value": true 17 | }, 18 | 19 | "default-serial-baud-rate": { 20 | "help": "Default baud rate for a Serial or RawSerial instance (if not specified in the constructor)", 21 | "value": 9600 22 | } 23 | }, 24 | "target_overrides": { 25 | "EFM32": { 26 | "stdio-baud-rate": 115200 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/mbed_stats.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2016-2016 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_STATS_H 20 | #define MBED_STATS_H 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | typedef struct { 27 | uint32_t current_size; /**< Bytes allocated currently. */ 28 | uint32_t max_size; /**< Max bytes allocated at a given time. */ 29 | uint32_t total_size; /**< Cumulative sum of bytes ever allocated. */ 30 | uint32_t alloc_cnt; /**< Current number of allocations. */ 31 | uint32_t alloc_fail_cnt; /**< Number of failed allocations. */ 32 | } mbed_stats_heap_t; 33 | 34 | /** 35 | * Fill the passed in structure with heap stats. 36 | */ 37 | void mbed_stats_heap_get(mbed_stats_heap_t *stats); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | 45 | /** @}*/ 46 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/mbed_wait_api_no_rtos.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // This implementation of the wait functions will be compiled only 18 | // if the RTOS is not present. 19 | #ifndef MBED_CONF_RTOS_PRESENT 20 | 21 | #include "platform/wait_api.h" 22 | #include "hal/us_ticker_api.h" 23 | 24 | void wait(float s) { 25 | wait_us(s * 1000000.0f); 26 | } 27 | 28 | void wait_ms(int ms) { 29 | wait_us(ms * 1000); 30 | } 31 | 32 | void wait_us(int us) { 33 | uint32_t start = us_ticker_read(); 34 | while ((us_ticker_read() - start) < (uint32_t)us); 35 | } 36 | 37 | #endif // #ifndef MBED_CONF_RTOS_PRESENT 38 | 39 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/platform/platform.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_PLATFORM_H 20 | #define MBED_PLATFORM_H 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | #include "device.h" 28 | #include "PinNames.h" 29 | #include "PeripheralNames.h" 30 | 31 | #endif 32 | 33 | /** @}*/ 34 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/ble/common/ble_date_time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/ble/common/ble_date_time.h -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/ble/common/ble_sensor_location.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/ble/common/ble_sensor_location.h -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/libraries/fstorage/fstorage_nosd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/sdk/libraries/fstorage/fstorage_nosd.c -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/device/cmsis.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PackageLicenseDeclared: Apache-2.0 3 | * Copyright (c) 2016 ARM Limited 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_CMSIS_H 19 | #define MBED_CMSIS_H 20 | 21 | #include "nrf.h" 22 | #include "cmsis_nvic.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/targets/TARGET_NORDIC/TARGET_NRF5/gpio_object.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_GPIO_OBJECT_H 17 | #define MBED_GPIO_OBJECT_H 18 | 19 | #include "mbed_assert.h" 20 | 21 | #include "nrf_gpio.h" 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct { 28 | PinName pin; 29 | } gpio_t; 30 | 31 | static inline void gpio_write(gpio_t *obj, int value) { 32 | MBED_ASSERT(obj->pin != (PinName)NC); 33 | if (value) { 34 | nrf_gpio_pin_set(obj->pin); 35 | } else { 36 | nrf_gpio_pin_clear(obj->pin); 37 | } 38 | } 39 | 40 | static inline int gpio_is_connected(const gpio_t *obj) { 41 | return obj->pin != (PinName)NC; 42 | } 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "lp_ticker_api.h" 17 | 18 | #if DEVICE_LOWPOWERTIMER 19 | 20 | #include "common_rtc.h" 21 | 22 | void lp_ticker_init(void) 23 | { 24 | common_rtc_init(); 25 | } 26 | 27 | uint32_t lp_ticker_read() 28 | { 29 | return (uint32_t)common_rtc_64bit_us_get(); 30 | } 31 | 32 | void lp_ticker_set_interrupt(timestamp_t timestamp) 33 | { 34 | common_rtc_set_interrupt(timestamp, 35 | LP_TICKER_CC_CHANNEL, LP_TICKER_INT_MASK); 36 | } 37 | 38 | void lp_ticker_disable_interrupt(void) 39 | { 40 | nrf_rtc_event_disable(COMMON_RTC_INSTANCE, LP_TICKER_INT_MASK); 41 | } 42 | 43 | void lp_ticker_clear_interrupt(void) 44 | { 45 | nrf_rtc_event_clear(COMMON_RTC_INSTANCE, LP_TICKER_EVENT); 46 | } 47 | 48 | #endif // DEVICE_LOWPOWERTIMER 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/mbed_os/targets/TARGET_NORDIC/TARGET_NRF5/pinmap.c: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include "mbed_assert.h" 17 | #include "mbed_error.h" 18 | #include "pinmap.h" 19 | 20 | void pin_function(PinName pin, int function) 21 | { 22 | /* Avoid compiler warnings */ 23 | (void) pin; 24 | (void) function; 25 | } 26 | 27 | void pin_mode(PinName pin, PinMode mode) 28 | { 29 | MBED_ASSERT(pin != (PinName)NC); 30 | 31 | uint32_t pin_number = (uint32_t)pin; 32 | 33 | NRF_GPIO->PIN_CNF[pin_number] &= ~GPIO_PIN_CNF_PULL_Msk; 34 | NRF_GPIO->PIN_CNF[pin_number] |= (mode << GPIO_PIN_CNF_PULL_Pos); 35 | } 36 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/BLE_Examples/README.adoc: -------------------------------------------------------------------------------- 1 | = BLE_Examples = 2 | 3 | == License == 4 | 5 | Copyright (c) 2016 RedBear 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 16 | IN THE SOFTWARE. 17 | 18 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/BLE_Examples/library.properties: -------------------------------------------------------------------------------- 1 | name=BLE_Examples 2 | version=1.0.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence= 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF5x 9 | architectures=nordic* -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/BLE_Examples/src/invalid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/BLE_Examples/src/invalid.h -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Grove_Examples/README.adoc: -------------------------------------------------------------------------------- 1 | = Grove_Example = 2 | 3 | == License == 4 | 5 | Copyright (c) 2016 RedBear 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 16 | IN THE SOFTWARE. 17 | 18 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Grove_Examples/keywords.txt: -------------------------------------------------------------------------------- 1 | # Syntax Coloring Map Servo 2 | ####################################### 3 | 4 | ####################################### 5 | # Datatypes (KEYWORD1) 6 | ####################################### 7 | 8 | KEYWORD1 9 | 10 | ####################################### 11 | # Methods and Functions (KEYWORD2) 12 | ####################################### 13 | 14 | KEYWORD2 15 | 16 | ####################################### 17 | # Constants (LITERAL1) 18 | ####################################### 19 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Grove_Examples/library.properties: -------------------------------------------------------------------------------- 1 | name=Grove_Examples 2 | version=1.0.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence= 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF52-Beta 9 | architectures= -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/SPI_Master/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map SPI 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | SPI_Master KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | begin KEYWORD2 15 | end KEYWORD2 16 | beginTransaction KEYWORD2 17 | transfer KEYWORD2 18 | endTransaction KEYWORD2 19 | setSPIMode KEYWORD2 20 | setFrequency KEYWORD2 21 | setBitORDER KEYWORD2 22 | 23 | ####################################### 24 | # Constants (LITERAL1) 25 | ####################################### 26 | SPI_125K LITERAL1 27 | SPI_250K LITERAL1 28 | SPI_500K LITERAL1 29 | SPI_1M LITERAL1 30 | SPI_2M LITERAL1 31 | SPI_4M LITERAL1 32 | SPI_8M LITERAL1 33 | 34 | SPI_MODE0 LITERAL1 35 | SPI_MODE1 LITERAL1 36 | SPI_MODE2 LITERAL1 37 | SPI_MODE3 LITERAL1 38 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/SPI_Master/library.properties: -------------------------------------------------------------------------------- 1 | name=SPI 2 | version=1.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus. For RedBear nRF5x. 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF5x 9 | architectures= 10 | 11 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Servo/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Servo KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | attach KEYWORD2 15 | detach KEYWORD2 16 | write KEYWORD2 17 | read KEYWORD2 18 | attached KEYWORD2 19 | writeMicroseconds KEYWORD2 20 | readMicroseconds KEYWORD2 21 | 22 | ####################################### 23 | # Constants (LITERAL1) 24 | ####################################### 25 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Servo/library.properties: -------------------------------------------------------------------------------- 1 | name=SERVO 2 | version=1.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence=Servo driver for RedBear nRF5x. 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF5x 9 | architectures= 10 | 11 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Wire/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Wire 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Wire KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | begin KEYWORD2 16 | end KEYWORD2 17 | setClock KEYWORD2 18 | beginTransmission KEYWORD2 19 | endTransmission KEYWORD2 20 | requestFrom KEYWORD2 21 | write KEYWORD2 22 | available KEYWORD2 23 | read KEYWORD2 24 | peek KEYWORD2 25 | flush KEYWORD2 26 | 27 | ####################################### 28 | # Instances (KEYWORD2) 29 | ####################################### 30 | 31 | 32 | ####################################### 33 | # Constants (LITERAL1) 34 | ####################################### 35 | 36 | TWI_FREQUENCY_100K LITERAL1 37 | TWI_FREQUENCY_250K LITERAL1 38 | TWI_FREQUENCY_400K LITERAL1 39 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/Wire/library.properties: -------------------------------------------------------------------------------- 1 | name=TWI 2 | version=1.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence=Allows the communication between devices or sensors connected via Two Wire Interface Bus. For RedBear nRF5x. 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF5x 9 | architectures= 10 | 11 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/README.adoc: -------------------------------------------------------------------------------- 1 | = nRF_Examples = 2 | 3 | == License == 4 | 5 | Copyright (c) 2016 RedBear 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 16 | IN THE SOFTWARE. 17 | 18 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/examples/Tone/Tone.ino: -------------------------------------------------------------------------------- 1 | 2 | void setup() { 3 | // put your setup code here, to run once: 4 | Serial.begin(9600); 5 | Serial.println("Tome Demo!"); 6 | // Frequency: 10KHz, duration: 5s 7 | tone(D13, 10000, 5000); 8 | } 9 | 10 | void loop() { 11 | // put your main code here, to run repeatedly: 12 | delay(1000); 13 | } 14 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | KEYWORD2 16 | 17 | ####################################### 18 | # Constants (LITERAL1) 19 | ####################################### 20 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/library.properties: -------------------------------------------------------------------------------- 1 | name=nRF_Examples 2 | version=1.0.0 3 | author=RedBear 4 | maintainer=RedBear 5 | sentence= 6 | paragraph= 7 | category=Communication 8 | url=https://github.com/redbear/nRF5x 9 | architectures=nordic nrf5x* -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/src/invalid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/nRF_Examples/src/invalid.h -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/programmers.txt: -------------------------------------------------------------------------------- 1 | 2 | RBL_DAPLink.name=RBL_DAPLink 3 | RBL_DAPLink.name.communication=USB 4 | RBL_DAPLink.name.protocol= 5 | RBL_DAPLink.name.program.protocol= 6 | RBL_DAPLink.program.tool=openocd 7 | RBL_DAPLink.program.interface=cmsis-dap 8 | RBL_DAPLink.program.extra_params= 9 | 10 | 11 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/system/CMSIS/Include/arm_common_tables.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------- 2 | * Copyright (C) 2010 ARM Limited. All rights reserved. 3 | * 4 | * $Date: 11. November 2010 5 | * $Revision: V1.0.2 6 | * 7 | * Project: CMSIS DSP Library 8 | * Title: arm_common_tables.h 9 | * 10 | * Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions 11 | * 12 | * Target Processor: Cortex-M4/Cortex-M3 13 | * 14 | * Version 1.0.2 2010/11/11 15 | * Documentation updated. 16 | * 17 | * Version 1.0.1 2010/10/05 18 | * Production release and review comments incorporated. 19 | * 20 | * Version 1.0.0 2010/09/20 21 | * Production release and review comments incorporated. 22 | * -------------------------------------------------------------------- */ 23 | 24 | #ifndef _ARM_COMMON_TABLES_H 25 | #define _ARM_COMMON_TABLES_H 26 | 27 | #include "arm_math.h" 28 | 29 | extern const uint16_t armBitRevTable[1024]; 30 | extern const q15_t armRecipTableQ15[64]; 31 | extern const q31_t armRecipTableQ31[64]; 32 | extern const q31_t realCoefAQ31[1024]; 33 | extern const q31_t realCoefBQ31[1024]; 34 | extern const float32_t twiddleCoef[6144]; 35 | extern const q31_t twiddleCoefQ31[6144]; 36 | extern const q15_t twiddleCoefQ15[6144]; 37 | 38 | #endif /* ARM_COMMON_TABLES_H */ 39 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/BLE_Nano2/linker_scripts/gcc/BLE_Nano2.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 = 0x0001C000, LENGTH = 0x64000 9 | RAM (rwx) : ORIGIN = 0x20005000, LENGTH = 0x10000-0x5000 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 "nrf52_common.ld" 23 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/BLE_Nano2/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define BLE_NANO2 6 | 7 | #define D0 0 8 | #define D1 1 9 | #define D2 2 10 | #define D3 3 11 | #define D4 4 12 | #define D5 5 13 | #define D6 6 14 | #define D7 7 15 | #define D8 8 16 | #define D9 9 17 | #define D10 10 18 | 19 | #define D13 13 20 | 21 | #define A0 D0 22 | #define A1 D1 23 | #define A2 D2 24 | #define A3 D3 25 | #define A4 D5 26 | #define A5 D4 27 | 28 | // NFC 29 | #define D14 14 30 | #define D15 15 31 | 32 | #define DEFAULT_SCK D9 33 | #define DEFAULT_MISO D8 34 | #define DEFAULT_MOSI D7 35 | 36 | #define SDA0 D2 37 | #define SCL0 D3 38 | 39 | #define LED D13 40 | 41 | #define DEFAULT_RX_PIN D0 42 | #define DERAULT_TX_PIN D1 43 | 44 | #define DEFAULT_SCL SCL0 45 | #define DEFAULT_SDA SDA0 46 | 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/RBL_Blend2/linker_scripts/gcc/RBL_Blend2.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 = 0x0001C000, LENGTH = 0x64000 9 | RAM (rwx) : ORIGIN = 0x20005000, LENGTH = 0x10000-0x5000 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 "nrf52_common.ld" 23 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/RBL_Blend2/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define RBL_BLEND2 6 | 7 | #define D0 0 8 | #define D1 1 9 | #define D2 2 10 | #define D3 3 11 | #define D4 4 12 | #define D5 5 13 | #define D6 6 14 | #define D7 7 15 | #define D8 8 16 | #define D9 9 17 | #define D10 10 18 | #define D11 11 19 | #define D12 12 20 | #define D13 13 21 | 22 | #define D14 14 23 | #define D15 15 24 | 25 | #define D16 16 26 | #define D17 17 27 | #define D18 18 28 | #define D19 19 29 | #define D20 20 30 | #define D21 21 31 | 32 | #define A0 D16 33 | #define A1 D17 34 | #define A2 D18 35 | #define A3 D19 36 | #define A4 D20 37 | #define A5 D21 38 | // Default UART 39 | #define D22 22 //UART_CTS 40 | #define D23 23 //UART_TXD 41 | #define D24 24 //UART_RTS 42 | #define D25 25 //UART_RXD 43 | 44 | // AREF 45 | #define D26 26 46 | // Reset 47 | #define D27 27 48 | // NFC 49 | #define D28 28 50 | #define D29 29 51 | // XTAL 52 | #define D30 30 53 | #define D31 31 54 | 55 | #define DEFAULT_SCK D13 56 | #define DEFAULT_MISO D12 57 | #define DEFAULT_MOSI D11 58 | 59 | #define SDA0 D2 60 | #define SCL0 D3 61 | 62 | #define SDA1 D14 63 | #define SCL1 D15 64 | 65 | #define LED D13 66 | 67 | #define DEFAULT_RX_PIN D25 68 | #define DERAULT_TX_PIN D23 69 | 70 | #define DEFAULT_SCL SCL1 71 | #define DEFAULT_SDA SDA1 72 | 73 | #endif 74 | 75 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/nRF52DK/linker_scripts/gcc/nRF52DK.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 = 0x0001C000, LENGTH = 0x64000 9 | RAM (rwx) : ORIGIN = 0x20005000, LENGTH = 0x10000-0x5000 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 "nrf52_common.ld" 23 | -------------------------------------------------------------------------------- /nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/variants/nRF52DK/pins_arduino.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef PINS_ARDUINO_H_ 3 | #define PINS_ARDUINO_H_ 4 | 5 | #define nRF52DK 6 | 7 | #define D0 0 8 | #define D1 1 9 | #define D2 2 10 | #define D3 3 11 | #define D4 4 12 | #define D5 5 13 | #define D6 6 14 | #define D7 7 15 | #define D8 8 16 | #define D9 9 17 | #define D10 10 18 | #define D11 11 19 | #define D12 12 20 | #define D13 13 21 | 22 | #define D14 14 23 | #define D15 15 24 | 25 | #define D16 16 26 | #define D17 17 27 | #define D18 18 28 | #define D19 19 29 | #define D20 20 30 | #define D21 21 31 | 32 | #define A0 D16 33 | #define A1 D17 34 | #define A2 D18 35 | #define A3 D19 36 | #define A4 D20 37 | #define A5 D21 38 | // Default UART 39 | #define D22 22 //UART_CTS 40 | #define D23 23 //UART_TXD 41 | #define D24 24 //UART_RTS 42 | #define D25 25 //UART_RXD 43 | 44 | // AREF 45 | #define D26 26 46 | // Reset 47 | #define D27 27 48 | // NFC 49 | #define D28 28 50 | #define D29 29 51 | // XTAL 52 | #define D30 30 53 | #define D31 31 54 | 55 | 56 | #define DEFAULT_SCK D11 57 | #define DEFAULT_MISO D12 58 | #define DEFAULT_MOSI D13 59 | 60 | #define SDA0 D2 61 | #define SCL0 D3 62 | 63 | #define SDA1 D14 64 | #define SCL1 D15 65 | 66 | #define LED D13 67 | 68 | #define DEFAULT_RX_PIN D25 69 | #define DERAULT_TX_PIN D23 70 | 71 | #endif 72 | 73 | -------------------------------------------------------------------------------- /nRF52832/certs/321867CERTCAB(2AKGS-MBN2 012004).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/321867CERTCAB(2AKGS-MBN2 012004).pdf -------------------------------------------------------------------------------- /nRF52832/certs/GTS201611000157E01 Bluetooth 4.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/GTS201611000157E01 Bluetooth 4.0.pdf -------------------------------------------------------------------------------- /nRF52832/certs/GTS201611000157E02 EN 301489.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/GTS201611000157E02 EN 301489.pdf -------------------------------------------------------------------------------- /nRF52832/certs/GTS201611000157E03 EN 62479.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/GTS201611000157E03 EN 62479.pdf -------------------------------------------------------------------------------- /nRF52832/certs/GTS201611000157EV1 R&TTE VOC.PDF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/GTS201611000157EV1 R&TTE VOC.PDF -------------------------------------------------------------------------------- /nRF52832/certs/GTS201611000157F01 BT 4.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/GTS201611000157F01 BT 4.0.pdf -------------------------------------------------------------------------------- /nRF52832/certs/Japan-TELEC.CSRT170276.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/certs/Japan-TELEC.CSRT170276.pdf -------------------------------------------------------------------------------- /nRF52832/daplink/DAPLink_V1.0_Interface_nRF52.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/daplink/DAPLink_V1.0_Interface_nRF52.bin -------------------------------------------------------------------------------- /nRF52832/daplink/DAPLink_V1.5_Interface_nRF52_20170106.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/daplink/DAPLink_V1.5_Interface_nRF52_20170106.bin -------------------------------------------------------------------------------- /nRF52832/daplink/MK20_V1.0_Interface_nRF52_20170222.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/daplink/MK20_V1.0_Interface_nRF52_20170222.bin -------------------------------------------------------------------------------- /nRF52832/daplink/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-DAPLink 2 | 3 | This is the interface firmware for the DAPLink USB interface. The DAPLink User Guide can be found here: 4 | 5 | * [DAPLink User Guide](../docs/DAPLink_User_Guide.md) 6 | 7 | ## Updating Interface Firmware 8 | 9 | Pressing and holding the button and then connecting the board to PC USB, the drive ***"MAINTENANCE"*** will appear. Drag & drop the interface firmware (.bin file) into the drive, re-connect the board to PC USB. 10 | -------------------------------------------------------------------------------- /nRF52832/datasheet/MB-N2_Datasheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/datasheet/MB-N2_Datasheet.pdf -------------------------------------------------------------------------------- /nRF52832/datasheet/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-Beta 2 | For nRF52832 Beta Testing 3 | -------------------------------------------------------------------------------- /nRF52832/dfu/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-DFU 2 | 3 | This DFU project is compiled on Nordic SDK11. It uses single bank. 4 | 5 | ## Compiling DFU project 6 | 7 | * Copy project **rbl-nrf52832-bootloader** to path **"Nordic SDK11\examples\dfu\"**. 8 | 9 | * Open the project **rbl-nrf52832-bootloader\pca10040\dual-bank-ble-s132\arm5-no-packs\dfu-dual-bank-ble-s132-pca10040.uvprojx** and compile. 10 | 11 | ## Change 12 | 13 | * Change the **BOOTLOADER_BUTTON** to P04. 14 | 15 | ``` 16 | #define BOOTLOADER_BUTTON 4 17 | ``` 18 | 19 | * Add a marked LED (100ms blinky) 20 | 21 | ``` 22 | #define DFU_BLINKY_BLEND2_LED 25 //For Blend2.0 23 | ``` 24 | 25 | ``` 26 | #define DFU_BLINKY_NANO2_LED 11 //For Nano2.0 27 | ``` 28 | 29 | ## More information 30 | 31 | * [nRF52832 docs](https://github.com/redbear/nRF52-Beta/tree/master/docs "Docs") 32 | 33 | -------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/Abstract.txt: -------------------------------------------------------------------------------- 1 | Documentation can be found offline at: /ARM/Pack/NordicSemiconductor//999.0.0-dev/documentation 2 | Documentation can be found online at: http://developer.nordicsemi.com/nRF51_SDK/doc/ -------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/dfu/rbl_nrf52832_bootloader/license.txt -------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/pca10040/dual_bank_ble_s132/arm4/dfu_dual_bank_ble_s132_pca10040.uvgui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -5.1 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | 10 | 11 | 1 12 | 0 13 | 14 | 100 15 | 0 16 | 17 | ..\..\..\..\..\..\components\softdevice\s132\doc\s132_nrf52_2.0.0_licence_agreement.txt 18 | 0 19 | 1 20 | 1 21 | 1 22 | 23 | 0 24 | 25 | 26 | 27 | 28 |
-------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/pca10040/dual_bank_ble_s132/arm4/dfu_dual_bank_ble_s132_pca10040.uvopt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | nrf52832_xxaa_s132 10 | 0x4 11 | ARM-ADS 12 | 13 | 14 | 1 15 | 16 | 17 | Segger\JL2CM3.dll 18 | 19 | 20 | 21 | 0 22 | JL2CM3 23 | -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC2000 -FN1 -FF0nrf52xxx -FS00 -FL0200000 -FF1nrf52xxx_uicr.flm -FS110001000 -FL11000 24 | 25 | 26 | 0 27 | UL2CM3 28 | UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf52xxx -FS00 -FL0200000) 29 | 30 | 31 | 32 | 33 |
34 | 35 | -------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/pca10040/dual_bank_ble_s132/arm5_no_packs/RTE/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'dfu_dual_bank_ble_s132_pca10040' 7 | * Target: 'nrf52832_xxaa_s132' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | #endif /* RTE_COMPONENTS_H */ 15 | -------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/pca10040/dual_bank_ble_s132/arm5_no_packs/dfu_dual_bank_ble_s132_pca10040.uvguix: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -5.1 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | 10 | 11 | 1 12 | 0 13 | 14 | 100 15 | 0 16 | 17 | ..\..\..\..\..\..\components\softdevice\s132\doc\s132_nrf52_2.0.0_licence_agreement.txt 18 | 0 19 | 1 20 | 1 21 | 1 22 | 23 | 0 24 | 25 | 26 | 27 | 28 |
-------------------------------------------------------------------------------- /nRF52832/dfu/rbl_nrf52832_bootloader/pca10040/dual_bank_ble_s132/iar/dfu_iar_nRF5x.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__ = 0x7a000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x7a000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x7dfff; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20002c00; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000ff7f; 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 | -------------------------------------------------------------------------------- /nRF52832/docs/Getting_Started_Guide.md: -------------------------------------------------------------------------------- 1 | # Getting Started Guide 2 | 3 | ## Out-of-Box Test 4 | 5 | To test the board for the first time, follow these steps: 6 | 7 | * The preloaded firmware is a BLE Heart Rate peripheral simulator. 8 | * To test the BLE Nano 2 or Blend 2 boards 9 | * BLE Nano 2 10 | * DAPLink 11 | * Stack the BLE Nano 2 on the DAPLink USB dongle and connect to PC USB port. 12 | * ![image](./images/Nano2/Nano2_01.jpg) 13 | * ProtoBoard 14 | * If you want to try with coin cell battery (CR2032) with the Proto Board, stack the BLE Nano 2 correctly to the ProtoBoard. 15 | * ![image](./images/Nano2/ProtoBoard_01.jpg) 16 | * Blend 2 17 | * Connect it to your 5V USB adaptor or PC USB port using an USB **DATA** cable. 18 | * Note: Some USB cables are for charging only, no data lines inside. 19 | * You will see the onboard LED is flashing. 20 | * Use Nordic's iOS or Android Apps called nRFToolBox and use the HRM icon to connect to the board, the Heart Rate counter will be increasing every 1 second. 21 | * ![image](./images/App_01.png) 22 | * Congrats, your board works as expected. 23 | 24 | ## Arduino 25 | 26 | * Follow the [Arduino Installation Guide](./Arduino_Board_Package_Installation_Guide.md). 27 | 28 | ## Nordic SDK 29 | 30 | * Follow the [Nordic nRF52 SDK User Guide](./Nordic_SDK_User_Guide.md). 31 | 32 | ## mbed 33 | 34 | - To be written - 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /nRF52832/docs/README.md: -------------------------------------------------------------------------------- 1 | 2 | # Documentations 3 | 4 | * [Product Specifications](./Specifications.md) 5 | * [Getting Started Guide](./Getting_Started_Guide.md) 6 | * [Arduino Installation Guide](./Arduino_Board_Package_Installation_Guide.md) 7 | * [ARM mbed User Guide](./Mbed_IDE_User_Guide.md) 8 | * [DAPLink User Guide](DAPLink_User_Guide.md) 9 | * [DFU User Guide](DFU_User_Guide.md) 10 | -------------------------------------------------------------------------------- /nRF52832/docs/images/App_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/App_01.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_4.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_5.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Arduino/arduino_board_package_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Arduino/arduino_board_package_6.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Blend2/Blend2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Blend2/Blend2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Blend2/Blend2_Pinout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Blend2/Blend2_Pinout.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Driver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Driver.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Keil5_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Keil5_1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Keil5_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Keil5_2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Keil5_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Keil5_3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Keil5_FAQ1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Keil5_FAQ1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DAPLink/DAPLink_Pinout.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DAPLink/DAPLink_Pinout.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU10.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU10.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU4.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU5.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU6.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU6.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU7.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU7.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU8.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU8.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/DFU/DFU9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/DFU/DFU9.PNG -------------------------------------------------------------------------------- /nRF52832/docs/images/Eddystone/eddystone_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Eddystone/eddystone_1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Eddystone/eddystone_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Eddystone/eddystone_2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Eddystone/eddystone_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Eddystone/eddystone_3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Eddystone/eddystone_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Eddystone/eddystone_4.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Eddystone/eddystone_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Eddystone/eddystone_5.png -------------------------------------------------------------------------------- /nRF52832/docs/images/MB-N2/BLEModule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/MB-N2/BLEModule.png -------------------------------------------------------------------------------- /nRF52832/docs/images/MB-N2/MB-N2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/MB-N2/MB-N2.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/MB-N2/MB-N2_Pinout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/MB-N2/MB-N2_Pinout.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Nano2/Nano2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Nano2/Nano2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Nano2/Nano2_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Nano2/Nano2_01.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/Nano2/Nano2_Pinout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Nano2/Nano2_Pinout.png -------------------------------------------------------------------------------- /nRF52832/docs/images/Nano2/ProtoBoard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Nano2/ProtoBoard.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/Nano2/ProtoBoard_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/Nano2/ProtoBoard_01.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_10.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_11.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_12.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_13.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_14.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_15.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_4.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_5.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_6.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_7.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_8.png -------------------------------------------------------------------------------- /nRF52832/docs/images/mbed_ide/mbed_ide_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/mbed_ide/mbed_ide_9.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nRF52.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nRF52.jpg -------------------------------------------------------------------------------- /nRF52832/docs/images/nRF52832.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nRF52832.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_1.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_10.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_2.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_3.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_4.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_5.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_6.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_7.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_8.png -------------------------------------------------------------------------------- /nRF52832/docs/images/nordic_sdk/nordic_sdk_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/docs/images/nordic_sdk/nordic_sdk_9.png -------------------------------------------------------------------------------- /nRF52832/mbed/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-mbed 2 | 3 | * [ARM mbed User Guide](../docs/Mbed_IDE_User_Guide.md) 4 | -------------------------------------------------------------------------------- /nRF52832/pcb/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-Beta 2 | For nRF52832 Beta Testing 3 | -------------------------------------------------------------------------------- /nRF52832/pcb/eagle/NANO2/Nano v2.0 gerber.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/pcb/eagle/NANO2/Nano v2.0 gerber.rar -------------------------------------------------------------------------------- /nRF52832/pcb/schematic/Blend v2.0 SCH 20161102.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/pcb/schematic/Blend v2.0 SCH 20161102.pdf -------------------------------------------------------------------------------- /nRF52832/pcb/schematic/DAPLink V1.5 SCH 20161230.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/pcb/schematic/DAPLink V1.5 SCH 20161230.pdf -------------------------------------------------------------------------------- /nRF52832/pcb/schematic/Nano ProtoBoard V1.0 20170527.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/pcb/schematic/Nano ProtoBoard V1.0 20170527.pdf -------------------------------------------------------------------------------- /nRF52832/pcb/schematic/Nano V2.0 SCH 20161102.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redbear/nRF5x/40f2c5804df6a049ad317f8c646d97efee16a6eb/nRF52832/pcb/schematic/Nano V2.0 SCH 20161102.pdf -------------------------------------------------------------------------------- /nRF52832/sdk/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-SDK 2 | 3 | To use Nordic official SDK for nRF52832 development, follow the [Nordic nRF52832 SDK User Guide](../docs/Nordic_SDK_User_Guide.md). 4 | 5 | -------------------------------------------------------------------------------- /nRF52832/test/README.md: -------------------------------------------------------------------------------- 1 | # nRF52832-Test 2 | 3 | This folder contains some pre-compiled test firmwares for testing. 4 | --------------------------------------------------------------------------------