- 07 Jun, 2017 14 commits
-
-
Andrew Boie authored
64-bit types were not being handled properly and depending on the calling convention could result in garbage values being printed. We still truncate these to 32-bit values, the predominant use-case is printing timestamp delta values which generally fit in a 32-bit value. However we are no longer printing random stuff. Test case for printk() updated appripriately to catch this regression. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Harry Jiang authored
Signed-off-by:
Harry Jiang <explora26@gmail.com>
-
Justin Watson authored
Signed-off-by:
Justin Watson <jwatson5@gmail.com>
-
Justin Watson authored
Signed-off-by:
Justin Watson <jwatson5@gmail.com>
-
Carles Cufi authored
Having tried and tested building Zephyr using the standard SDK on Windows 10 using the new WSL (Windows Subsystem for Linux), add the documentation so that others can benefit from the functionality. Signed-off-by:
Carles Cufi <carles.cufi@nordicsemi.no>
-
Anas Nashif authored
When checking for line length limits, ignore lines with Signed-off-by. Some developers have a long name that would not fit within the limits. Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Harry Jiang authored
Signed-off-by:
Harry Jiang <explora26@gmail.com>
-
Andrew Boie authored
Issue: ZEP-634 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Issue: ZEP-2172 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Need to set CXXFLAGS just like we did CFLAGS. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Carles Cufi authored
On MSYS2, the #include paths for GCC need to be in native format (Windows-style paths) since GCC is a native Windows application and therefore requires standard paths. Signed-off-by:
Carles Cufi <carles.cufi@nordicsemi.no>
-
David Brown authored
Instead of requiring the dts overlay files to be at the top level directory (where make is invoked), allow this default to be overridden by setting DTS_OVERLAY_DIR. This is a directory where the overlays themselves (which are still named $(BOARD_NAME).overlay) will live. Change-Id: Ie9796afbd27971650b7636a36149c0d1f8e2b9fb Signed-off-by:
David Brown <david.brown@linaro.org>
-
Andy Gross authored
This patch adds a dependency for the DTS overlay so that the DTS is compiled when the state of the overlay file changes. Change-Id: I2affe67f90f56b1d97384d5cd4e3026abed24253 Signed-off-by:
Andy Gross <andy.gross@linaro.org>
-
Vinayak Kariappa Chettimada authored
pop {lr} instruction is not supported in ARMv6-M, fixed by using pop {r0}; mov lr, r0; instructions. Jira: ZEP-2222 Signed-off-by:
Vinayak Kariappa Chettimada <vich@nordicsemi.no>
-
- 03 Jun, 2017 11 commits
-
-
Maureen Helm authored
The original implementation of _get_num_regions() parsed the CESR[NRGD] register field to determine the number of mpu region descriptors implemented in hardware. There was a possible path in the code to return zero, which would cause underflow later on in arm_core_mpu_configure(). Coverity complained despite an assert to catch this condition. Instead, use a preprocessor macro from mcux that defines the number of mpu region descriptors. Coverity-CID: 169811 Jira: ZEP-2208 Signed-off-by:
Maureen Helm <maureen.helm@nxp.com>
-
Paul Sokolovsky authored
As they are part of interrupt-driver API, they must be called from an ISR. That means that calling it outside IST may not have a desired effect, and vice-versa, not calling them from ISR can lead to issues. The patch also eleborates/fixes description of uart_irq_rx_ready(). Jira: ZEP-2016 Signed-off-by:
Paul Sokolovsky <paul.sokolovsky@linaro.org>
-
Andy Gross authored
This patch adds a YAML template file that describes the format of a Zephyr device tree YAML specification. Signed-off-by:
Andy Gross <andy.gross@linaro.org>
-
Andy Gross authored
This patch adds documention for device tree development in Zephyr. This includes a description of device tree, how it is integrated into Zephyr, and other related information. Signed-off-by:
Andy Gross <andy.gross@linaro.org>
-
Andrew Boie authored
Calling 'svc' on ARMv6 causes a hard fault if interrups are locked. Force them unlocked before making the svc call. Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
This is needed for irq_offload() and k_oops()/k_panic() Issue: ZEP-2221 Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Andrew Boie authored
Signed-off-by:
Andrew Boie <andrew.p.boie@intel.com>
-
Vinayak Kariappa Chettimada authored
Fix nRF RTC timer from returning more than actual cycles in _timer_cycle_get_32, under race condition when ISR announces to kernel. Jira: ZEP-2229 Signed-off-by:
Vinayak Kariappa Chettimada <vich@nordicsemi.no>
-
Tomasz Bursztyka authored
Instead of NULL terminated buffer arrays, let's add a parameter for each that tells the number of spi_buf in it. It adds a little bit more complexity in driver's side (spi_context.h) but not on user side (bufer one has to take care of providing the NULL pointer at the end of the array, now he requires to give the count). This will saves a significant amount of bytes in more complex setup than the current dumb spi driver sample. Fix and Use size_t everywhere (spi_context.h was using u32_t). Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Anas Nashif authored
Increase to 1024 to get more tests and sample running on this device with only 8K of SRAM. Change thread stack size in the mslab test to make it fit into this board. Jira: ZEP-2079 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Anas Nashif authored
This reverts commit 37f4178f . This change builds gen_idt in the zephyr project tree instead of building it in outdir of the application. The build process should all happen inside outdir and no binaries should be placed in the zephyr tree. Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 02 Jun, 2017 7 commits
-
-
Jukka Rissanen authored
Instead of waiting forever for a free net_buf, set a timeout to the allocations (500 ms). This way the application will not be blocked by memory exhaustion. Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Jukka Rissanen authored
In some cases the net_pkt can be null when freeing it, this will print error from net_pkt library. Avoid this by checking the value of net_pkt before calling net_pkt_unref(). Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Jukka Rissanen authored
If we re-connect to same peer server, then we should select a new source port. Noticed that if the same source port as before is used for the new connection, the peer might drop the packet. This was seen when connecting to Linux peer. Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Jukka Rissanen authored
The number of RX and TX buffers is increased to 64 as the earlier limit can cause memory exhaust in some cases. Jira: ZEP-2223 Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Leandro Pereira authored
Defines a new tunable, CONFIG_NET_TCP_RETRY_COUNT, that determines the number of segment retransmissions that the IP stack will attempt to perform before resetting the connection. The default value is 9 retransmissions, which amounts to 1:42 minutes, as close as possible to the minimum recommended by RFC1122. Jira: ZEP-1956, ZEP-1957 Signed-off-by:
Leandro Pereira <leandro.pereira@intel.com>
-
Jukka Rissanen authored
This fix is basically a no-op as the rx_buf pointer cannot be null in practice, but in order to avoid Coverity complaining about it add some null pointer checks to the UDP handling code. Coverity-CID: 170124 Jira: ZEP-2235 Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
Jukka Rissanen authored
Jira: ZEP-1884 Signed-off-by:
Jukka Rissanen <jukka.rissanen@linux.intel.com>
-
- 01 Jun, 2017 4 commits
-
-
Johan Hedberg authored
It's mandatory to set chan->ops so explicit checks for it are redundant. What's worse, inconsistent checking for this triggers static code analyzer warnings. This patch fixes Coverity CID 151984. Signed-off-by:
Johan Hedberg <johan.hedberg@intel.com>
-
Jaganath Kanakkassery authored
buf->len should be validated before accessing it since remote can send invalid frame_len which can result in out of bound memory access. This also fix the len check wrt cstate, since current check is not considering the cstate length size and frame_len size. Jira: ZEP-2110 Signed-off-by:
Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
-
Luiz Augusto von Dentz authored
In order to properly queue request there need to be a bt_att_req storage but none of the calls to gatt_write_ccc were using the params causing gatt_send to use bt_att_send and not bt_att_req_send. To fix this now all the callers of gatt_write_ccc do set the params properly but this means that bt_gatt_unsubscribe has to wait for it to be completed before the application can reuse the bt_gatt_subscribe_params. Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
Anas Nashif authored
Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
- 31 May, 2017 4 commits
-
-
Leandro Pereira authored
Waiting for an NET_EVENT_IF_UP before trying to connect isn't sufficient in some cases; for instance, on devices using the MCUX HAL, such as the FRDM-K64F, the interface will have the NET_IF_UP flag set even though the link negotiation didn't yet complete. Executing this sample on such board will produce the following output. Notice the "Enabled 100M..." message right after trying to connect. [dev/eth_mcux] [DBG] eth_0_init: MAC 00:04:9f:6f:91:da net_context_connect error Is the server (broker) up and running? [publisher:247] network_setup: -60 <ERROR> Bye! [dev/eth_mcux] [INF] eth_mcux_phy_event: Enabled 100M full-duplex mode. Even though the returned error is ETIMEDOUT, increasing net_context_connect()'s timeout parameter to several seconds isn't sufficient; other steps performed by network_setup() after the link has been fully established are necessary. As a stopgap measure, try connecting a few times before giving up (more than one connection attempt should be made by application in most cases, anyway.) It might be the case that we need events to monitor ethernet link (re)negotation in addition to the NET_IF_UP bit. Jira: ZEP-2036 Signed-off-by:
Leandro Pereira <leandro.pereira@intel.com> Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Andy Gross authored
This patch adds a dts config include file that is sourced during builds. The config file contents are key value pairs derived from the DTS board descriptions. Jira: ZEP-2119 Change-Id: I4d50e795ba776645b56f0b83410cbb5b0a8fd4fa Signed-off-by:
Andy Gross <andy.gross@linaro.org>
-
Anas Nashif authored
This will generate an additional file that can be sourced by the build system to expose definitions generated by device tree and used for flashing and debugging targets. Change-Id: I184e247f0a8dbd1a4a42dd4b02ea01f2caa70533 Jira: ZEP-2119 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-
Anas Nashif authored
Use argeparse for options and add a fixup option to add on top of generated file. This was previously done in the top Makefile and was generated defines outside of the header main if statement. Jira: ZEP-2147 Change-Id: If65f34a11de27baa770d4ce0ef4fca2abbd30258 Signed-off-by:
Anas Nashif <anas.nashif@intel.com>
-