Commit graph

19237 commits

Author SHA1 Message Date
JuanX Solano Menacho
866d9c9c2d gpio_qmsi_ss: Use qm_ss_gpio_save/restore_context APIs
This commit updates the gpio_qmsi_ss driver by adding save/restore
context functionality for power management, using the corresponsing
QMSI APIs.

Jira: ZEP-665

Change-Id: I5d8b6050f5b099678b7e6d9144907ea2ce2dda4b
Signed-off-by: JuanX Solano Menacho <juanx.solano.menacho@intel.com>
2016-11-11 23:33:19 +00:00
Allan Stephens
da82722534 doc: Minor corrections to kernel API documentation
Addresses a range of issues affecting the Kernel Primer or
the API Guide generated from doxygen tags.

* Ensures mailbox examples use kernel APIs correctly.
  (Fix for ZEP-1262, as well as other errors).

* Ensures memory alignment limitations for memory slabs
  are correctly described. (Fix for ZEP-1265.)

* Ensures memory alignment limitations for memory pools
  are more clearly described. Also fixes a typo in a
  memory pool example.

* Ensures memory alignment limitations for message
  queues are more clearly described.

* Fixes references to a number of kernel configuration
  options that were omitted or incorrectly formatted.

* Fixes a typo in an example of thread spawning.

Change-Id: I395186f333490b1e0c4223b87c0fe7136548770f
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-11-11 22:13:32 +00:00
Allan Stephens
add6e00ac7 doc: Add workqueue information to Kernel Primer
Change-Id: I1e694dafc11f55ea4f944571ec960eee8189c703
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-11-11 22:13:31 +00:00
Allan Stephens
3cd702010f kernel: Fix bug in dynamic alert initialization
k_alert_init() needs to set the "flags" field of its associated
work item to zero, indicating that the work item has not yet
been submitted to the system workqueue. Using the standard work
item initializer macro ensures this is done correctly.

Change-Id: I0001a5920f20fb1d8dc182191e6a549c5bf89be5
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-11-11 22:13:30 +00:00
Anas Nashif
dd6f9ca9de checkpatch: ignore CONST_STRUCT warnings
Ignore for now and until we make this feature of checkpatch work with
zephyr in a more optimal way.

Change-Id: I9d08980994416a291f3143e3a22f8a2036ff2f8a
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 22:12:22 +00:00
Adam Podogrocki
726af91d3a stm32cube: Add Zephyr build system files for stm32f3 series
Change-Id: I5c2de9d5814644855ed4a691fa1712ebd294ca64
Signed-off-by: Adam Podogrocki <adam.podogrocki@rndity.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 22:12:14 +00:00
Anas Nashif
336e82bee8 tests: fix filter for cortex-m3/m4
This test does not work for cortex-m0+ yet, so make
it run only on m3/m4 for now.

Change-Id: I0a90335d264cf88f3a62057860d6f129085c558f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 21:37:52 +00:00
Chuck Jordan
73c5b2861e arc: trap handler should always check IRQ_ACT
Regardless of the number of interrupt priorities
supported, the exit of the trap handler can check
AUX_IRQ_ACT to see if it interrupted a FIRQ or IRQ.

Change-Id: I0b84d8298d3e6e437c934c01db4535fa8fe29458
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2016-11-11 21:37:18 +00:00
Anas Nashif
3fe2575f0d drivers: sensors: use unified kernel threads
convert all sensor drivers to use threads and the unified kernel API and
remove all legacy APIs.

Change-Id: Ica43ea74ecbbf85273f718f182c413a9dcd8abc6
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 21:00:19 +00:00
Anas Nashif
8910c228a2 sensors: use unified kernel APIs for kernel objects
move both semaphores and nano_work objects to unified kernel APIs.

Change-Id: Icca8a091063544c451e47201cd8e956b95010513
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 21:00:19 +00:00
Ramesh Thomas
24f94ca49e quark-se: power_mgmt: Add a optional deep sleep resume handler
Some arduino 101 boards have old boot loader without context
restore boot flow feature. This handler will allow doing deep sleep
in those boards by jumping to the context restore code. This will
be disabled by default and can be optionally enabled by user.

