summaryrefslogtreecommitdiff
path: root/samples
AgeCommit message (Collapse)Author
2016-10-27tests: move quark_se boot stub to testsAnas Nashif
Lets not confuse user with this code, it is clearly not a sample. Change-Id: I3a0209fb34b2c97383b0f5382f156b80470fdaf7 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: add light sensor sample using the grove kitAnas Nashif
Change-Id: Idf88aac781b2fd2314694c38dfa20d36fee517f9 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: add temperature sensor sample using the grove kitAnas Nashif
Change-Id: I94a3648f2a3b0928f38baabcfe4ef47d23a7b9fd Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: move grove lcd to samples/groveAnas Nashif
Change-Id: Ibf97ad2a4bd1234960f6da9585eff122e5876f62 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: move basic samples to samples/basicAnas Nashif
Change-Id: I0915158424d9f105959e436af3378dc52753347c Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27move tests from samples to tests/Anas Nashif
Change-Id: Ib183936134d27ff84d9af57e8e2e2d9f0cc2670f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: hello world: unify sample and use unified kernelAnas Nashif
Change-Id: I4d4124245f394030b19a6b80160685798bd6ae72 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27samples: power_mgmt: Create unified kernel version of power mgr appRamesh Thomas
Created unified kernel build setup for the power_mgr sample app. Currently it shares the same source file between micro and unified kernels. This is to help test and add new features from unified kernel. In future, separate source will be created for unified kernel. After transition is completed, microkernel version will be removed. Jira: ZEP-1140 Change-Id: Ic3a0b5cb3adc0749a7084ad785a041fee5875f56 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-10-27samples: add basic blinky applicationAnas Nashif
The mandatory blinky sample at your service. Change-Id: I999215fbda338effd6f7b65a2a165acf9b850a9a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-27unified: Add sample project using K_THREAD_DEFINE()Allan Stephens
Also demonstrates use of k_thread_spawn() and K_SEM_DEFINE(). Change-Id: Id2f32ea38d2b5fea40f90a7ef6665231e4158cb3 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-10-26samples: kernel_event_logger: filter platforms by SRAM sizeAnas Nashif
Change-Id: Ieeede04b122a697ff3cd83252677c0a12e428d56 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-26optimize testcase runs for sensorsAnas Nashif
Change-Id: If701d1824572bed068712750fbd14758806ba70f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-26samples: cleanup sensor samplesAnas Nashif
- remove useless Kconfigs - remove SPI DW kconfigs, we now use QMSI driver - Cleanup readme and turn into ReST Change-Id: Ie1f39e0afabf499fa81627ded59adf267e01993a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-26samples: sensors: cleanup mcp9808 sample and refine documentationAnas Nashif
Enhance documentation and build for Quark D2000 Devboard by default. Change-Id: I3417c31a8898a076465d25f45d7821820b480290 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-26samples: fix kernel_event_logger to work with unified kernelBenjamin Walsh
The test is modified to key on CONFIG_TASK_MONITOR instead of CONFIG_MICROKERNEL, since that is what it was really interested in. Also, this allows the unified kernel to work w.r.t. task monitoring, since that is a concept that is alien to the unified kernel, since there are no more task transitions recorded as part of a kernel server. The unified kernel does not have a CONFIG_TASK_MONITORING option. To make this work, since the kernel_event_logger sample makes use of the philosophers demo, the latter had to be modified as well. The nanokernel philosophers demo would not work with the unifed kernel since it identifies as a microkernel, and in that case the test would be looking for symbols defined in an MDEF file, which the nanokernel demo does not provide of course; the same thing applies to the nanokernel kernel_event_logger sample. Instead, the demo defines NANO_APIS_ONLY=1, which is really what it is interested in. To allow that definition to exist, the nanokernel philosophers demo and both the nano/micro kernel_event_logger samples add src/ directory with its own Makefile and add their own phil_fiber.c and phil.h files, which simply include the original files from the microkernel philosophers demo. As a final change, the kernel_event_logger samples need a different prj.conf file for the unified kernel, since it needs a bigger idle stack than the default, since the kernel event logger does work in the idle thread when the kernel goes to sleep. Change-Id: I4cac45a32d09d6ca1de052a368b3219f64889869 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-10-26unified: correct comment about number of threads in phil demoBenjamin Walsh
A bit of work has to be done by someone why wants to run the demo with a different number of threads than the default. Fixes ZEP-1077. Change-Id: Ibb5cfed2bd9984bcf0f9d65f957f32daf4c5211e Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-10-25samples: sensors: remove reference to non-existing MDEF_FILEAnas Nashif
Change-Id: Ideaa795e8afc8d3226adc340db7299eaa9bf6bcc Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-25samples/soc_flash_nrf5: test non-word aligned writesRicardo Salveti
Change-Id: I0c109d1632a84ab2f239b7034f18556519aa158e Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
2016-10-25unified/test: Adapt C++ sample applicationAllan Stephens
Microkernel and nanokernel tests now use customized source code to eliminate use of MICROKERNEL and NANOKERNEL config options. Change-Id: Ic3617df34487911af1607ab46f469c5e1212d3f7 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-10-22samples: ipsp: whitelist platformsAnas Nashif
Change-Id: Ibc221d3e72481418f7bb0946a107aa0a8676cffb Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-22tests: fix testcases for cortex-m0+ platformsAnas Nashif
Change-Id: Idf6f5e38354aa5f1801ec0c0db63a4e19243918c Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-21Merge "Merge bluetooth branch into master"Anas Nashif
2016-10-21samples: modify w25q80b1 sample to output "done" when done.Chuck Jordan
This sample justs outputs the SPI FLASH IDs. I think we should improve this to also output done, otherwise it looks like its stuck or something. Change-Id: I18d5919c1e25bb5aaa9ceba53793cc14b15f3c77 Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2016-10-21Bluetooth: HCI UART app to run Zephyr as a BLE ControllerCarles Cufi
Add a new sample application in sample/bluetooth/hci-uart that acts as a bridge between a UART and the BLE Controller. It receives commands and ACL data in H4 format over the UART and passes them on to the BLE Controller to be processed. It also conversely forwards all events and incoming ACL data generated by the BLE Controller to the UART. The application uses the hci_raw interface to pipe the data to and from the BLE Controller and UART. Change-Id: Iff7696166a82fe363b2ad4e1abea40103899f927 Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-10-21Bluetooth: GATT: Pass CCC attribute to changed callbackLuiz Augusto von Dentz
This way the application can reuse the same callback for multiple CCC since it can track what CCC is affect by checking the attribute pointer. Change-Id: I608da643aea07de26b65d67e6db3268d717d0f53 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-10-20sensors: bmi160: remove unused init priority configAnas Nashif
Change-Id: I367d7b084fb93609000066b610e01a802fdd152e Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-19samples/shell: don't run on QEMU, input not supportedInaky Perez-Gonzalez
This will be reverted once input is supported in QEMU. Change-Id: I4bc946f1634bf9ebd17b697f0da7ce2f813e5725 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-10-19samples/drivers/spi_lsm9ds0: don't run on QEMUs or FRDMsInaky Perez-Gonzalez
These platforms don't have the hardware and will always fail. Change-Id: I637d39f003bd1d507da0b5bb6fa12118040fcd63 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-10-17unified: fix philosophers demo when using stack objectsBenjamin Walsh
Got out of sync with the revised signature of k_stack_init(). Change-Id: Ib4c67c75f30055583a457bfb13f8dacc9929ee88 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-10-17samples/ipm: fix markupInaky Perez-Gonzalez
Old markup was using %(target)s, which is not the right markup to use, so it was faiing to build. Change-Id: Idbe99cfdd695284dc2a66e5823bc65a1417fbfd3 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-10-17samples/zoap_server: Add preliminary support for validationVinicius Costa Gomes
Implement resources so they conform to what the ETSI plugtest suite expects. This allows the zoap-server sample to pass most of the tests of the CORE[1] group, only TD_COAP_CORE_09 is not implemented. Tests involving lossy networks weren't run as well. The tests were run against the libcoap[2] client. [1] ETSI CoAP test description http://www.etsi.org/plugtests/CoAP/Document/CoAP_TestDescriptions_v015.pdf [2] libcoap https://libcoap.net/ Change-Id: Ifa3ed21a93052e02f47e99d7cb6d9d4b28e576d8 Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
2016-10-17samples: TH02 temperature and humidity sensor sampleAnas Nashif
This sample uses the grove temperature and humidity sensor and displays the read values on the grove LCD. Change-Id: Id6fb6171c26c97f1b01008fa06a4dc85287d7545 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17samples: drivers: dma: Improve failure debug granularityLee Jones
When the sample fails, it's difficult to identify whether it failed during the configuration or transfer stage. Provide a little more information which will allude to the nature of the failure. Change-Id: I5272ce73f56b0e51c8439d5510e512b616665705 Signed-off-by: Lee Jones <lee.jones@linaro.org>
2016-10-16Bluetooth: IPSS: Remove ipss_listenLuiz Augusto von Dentz
This removes ipss_listen since it does depend on the old network stack it cause build problems with yaip and anyway its code is only used by ipsp sample while the net samples does not use ipss_listen at all. Change-Id: I23987670548741bde8800115d473a3bab242153b Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-10-16Bluetooth: samples: Rename btusb to hci-usbJohan Hedberg
This prepares the way for more controller-side HCI implementations which can be named hci-<transport>. Change-Id: I6f82db4b7b7096a122f32def9fe9025a7b811244 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-16Bluetooth: samples/btusb: Rename main c-fileJohan Hedberg
Use main.c as in most other samples. Change-Id: I82a593d2842e0653279046be181e2770a367ab45 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-13unified: Rationalize thread priority APIsAllan Stephens
* Gets rid of k_current_priority_get(). Users can just call k_thread_priority_get(k_current_get()) instead. * Declares k_thread_priority_get() in kernel.h, where it really belongs. * Removes duplicate declaration of k_thread_priority_set(). Change-Id: I616ae6f2e06c95ecba3b92324186b3fa29162fd1 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-10-07gpio: reduce Kconfigs and use consistent name for GPIOsAnas Nashif
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-07samples: button: modify sample to work on more boardsAnas Nashif
Change-Id: Ib29dc5ce70618f6c4d0a4d732910ea67f92c37a5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07samples: remove useless filters in testcase.iniAnas Nashif
Change-Id: Iaf7f77a738a48918752347c97019660355de370a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-05samples: remove useless printf/printk wrappersAnas Nashif
Change-Id: I4518171c85914785df1fc02ac679279b49a1be31 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-05power_mgmt: Reduce complexity in handling of power hooksRamesh Thomas
Simplified some documentation, removing inconsistencies and making it easier to understand by separating PM infrastructure areas and soc specific components that implement the hooks. Removed the DEVICE_SUSPEND_ONLY policy as it is redundant and causes high complexity in the flow. It is also not practical to use it because it was meant to be used without doing CPU or SOC low power state operations. This means it would do device PM operations in the ISR of the system timer used by the scheduler. This can disrupt the scheduler time. Added a check of a flag around the notification sent from the ISR of the wake event and created APIs to set/clear it. This will allow disabling the notification when not needed from _sys_soc_suspend(). Jira: ZEP-972 Change-Id: Id7aa7d2683384eabed518d4efac446ecc84c3498 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-10-04Merge bluetooth branch into masterJohan Hedberg
Main changes: - Initial A2DP support - Initial SDP support - Controller code cleanups - Improved RFCOMM support - Minor fixes & cleanups here and there ---------------------------------------------------------------- Arkadiusz Lichwa (9): Bluetooth: RFCOMM: Shuffle up Kconfig's RFCOMM_L2CAP_MTU Bluetooth: HFP HF: Fix getting inaccessible internal Bluetooth: HFP HF: Enforce Kconfig's HFP_HF relation to RFCOMM Bluetooth: init: Add HFP to automated tests Bluetooth: A2DP: Remove internal stack headers Bluetooth: AVDTP: Remove internal headers Bluetooth: AVDTP: Fix getting inaccessible internal Bluetooth: L2CAP: Fix sending double connection request Bluetooth: Refactor distribution of security procedure status Arun Jagadish (2): Bluetooth: AVDTP: Module Initialization Bluetooth: AVDTP: Connect and Disconnect API Carles Cufi (6): Bluetooth: Controller: Clean up naming in the HCI driver Bluetooth: Controller: Use net_buf for HCI RX Bluetooth: Controller: Use net_buf for CC/CS TX Bluetooth: Controller: Use net_buf for evt and ACL RX Bluetooth: Controller: Remove unused macro Bluetooth: Controller: Fix __packed placement Itankar, Piyush T (2): Bluetooth: A2DP: Initialization of A2DP Bluetooth: A2DP: Added Connect API Jaganath Kanakkassery (5): Bluetooth: RFCOMM: Handle dlc disconnection from peer Bluetooth: RFCOMM: Handle session disconnection from peer Bluetooth: RFCOMM: Introduce rfcomm_send_dm() Bluetooth: RFCOMM: Introduce dlc destroy Bluetooth: RFCOMM: Replace tabs with spaces Johan Hedberg (6): Bluetooth: L2CAP: Extend bt_l2cap_create_pdu() with 'reserve' parameter Bluetooth: tests: Fix name of Quark SE C1000 SS devboard Bluetooth: RFCOMM: Remove reference counting Bluetooth: RFCOMM: Fix some remaining white-space issues Bluetooth: Adjust maximum connections & paired devices range Bluetooth: Fix compiler warnings/errors related to string casts Kaustav Dey Biswas (1): Bluetooth: SDP: Server: Initialize and accept incoming connections Luiz Augusto von Dentz (7): Bluetooth: eddystone: Add missing characteristics Bluetooth: init: Add CONFIG_BLUETOOTH_RFCOMM to prj_20.conf Bluetooth: init: Add CONFIG_BLUETOOTH_AVDTP to prj_20.conf Bluetooth: AVDTP: Add missing BLUETOOTH_DEBUG_AVDTP Bluetooth: init: Add CONFIG_BLUETOOTH_A2DP to prj_20.conf Bluetooth: GATT: Fix locking RX fiber Bluetooth: Enable CONFIG_BLUETOOTH_DEBUG_AVDTP with prj_20.conf Mariusz Skamra (2): Bluetooth: tester: Fix advertising data Bluetooth: Enable privacy for nimble Szymon Janc (5): Bluetooth: SMP: Remove unused static const Bluetooth: SMP: Fix unused static variable Bluetooth: Add debug keys support to HCI ECC emulation code Bluetooth: L2CAP: Cleanup flags names for BR/EDR channels Bluetooth: L2CAP: Rename br_channels to br_fixed_channels Vinayak Chettimada (2): Bluetooth: Controller: Fix SCHED_ADVANCED cond, compilation Bluetooth: Controller: Remove custom irq implementation drivers/bluetooth/controller/Makefile | 1 - drivers/bluetooth/controller/hal/ccm.h | 4 +- drivers/bluetooth/controller/hal/clock.c | 18 +- drivers/bluetooth/controller/hal/ecb.c | 17 +- drivers/bluetooth/controller/hal/irq.c | 53 -- drivers/bluetooth/controller/hal/radio.c | 14 +- drivers/bluetooth/controller/hal/rand.c | 7 +- drivers/bluetooth/controller/hci/hci.c | 903 ++++++++----------- drivers/bluetooth/controller/hci/hci_driver.c | 290 +++--- drivers/bluetooth/controller/hci/hci_internal.h | 9 +- drivers/bluetooth/controller/ll/ctrl.c | 32 +- drivers/bluetooth/controller/ll/ctrl.h | 8 +- drivers/bluetooth/controller/ll/pdu.h | 110 +-- drivers/bluetooth/controller/util/work.c | 69 +- drivers/bluetooth/controller/util/work.h | 2 +- include/bluetooth/a2dp.h | 47 + include/bluetooth/bluetooth.h | 2 +- include/bluetooth/l2cap.h | 15 +- include/bluetooth/rfcomm.h | 29 +- .../hal/hal_irq.h => include/bluetooth/sdp.h | 35 +- net/bluetooth/Kconfig | 58 +- net/bluetooth/Makefile | 6 +- net/bluetooth/a2dp.c | 126 +++ net/bluetooth/a2dp_internal.h | 36 + net/bluetooth/att.c | 40 +- net/bluetooth/avdtp.c | 180 ++++ net/bluetooth/avdtp_internal.h | 158 ++++ net/bluetooth/conn.c | 2 +- net/bluetooth/hci_core.c | 25 +- net/bluetooth/hci_ecc.c | 71 +- net/bluetooth/hfp_hf.c | 2 +- net/bluetooth/l2cap.c | 28 +- net/bluetooth/l2cap_br.c | 115 +-- net/bluetooth/l2cap_internal.h | 16 +- net/bluetooth/rfcomm.c | 173 +++- net/bluetooth/rfcomm_internal.h | 82 +- net/bluetooth/sdp.c | 294 ++++++ net/bluetooth/sdp_internal.h | 56 ++ net/bluetooth/smp.c | 21 +- net/bluetooth/smp_null.c | 2 +- samples/bluetooth/eddystone/src/main.c | 79 ++ tests/bluetooth/init/prj_20.conf | 6 + tests/bluetooth/init/testcase.ini | 2 +- tests/bluetooth/tester/prj_nimble.conf | 1 + tests/bluetooth/tester/src/gap.c | 2 +- 45 files changed, 2116 insertions(+), 1130 deletions(-) delete mode 100644 drivers/bluetooth/controller/hal/irq.c create mode 100644 include/bluetooth/a2dp.h rename drivers/bluetooth/controller/hal/hal_irq.h => include/bluetooth/sdp.h (59%) create mode 100644 net/bluetooth/a2dp.c create mode 100644 net/bluetooth/a2dp_internal.h create mode 100644 net/bluetooth/avdtp.c create mode 100644 net/bluetooth/avdtp_internal.h create mode 100644 net/bluetooth/sdp.c create mode 100644 net/bluetooth/sdp_internal.h Change-Id: I22864805bbb931fe9150ccd84d389b3e30794f7e Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-04samples/zoap_server: Fix warning about pointer signednessVinicius Costa Gomes
Change-Id: I78b2762d0713aa42d9800cb7736f4831195a6d3c Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
2016-10-04samples: power_mgmt: Fix compile bugs flagged by llvmRamesh Thomas
Change-Id: Id062f1d6f1eef6b98d040dcd16eb34fa4bd8bb30 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-10-04Bluetooth: eddystone: Add missing characteristicsLuiz Augusto von Dentz
This adds last 2 missing characteristics: (Advanced) Factory reset - a3c8750b-8ed3-4bdf-8a39-a01bebede295 (Advanced) Remain Connectable - a3c8750c-8ed3-4bdf-8a39-a01bebede295 Change-Id: I749b4be65469080a24957805d40395563a74a972 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-10-01samples/zoap-client: Add a README.txt to zoap-clientVinicius Costa Gomes
Change-Id: I2373d87cda125036cce169aaa492aeedcbe200dd Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
2016-10-01samples/zoap-server: Add a README.txt to zoap-serverVinicius Costa Gomes
Change-Id: I136d405e520ed8550e0b5012128a0c673bb9954a Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
2016-10-01samples/zoap_client: Make it work with zoap-serverVinicius Costa Gomes
The path and port used by zoap-client were different than the ones used by zoap-server. Even if they are different applications, for consistency, it makes sense for them both to be able to talk to each other. Change-Id: I883d59c77bc3800b4f0965ba7bcf96a08e545d29 Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
2016-10-01iot/zoap: Add port information to network addressesVinicius Costa Gomes
uIP keeps the port separated from the IP addresses, so if the application wants to communicate with a remote endpoint we must also have the port information available. Change-Id: I8e2b01fe5717166e1f9cebcc74b2056325b8ccc3 Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>