summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-05Zephyr 1.1.0zephyr-v1.1.0v1.1.0Anas Nashif
Change-Id: Ib29996cadfaeb977c16a30ae828732f316791e1f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-03-05sanitycheck: updated footprint numbersAnas Nashif
Change-Id: If73457fac32edf1b2e1b4192c6f266a050bbb6be Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-03-05power_mgmt:sample:Power Manager applicationRamesh Thomas
Sample implementation of a power manager app that uses the zephyr power management infrastructure. This app demonstrates use of the hooks to implement Low Power State and Tickless idle power saving policies. Tested on quark_se. Origin: Original Change-Id: I10207014f2a844374b4c7a1c0ed50f2fb5c3c440 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com> Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
2016-03-04SPI: Change read/write buffer pointers to void *Johan Hedberg
There's no reason to require callers to cast their data to uint8_t * when the data might e.g. originate in a packed struct or some other data type. Instead, be nice to callers and let them use any pointer they want. Additionally, declare the TX buffer as a const pointer so unnecessary typecasts aren't needed for that either (if the data originates in a const location). Change-Id: I1482ca4e350b5a7fbda6871ed9f54f255af3aa9e Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-03-04drivers/spi: intel: Fix typo in DBG logJohan Hedberg
This log is in spi_intel_configure, not in spi_intel_transceive. Change-Id: I5d62dd63d0cfa2c86f2dd5f9a6d367b7ad47b355 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-03-04drivers/spi: dw: Fix unaligned accessJohan Hedberg
The buffers aren't guaranteed to be aligned so that they're always aligned for uint16_t or uint32_t data. Use the available unaligned access macros to read/write the data. Change-Id: Ie87c108aa370af196b9c759b59ed7fb9d1ed6183 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-03-04include: Remove UNALIGNED_READ & UNALIGNED_WRITEJohan Hedberg
These were not actually used anywhere and weren't correct (at least not the READ variant which assumed the architecture can always deal with unaligned access). Change-Id: If2bee24dc729683c839bb631d411eab73498adad Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-03-04include: Add UNALIGNED_PUT helperJohan Hedberg
Provide a helper to perform safe unaligned writes to data. Change-Id: I00edde580d2ef93daaf7825d333d38fc10f854ac Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-03-04system_apic: rename irq_enable/disableAndrew Boie
Make this explicit to conform to the abstraction layer defined in include/irq.h This only worked before because the preprocessor was substituting the function prototypes. Change-Id: Id4d46b01f1c53c3a942772640023e23796eeb43b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-04gitignore: make sure that SOC specific linker scripts stay visibleMaciek Borzecki
Update gitignore so that linker scripts lower in directory tree under arch/*/soc stay visible when running `git status` Change-Id: Ia618eab4534c6ff06d3dedbcd3e0062c1dd278de Signed-off-by: Maciej Borzecki <maciek.borzecki@gmail.com>
2016-03-04sys_io: don't allow negative bit offsetsAndrew Boie
Use of these is the mark of a deranged imagination. Change-Id: Ib4b5f78cf61c016e333288090b397e9a3e0b8a40 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-04samples: Add UART applicationAndre Guedes
This patch adds a very simple UART sample application which demonstrates how to use the UART APIs. This sample is also useful to quickly verify if a given UART driver is working properly. For now, the application tests uart_poll_in() and uart_poll_out() APIs only, but new APIs should be added in future. Change-Id: If815f358f11efb058e947291b234d3d4130581d8 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
2016-03-04test_bitfield: exercise sys_*_bit and sys_bitfield_*_bitAndrew Boie
Origin: original code Change-Id: I16c324e1124a58d77386236f4c0cc597041c220e Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-04sys_io: introduce bitfield opsAndrew Boie
These are guaranteed to work for bitfields that are larger then 32 bits wide. Change-Id: I39a641f08a255478fae583947bced762950d12ff Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-04doc: Edit microkernel_timers.rst with better ReST syntax to enhance readability.L.S. Cook
Added ReST syntax dfns, added bold and lists. Reworded a couple sentences that could be stated more clearly. Change-Id: I997b54e1dcbc44d683919008770dd90857a96e47 Signed-off-by: L.S. Cook <leonax.cook@intel.com>
2016-03-04arch: arm: set the architecture via KconfigDan Kalowsky
Currently the build system has hardcoded values for the -march/-mcpu which identify what architecture should be used when compiling ARM code. For processors such as the STM32 this will need to be defined by a per SOC process. Change-Id: Ia8158cd687d8d0432ea420e204bb2bc67d33a054 Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
2016-03-04arch: & kernel: Updated Kconfigs to remove errors in html generationYannis Damigos
This patch updates some help sections to remove the "ERROR: Unexpected indentation" messages during hmtl documentation generation. Change-Id: Idcdc17727b921b6145f9eb28d85975ceca273ce2 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2016-03-04Bluetooth: Fix typo subscribtions to subscriptionsAndrei Emeltchenko
Change-Id: Ibf015e304e34fddf0f508a1951ac504f07e20d83 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-03-04Revert "samples: A test app for WinBond spi flash"Anas Nashif
This reverts commit 1b1a9ef8457410a6486aa25f0d99d6c9f3e0ca16. This sample was merged by mistake and without the needed drivers or APIs. Change-Id: Icf588ed3517e9c2f905d319e6f6f5fff935aa77a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-03-03zephyr-env.sh: Set correctly $ZEPHYR_BASE in zshYannis Damigos
Sourcing project environment file failed to set correctly $ZEPHYR_BASE in zsh if it was sourced from another directory (e.g. home directory). This patch fixes this issue. It was tested on zsh, bash and sh on Linux. It needs to be tested on OS X. Change-Id: Idfb11c6a3109042a9f578f38b3849d9cf9c31f95 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2016-03-03spi: intel: fix write failures at low speedsVlad Lungu
When configured at a frequency of 2MHz, a transaction writing 3 bytes and reading 1 byte fails silently (last byte cannot be read back from the device). Enabling CONFIG_SPI_DEBUG fixes the issue. Scope traces show that the transaction (from /CS assert to /CS deassert) takes 14us and there is activity on the MOSI line after /CS is deasserted. A transaction writing 2 bytes and reading 3 bytes take 22us. The issue is due to the fact that completed() deasserts /CS after the driver has put 3 bytes in the TXFIFO and taken 1 byte from RXFIFO. Just because the last byte made it to the TXFIFO, it doesn't mean that it was put on the MOSI line. The fix: For a transaction sending T bytes and expecting R bytes, let N=max(T,R). Send exactly N bytes and wait for exactly N bytes (or an error). This way, we are sure that all the bytes were sent to the target device. Also: Stop calling pull_data() after every byte sent, it might take a while for a byte to show up in RXFIFO. If RFS bit is set, stop sending bytes (will be really useful with a bigger RFT). Flushing RXFIFO in spi_intel_transceive() is not needed anymore. Change-Id: Ifb06a12b03e3e20d6ace4d9f3a20fc11ec3bb010 Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
2016-03-03spi: intel: fix typo in port 1 configurationVlad Lungu
Remove semicolon that triggers a build failure when CONFIG_SPI_INTEL_PORT_1=y Change-Id: Iea49d44059377cf9eb0b5b5e14b625cb316a65bb Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
2016-03-03REVERTME: bluetooth: tests: disable some testsAndrew Boie
bluetooth/shell and bluetooth/tester need to be disabled on galileo and minnowboard respectively. On these platforms, the IRQ for the UART console and the H4 are the same IRQ line. IRQ_CONNECT() is being called on the same IRQ line twice, and it's only through linker luck that these tests work at all since one driver will "win" when the mapping is set up at build time by gen_idt. gen_idt was supposed to break the build in this situation but was bugged. The next patch in the series fixes gen_idt. Change-Id: Ib4a42b57181731121dfad50606c8362a9fd0277d Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-03gen_idt: correctly warn on duplicate IRQ connectionsAndrew Boie
Now if you try to call IRQ_CONNECT() multiple times on the same IRQ line it will correcly fail the build, as intended. Change-Id: Ia629ae3dd009bd3a2e1dbd9797dc2b723b02d234 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-03sanitycheck: fail on footprint analysis of stripped ELFsAndrew Boie
These don't have necessary symbol information to determine if the kernel is XIP or not. Fail instead of giving bogus data. Change-Id: I87f6eeb5983f5275929e5b8d448a054b83e23d8f Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-03-03doc: Edit microkernel_events for clarity, ReST syntax, and parallelism.L.S. Cook
Updated the Concepts subsection with a clearer topic outline, added bold and dfn; added heading to Example: Defining Private Event... ; fixed some muddy language in paragraph about event handler functions. Change-Id: I040ae8ee2be7fd4742f782e5f505a9cdcece7b62 Signed-off-by: L.S. Cook <leonax.cook@intel.com>
2016-03-03doc: Add clarification to common execution contexts docsL.S. Cook
A couple paragraphs contain ambiguous verbs that are unclear. (For example: Line 23. Does the kernel perform a busy-wait, or does it merely permit a task or fiber to perform a busy-wait?) Based on original, I guess the latter and attempted to correct this in the docs. Also fixed spelling error. Change-Id: I0699835a9681c1a4873575fbf9a69bc6d854bee4 Signed-off-by: L.S. Cook <leonax.cook@intel.com>
2016-03-03doc: Edit microkernel_semaphores.rst for consist structure and APIs.L.S. Cook
To have consistency throughout the docs, APIs should all be in imperative verb. Updating this, and adding other consistent structure to match the rest of microkernel section docs. Change-Id: Ic2285496895ae9edfcc523f8fc2f99bcb935227f Signed-off-by: L.S. Cook <leonax.cook@intel.com>
2016-03-03Bluetooth: tester: Fix missing le to host order conversionMariusz Skamra
This fix missing conversion of CEP properties. Change-Id: Ibdf9fecdb3e21e8fd5e2b7ccacb88ae2abd81776 Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-03-03net: 802.15.4: Fix the dummy driverRavi kumar Veeramally
Do not depend on uart_pipe_send return value. Just assume uart_pipe_send call to uart_poll_out sent data through uart. Change-Id: Ifc7119f94b625d4f2895d92d44d660013bf50145 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-03-03net: apps: Add separate prj_qemu.conf for board type qemuRavi kumar Veeramally
Add separate prj_qemu.conf files for qemu_86 board type. Also remove set_options from Makefile.ipstack which is not required now. Now build the echo-server with "make server NET_IFACE=qemu" and echo-client with "make client NET_IFACE=qemu" command options. Change-Id: I1f3c9c6a198f2b6cae54ae4a5da970b284ef84de Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-03-03net: apps: Fix echo apps MakefileRavi kumar Veeramally
Add bt related qemu flags only when BT is enabled. Change-Id: Idc611dcf7726829ed77c3f4898abd794a825212f Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-03-03net: Fix NETWORKING_WITH_15_4_TI_CC2520 config optionRavi kumar Veeramally
NETWORKING_WITH_15_4_TI_CC2520 is already depends on NETWORKING_WITH_15_4, so no need to select again. Change-Id: I74970a6d550a049dc69734048d1e6eaa13be36b6 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-03-02Zephyr 1.1.0-rc1v1.1.0-rc1Anas Nashif
Change-Id: Iafe6fbee5a3ba603963fb7bcbf2b28f1875b1242 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-03-02device: add missing license headerAnas Nashif
Change-Id: Ice01a19373ad17a9f8080f93c066d8be31a3b115 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-03-02doc: Fixed two warnings in html format documentation generationYannis Damigos
The patch modifies the file doc/conf.py to fix the warnings: 1) the config value 'html_add_permalinks' has type `bool', defaults to `str.' 2) html_static_path entry '/media/projects/zephyr/doc/_static' does not exist Change-Id: I01e74b5db85311c514ef437e75b8f378ce80125f Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2016-03-02zephyr-env.sh: Fixed sourcing the project environment fileYannis Damigos
In zsh the value of $0 depends on the FUNCTION_ARGZERO option which is set by default. FUNCTION_ARGZERO, when it is set, sets $0 temporarily to the name of the function/script when executing a shell function or sourcing a script. POSIX_ARGZERO option, when it is set, exposes the original value of $0 in spite of the current FUNCTION_ARGZERO setting. This patch allows to source the project environment file from both zsh and bash. It also removes the -z option from the basename command which is missing in OS X. Change-Id: I5a32404784d9064bf749fa58b4d73d4b56c908c2 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2016-03-02Bluetooth: tester: Fix missing bit in GAP supported commandsMariusz Skamra
GAP_CONNECT bit was missing in supported commands. Change-Id: I9d009c55327ae67bed38c45b7c11fb67665e1cd0 Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-03-02Bluetooth: tester: Fix supported commands to use uint8_t arrayMariusz Skamra
Fixes endianess issues. Change-Id: I9c308187d34a832cc875c9037235cedc8bee033c Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-03-02Bluetooth: btp: Fix BTP GATT command opcodesMariusz Skamra
This patch makes opcodes to be in the sequence. Supported commmands is form now uint8_t array, so this resolves the problem with endianess as well. Change-Id: I602a58081948dbbf5e0d83cbb12a118a5990b9f8 Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-03-01net: License information was missingJukka Rissanen
Few configuration related header files were missing license header. Change-Id: Id4ef8273a80eb41f39248dd33ccefbeb30ef57dd Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-03-01doc: Documentation generator failed for html formatYannis Damigos
Fixed some indentation errors in scripts/genrest/kconfiglib.py which cause generation of html format documentation to fail Change-Id: I228f528d49722549f6034a572049db4b9d735615 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2016-03-01add missing license to zephyr-env.shBenjamin Walsh
Change-Id: I0a43e634534ee1cb43c6ad2dc966d9ee20e0b9e5 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-03-01net: Use the existing logging option in Kconfig for debuggingJukka Rissanen
Instead of new config option for debugging, lets re-use the existing logging option CONFIG_NETWORKING_WITH_LOGGING that is found in Kconfig. Unselecting that option will turn off the debug messages in IP stack. Change-Id: I4c1e0e91f3959304b7dc2b62d2bf73ec87cd1114 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-03-01net: Fix Bluetooth driver warningLuiz Augusto von Dentz
This fixes warnings when compiling without CONFIG_NETWORKING_WITH_LOGGING. Change-Id: I50ee7004ba5c662ef2d6ff32b5dd3e1e41a92b5b Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-03-01Revert "cc2520: Rework reception logic"Jukka Rissanen
This reverts commit bf77d902ac15ad654cb8fb07e96f6b9e5117f051. The commit is reverted because it causes hangs in packet reception. After transferring data a while, the chip stops packet reception. Change-Id: Icb94e978e3ba526314afd5e80f35c877febe8740 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-03-01Revert "cc2520: Turn off auto ACK"Jukka Rissanen
This reverts commit e695d43fad5bff730c4490b08e5a06cda29c3899. This commit allows reversal of the commit bf77d902ac15ad654cb8fb07e96f6b9e5117f051 which is called "cc2520: Rework reception logic". Original code had auto ACK turned off so we can revert this commit too. Change-Id: Ic4979d1caa0f4341b9642d8a83ee65cf71562994 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-03-01net: Print the stack usage in timer fiber less oftenJukka Rissanen
If enabled, the stack usage is now printed every 60 secs. Also changing the code to use the kernel ticks clock API. Change-Id: I44eabd0c372dfb8983ef379e12e38e5bf94a99d2 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-03-01net: Timer fiber now sleeps until next eventJukka Rissanen
The network timers will now use the fiber wakeup to let the network timer fiber to get the next event. This enables the timer fiber to sleep much longer and only wakeup when there is something to do. Change-Id: Ia69d92392c02b884c036793de41b38b6489c4d2e Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2016-02-29doc: Note spurious Intel Galileo boot messagesMichael LeMay
Change-Id: I662dfd64d2e09e2a4ab6bbf76e74ebdeaae22325 Signed-off-by: Michael LeMay <michael.lemay@intel.com>