Anas Nashif
0005f2ff06
sensors: bmg160: move bmg160 to own directory under drivers/sensor/
...
Change-Id: Ifae44714f08537835c8466fba11b6853f258f148
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 18:37:53 +00:00
Anas Nashif
c445de3bbb
sensors: bme280: move bme280 to own directory under drivers/sensor/
...
Change-Id: I53f5504773c914b0936091c459b80ab133b9e4ac
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 18:37:52 +00:00
Anas Nashif
57b13ec890
sensors: bmc150_magn: move bmc150_magn to own directory under drivers/sensor/
...
Change-Id: I725438747b3208ebd49f4f7d9ef6277721eaa48f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 18:37:52 +00:00
Anas Nashif
c31bbc32d8
sensors: bma280: move bma280 to own directory under drivers/sensor/
...
Change-Id: I1c73d36a51ea88fbda3707c7d6630d54f8fd3545
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 18:37:51 +00:00
Anas Nashif
db04446964
sensors: ak8975: move ak8975 to own directory under drivers/sensor/
...
Change-Id: Ib3a8e8a74430d30843db77954737c3ce5dfdce14
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 18:37:51 +00:00
Anas Nashif
2f042d65a0
grove lcd: cleanup includes
...
Change-Id: If9c7b505c1233c8e86bc3142ac803dc1a5ac5272
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 00:24:34 +00:00
Anas Nashif
915eac4625
sensors: add TH02 temperature sensor (Grove)
...
Support for the Temperature&Humidity Sensor (High-Accuracy &Mini)
v1.0 sensor, see:
http://wiki.seeed.cc/Grove-TemptureAndHumidity_Sensor-High-Accuracy_AndMini-v1.0/
Change-Id: I439eafc863116f21e3b3385175d1935e60a5e9b1
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17 00:24:33 +00:00
Johan Hedberg
efe7c939c2
Merge bluetooth branch into master
...
Main changes:
- Fixes to IPSP & L2CAP buffering to prepare for Native IP stack
- Fixes to SMP (Security Manager Protocol) over BR/EDR
- Improvements to persistent storage API
- Support for specifying BR/EDR Page Timeout in Kconfig
----------------------------------------------------------------
Flavio Santes (1):
Bluetooth: Fix Kconfig typo
Itankar, Piyush T (3):
Bluetooth: HCI: Add OpCode definition for setting page timeout
Bluetooth: Kconfig: Option to set page timeout value
Bluetooth: HCI: Set the Page timeout
Johan Hedberg (7):
Bluetooth: Use proper const type for bt_storage_clear()
Bluetooth: Improve storage API documentation
Bluetooth: Add BT_STORAGE_ADDRESSES key to storage API
Bluetooth: samples/btusb: Rename main c-file
Bluetooth: samples: Rename btusb to hci-usb
Bluetooth: SMP: Take advantage of new byte swap helpers
Bluetooth: tests: Clean up platform whitelisting
Luiz Augusto von Dentz (4):
Bluetooth: L2CAP: Fix sending buffer with not enough space
Bluetooth: L2CAP: Allow sending fragmented buffers
Bluetooth: L2CAP: Allow receiving fragmented buffers
Bluetooth: IPSS: Remove ipss_listen
Mariusz Skamra (3):
Bluetooth: tester: Rework discovery procedure
Bluetooth: tester: Add Identity Resolved event implementation
Bluetooth: tester: Add GAP Unpair command handler
Roger Lendenmann (1):
Bluetooth: Add well known keys to storage API for legacy pairing
Szymon Janc (13):
Bluetooth: L2CAP: Initialize iterator inside for statement
Bluetooth: L2CAP: Build fixed channels mask on runtime
Bluetooth: L2CAP: Move BR/EDR specific code to l2cap_br.c
Bluetooth: L2CAP: Connect optional fixed channel only if supported
Bluetooth: L2CAP: Treat fixed channel as connected on incoming data
Bluetooth: SMP: Fix getting context for BR/EDR pairing
Bluetooth: SMP: Use separate pool for BR/EDR connections
Bluetooth: Start SMP over BR/EDR on pairing complete
Bluetooth: SMP: Fix build without central role support
Bluetooth: SMP: Fix build without signing support
Bluetooth: tests: Add init config for BR/EDR SMP testing
Bluetooth: Track role change for BR/EDR connections
Bluetooth: SMP: Check for connection role before BR/EDR pairing
drivers/bluetooth/nble/gap.c | 2 +-
include/bluetooth/hci.h | 9 +
include/bluetooth/storage.h | 55 +++-
net/bluetooth/Kconfig | 10 +-
net/bluetooth/hci_core.c | 57 +++-
net/bluetooth/l2cap.c | 119 ++++++---
net/bluetooth/l2cap_br.c | 117 +++++++--
net/bluetooth/l2cap_internal.h | 3 +
net/bluetooth/smp.c | 259 +++++++++++--------
net/bluetooth/smp.h | 2 +
samples/bluetooth/gatt/ipss.c | 121 ---------
samples/bluetooth/gatt/ipss.h | 1 -
samples/bluetooth/{btusb => hci-usb}/Makefile | 0
samples/bluetooth/{btusb => hci-usb}/prj.conf | 0
samples/bluetooth/{btusb => hci-usb}/src/Makefile | 2 +-
.../{btusb/src/btusb.c => hci-usb/src/main.c} | 0
samples/bluetooth/{btusb => hci-usb}/testcase.ini | 0
samples/bluetooth/ipsp/src/main.c | 121 ++++++++-
tests/bluetooth/init/prj_22.conf | 5 +
tests/bluetooth/init/testcase.ini | 9 +-
tests/bluetooth/tester/btp_spec.txt | 8 +
tests/bluetooth/tester/src/bttester.h | 9 +
tests/bluetooth/tester/src/gap.c | 182 ++++++++++++-
23 files changed, 780 insertions(+), 311 deletions(-)
rename samples/bluetooth/{btusb => hci-usb}/Makefile (100%)
rename samples/bluetooth/{btusb => hci-usb}/prj.conf (100%)
rename samples/bluetooth/{btusb => hci-usb}/src/Makefile (86%)
rename samples/bluetooth/{btusb/src/btusb.c => hci-usb/src/main.c} (100%)
rename samples/bluetooth/{btusb => hci-usb}/testcase.ini (100%)
create mode 100644 tests/bluetooth/init/prj_22.conf
Change-Id: Ic85dc1773947ce6229fe8364a81ce9876bb1effb
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-16 14:43:32 +03:00
Marcus Shawcroft
87077727bf
eth: Add KSDK ENET driver.
...
Provide a network driver wrapped around the KSDK ENET and PHY
drivers.
The driver performs one shot PHY setup. There is no support for PHY
disconnect, reconnect or configuration change. The PHY setup,
implement via KSDK contains polled code that can block the
initialization thread for a few seconds.
There is no statistics collection for either normal operation or error
behaviour.
Origin: Original
Change-Id: Ia0f2e89a61348ed949976070353e823c178fcb24
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-16 09:57:35 +00:00
Johan Hedberg
7d0eef5f96
Bluetooth: Use proper const type for bt_storage_clear()
...
The bt_storage_clear() function doesn't modify the data behind the
addr parameter, so the pointer should be decared const.
Change-Id: Icce676f9df80bac26ba4877bb63752559a43339f
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-16 09:00:57 +03:00
Marcus Shawcroft
7ee5ce75e9
serial/ns16550: Move RW objects from driver config to driver context.
...
PCI enumeration modifies pci_dev and port at driver initialization,
these objects move from config_info to driver_data in preparation for
config_info becoming const.
This driver shares a unified uart configuration structure with other
uart device drivers. The structure uses 'union' and the preprocessor
to customize the structure to the drivers specific requirement. There
appears to be no compelling reason why all the uart drivers should
share the same (customized) config_info structure. In order to
re-organize the structure for this driver to get config_info const, an
ns16550 specific config structure is defined and the driver switched
over from the generic uart_config.
Change-Id: I31932d811f623a9370b69903114ae97b15d65886
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 16:44:06 +00:00
Marcus Shawcroft
be6872f5ca
spi/dw: Make config structure static.
...
Change-Id: I15236d62b330ffe2363fa438179fe1f79c168592
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 16:44:06 +00:00
Marcus Shawcroft
df098b7012
ipm: Make config_info pointers const.
...
Change-Id: I616c215f98f57d74ba495959d220de6d38ada9d0
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:23 +00:00
Marcus Shawcroft
9f308df473
pwm: qmsi: Remove RW data from driver config structure.
...
Move the RW channel_period object from the driver config structure to
the driver context. Remove the now empty driver config structure.
Change-Id: I38df7877f1bfb9bb55bcd61e7f35cebb6e4916bd
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:23 +00:00
Marcus Shawcroft
2650747983
serial/uart_qmsi: Make pointers to config_info const.
...
Change-Id: I667315671aeb8eaa5a5f1e4157c804e9028793de
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:23 +00:00
Marcus Shawcroft
0f1d0d465b
i2c/qmsi_ss: Make pointers to config_info const.
...
Change-Id: I7786f9c65e62eee27395d53b6e923dec6c13f1f4
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:22 +00:00
Marcus Shawcroft
3d32b19726
i2c/qmsi: Make pointers to config_info const.
...
Change-Id: I95e17cda100c068bfd61e66c568b5adb6f58c42c
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:22 +00:00
Marcus Shawcroft
6b7616698b
qmsi/dma: Make config_info pointers const.
...
Change-Id: I6569049d06853355b73735bfddedc827e4764780
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:21 +00:00
Marcus Shawcroft
b8d6ce241c
qmsi/dma: Remove unused channel[] from config_info
...
Change-Id: Iab5f976c61674f6955d50a882911c790eba3fb21
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:20 +00:00
Marcus Shawcroft
2d1678c632
gpio/sam3: Move RW data from driver config to runtime.
...
The callback list within the driver config is updated dynamically
hence the list itself cannot be const. Create a runtime context
driver data structure and relocate the callback list to the new
structure.
Change-Id: Ied20846e6a78e43967239afa7797456a9abd8548
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:19 +00:00
Marcus Shawcroft
389e606b06
i2c/sam3: Make config_info pointers const.
...
Change-Id: I5e388ff91430d052c84553a8cf9ece12cae29993
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-15 12:29:19 +00:00
Anas Nashif
e05fa64f4c
frdm_k64: spi: fixed wrong kconfig used in driver
...
Change-Id: I43f31562cdfa0b722907e5c6018e3e56d141ed4f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-10 21:26:30 +00:00
Marcus Shawcroft
02dcceef29
clock/quark: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I0337cb574d8bac0877643b2116920d4a0c08c8f3
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-08 11:40:15 +00:00
Marcus Shawcroft
ec7d259fa3
eth/enc28j60: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I75e51f396ce9dbe5d9f2339b551c142a5afcbfce
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-08 11:40:13 +00:00
Marcus Shawcroft
3316cb3898
serial/uart_nsim: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: Ide7c5cae8c57e3b30c7bb6611b574b86562c241d
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-08 11:40:12 +00:00
Marcus Shawcroft
5e95f11afe
spi/qmsi: Make config_info pointers const.
...
Make pointers to struct config_info const in prepration for a const
config_info.
Change-Id: I1ca9e999840a6ad81dc369b56b1da554f3c1cb49
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-08 11:40:11 +00:00
Anas Nashif
33118f9212
sensor: grove: use global sensor init priority
...
Change-Id: Ie56ee7e4b267b4dc67026be4531834f550134969
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07 20:53:29 +00:00
Marcus Shawcroft
67d6b592cf
sensor/lsm9ds0_gyro: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I8fd83236ecf5357a0a192650a26e91045a6116a7
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:34:01 +00:00
Marcus Shawcroft
cfb5196f07
sensor/lsm9ds0_gyro: Fix failure to compile, undefined CONFIG_LSM9DS0_SENSOR_INIT_PRIORITY
...
Change-Id: Ibaeaa1a7df692c044310ba116285e1898d806d0e
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:34:00 +00:00
Marcus Shawcroft
dee749b213
sensor/lsm64s0: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: If977cc39bab3e838d1ff6d8de2cb4b667974ee17
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:59 +00:00
Marcus Shawcroft
6b552ef2a8
serial/uart_qmsi: Make config_info pointers const.
...
Make pointers to struct config_info const in prepration for a const
config_info.
Change-Id: I0257e242a2d3bc4e353a3477364a4d9a7fb72b82
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:58 +00:00
Marcus Shawcroft
fb4cfcba14
spi/qmsi_ss: Make config_info pointers const.
...
Make pointers to struct config_info const in prepration for a const
config_info.
Change-Id: I71bcfa48b31934bc683a344d40bb03f5247bbbec
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:57 +00:00
Marcus Shawcroft
fd212acac9
ipm/ipm_quark_se: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I4fb89ccee9cec3bdc1976a006e13afcd0bdc69a2
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:57 +00:00
Marcus Shawcroft
4e81f369c7
gpio/qmsi_ss: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I31abd3d5606b2b750da86d00e938db3988696c7f
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:56 +00:00
Marcus Shawcroft
db35cc6838
sensor/bmi160: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: Ia4639d65ab4ee64a2ee0ba41677bab40894d65b4
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:55 +00:00
Marcus Shawcroft
a6f681c782
sensor/bmg160: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I2e9b7e7e8245e60e66554b4d631d71a453cf7ffd
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:54 +00:00
Marcus Shawcroft
1ec5093c04
sensor/bmc150: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: Ic4563561cff930533e920031767218023d4746b0
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:53 +00:00
Marcus Shawcroft
58c8199aa6
sensor/lps25hb: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I9f510669710ae8fab897d4047e4d7324c3a84e00
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:52 +00:00
Marcus Shawcroft
6cfe874a0f
sensor/lsm9ds0_mfd: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I3b781f09e15d57ae4d00c11d6b7a328b31bc25aa
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 20:33:51 +00:00
Anas Nashif
16c5416d70
sensors: use one single sys log config for sensors
...
Change-Id: I27aadd15ad0ebbaf6373591d52e63fe3f4560378
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07 16:15:54 +00:00
Anas Nashif
84c9db39e7
gpio: reduce Kconfigs and use consistent name for GPIOs
...
Using AON for GPIO kconfigs is very specifc to quark se, there
is no need to make this special for this platform. Use the
existing scheme instead.
Change-Id: I946431490380dc0f537d6056277a94c9c9c80fed
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07 16:15:07 +00:00
Anas Nashif
706f1b8bd8
drivers: gpio: i2c: make logging depend on SYS_LOG
...
Change-Id: Ia6af28598cf979f20e04cd2c74f3e75f4ae6630b
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07 14:15:24 +00:00
Anas Nashif
e3706c98f3
sensors: cleanup duplicate includes
...
zephyr.h includes nanokernel.h which includes cpu.h, so make it
simple and just include nanokernel.h. zephyr.h should only be
included in applications.
Change-Id: I11a9ad8608d23af4f2a40a97eb71c09516c3399b
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07 14:07:26 +00:00
Marcus Shawcroft
d8708d52bc
adc/ti: Make driver config structure static.
...
Change-Id: Ie3ae8397624ee3b9aedbfbe61acbe5a17a2db0b0
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
bad1a4b1da
adc/ti: Make config_info pointers const.
...
Make pointers to struct config_info const in prepration for a const
config_info.
Change-Id: I2256c0f0bff5100e756709c9f99887af70bac661
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
11258b1395
adc/dw: Make driver config structure static.
...
Change-Id: Ia094d1abda47ff5d2e05c3d97f9a377cb17d2ee7
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
b28b59b617
adc/dw: Make config_info pointers const.
...
Make pointers to struct config_info const in prepration for a const
config_info.
Change-Id: I977979bc86830768101ab9a2ca1928823ae994df
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
58026e327a
ipm: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I8f2eb0f6dbd6f50e0d456ee329e3b00e4ce4b257
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
4ed5a6e9b2
spi/k64: Make the driver configuration structure static.
...
Change-Id: I67a679106a0e0407c0d5da4593983fb83f732141
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00
Marcus Shawcroft
7c29c68675
spi/k64: Make config_info pointers const.
...
Preparation for const driver configuration data.
Change-Id: I2c860eac392ff43faf9c91a18e58a82eb7c4f860
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-07 08:05:50 -04:00