summaryrefslogtreecommitdiff
path: root/samples
AgeCommit message (Collapse)Author
2016-02-05net: apps: Refactor echo-server compilationJukka Rissanen
Separate setup for different low level bearer. By default the Makefile will create version suitable for qemu testing using slip. If one writes "make NET_IFACE=802154" then IEEE 802.15.4 radio specific settings are activated. Because echo-server does not contain any processor specific settings, remove the ARM config files and rename the x86 specific ones. Change-Id: I2caf26979f32496c6efb4dd1f625a60e3e5f6744 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-02-05Bluetooth: samples/tester: Fix invalid use of struct bt_uuidSzymon Janc
struct bt_uuid is a 'tentative' UUID type and shouldn't be used for UUID storage. Since tester application doens't know type of UUID on compile time we need to have a common extra type that would allow to store both 16 and 128 UUIDs. Change-Id: Ia2775a457a732cf03ba7e4a59e6d654fcd1ab05d Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-05net: apps: Update echo-server and echo-client IPv6 addressRavi kumar Veeramally
Address configurations for different Kconfig options is difficult to test under different environments. Make it simple at the moment. Change-Id: I689649b11b4ccb1cf1ff0e90720fa03b6dc3656b Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-02-05net: apps: Modify echo-client to send data only after receptionRavi kumar Veeramally
Modify echo-client to send packet after packet received from server and wait unlimited ticks. Current behaviour flood messages to server irrespective of reception at server end. Modified behavior only for nanokernel at the moment. Change-Id: I6aa20c5b9fc9d6d1cf8f996e90735f5d2b986e5a Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-02-05net: samples: Fix echo-client compile error for microkernelJukka Rissanen
Change-Id: Id1a40244543744b60971dd6321edf1aadd02108a Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-02-05net: samples: Fix microkernel echo-server and echo-clientJukka Rissanen
The echo-server and echo-client samples did not compile correctly if one wanted them to work correctly using "make server" and "make client" commands. Change-Id: I955c6cc23c3192fcb1dfcfbda7df53050a71501f Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-02-05Bluetooth: Rename BT_LE_ADV_ADDR_PUBLIC to BT_LE_ADV_ADDR_IDENTITYJohan Hedberg
In anticipation of supporting a local static random address in the future it makes more sense to call BT_LE_ADV_ADDR_PUBLIC BT_LE_ADV_ADDR_IDENTITY. Change-Id: I4826f1dfb50b54e13a35cbe7ee74e28641c81ad1 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05Bluetooth: tester: Update configuration for NBLEAndrei Emeltchenko
Enable CONFIG_CONSOLE_HANDLER and disable CONFIG_UART_CONSOLE since tester reuses that UART. Change-Id: Ia440d75f66d01f29d10b5d6a68fc052fd8b57fa7 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: nble: Remove enabling debug by defaultAndrei Emeltchenko
Enabling BLUETOOTH_DEBUG enables also serial console conflicting with tester reusing the same UART. Change-Id: I8058a019e61146ff05cc44ab543cf6ec9ff418ef Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: samples: Use sizeof() to evaluate fixed name lengthJohan Hedberg
This way we avoid bugs coming from wrongly (human) counted length. Change-Id: I95eb87a78fc12d4c5e083ce1c65d8b690ad8db78 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05Bluetooth: Introduce BT_DATA_BYTES convenience macroJohan Hedberg
This way we don't need a special BT_BYTES macro and avoid bugs coming from wrongly counted number of bytes (which is now evaluated at build-time). Change-Id: Ic6319234a816fe2fab6229b3bb980d0e3503e241 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05benchmarks: reorg configuration and split float testsAnas Nashif
Change-Id: Ic988b5028eaffb0a1c2ed52d28f1eddb98c15130 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05benchmarks: cleanup footprint tests (nano kernel)Anas Nashif
Remove float option from 'max' configuration and add a new 'float' test for hardware that supports floating point. Move configuration files into directories to ease maintenance. Change-Id: Ibf4c88ea946a78b8025bc61409b0ab661250f4fb Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05adc: sample conofiguration updateJuan Manuel Cruz
The default number of IRQs is good enough for this sample. Change-Id: I00f2088b4c82d60717563e36ebccfecac3983522 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
2016-02-05samples: Add a sample SPI applicationVinicius Costa Gomes
This application reads the 'WHO AM I' register from a LSM9DS0 sensor connected over SPI. Change-Id: I7b0631e9bc783aea60fdb489f40058e0c15275fb Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05tests: add build tests for various optionsAnas Nashif
This test builds the syncronisation app using the following config options to verify if the build is successful: - CONFIG_DEBUG - CONFIG_NEWLIB_LIBC Change-Id: Idf2fe948ab58982244b3590da938a83206103be3 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05samples: gpio: extends to support gpio_atmel_sam3 driverDaniel Leung
This adds code to the gpio sample apps to run on Arduino due, using the gpio_atmel_sam3 driver. Change-Id: Ida16ceeabf55eb7efedc94c56ff875d8fad6456d Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05samples: apps: rename gpio_dw to gpioDaniel Leung
This renames the gpio_dw sample app to gpio, as this can be used for multiple drivers. Change-Id: I6f21237b5b8df10f531e47ad9f75cadfd619cd34 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05samples: adds a sample for using aio_dw_comparator driverDaniel Leung
Change-Id: Idcfe266db237a0f2aaa6376562cf92bb49e626cc Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05samples: adds a sample for interfacing with APA102C LEDDaniel Leung
Change-Id: I653a47c942a36ce4002f0acad29c4978aa47080a Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05Bluetooth: samples/shell: Fix printk modifierSzymon Janc
Use %d for printing signed integer. Change-Id: I6fbf387969e97561430ea0d2d422842c599f1457 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-05Bluetooth: UUID: Introduce new APIJohan Hedberg
Introduce new UUID API with bt_uuid, bt_uuid_16 and bt_uuid_32 structs. The specific size structs are derived from the common bt_uuid struct to make it possible to use CONTAINER_OF(). Change-Id: I9cb03c73406acb7768d410fdf29eae75d252163c Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05Bluetooth: bttester: Trivial style correctionAndrei Emeltchenko
Change-Id: I39e2c414ec1e972112bda0ba3ca1d1626c32bb18 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: Shell: Fix l2cap-sendLuiz Augusto von Dentz
bt_l2cap_chan_send does actually return the number of bytes sent. Change-Id: I862a8519c752c6b26250a21be02a927a9326617c Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-02-05Bluetooth: shell: Don't call bt_enable blockingLuiz Augusto von Dentz
Now that nble driver is supported bt_enable cannot be called blocking since it is not supported, futhermore the call to bt_gatt_register should be done after bt_enable is complete. Change-Id: I404f8cd8b8339dba0fd26d24edeb718eba4bf225 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-02-05Bluetooth: doc: Add notes for building with NBLE enabledAndrei Emeltchenko
Change-Id: I77f4c25bacd4f6233152d44d36f3057f4ac108e7 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: nble: Correct platform name for Arduino 101Andrei Emeltchenko
This enables this test case for arduino_101 platform. Change-Id: I2a94fb90f4c57022ddf1ec11ab06bb5e59de9b6e Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: tests: Remove extra board definition for NBLEAndrei Emeltchenko
Board already defined in platform_whitelist Change-Id: I2fed4b3c0663fd15d43ee697837a89439f7bd07a Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: samples/shell: Fix use of NULL net bufferSzymon Janc
Don't use NULL pointer if aquiring net buffer failed. Change-Id: I11a22b832d1da9559b90abe0cb83eed56d14722f Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-05Bluetooth: tester: Convert advertising dataMariusz Skamra
This adds conversion of advertising data (adv_data) to be used by bt_le_adv_start function. Change-Id: I403ff7ebed89dbf763d258b5dcdabfbb2cb68260 Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-02-05Bluetooth: shell: Add NBLE shell test to sanitycheckAndrei Emeltchenko
Test can be verified with $ sanitycheck -s bluetooth/shell/test_nble -v arduino_101 bluetooth/shell/test_nble PASSED Change-Id: Icfc5892524041d169973bd6eb7d23b6ecffb98fc Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: shell: Add Nordic BLE configurationAndrei Emeltchenko
Allow to build shell for NBLE. Change-Id: Icbd019ee1947f2dcf3bc358685024f22c6a5de34 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: shell: Fix usage of BREDR functionsAndrei Emeltchenko
Fix compiler errors when CONFIG_BLUETOOTH_BREDR is not enabled. Change-Id: I003985a9769120b3314eaf1b9563a3bf9712e32a Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: shell: Make buf_data localAndrei Emeltchenko
Move buf_data to the place it is used reducing errors when dynamic channels are disabled. Change-Id: I82f640ffa8046e1c9b5805658e69cb722856d445 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: shell: Fix dynamic channel usageAndrei Emeltchenko
Fix wrong dynamic channel usage in shell Change-Id: Ieb6505b4c5ce1d380af4ac0b5ef788b16a2eeb4d Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: tester: Add support for testing with nble driverLuiz Augusto von Dentz
Change-Id: I4c996d30da30d8f3b88d7ba9efe974872f902e0a Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-02-05drivers/nble: Add UUID supportLuiz Augusto von Dentz
This reuses the existing code since that is not driver specific, with this samples such as tester can be build using nble driver. Change-Id: I6d9f3edf8deb2e84fce233ef02d1cd0ad6f52526 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-02-05Bluetooth: test: Use correct target for ArduinoAndrei Emeltchenko
Current quark_se target is not specified in scripts/sanity_chk/arches/x86.ini list and apparently this is the reason tests were not executed, change it to arduino_101. Change-Id: Ifedcf08cc9b25839d389bd7eb92ed42012e9075a Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: beacon: Correct arduino targetAndrei Emeltchenko
Putting right target allows to build for arduino_101. Change-Id: Ib11244c7f024c72f0ab0b15549be57c576bdef3c Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: nble: Include right platformAndrei Emeltchenko
Currently it is not possible to build for Arduino since wrong platform was specified. Change-Id: I85ff6f5adb003db9a0905d6afa04bb5dfbd55d53 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05Bluetooth: beacon: Add support for testing with nble driverLuiz Augusto von Dentz
In addition to having a different CONF_FILE bt_enable needs to be given a callback since nble driver cannot block while initializing. Change-Id: I8bd2c79d0620e93dbecfef25c49c5529ff1ee954 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-02-05NBLE: Nordic BLE is not a feature of quark seAnas Nashif
Move BLE configuration to board and enable GPIO for NBLE. Change-Id: I99c309656430936edf6766fc99fe83b011801bb4 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05Bluetooth: samples/peripheral: Set right board for nble testcaseJohan Hedberg
Change-Id: Ie0b1dceeb94a760dc9990a5c573616522169ea76 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05irq: rename irq_connect() to IRQ_CONNECT()Andrew Boie
It's not a function and requires all its arguments to be build-time constants. Make this more obvious to the end user to ease confusion. Change-Id: I64107cf4d9db9f0e853026ce78e477060570fe6f Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-02-05device: use DEVICE_INIT everwhereBenjamin Walsh
This is the last step before obsoleting DEVICE_DEFINE() and DEVICE_INIT_CONFIG_DEFINE(). Change-Id: Ica4257662969048083ab9839872b4b437b8b351b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05device: rename SYS_DEFINE_DEVICE()Benjamin Walsh
Rename it to DEVICE_DEFINE() so that it fits in the 'device' namespace. Change-Id: I3af3a39cf9154359b31d22729d0db9f710cd202b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05device: rename DECLARE_DEVICE_INIT_CONFIG()Benjamin Walsh
Rename it to DEVICE_INIT_CONFIG_DEFINE(), because (a) it was not fitting in any namespace and (b) it is not used to declare, but rather define a object. Change-Id: I1da5822f06b85a9fb024b5b184afd0ccc01012ec Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05test_mem_safe: support ARMBenjamin Walsh
Test works for ARM, but not testing sys_mem_safe_write_to_text_section() since base ARM image are XIP images. This test could be enhanced to boot a secondary non-XIP image for ARM to test writing to .text. Change-Id: I56aef68afabe88588b61c273901491de0c24a39b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05samples: Ensure stacks are properly alignedPeter Mitsis
Applies '__stack' tag where necessary to ensure that stacks are properly aligned. All stacks must be properly aligned via the '__stack' macro tag. Change-Id: Icfb04e246bd97b2185bb05e63647c7ab01993e36 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
2016-02-05samples: Add a q&d test application for SPITomasz Bursztyka
A dummy test to verify SPI driver and API build properly. Change-Id: Icb1ab282b4a0fa02ec949c96becdfdc16f20bc2d Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>