1. 16 Nov, 2016 19 commits
  2. 15 Nov, 2016 7 commits
    • Szymon Janc's avatar
      Bluetooth: Kconfig: Fix BR/EDR dependencies · ca23390e
      Szymon Janc authored
      
      BR/EDR code should have minimal impact on LE code so to keep it simple
      just require peripheral and central to be enabled when selecting BR/EDR
      support.
      
      Fix following Kconfig warning:
      
      warning: (NETWORKING_WITH_BT && BLUETOOTH_BREDR) selects
          BLUETOOTH_L2CAP_DYNAMIC_CHANNEL which has unmet direct dependencies
          (BLUETOOTH && BLUETOOTH_HCI && BLUETOOTH_HCI_HOST && BLUETOOTH_CONN
          && BLUETOOTH_SMP)
      
      Change-Id: I7f7cb8794def0df6daaa4abfe4596df460f1a2b2
      Signed-off-by: default avatarSzymon Janc <ext.szymon.janc@tieto.com>
      ca23390e
    • Gil Pitney's avatar
      cc3200: Remove CPU_HAS_FPU from cc3200 Kconfig.soc · 2644d370
      Gil Pitney authored
      
      Though Cortex-M4 could optionally have a floating point unit,
      the MCU in the cc3200 in fact does not have an FPU.
      
      Enabling CPU_HAS_FPU caused applications built with CONFIG_FLOAT=y
      to crash during an early call to enable_floating_point().
      
      This patch was validated by running microPython, which is one
      such application.
      
      Change-Id: I8bfd42c456524e152cbbb983001d9540d93fbe98
      Signed-off-by: default avatarGil Pitney <gil.pitney@linaro.org>
      2644d370
    • Benjamin Walsh's avatar
      kernel: remove last instances of tNANO in comments · bef829cf
      Benjamin Walsh authored
      
      Change-Id: I3d533b819422d4b754afb81d3ea67c03bc7f5630
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      (cherry picked from commit 59a382e3)
      bef829cf
    • Benjamin Walsh's avatar
      kernel/arm: add comment about _is_next_thread_current · c625aa26
      Benjamin Walsh authored
      
      Normally, _is_next_thread_current() must be called with interrupts
      locked, but the ARM interrupt exit code does not have to do that. Add
      explanation why.
      
      Change-Id: Id383b47a055fdd6fbd5afffa52772e92febde98f
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      (cherry picked from commit dfa7ca4e)
      c625aa26
    • Benjamin Walsh's avatar
      kernel: fix typo in comment · 4329e5e2
      Benjamin Walsh authored
      
      Change-Id: I1919fd7b0ae3cb3ac434acc2dceddf3afb4a975b
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      (cherry picked from commit ba26678f)
      4329e5e2
    • Inaky Perez-Gonzalez's avatar
      tests/drivers/adc: move to ztest to actually test · 4e4ac94f
      Inaky Perez-Gonzalez authored
      
      This TC is only exercising the API, as we don't have a feedback loop
      mechanism to verify whichever values are fed to the ADC.
      
      Fixed the loop to complete after 10 runs; on each run, print the
      values and actually report the difference between them. With no inputs
      connected (aka: floating), they should be reporting noise relatively
      close to the previous reading, so we might want to use this delta as a
      testing pattern (assert if the delta is higher than some value, but
      I've seen variations as high as 40M units). For now, the test is just
      happy with being able to read them.
      
      The buffer has been re-typed to uint32_t so we can iterate over it
      without casting tricks -- it requires then only a single cast when
      initializing sample.buffer (which shall be a void* anyway).
      
      Duplicated the buffer, so we can flip/flop between two buffers to
      compare against the entries read in the previous run.
      
      v4: fixed missed warnings
      
      Change-Id: If6b48b92231007202d74f5c042f6d0cf3fdcb60a
      Signed-off-by: default avatarInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
      (cherry picked from commit 9e1df6f2)
      4e4ac94f
    • Szymon Janc's avatar
      Bluetooth: Fix use of deprecated PRIMARY init level · 8d10dc63
      Szymon Janc authored
      
      Fix following warning:
      
        CC      subsys/bluetooth/host/monitor.o
      In file included from zephyr/include/drivers/loapic.h:58:0,
                       from zephyr/include/drivers/ioapic.h:22,
                       from zephyr/include/drivers/sysapic.h:20,
                       from zephyr/include/arch/x86/irq_controller.h:33,
                       from zephyr/include/arch/x86/arch.h:28,
                       from zephyr/include/arch/cpu.h:23,
                       from zephyr/include/kernel.h:2458,
                       from zephyr/include/zephyr.h:20,
                       from zephyr/subsys/bluetooth/host/monitor.c:24:
      zephyr/subsys/bluetooth/host/monitor.c: In function
          '_deprecation_check_sys_init_bt_monitor_init0':
      zephyr/include/device.h:130:16: warning: '_INIT_LEVEL_PRIMARY' is
          deprecated [-Wdeprecated-declarations]
        static struct device_config _CONCAT(__config_, dev_name) __used \
                      ^
      zephyr/include/device.h:245:2: note: in expansion of macro
          'DEVICE_AND_API_INIT'
        DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, cfg_info, \
        ^
      zephyr/include/init.h:69:2: note: in expansion of macro 'DEVICE_INIT'
        DEVICE_INIT(_SYS_NAME(init_fn), "", init_fn, NULL, NULL, level, prio)
        ^
      zephyr/subsys/bluetooth/host/monitor.c:193:1: note: in expansion of
          macro 'SYS_INIT'
       SYS_INIT(bt_monitor_init, PRIMARY, MONITOR_INIT_PRIORITY);
       ^
      zephyr/include/device.h:48:31: note: declared here
       static __deprecated const int _INIT_LEVEL_PRIMARY = 1;
      
      Change-Id: I0960bfddddfd1105daf3bb8cc1114e9a25840f2c
      Signed-off-by: default avatarSzymon Janc <ext.szymon.janc@tieto.com>
      8d10dc63
  3. 14 Nov, 2016 1 commit
  4. 13 Nov, 2016 9 commits
  5. 12 Nov, 2016 4 commits
    • Benjamin Walsh's avatar
      kernel: fix mailbox usage of SYS_DLIST_FOR_EACH_NODE() · ade6dc93
      Benjamin Walsh authored
      
      SYS_DLIST_FOR_EACH_NODE() is marked as non-safe when an item is removed
      from the list while looping over it. This is not true per-se, since the
      item, when removed, keeps its next and prev pointers intact; however, it
      is true if the item is then put into a list, be it a different one or
      the same one. To prevent this, SYS_DLIST_FOR_EACH_NODE_SAFE() must be
      used.
      
      _mbox_message_put() can remove items from the rx queue and then put them
      in the ready queue: this would cause the loop to start processing other
      ready threads as item in the rx queue.
      
      k_mbox_get() also removes items, from the tx queue, but does not seem to
      add them to another list; however, it now uses the safe version as well,
      since that is the proper usage.
      
      Change-Id: Ieccbff238fc8a036c0d53d873eaaf55f4f5a14af
      Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      ade6dc93
    • Johan Hedberg's avatar
      Bluetooth: Fix left-over usage of TICKS_NONE and TICKS_UNLIMITED · 1e20e8dc
      Johan Hedberg authored
      
      Switch left-over usage of TICKS_NONE and TICKS_UNLIMITED to the new
      unified kernel counterparts K_NO_WAIT and K_FOREVER.
      
      Change-Id: I2f2a16360e816f9f8791eb216deb3c70b8cc87df
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      1e20e8dc
    • Johan Hedberg's avatar
      Bluetooth: Flag NBLE as deprecated · 79f020be
      Johan Hedberg authored
      
      The NBLE driver is now deprecated and will be removed in a future
      Zephyr version.
      
      Change-Id: I50753f8cf8566ac1e4e73df480c96253c199e6a7
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      79f020be
    • Benjamin Walsh's avatar
      kernel/arch: consolidate tTCS and TNANO definitions · f6ca7de0
      Benjamin Walsh authored
      There was a lot of duplication between architectures for the definition
      of threads and the "nanokernel" guts. These have been consolidated.
      
      Now, a common file kernel/unified/include/kernel_structs.h holds the
      common definitions. Architectures provide two files to complement it:
      kernel_arch_data.h and kernel_arch_func.h. The first one contains at
      least the struct _thread_arch and struct _kernel_arch data structures,
      as well as the struct _callee_saved and struct _caller_saved register
      layouts. The second file contains anything that needs what is provided
      by the common stuff in kernel_structs.h. Those two files are only meant
      to be included in kernel_structs.h in very specific locations.
      
      The thread data structure has been separated into three major parts:
      common struct _thread_base and struct k_thread, and arch-specific struct
      _thread_arch. The first and third ones are included in the second.
      
      The struct s_NANO data structure has been split into two: com...
      f6ca7de0