Jira: ZEP-1258
Change-Id: I92e70550fd92c1cac42b3039d667fb0be8cf5bce
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-11-11 20:41:52 +00:00
Ramesh Thomas
8367056efa power_mgmt: Rename _sys_soc_resume notification disabling API
The API to disable _sys_soc_resume notification is currently
called _sys_soc_disable_wake_event_notification. This is
misleading because it is possible that the ISR from which
_sys_soc_resume is called could be from a different interrupt
with higher priority that happened before interrupts were
enabled. More accurately, it is a notification of exit from
kernel idling after pm operations.

Jira: ZEP-1271
Change-Id: I83747f2cacac1bc17f135d12f4aa4478970fc02d
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-11-11 20:40:54 +00:00
Ramesh Thomas
a3dc53f2a6 power_mgmt: Do not notify deep sleep if bootloader does context restore
Some bootloaders have power management support to restoer context
upon resume from deep sleep. In such cases, the OS startup code
should call the notification hook. Create Kconfig flags to configure
this option.

Jira: 1257
Change-Id: I9f40c5fa077c2f17dc8e9f11604c3ed17e549ed5
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-11-11 20:40:53 +00:00
Ramesh Thomas
c0cd7acf34 power_mgmt: Simplify _sys_soc_resume notification
_sys_soc_resume hook is over loaded to handle to different
scenarios. It is primarily called to notify exit of kernel idling
after PM operations. It is also used to notify exit from deep sleep.
This is very confusing and also makes the implementation of the
hook function very difficult because of very different conditions
involved in the 2 different use cases. Further, users may not require
either or both use cases depending of their custom boot flow and
power state handling. To simplify, create a separate hook for the
purpose of deep sleep exit notification. Use the existing one to
only notify kernel idling exit after PM operations.

Jira: ZEP-1256
Change-Id: I96350199a0fd37f16590c8ee5302a94a3d71b8ba
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-11-11 20:40:52 +00:00
Vincenzo Frascino
1d2fcc2254 board_beetle: Add support for ARM V2M Beetle Board
Add board support for ARM V2M Beetle platform.

ARM V2M Beetle board is build around the ARM Beetle Cortex-M3
based processor.

The support has been tested in nanokernel mode with the bringup
application that will be pushed with a future patch.

Jira: ZEP-1245
Change-Id: Ib05a40c072f10149e692283177387cf2cfe32f66
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:54 +00:00
Vincenzo Frascino
bb1818a535 serial: Add driver for CMSDK (Cortex-M System Design Kit) APB UART
Add driver for CMSDK APB UART ports. The driver implements RX and TX
functionalities. Data transmission is implemented using polling and
interrupts. The driver default configuration for the port is to use
8bit data transmission, 1 stop bit, no parity control.

The driver exposes a public uart driver API and allows to register up
to five UART devices: from 'UART_0' to 'UART_4'. The driver performs
the required pinmux, the clock control configuration is left to the
platform.

The driver has been verified to work with the Hello World sample
application on a Beetle Board.

Jira: ZEP-1245
Change-Id: I5baf78b7659aae2a574d8e66205e6fd5eb579133
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:54 +00:00
Vincenzo Frascino
0e01c0c4a2 pinmux: Add support for "runtime" pinmux on ARM V2M Beetle
This patch adds the support for "runtime" pinmux on ARM V2M Beetle.

The GPIO controllers 2 and 3 are reserved and therefore not exposed
by this driver.

Jira: ZEP-1245
Change-Id: I9637f1a0d2bf6a757e1942160fb170165ffe6a0c
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:53 +00:00
Vincenzo Frascino
c0c3e33e4a pinmux: Add support for ARM V2M Beetle Initialization
This patch adds the support for the board pinmux initialization on
ARM V2M Beetle.

The GPIO controllers 2 and 3 are reserved and therefore neither exposed
nor configured by this driver.

Jira: ZEP-1245
Change-Id: Id5499c5dd887c319730408eeb30f02eeed1c3699
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:53 +00:00
Vincenzo Frascino
e36c04afe1 gpio: Add ARM CMSDK (Cortex-M System Design Kit) AHB GPIO driver
The driver is currently used only by the ARM Beetle platform.

