Commit Graph

78 Commits

Author SHA1 Message Date
Glenn Ruben Bakke
a81de242c5 nrf5/drivers/bluetooth: Moving stop condition initialization before call to bluetooth stack write function is done, to make sure that its not overwritten after reception of the write event in case of with_response writes. 2017-05-30 23:23:31 +02:00
Glenn Ruben Bakke
b17665b8ad nrf5/drivers/bluetooth: Removing duplicate static variable declaration. 2017-05-30 23:19:34 +02:00
Glenn Ruben Bakke
66db079192 nrf5/drivers/bluetooth: Updating ble_drv_attr_c_write with possibility to do client write with response. Blocking call. 2017-05-30 19:29:46 +02:00
Glenn Ruben Bakke
aa9ad6be01 nrf5/modules/music: Update ticker and modmusic to share global ticks counter as a volatile variable. Use Timer1 hardware peripheral instead of instance 0. Timer0 is not free if used in combination with a bluetooth stack. Update IRQ priority to levels that are compatible in use with a bluetooth stack for both nrf51 and nrf52. Apply nrf51 PAN fixes for Timer1 instead of original Timer0. 2017-05-25 00:25:14 +02:00
Glenn Ruben Bakke
ed93392d87 nrf5/drivers/bluetooth: Updating bluetooth driver to initialize nrf_nvic_state_t struct during declaration of the global variable instead of explicit memset. 2017-05-25 00:25:14 +02:00
Glenn Ruben Bakke
1192981d24 nrf5/drivers/ticker: Removing unused code. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
c921bbd9ac nrf5/drivers/ticker: Removing LowPriority callback from nrf51 as there is only one SoftwareIRQ free if bluetooth stack is enabled. Also setting new IRQ priority on SlowTicker to 3 instead of 2, to interleave with bluetooth stack if needed. Updating all NVIC calls to use hal_irq.h defined static inlines instead of direct access. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
086d79fbad nrf5/drivers/ticker: Add compile config guard in ticker.c to only include the driver if SOFT_PWM is configured in by board. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
234c9f3688 nrf5/drivers/softpwm: Renaming pwm_init to softpwm_init to not collide on symbol name with pwm_init in nrf52 machine PWM object. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
a0ad7ce0b4 nrf5/drivers/softpwm: Enable use of ticker in softpwm driver. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
cab515a022 nrf5/drivers/ticker: Adding ticker.c/.h from microbit port. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
3bc8309dab nrf5/drivers/pwm: Renaming pwm.c/.h to softpwm.c/.h 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
226d872d11 nrf5/drivers/pwm: Expose pwm_init() as public function. 2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
36d9c0cb83 nrf5/drivers/bluetooth: As callback functions are in most usecases are set to NULL upon last event to get public API function out of blocking mode, these function pointers has to be set as volatile, as they are updated to NULL in interrupt context, but read in blocking main-thread. 2017-05-15 23:01:10 +02:00
Glenn Ruben Bakke
d96e2a3e08 nrf5/drivers/bluetooth: Add implementation of client attribute write without response. 2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
1f8ceaa6fb nrf5/drivers/bluetooth: Adding template function for attr_c_write. 2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
fd52691f02 nrf5/drivers/bluetooth: Renaming attr_write and attr_notify to attr_s_write and attr_s_notify to prepare for introduction of attribute write for gatt client. 2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
653f4a86d5 nrf5/drivers/bluetooth: Refactoring code to group statics for s130 and s132 into the same ifdef. Also adding two empty lines in discovery functions to make it more easy to read. 2017-05-14 18:06:42 +02:00
Glenn Ruben Bakke
e8cd010f59 nrf5/drivers/bluetooth: Updating characteristic discovery to signal whether anything was found or not. 2017-05-14 18:06:42 +02:00
Glenn Ruben Bakke
b4f96a1dc3 nrf5/drivers/bluetooth: Updating primary service discovery api to take in start handle from where to start the service discovery. Also adjusting return parameter to signal whether anything was found or not. 2017-05-13 18:12:15 +02:00
Glenn Ruben Bakke
96b203b729 nrf5/bluetooth: Updating makefiles with updated paths to bluetooth le components after moving files. 2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
3d503cf7a8 nrf5/bluetooth: Moving stack download script to drivers/bluetooth folder. 2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
bdaa714f85 nrf5/bluetooth: Move bluetooth driver files to drivers/bluetooth. Move bluetooth stack download script to root folder. 2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
24e902aa8f nrf5/drivers/pwm: Including mphal.h before config guard in pwm.c. 2017-05-08 22:01:47 +02:00
Glenn Ruben Bakke
8d06dd3281 nrf5/drivers/pwm: Updating soft PWM driver to only be included if SOFT_PWM config is set. 2017-05-08 21:21:57 +02:00
Glenn Ruben Bakke
40b37227a0 nrf5/drivers/pwm: Work in progress commit of soft PWM from microbit repo. 2017-05-02 01:07:52 +02:00
Glenn Ruben Bakke
5c6fc791e3 nrf5/drivers: Adding copy of microbit soft pwm. 2017-05-01 19:13:50 +02:00
Glenn Ruben Bakke
ab21a6a915 nrf5/drivers: Renaming folder to modules. 2017-02-04 23:51:11 +01:00
Glenn Ruben Bakke
357b21ae72 nrf5/drivers: Adding template for ubluepy module. 2017-02-04 19:32:40 +01:00
Glenn Ruben Bakke
d37d799204 nrf5/drivers: Updating examples in comment in oled ssd1305 object to use the draw module. 2017-01-26 22:56:30 +01:00
Glenn Ruben Bakke
b4d53ad560 nrf5/drivers: Updating display objects to use new SPI pin configuration in print function. 2017-01-26 22:08:39 +01:00
Glenn Ruben Bakke
197c052ca6 nrf5/drivers: Activate ssd1289 object in the display module. 2017-01-25 19:52:18 +01:00
Glenn Ruben Bakke
c442588b92 nrf5/drivers: Adding ssd1289 lcd tft driver and python module. 2017-01-25 19:47:25 +01:00
Glenn Ruben Bakke
e52ec39120 nrf5/drivers: Optimizing update_line in ili9341 driver a bit. 2017-01-21 21:22:02 +01:00
Glenn Ruben Bakke
c1a609653f nrf5/drivers: Adding space in macro. 2017-01-20 19:31:10 +01:00
Glenn Ruben Bakke
34aeaf97c1 nrf5/drivers: Adding rgb16.h with macro to convert 5-6-5 rgb values into a 16-bit value. 2017-01-20 19:17:31 +01:00
Glenn Ruben Bakke
adccc2fa13 nrf5/drivers: Updating epaper driver sld00200p to use new framebuffer. 2017-01-19 22:25:24 +01:00
Glenn Ruben Bakke
1f7bc76361 nrf5/drivers: Removing debug printf's from epaper display python module. 2017-01-19 20:55:00 +01:00
Glenn Ruben Bakke
225b3dfd19 nrf5/drivers: Updating python example in comment for ls0xxb7dxx display module. 2017-01-19 20:49:27 +01:00
Glenn Ruben Bakke
5f9c556092 nrf5/drivers: Adding ls0xxb7dxx to display module. 2017-01-19 20:45:51 +01:00
Glenn Ruben Bakke
158edcad2c nrf5/drivers: Updating sharp memory display driver and python module to a working state. 2017-01-19 20:43:23 +01:00
Glenn Ruben Bakke
ca34429617 nrf5/drivers: Tuning memory lcd driver a bit. Fixing small mp_printf usage bug. 2017-01-18 23:01:53 +01:00
Glenn Ruben Bakke
16489fced2 nrf5/drivers: Adding sharp memory display driver. For now hardcoded to 2.7 inch variant. 2017-01-17 23:15:30 +01:00
Glenn Ruben Bakke
733040e647 nrf5/drivers: Adding ssd1305 oled driver. This is very similar to ssd1306, so a merge will happen soon. 2017-01-16 23:37:52 +01:00
Glenn Ruben Bakke
6ab233a5ba nrf5/drivers: Updating ili9341 display object to use new framebuffer. 2017-01-15 22:47:30 +01:00
Glenn Ruben Bakke
535f44b8bf nrf5/drivers: Updating ili9341 driver to use new framebuffer, and removing the compressed param from the line update function. 2017-01-15 22:46:23 +01:00
Glenn Ruben Bakke
5618be883b nrf5/drivers: Adding example in comment on how to use the ili9341 driver with nrf51/pca10028 board. 2017-01-15 20:32:24 +01:00
Glenn Ruben Bakke
13161d0eac nrf5/drivers: Adding defines to exclude implementation of draw.c module if not enabled. 2017-01-15 19:32:11 +01:00
Glenn Ruben Bakke
bfca15bdff nrf5/drivers: Adding draw module with circle, rectangle and text functions. Can be used by any display object which implements display callback functions. 2017-01-15 19:18:14 +01:00
Glenn Ruben Bakke
4c06455105 nrf5/drivers: Moving oled ssd1306 driver over to new framebuffer layout. Moving some of the draw algorithms into the object in order to optimize the speed on writing data from the framebuffer. 2017-01-15 19:06:48 +01:00