ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Committer:
cho45
Date:
Thu Sep 15 09:31:05 2016 +0900
Revision:
86:e0fab77e669d
Parent:
64:656686e87927
support consumer keys

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cho45 9:d1daefbf1fbd 1
cho45 64:656686e87927 2 # Offline GCC Compile
cho45 64:656686e87927 3
cho45 64:656686e87927 4 ## Prerequisite
cho45 64:656686e87927 5
cho45 64:656686e87927 6 * install arm-none-eabi-gcc
cho45 64:656686e87927 7 * install srecord
cho45 64:656686e87927 8
cho45 64:656686e87927 9 ```
cho45 64:656686e87927 10 brew install srecord
cho45 64:656686e87927 11 ```
cho45 64:656686e87927 12
cho45 64:656686e87927 13 ## Make hex files
cho45 64:656686e87927 14
cho45 64:656686e87927 15 ```
cho45 64:656686e87927 16 $ make -j merge
cho45 64:656686e87927 17 $ ls -altrh .build/keyboard.hex .build/combined.hex
cho45 64:656686e87927 18 -rw-r--r--@ 1 cho45 staff 123K 9 2 02:05 .build/keyboard.hex
cho45 64:656686e87927 19 -rw-r--r--@ 1 cho45 staff 415K 9 2 02:16 .build/combined.hex
cho45 64:656686e87927 20 ```
cho45 64:656686e87927 21
cho45 64:656686e87927 22 keyboard.hex is application hex. combined.hex is merged with softdevice.
cho45 64:656686e87927 23
cho45 64:656686e87927 24 ## Flash hex to /Volume/MBED
cho45 64:656686e87927 25
cho45 64:656686e87927 26 ```
cho45 64:656686e87927 27 $ make flash
cho45 64:656686e87927 28 ```
cho45 64:656686e87927 29
cho45 64:656686e87927 30 Copy combined.hex to /Volume/MBED
cho45 9:d1daefbf1fbd 31
cho45 9:d1daefbf1fbd 32 # ref
cho45 9:d1daefbf1fbd 33
cho45 64:656686e87927 34 - https://lowreal.net/2016/09/02/1
cho45 9:d1daefbf1fbd 35 - https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.human_interface_device.xml