Jira: ZEP-1245
Change-Id: I6611edd7486a3c6d82d66a9a96c5d4860dad1539
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:52 +00:00
Vincenzo Frascino
df33a1e185 arm: soc: Add support for ARM Beetle SoC
Add SoC support for ARM Beetle platform.

Beetle is an ARM Cortex-M3 based SoC used on ARM V2M Beetle Boards.

https://www.arm.com/products/tools/development-boards/versatile-express/beetle_iot_evaluation_platform.php

This patch contains:
* The base SoC platform.
* The clock_init functionality.
* The system wide pin definitions.
* The configuarion for the drivers at SoC level (IRQs, PINs and
  Base Addr).

Jira: ZEP-1245
Change-Id: If15675935890711983e5ce37d49732b0462c3ec7
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:39:52 +00:00
Anas Nashif
8ac0e85da6 tests: Move ipm test from legacy, it is not using legacy APIs
This test is not a kernel object test and does not use any legacy kernel APIs,
so declare it non-legacy.

Change-Id: I430ac296334dbb8ff2b2d6576f7007a5dcc6f546
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 20:29:05 +00:00
Anas Nashif
ec56025301 tests: added native test for irq_vector_table
Change-Id: I7d76b07e11a06f56227173c3d4ce77d9f2f466d8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 20:28:59 +00:00
Anas Nashif
68f087cee9 ztest: Do not print garbage if message is NULL
Change-Id: If79f4b92b2c494bf5fd44cb1855bba61029f7ac7
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 20:28:33 +00:00
Anas Nashif
f528c09276 samples: task_profiler: move to legacy applications
Change-Id: Ib0e97106ccb835331b423b42052aafa23b76ad84
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 20:28:03 +00:00
Anas Nashif
25565e5408 samples: logger: move to legacy applications
Change-Id: I5d6bb0d36fedc626026bc5c3b7355f2c852b2869
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 20:28:03 +00:00
Kumar Gala
68b89aa752 tests: fix duplicate Kconfig symbol in prj.conf
remove duplicated CONFIG_IRQ_OFFLOAD option in prj.conf

Change-Id: I0bdc34ef3629eab648d75c9a61f982d4750e705b
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 20:12:33 +00:00
Kumar Gala
20b60f99f3 Revert "stm32cube: Introduce STM32Cube for STM32F0xx series"
This reverts commit bf524b4e9d.

Change-Id: Ia4697d0a725a3a6921df2f44a188ef9471260f23
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:49 -06:00
Kumar Gala
0083c7d395 Revert "stm32cube: Update build system to support stm32f0xx"
This reverts commit 7e19c8a6ec.

Change-Id: Ie3bd2596445a6b544db468bfa5c5cde13f2557c4
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:39 -06:00
Kumar Gala
0a0194e637 Revert "stm32cube: Introduce STM32Cube for STM32F2xx series"
This reverts commit 00155448cf.

Change-Id: I08e929b81112f10ee0de6ddab1f28a0124722d33
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:34 -06:00
Kumar Gala
f9901a2df3 Revert "stm32cube: Update build system to support stm32f2xx"
This reverts commit 0cb9bcb84e.

Change-Id: I442750ad91f1297f46aed8066828cbff7fd0c4ad
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:30 -06:00
Kumar Gala
4bbefce79f Revert "stm32cube: Introduce STM32Cube for STM32L0xx series"
This reverts commit cc5842df70.

Change-Id: I397f8a769d839c39c89c3be6f3880ba9e419bf29
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:25 -06:00
Kumar Gala
66f85f6078 Revert "stm32cube: Update build system to support stm32l0xx"
This reverts commit d4e15f027a.

Change-Id: Idc75aa1b83c403ec19a62c889e72b2a3af7a998a
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:16 -06:00
Erwan Gouriou
d4e15f027a stm32cube: Update build system to support stm32l0xx
Get stm32l0xx support ready in build system.
Provide minimal file inclusion to support stm32l0 based board
port.

Change-Id: Ieb572389955e9e79a6100a6b1df35d9d08322789
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:39 +00:00
Erwan Gouriou
cc5842df70 stm32cube: Introduce STM32Cube for STM32L0xx series
With this commit we provide header and HAL/LL files for all STM32L0
SoCs.
Using STM32Cube provides generic access to all families, maximizes
code reuse across different STM32 families and helps taking benefit
of a mature SDK

