Commit graph

184 commits

Author SHA1 Message Date
Rohit Grover
6b7b440642 connection event callbacks now pass in connection parameters. 2014-09-02 14:36:09 +01:00
Rohit Grover
82cbf21ff3 white space diffs 2014-09-02 14:20:25 +01:00
Rohit Grover
442e7fd98d disable app_gpiote by default 2014-09-02 13:44:52 +01:00
Rohit Grover
7050c1e1c8 add a 'reason' parameter for disconnect() and onDisconnection callback 2014-09-02 13:44:52 +01:00
Rohit Grover
118f9d8bfa white space diffs. 2014-09-02 13:44:52 +01:00
Rohit Grover
4e77274ffc move get/set of deviceName and appearance to Gap 2014-09-02 13:44:52 +01:00
Rohit Grover
10ad7e4f1a introduce a handleDataSentEvent which takes a count. 2014-09-02 13:44:52 +01:00
Rohit Grover
900ead3cc5 have onDataSent() invoked repeatedly based on the count parameter in the event. 2014-09-02 13:44:52 +01:00
Rohit Grover
2d70b38dbe disable pstorage by default 2014-09-02 13:44:52 +01:00
Rohit Grover
255e02b003 removing call to ble_conn_params_init(). 2014-09-02 13:44:52 +01:00
Rohit Grover
1a528c703e white space diff 2014-09-02 13:44:52 +01:00
Rohit Grover
0820367e70 Merge branch 'handleEvent' into develop 2014-09-02 13:44:52 +01:00
Rohit Grover
2b9fee3a56 rename WriteEvent as WriteCBParams 2014-09-02 13:44:52 +01:00
Rohit Grover
a601082563 define a new handler for dataWritten event;
this exposes the data to the callback handler.
2014-09-02 13:44:50 +01:00
Rohit Grover
04c2ea794f Merge branch 'power' into tmp 2014-09-02 13:44:09 +01:00
Rohit Grover
d6f898c2fc bring in app_button.c from nordic-sdk 2014-09-02 13:44:09 +01:00
Rohit Grover
c0519cf895 minor cleanup of call to APP_TIMER_INIT(). removing a duplicate. 2014-09-02 13:44:09 +01:00
Rohit Grover
dba36be51b refresh pstorage.cpp from nordic sdk; this also re-enables the pstorage module. 2014-09-02 13:44:09 +01:00
Rohit Grover
56a9b23778 We need only one app_timer timer with a queue depth of 1.
This is used in the implementation of ticker.
2014-09-02 13:44:09 +01:00
Rohit Grover
1b8ca8fa03 remove include of 'mbed.h' from app_timer.cpp 2014-09-02 13:44:09 +01:00
Rohit Grover
53649fb81d start RTC1 automatically from app_timer_init(). 2014-09-02 13:44:09 +01:00
Rohit Grover
5f7f6f5423 rehome call to sd_ble_enable() to btle.cpp.
softdevice_handler.cpp is shared with non-application projects like the bootloader.
2014-09-02 13:44:09 +01:00
Rohit Grover
c06fa23971 return a 64-bit value from app_timer_cnt_get() 2014-09-02 13:44:09 +01:00
Rohit Grover
32e57e1a8d white space diff 2014-09-02 13:44:09 +01:00
Rohit Grover
2478b742d7 move some constants out to the common header. 2014-09-02 13:44:09 +01:00
Rohit Grover
1a3d7ba9b9 improve the default configuration parameters for faster connection interval and lower tx power 2014-09-02 13:44:09 +01:00
Rohit Grover
1644a74d73 Bringing app_timer in line with the code in the latest SDK release.
Also replace a few uses of wait() with nrf_delay(). This has an impact
on power consumption.
2014-09-02 13:44:09 +01:00
Rohit Grover
76f958494c replace wait() with nrf_delay_us() 2014-09-02 13:44:09 +01:00
Rohit Grover
6086db38fd white space diffs. 2014-09-02 13:44:09 +01:00
Rohit Grover
cb99ef6070 reduce event queue depth for timers in app_timer_init() 2014-09-02 13:44:09 +01:00
Rohit Grover
d3a81cb072 minor rename of a type 2014-09-02 13:44:09 +01:00
Rohit Grover
83f44c29d5 54:e2294c844c83 Move value attribute as member of the char class 2014-09-02 13:35:55 +01:00
Rohit Grover
d22868169f 54:e2294c844c83 Add support for adding descriptors 2014-09-02 13:34:54 +01:00
Rohit Grover
d1a8667c1d forking from 53:1e5c300cec7f 2014-07-30 11:36:32 +01:00