Origin: STM32Cube
URL: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubel0.html
Purpose: Introduction of STM32L0xx STM32Cube definitions
and Abstraction Layers
Maintained-by: External

Original STM32Cube tree structure has been modified to a minimum
structure for a better fit into Zephyr. hal is split into 2 parts:
-driver: initially Drivers/STM32L0xx_HAL_Driver, contains HAL and LL
-soc: initially Drivers/CMSIS/Device/ST/STM32L0xx, contains stm32l0xx
socs header files

Change-Id: Ibb8ea2e059b5d4f63848be269765d803f842cc2f
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:38 +00:00
Erwan Gouriou
0cb9bcb84e stm32cube: Update build system to support stm32f2xx
Get stm32f2xx support ready in build system.
Provide minimal file inclusion to support stm32f2 based board
port.

Change-Id: Ice1231709e778e00a51a395decb3447fc58c0bbf
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:38 +00:00
Erwan Gouriou
00155448cf stm32cube: Introduce STM32Cube for STM32F2xx series
With this commit we provide header and HAL/LL files for all STM32F2
SoCs.
Using STM32Cube provides generic access to all families, maximizes
code reuse across different STM32 families and helps taking benefit
of a mature SDK

Origin: STM32Cube
URL: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef2.html
Purpose: Introduction of STM32F2xx STM32Cube definitions
and Abstraction Layers
Maintained-by: External

Original STM32Cube tree structure has been modified to a minimum
structure for a better fit into Zephyr. hal is split into 2 parts:
-driver: initially Drivers/STM32F2xx_HAL_Driver, contains HAL and LL
-soc: initially Drivers/CMSIS/Device/ST/STM32F2xx, contains stm32f2xx
socs header files

Change-Id: I78a4716d495ce3f3038a442e19a0403f0f00506c
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:36 +00:00
Erwan Gouriou
7e19c8a6ec stm32cube: Update build system to support stm32f0xx
Get stm32f0xx support ready in build system.
Provide minimal file inclusion to support stm32f0 based board
port.

Change-Id: I9ce62e34fa77b14f34dd0a4fa8d6be344e67b4f8
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:36 +00:00
Erwan Gouriou
bf524b4e9d stm32cube: Introduce STM32Cube for STM32F0xx series
With this commit we provide header and HAL/LL files for all STM32F0
SoCs.
Using STM32Cube provides generic access to all families, maximizes
code reuse across different STM32 families and helps taking benefit
of a mature SDK

Origin: STM32Cube
URL: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef0.html
Purpose: Introduction of STM32F0xx STM32Cube definitions
and Abstraction Layers
Maintained-by: External

Original STM32Cube tree structure has been modified to a minimum
structure for a better fit into Zephyr. hal is split into 2 parts:
-driver: initially Drivers/STM32F0xx_HAL_Driver, contains HAL and LL
-soc: initially Drivers/CMSIS/Device/ST/STM32F0xx, contains stm32f0xx
socs header files.

Change-Id: Ic9c1ef904541abb927f061cc0284d8a52ef63dc4
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:35 +00:00
Erwan Gouriou
9e113fa98e stm32cube: Update build system to support stm32f7xx
Get stm32f7xx support ready in build system.
Provide minimal file inclusion to support stm32f7 based board
port.

Change-Id: Idf949ef4a627bbd82e7bf95a9ae1d3d073654115
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:34 +00:00
Erwan Gouriou
9eff2a32c2 stm32cube: Introduce STM32Cube for STM32F7xx series
With this commit we provide header and HAL/LL files for all STM32F7
SoCs.
Using STM32Cube provides generic access to all families, maximizes
code reuse across different STM32 families and helps taking benefit
of a mature SDK

Origin: STM32Cube
URL: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef7.html
Purpose: Introduction of STM32F7xx STM32Cube definitions
and Abstraction Layers
Maintained-by: External

Original STM32Cube tree structure has been modified to a minimum
structure for a better fit into Zephyr. hal is split into 2 parts:
-driver: initially Drivers/STM32F7xx_HAL_Driver, contains HAL and LL
-soc: initially Drivers/CMSIS/Device/ST/STM32F7xx, contains stm32f7xx
socs header files

Change-Id: I7e5b2cdc5b7fe6d9d107ceb74674b910f4a6c0ab
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:34 +00:00
Vinayak Chettimada
4812b2d40e Bluetooth: Controller: Fix device whitelist feature
During the initial integration of controller to Zephyr OS,
radio hardware access was abstracted out into hal/radio.c
file. Bug introduced in hal/radio.c has been fixed so that
whitelist feature works again.

Change-id: Ie5faf80b1a008ef326613548a5a28a4ba52e7ef7
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
2016-11-11 16:40:59 +00:00
Anas Nashif
92312026cf Merge "Merge bluetooth branch into master" 2016-11-11 16:39:53 +00:00
Fabien Parent
c4f12d7fe1 stm32cube: add build support for stm32l4xx
The STM32MICRO files for STM32L4xx were dropped in an earlier commit,
but we cannot make any use of them yet because the Kconfig options
and Makefile support is not there yet. This commit adds the ability
for code to use stm32cube from the stm32l4xx code.

Change-Id: I58e85e12e4b4648dc9a203f70703bd54675c3d28
Signed-off-by: Fabien Parent <fparent@baylibre.com>
2016-11-11 16:03:45 +00:00
Anas Nashif
d654c12f52 checkpatch: ignore file changes
Useless message at least for now that basically ends up
in every single gerrit change.

Change-Id: I56cea2b1b4e60d696c0ff9496d4464afca8c43ca
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 14:27:39 +00:00
Anas Nashif
0f3d5478a8 checkpatch: update with latest checkpatch from the linux kernel
Update with commit 577f12c07e4edd54730dc559a9c7bc44d22bf7dc from
the Linux kernel.

Change-Id: Ie2cabbfea415d26ffacef340d9497342b496dc29
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-11 14:27:39 +00:00
Inaky Perez-Gonzalez
302d23d1a6 testcases: catch more fatal kernel error messages
Turns out all some messages use lower case, some upper case (for
'fatal'). As well, catch 'Fatal task error!').

Change-Id: I98bb4b00cf2ccee2c87010f4d88cae5f8612ac84
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-11-11 13:21:16 +00:00
Luiz Augusto von Dentz
6b2443e99b console: Fix warnings related to the use of deprecated APIs
This fixes the warnings related to the use of deprecated APIs
converting them to use the unified version.

Change-Id: I76d076de27ecdae4af46abf4baac68e2cc1313c0
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-11-11 14:50:58 +02:00
Johan Hedberg
f363cf5818 Merge bluetooth branch into master
Main changes:

 - Restructure Kconfig to a more logical hierarchy
 - Update code to use unified APIs
 - Initial RFCOMM client support
 - Add HCI_LE_Remove_Device_From_White_List command to controller

----------------------------------------------------------------
Carles Cufi (1):
      Bluetooth: Controller: Add ASSERT info dump on HCI builds

Jaganath Kanakkassery (2):
      Bluetooth: RFCOMM: Initiate session connection
      Bluetooth: shell: Add support for RFCOMM Connect

Johan Hedberg (26):
      Bluetooth: Controller: Kconfig: Clean up style issues
      Bluetooth: samples/hci_uart: Add micro:bit configuration
      Bluetooth: Dump the content of unhandled events as hex
      Bluetooth: Kconfig: Restructure for a more logical hierarchy
      Bluetooth: Kconfig: Remove redundant 'default n' declarations
      Bluetooth: Fine-tune default incoming ACL buffer count
      Bluetooth: samples/hci_uart: Remove dependency on controller
      Bluetooth: samples/hci_uart: Declare assert handler only when needed
      Bluetooth: samples/hci_uart: Remove redundant semicolon
      Bluetooth: Controller: Improve default RX/TX buffer counts
      Bluetooth: Use k_uptime_get() instead of deprecated sys_tick_get_32()
      Bluetooth: Use k_yield() instead of deprecated fiber_yield()
      Bluetooth: Use k_thread_spawn() instead of deprecated nano_fiber_start()
      Bluetooth: Use k_sleep() instead of deprecated fiber_sleep()
      Bluetooth: Remove need for fiber offload
      Bluetooth: drivers: Don't use deprecated NANOKERNEL init level
      Bluetooth: RFCOMM: Switch to using k_thread_spawn()
      Bluetooth: Controller: Stop using deprecated APIs
      Bluetooth: Rename left-over mentions of "fiber" to "thread"
      Bluetooth: hci_ecc: Convert to new thread API
      Bluetooth: samples/hci_ecc: Switch to using k_thread_spawn()
      Bluetooth: tests/tester: Convert left-overs to unified kernel APIs
      Bluetooth: drivers/h5: Convert to unified work APIs
      Bluetooth: drivers/nble: Convert to unified work APIs
      Bluetooth: doc: Remove mentions of legacy kernel concepts
      Bluetooth: Kconfig: Fix order of default entries

Luiz Augusto von Dentz (6):
      Bluetooth: ATT: Fix not forwarding error properly
      Bluetooth: L2CAP: Fix using nano_delayed_work API
      Bluetooth: ATT: Fix using nano_delayed_work API
      Bluetooth: SMP: Fix using nano_delayed_work API
      Bluetooth: conn: Fix using nano_delayed_work API
      Bluetooth: HCI: Fix using nano_delayed_work API

Szymon Janc (9):
      Bluetooth: ATT: Fix non-ASCII characters in code comments
      Bluetooth:  Use unified k_fifo API for FIFOs
      Bluetooth: drivers: Use unified k_fifo API for FIFOs
      Bluetooth: Remove not needed nano_work.h includes
      Bluetooth: samples: Fix using nano_delayed_work in eddystone
      net: buf: Use new API for checking if executing from ISR
      Bluetooth: samples: Fix use of deprecated sleep API
      net: buf: Use unified k_fifo API for FIFOs
      Bluetooth: Use proper timeout defines for net_buf_get_timeout

Vinayak Chettimada (1):
      Bluetooth: Controller: Add HCI_LE_Remove_Device_From_White_List

 doc/subsystems/bluetooth/devel.rst                |   9 +-
 drivers/bluetooth/Kconfig                         |   6 +-
 drivers/bluetooth/hci/Kconfig                     |  21 +--
 drivers/bluetooth/hci/h4.c                        |   2 +-
 drivers/bluetooth/hci/h5.c                        |  80 +++++----
 drivers/bluetooth/nble/Kconfig                    |  26 +--
 drivers/bluetooth/nble/conn.c                     |  16 +-
 drivers/bluetooth/nble/conn_internal.h            |   4 +-
 drivers/bluetooth/nble/gatt.c                     |  14 +-
 drivers/bluetooth/nble/uart.c                     |  23 +--
 drivers/bluetooth/nrf51_pm.c                      |  18 +--
 include/bluetooth/hci_raw.h                       |   2 +-
 include/bluetooth/l2cap.h                         |   3 +-
 include/bluetooth/rfcomm.h                        |  19 ++-
 include/net/buf.h                                 |  25 ++-
 net/buf.c                                         |  22 ++-
 net/ip/net_core.c                                 |   2 +-
 samples/bluetooth/beacon/prj.conf                 |   1 -
 samples/bluetooth/beacon/prj_nble.conf            |   2 +-
 samples/bluetooth/central/prj.conf                |   1 -
 samples/bluetooth/central_hr/prj.conf             |   1 -
 samples/bluetooth/central_hr/src/main.c           |   8 -
 samples/bluetooth/eddystone/prj.conf              |   1 -
 samples/bluetooth/eddystone/prj_nble.conf         |   2 +-
 samples/bluetooth/eddystone/src/main.c            |  15 +-
 samples/bluetooth/handsfree/src/main.c            |   6 +-
 samples/bluetooth/hci_uart/Makefile               |   7 +-
 samples/bluetooth/hci_uart/generic.conf           |   2 +-
 samples/bluetooth/hci_uart/microbit.conf          |  11 ++
 samples/bluetooth/hci_uart/nrf5.conf              |   5 +-
 samples/bluetooth/hci_uart/src/main.c             |  87 ++++++++--
 samples/bluetooth/hci_usb/prj.conf                |   2 +-
 samples/bluetooth/hci_usb/src/main.c              |  10 +-
 samples/bluetooth/peripheral/prj.conf             |   1 -
 samples/bluetooth/peripheral/prj_nble.conf        |   2 +-
 samples/bluetooth/peripheral/src/main.c           |   2 +-
 samples/bluetooth/peripheral_csc/prj_nble.conf    |   2 +-
 samples/bluetooth/peripheral_csc/src/main.c       |   2 +-
 samples/bluetooth/peripheral_dis/prj.conf         |   1 -
 samples/bluetooth/peripheral_esp/prj.conf         |   1 -
 samples/bluetooth/peripheral_esp/prj_nble.conf    |   2 +-
 samples/bluetooth/peripheral_esp/src/main.c       |   2 +-
 samples/bluetooth/peripheral_hids/prj.conf        |   1 -
 samples/bluetooth/peripheral_hids/prj_nble.conf   |   2 +-
 samples/bluetooth/peripheral_hr/prj.conf          |   1 -
 samples/bluetooth/peripheral_hr/prj_nble.conf     |   2 +-
 samples/bluetooth/peripheral_hr/src/main.c        |   2 +-
 samples/bluetooth/peripheral_sc_only/prj.conf     |   1 -
 samples/environmental_sensing/x86/prj_nble.conf   |   2 +-
 samples/environmental_sensing/x86/prj_nimble.conf |   1 -
 samples/net/echo_client/prj_bt.conf               |   1 -
 samples/net/echo_server/prj_bt.conf               |   1 -
 samples/net/trickle-legacy/prj_bt.conf            |   1 -
 samples/testing/unit/main.c                       |  20 +--
 subsys/bluetooth/Kconfig                          |  42 +++++
 subsys/bluetooth/Makefile                         |   2 +-
 subsys/bluetooth/controller/Kconfig               |  27 +++-
 subsys/bluetooth/controller/hal/debug.h           |  10 ++
 subsys/bluetooth/controller/hal/ecb.c             |   2 +-
 subsys/bluetooth/controller/hal/radio.c           |   2 +-
 subsys/bluetooth/controller/hal/rand.c            |   2 +-
 subsys/bluetooth/controller/hal/rtc.c             |   2 +-
 subsys/bluetooth/controller/hci/hci.c             |  25 ++-
 subsys/bluetooth/controller/hci/hci_driver.c      |  20 +--
 subsys/bluetooth/controller/ll/ctrl.c             | 276 +++++++++++++++++---------------
 subsys/bluetooth/controller/ll/ctrl.h             |   1 +
 subsys/bluetooth/controller/ll/ticker.c           |   2 +-
 subsys/bluetooth/host/Kconfig                     | 111 +++----------
 subsys/bluetooth/host/Makefile                    |   7 +-
 subsys/bluetooth/host/a2dp.c                      |   1 -
 subsys/bluetooth/host/att.c                       |  62 ++++---
 subsys/bluetooth/host/avdtp.c                     |   3 +-
 subsys/bluetooth/host/conn.c                      |  60 +++----
 subsys/bluetooth/host/conn_internal.h             |  14 +-
 subsys/bluetooth/host/gatt.c                      |   1 -
 subsys/bluetooth/host/hci_core.c                  | 130 +++++++++------
 subsys/bluetooth/host/hci_core.h                  |  12 +-
 subsys/bluetooth/host/hci_ecc.c                   |  39 ++---
 subsys/bluetooth/host/hci_raw.c                   |   8 +-
 subsys/bluetooth/host/hfp_hf.c                    |   3 +-
 subsys/bluetooth/host/keys.c                      |   1 -
 subsys/bluetooth/host/keys_br.c                   |   1 -
 subsys/bluetooth/host/l2cap.c                     |  27 ++--
 subsys/bluetooth/host/l2cap_br.c                  |  36 ++---
 subsys/bluetooth/host/l2cap_internal.h            |   2 +-
 subsys/bluetooth/host/monitor.c                   |   2 +-
 subsys/bluetooth/host/rfcomm.c                    | 138 ++++++++++++++--
 subsys/bluetooth/host/rfcomm_internal.h           |   1 +
 subsys/bluetooth/host/sdp.c                       |   6 +-
 subsys/bluetooth/host/smp.c                       |  29 ++--
 subsys/bluetooth/host/smp_null.c                  |   3 +-
 tests/bluetooth/init/prj.conf                     |   1 -
 tests/bluetooth/init/prj_0.conf                   |   1 -
 tests/bluetooth/init/prj_1.conf                   |   1 -
 tests/bluetooth/init/prj_10.conf                  |   1 -
 tests/bluetooth/init/prj_11.conf                  |   1 -
 tests/bluetooth/init/prj_12.conf                  |   1 -
 tests/bluetooth/init/prj_13.conf                  |   1 -
 tests/bluetooth/init/prj_14.conf                  |   1 -
 tests/bluetooth/init/prj_15.conf                  |   1 -
 tests/bluetooth/init/prj_16.conf                  |   1 -
 tests/bluetooth/init/prj_17.conf                  |   1 -
 tests/bluetooth/init/prj_18.conf                  |   1 -
 tests/bluetooth/init/prj_19.conf                  |   1 -
 tests/bluetooth/init/prj_2.conf                   |   1 -
 tests/bluetooth/init/prj_20.conf                  |   1 -
 tests/bluetooth/init/prj_21.conf                  |   1 -
 tests/bluetooth/init/prj_22.conf                  |   1 -
 tests/bluetooth/init/prj_3.conf                   |   1 -
 tests/bluetooth/init/prj_4.conf                   |   1 -
 tests/bluetooth/init/prj_5.conf                   |   1 -
 tests/bluetooth/init/prj_6.conf                   |   1 -
 tests/bluetooth/init/prj_7.conf                   |   1 -
 tests/bluetooth/init/prj_8.conf                   |   1 -
 tests/bluetooth/init/prj_9.conf                   |   1 -
 tests/bluetooth/init/prj_controller.conf          |   1 -
 tests/bluetooth/init/prj_controller_dbg.conf      |   1 -
 tests/bluetooth/init/prj_h5.conf                  |   1 -
 tests/bluetooth/init/prj_h5_dbg.conf              |   1 -
 tests/bluetooth/shell/arduino_101.conf            |   1 -
 tests/bluetooth/shell/prj.conf                    |   1 -
 tests/bluetooth/shell/prj_br.conf                 |   1 -
 tests/bluetooth/shell/prj_nble.conf               |   2 +-
 tests/bluetooth/shell/prj_nimble.conf             |   1 -
 tests/bluetooth/shell/src/main.c                  |  36 ++++-
 tests/bluetooth/test_bluetooth/prj.conf           |   1 -
 tests/bluetooth/tester/default.conf               |   1 -
 tests/bluetooth/tester/nble.conf                  |   2 +-
 tests/bluetooth/tester/nimble.conf                |   1 -
 tests/bluetooth/tester/qemu.conf                  |   1 -
 tests/bluetooth/tester/src/bttester.c             |  25 +--
 tests/bluetooth/tester/src/gatt.c                 |   4 +-
 tests/bluetooth/tester/src/l2cap.c                |   4 +-
 tests/net/buf/src/main.c                          |  12 +-
 tests/unit/net/buf/main.c                         |  20 +--
 135 files changed, 958 insertions(+), 796 deletions(-)
 create mode 100644 samples/bluetooth/hci_uart/microbit.conf

Change-Id: Ic510e34c6d5e8785f81f88697f5a6575c48fa9db
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-11-11 14:10:46 +02:00
Johan Hedberg
c245b96249 Bluetooth: Kconfig: Fix order of default entries
The conditional defaults must come last in order to be properly
processed.

Change-Id: Id7a152ca1a1584935029e212d0dd8f37494d1cf4
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-11-11 12:09:46 +00:00
Vinayak Chettimada
5629197b17 Bluetooth: Controller: Add HCI_LE_Remove_Device_From_White_List
Add implementation in HCI and Controller to support
HCI_LE_Remove_Device_From_White_List, as it is listed as
mandatory under BT Spec. v4.2, Part E, Section 3.19 LE
Controller Requirements.

Change-id: Icef88dffc85746f3cc7adb7fb692ae5578274ed2
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
2016-11-11 11:56:47 +00:00