Commit Graph

13736 Commits

Author SHA1 Message Date
Carles Cufi f82e101e20 Bluetooth: HCI: Add Bluetooth 5.0 LE commands and events
Add definitions for all LE commands and events added in the Bluetooth
5.0 specification.

Change-Id: Ia6d134a1ada67e98c803bb6a1708c3f4361c3bfb
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2017-04-20 08:58:09 +03:00
David B. Kinder 0ffb648210 spell: fix doxygen comment typos: /subsys
Fix doxygen comment typos used to generate API docs

Change-Id: I3efff6f5fa26f87d1e658d6336fef01ce45f5bb0
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-19 18:44:06 +00:00
David B. Kinder 690c5be381 spell: fix doxygen comment typos: /arch
Fix doxygen comment typos used to generate API docs

Change-Id: I94df2e3a2bda248824ed2aeff3dd0eb743f0bf3e
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-19 18:38:43 +00:00
David B. Kinder 30450fea2a spell: fix doxygen comment typos: /boards /samples
Fix doxygen comment typos used to generate API docs

Change-Id: I248d53000d8e57b902b9a18fdcfc9e995142a8b3
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-19 18:38:19 +00:00
David B. Kinder 896cf7a00a spell: fix doxygen comment typos: /drivers
Fix doxygen comment typos used to generate API docs

Change-Id: I6fd5051c99bdcc731740c92001e525349c254d85
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-19 10:45:34 -07:00
Anas Nashif 8df439b40b kernel: rename nanoArchInit->kernel_arch_init
Change-Id: I094665e583f506cc71185cb6b8630046b2d4b2f8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 10:59:35 -05:00
Anas Nashif af6bf1c9ed kernel: remove legacy semaphore groups support
Change-Id: Ia84ed11de3c88e714c275c42556c1dba2bfea3b6
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 10:59:35 -05:00
Anas Nashif 45a7e5d076 kernel: remove legacy.h and MDEF support
Change-Id: I953797f6965354c5b599f4ad91d63901401d2632
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 10:59:35 -05:00
Kumar Gala 34a57db844 Revert "kernel: Convert formatter strings to use PRI defines"
This reverts commit 7b9dc107a8.

We revert this as we intent to move away from {u}int{8,16,32,64}_t types
to our own internal types for sized variables so we shouldn't need the
PRI macros anymore.

Change-Id: I1d9d797fee47ca266867ae65656c150f8fe2adb2
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19 10:50:51 -05:00
Kumar Gala fded58d2af Revert "arch: Convert formatter strings to use PRI defines"
This reverts commit da8bff6b20.

We revert this as we intent to move away from {u}int{8,16,32,64}_t types
to our own internal types for sized variables so we shouldn't need the
PRI macros anymore.

Change-Id: Ibb1fae7500bddb4772b8830d497a0e5f78b44bcc
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19 10:50:51 -05:00
Kumar Gala 8814f4f7b4 Revert "drivers/sensor: Convert formatter strings to use PRI defines"
This reverts commit e60af3be66.

We revert this as we intent to move away from {u}int{8,16,32,64}_t types
to our own internal types for sized variables so we shouldn't need the
PRI macros anymore.

Change-Id: I4a57eb2c23cb1b137112224f604602d40c7cce4f
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19 10:50:51 -05:00
Anas Nashif 306e15e0a1 kernel: remove legacy kernel support
Change-Id: Iac1e21677d74f81a93cd29d64cce261676ae78a6
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 15:48:37 +00:00
Anas Nashif 6a0228abaa kernel: thread: remove legacy support
Change-Id: Idee30557237e613a5cfca93e752f05ebd18a186d
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 15:48:36 +00:00
Anas Nashif 5e1f709b58 kernel: mailbox: remove legacy support
Change-Id: I218fbec7af4c4e69e4dc41c988f225b558600181
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-19 15:48:36 +00:00
David B. Kinder 8b986d7697 spell: fix comment typos: /include
Change-Id: I20d315ef5f8a2da5cfe28b194126907adda9e13c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-19 00:41:25 +00:00
David B. Kinder 2e5d517ee4 spell: fix comment typos: /include/arch/*
Scanning for typos in comments and strings.

Change-Id: I3d4db89e0824959252c79c19baa50028354247bd
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-04-18 16:22:55 -07:00
Andrew Boie c09b4b84fc sanitycheck: catch ValueErrors when evaulating expressions
Change-Id: Iae4eb0b242427b98dd6515676c024f307446e49d
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-04-18 20:51:48 +00:00
Andrew Boie 2d9a559df8 tests: crypto: enable on other arches
Some tests have large RAM requirements, appropriate filters added.
Redundant 'build_only = false' removed.

Issue: ZEP-1721
Change-Id: Id8b06b2ea8a63cf19cf155a75f1513810c383521
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-04-18 20:51:39 +00:00
Andrew Boie 31e772de20 expr_parser: fix issue with hex values in environment
Hex mumeric values directly in the expression were cast correctly
via the t_HEX rule, but ValueErrors would occur if a hex value was
looked up due to the expansion of some environment symbol.

Change-Id: Ia98dfea91eff4ed95778922d38d2967284f4e31b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-04-18 20:51:26 +00:00
Youvedeep Singh 76fc2f92df test_tickless: Change test_tickless location to tests/kernel/test_tickless/
Tickless test dependency on legacy API is resolved, Changing
test directory from tests/legacy/kernel/test_tickless to
tests/kernel/test_tickless/.

Jira: ZEP-2008

Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Change-Id: I0b53ae6eff3a915d988d3234592eb5f8b425b371
2017-04-18 22:25:01 +05:30
Youvedeep Singh 576cfd9e74 test_tickless: replacing depreciated APIs with new one.
As part of Zephyr release 1.9 some APIs will be depreciated. This patch
replaces two of such APIs (task_sleep(ticks), sys_tick_get_32()) with
new ones (k_sleep(ms), k_uptime_get_32()).

Jira: ZEP-2008

Change-Id: Ic0e05906dadfb2ddaea9d0a8b738294dc81430f9
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
2017-04-18 22:08:19 +05:30
Youvedeep Singh 9031c55566 test_sleep: move test_sleep from tests/legacy/kernel to tests/kernel
As test_sleep does not have dependency over legacy APIs.
So moving files from tests/legacy/kernel to tests/kernel.

Jira: ZEP-2009

Change-Id: I2439391ba6d0a194d07a0d1b48911d37b2f493b0
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
2017-04-18 09:39:15 +05:30
Youvedeep Singh d353800879 test_sleep: replacing depreciated APIs with new one.
As part of Zephyr Release 1.9 some APIs will be depreciated.
This patch replaces APIs related to semophore init, kernel sleep,
task spawn etc.

Jira: ZEP-2009

Change-Id: I1fe09e9592f503c3413d51857fd740703173c042
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
2017-04-18 09:26:58 +05:30
Johan Hedberg 191cb2d0fc samples/boards/microbit: Add sound sample
Add a sample demonstrating sound output using PWM to a piezo buzzer
connected to the external edge connector port P0.

Change-Id: I8c0902fd935f2eb3b9979476a7540e7a0216ca63
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2017-04-18 01:55:10 +00:00
Sharron LIU eea12f6f14 tests: kernel: add tickless test
Added test cases to verify tickless idle concepts defined in
https://www.zephyrproject.org/doc/subsystems/power_management.html#tickless-idle

Test points:
verify system clock recovery after exiting tickless idle;
verify slicing scheduler behaves as expected

Jira: ZEP-339

Change-Id: Ic0a86d725e9692aa217375cedc7396372a026a88
Signed-off-by: Sharron LIU <sharron.liu@intel.com>
2017-04-18 01:50:47 +00:00
Kumar Gala 7fb0e36060 tests: sprintf: cleanup to work with newlib
newlib doesn't implement the internal buffer the same way that minimal
libc does, so only run that check with min libc (ie !CONFIG_NEWLIB_LIBC).
Also, reported the length we did get if the buffer is to big.  Finally
include <stdarg.h> since we are dealing with va_lists and such.

Change-Id: I6b23e448e5785df978ac8c2757099e2b8aaace54
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-18 00:27:33 +00:00
Kumar Gala e60af3be66 drivers/sensor: Convert formatter strings to use PRI defines
To allow for various libc implementations (like newlib) in which the way
various {u}int{8,16,32}_t types are defined vary between both libc
implementations and across architectures we need to utilize the PRI
defines.

Change-Id: I69e60e3823028389b314adaf6e279fd47fde1182
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-17 11:09:36 -05:00
Kumar Gala da8bff6b20 arch: Convert formatter strings to use PRI defines
To allow for various libc implementations (like newlib) in which the way
various {u}int{8,16,32}_t types are defined vary between both libc
implementations and across architectures we need to utilize the PRI
defines.

Change-Id: Ic4e65db52c8d693228cf80584283d4d06e68b5ad
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-17 11:09:36 -05:00
Kumar Gala 7b9dc107a8 kernel: Convert formatter strings to use PRI defines
To allow for various libc implementations (like newlib) in which the way
various {u}int{8,16,32}_t types are defined vary between both libc
implementations and across architectures we need to utilize the PRI
defines.

Change-Id: Ie884fb67015502288152ecbd64c37961a4f538e4
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-17 11:09:36 -05:00
Kumar Gala ddece1ccd4 kernel: include inttypes.h to get access to PRI defines in most spots
We need to move using the PRI* defines to use newlib as the default libc
as different arch's define various base types like {u}int32_t
differently.  To deal with that in a consistent manor we need access to
the defines in most spots for print{f,k} or logging functions.

Change-Id: Ic1fbef75cbaee211803d9aaf506056e5e31e73f3
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-17 11:09:31 -05:00
Kumar Gala ab8a3b2c0d tests: app_kernel: limit to systems with >32K of memory
We need a bit over 32k of memory to build/run the app_kernel benchmarks.

Change-Id: Iddfeb073f8ea87dc6323775a288b83efa88fdaea
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 16:12:57 -05:00
Kumar Gala ab1555ef9a drivers: display: mb_display: Add include of toolchain.h for __printf_like
When we build with newlib __printf_like is already defined so we run
into issues.  We should include toolchain.h to properly handle this.

Change-Id: Ia961a9f1d3f7bf965e4115eb93a7ba6a62220905
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 19:28:49 +00:00
Kumar Gala 21309ea44b lib: json: use explicit unsigned char to avoid array subscript error
If we use newlib the isdigit (and other similar functions) return an
error as char can possibly be viewed as signed:

usr/include/ctype.h:57:54: error: array subscript has type ‘char’ [-Werror=char-subscripts]
 #define __ctype_lookup(__c) ((__ctype_ptr__+sizeof(""[__c]))[(int)(__c)])

Being explicit about the char being unsigned char deals with this.

Change-Id: If2416218220ef5b29f1a69470cbcc6b4fd49ef86
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 19:03:41 +00:00
Anas Nashif 4c80a2fb71 tests: crypto: disable 2 tests that are ridiculously slow
Change-Id: I54194c06a1f3dfe1412dbfff50e9866134cf881a
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-14 10:42:29 -04:00
Anas Nashif e8abb973e1 tests: app_kernel: enable ARM for this benchmark
Change-Id: I7d45bd5e84f174a951170c7b4ab464110976a00f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-14 10:42:29 -04:00
Anas Nashif e521d6e888 tests: remove legacy tag from ported tests
Change-Id: I77484a704062013577417e7d05ad65cf268d74b2
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-14 10:42:29 -04:00
Kumar Gala 360b48d632 Merge arm branch into master
Main changes:

- Device tree support for all STM32 based SoC/Boards
- Support for NXP KW40Z SoC & hexiwear_kw40z board
- Atmel SAM I2C, UART & GPIO drivers
- Some various Nordic SoC platform cleanups

----------------------------------------------------------------
Erwan Gouriou (6):
      dts: provide stm32 soc dtsi files for stm32 base boards
      dts: add dts for nucleo boards
      dts: provide dts for stm32 eval boards
      dts: provide dts files for non st stm32 based boards
      drivers: i2c: stm32: fix i2c_2 instance config
      drivers: pinmux: stm32l4 fix

Gustavo Denardin (2):
      arm: Support for MKL25Z soc
      arm: GPIO driver modifications for MKL25Z soc support

Kumar Gala (15):
      dts: arm: Introduce st/mem.h for FLASH & SRAM sizes
      sanitcheck: add nrf52_blenano2
      serial: mcux: remove bits related to !HAS_DTS
      dts: arm: st: Make flash/sram sizes human readable
      dts: arm: st: Add additional SoCs into mem.h
      dts: arm: ST: Cleanup DTS bits on STM32L4 SoCs
      arm: dts: st: Convert STM32F4 based boards to dts
      arm: dts: st: Convert STM32F1 based boards to dts
      arm: dts: st: Convert STM32F3 based boards to dts
      serial: stm32: remove bits related to !HAS_DTS
      arm: st: dts: remove last !HAS_DTS from stm32 SoCs
      arm: nxp: kl2x: remove HAS_DTS references
      arm: nrf52: Introduce NRF52 SoC Specific config options
      arm: curie_ble: Report curie_ble as a unique board
      arm: dts: Add DTS support for NRF52832 SoC

Maureen Helm (6):
      ext: mcux: Import ksdk 1.3 device header files for kw40z
      ext: mcux: Adapt ksdk 1.3 for kw40z to work with mcux 2.x drivers
      kw40z: Add kw40z SoC
      hexiwear_kw40z: Add hexiwear_kw40z board
      samples: nfc_hello: Add CONFIG_SERIAL=y to project conf
      sanitycheck: Add hexiwear_kw40z

Piotr Mienkowski (3):
      drivers: Add Atmel SAM family I2C (TWIHS) driver
      drivers: Add Atmel SAM serial (UART) driver
      drivers: Extend Atmel SAM GPIO driver

 arch/arm/soc/atmel_sam/common/soc_gpio.h           |    49 +-
 arch/arm/soc/atmel_sam/same70/soc_pinmap.h         |    60 +-
 ...ig.nrf52832 => Kconfig.defconfig.nrf52832_QFAA} |     8 +-
 ...ig.nrf52840 => Kconfig.defconfig.nrf52840_QIAA} |     6 +-
 .../soc/nordic_nrf5/nrf52/Kconfig.defconfig.series |     2 +
 arch/arm/soc/nordic_nrf5/nrf52/Kconfig.soc         |    18 +-
 arch/arm/soc/nxp_kinetis/Kconfig                   |     1 +
 .../soc/nxp_kinetis/kl2x/Kconfig.defconfig.mkl25z4 |    60 +
 .../soc/nxp_kinetis/kl2x/Kconfig.defconfig.series  |    15 +
 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.series       |    16 +
 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.soc          |    78 +
 arch/arm/soc/nxp_kinetis/kl2x/Makefile             |     8 +
 arch/arm/soc/nxp_kinetis/kl2x/linker.ld            |    31 +
 arch/arm/soc/nxp_kinetis/kl2x/soc.c                |   127 +
 arch/arm/soc/nxp_kinetis/kl2x/soc.h                |    65 +
 .../soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw40z4  |    60 +
 arch/arm/soc/nxp_kinetis/kwx/Kconfig.soc           |    14 +
 arch/arm/soc/st_stm32/Kconfig.defconfig            |    12 -
 .../soc/st_stm32/stm32f1/Kconfig.defconfig.series  |     6 -
 .../st_stm32/stm32f1/Kconfig.defconfig.stm32f103xb |     8 -
 .../st_stm32/stm32f1/Kconfig.defconfig.stm32f103xe |     6 -
 .../st_stm32/stm32f1/Kconfig.defconfig.stm32f107xc |     6 -
 .../soc/st_stm32/stm32f3/Kconfig.defconfig.series  |    10 -
 .../st_stm32/stm32f3/Kconfig.defconfig.stm32f303xc |     6 -
 .../st_stm32/stm32f3/Kconfig.defconfig.stm32f334x8 |     6 -
 .../st_stm32/stm32f3/Kconfig.defconfig.stm32f373xc |     6 -
 .../soc/st_stm32/stm32f4/Kconfig.defconfig.series  |    10 -
 .../st_stm32/stm32f4/Kconfig.defconfig.stm32f401xe |     6 -
 .../st_stm32/stm32f4/Kconfig.defconfig.stm32f407xx |     6 -
 .../st_stm32/stm32f4/Kconfig.defconfig.stm32f411xe |     6 -
 .../st_stm32/stm32f4/Kconfig.defconfig.stm32f429xx |     6 -
 .../soc/st_stm32/stm32l4/Kconfig.defconfig.series  |     6 -
 .../st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx |     9 -
 boards/arm/96b_carbon/96b_carbon_defconfig         |     4 +-
 boards/arm/96b_nitrogen/Kconfig.board              |     2 +-
 boards/arm/curie_ble/Kconfig.defconfig             |     4 +-
 boards/arm/hexiwear_kw40z/Kconfig.board            |    11 +
 boards/arm/hexiwear_kw40z/Kconfig.defconfig        |    65 +
 boards/arm/hexiwear_kw40z/Makefile                 |    10 +
 boards/arm/hexiwear_kw40z/board.h                  |    12 +
 boards/arm/hexiwear_kw40z/doc/hexiwear_kw40z.rst   |   203 +
 boards/arm/hexiwear_kw40z/hexiwear_kw40z_defconfig |    12 +
 boards/arm/hexiwear_kw40z/pinmux.c                 |    37 +
 boards/arm/nrf52840_pca10056/Kconfig.board         |     2 +-
 .../nrf52840_pca10056/nrf52840_pca10056_defconfig  |     2 +-
 boards/arm/nrf52_blenano2/Kconfig.board            |     2 +-
 boards/arm/nrf52_blenano2/nrf52_blenano2_defconfig |     2 +-
 boards/arm/nrf52_pca10040/Kconfig.board            |     2 +-
 boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig |     2 +-
 boards/arm/nucleo_f103rb/nucleo_f103rb_defconfig   |     4 +-
 boards/arm/nucleo_f334r8/nucleo_f334r8_defconfig   |     4 +-
 boards/arm/nucleo_f401re/nucleo_f401re_defconfig   |     4 +-
 boards/arm/nucleo_f411re/nucleo_f411re_defconfig   |     4 +-
 boards/arm/nucleo_l476rg/nucleo_l476rg_defconfig   |     1 -
 .../arm/olimexino_stm32/olimexino_stm32_defconfig  |     1 -
 .../arm/sam_e70_xplained/doc/sam_e70_xplained.rst  |     4 +
 boards/arm/stm3210c_eval/stm3210c_eval_defconfig   |     4 +-
 boards/arm/stm32373c_eval/stm32373c_eval_defconfig |     4 +-
 boards/arm/stm32_mini_a15/stm32_mini_a15_defconfig |     4 +-
 drivers/gpio/gpio_mcux.c                           |    52 +
 drivers/i2c/Kconfig                                |     7 +
 drivers/i2c/Makefile                               |     1 +
 drivers/i2c/i2c_stm32lx.c                          |     2 +-
 drivers/i2c/twihs_sam.c                            |   391 +
 drivers/pinmux/stm32/pinmux_stm32l4x.h             |     1 +
 drivers/serial/Kconfig                             |     2 +
 drivers/serial/Kconfig.mcux                        |    72 -
 drivers/serial/Kconfig.mcux_lpuart                 |    12 -
 drivers/serial/Kconfig.nrf5                        |     2 +
 drivers/serial/Kconfig.stm32                       |    50 -
 drivers/serial/Kconfig.uart_sam                    |   176 +
 drivers/serial/Makefile                            |     1 +
 drivers/serial/uart_sam.c                          |   274 +
 drivers/serial/uart_stm32.c                        |    41 -
 dts/arm/96b_carbon.dts                             |    29 +
 dts/arm/96b_carbon.fixup                           |    19 +
 dts/arm/Makefile                                   |    10 +
 dts/arm/hexiwear_kw40z.dts                         |    28 +
 dts/arm/hexiwear_kw40z.fixup                       |     4 +
 dts/arm/nordic/mem.h                               |    31 +
 dts/arm/nordic/nrf52832.dtsi                       |    31 +
 dts/arm/nucleo_f103rb.dts                          |    24 +
 dts/arm/nucleo_f103rb.fixup                        |    13 +
 dts/arm/nucleo_f334r8.dts                          |    24 +
 dts/arm/nucleo_f334r8.fixup                        |    13 +
 dts/arm/nucleo_f401re.dts                          |    29 +
 dts/arm/nucleo_f401re.fixup                        |    19 +
 dts/arm/nucleo_f411re.dts                          |    29 +
 dts/arm/nucleo_f411re.fixup                        |    19 +
 dts/arm/nucleo_l476rg.dts                          |    20 +-
 dts/arm/nxp/nxp_kw40z.dtsi                         |   185 +
 dts/arm/olimexino_stm32.dts                        |    19 +-
 dts/arm/st/mem.h                                   |    43 +
 dts/arm/st/stm32f103Xb.dtsi                        |    48 +
 dts/arm/st/stm32f103Xe.dtsi                        |    48 +
 dts/arm/st/stm32f103xb.dtsi                        |    97 -
 dts/arm/st/stm32f107.dtsi                          |    45 +
 dts/arm/st/stm32f334.dtsi                          |    45 +
 dts/arm/st/stm32f373.dtsi                          |    45 +
 dts/arm/st/stm32f4.dtsi                            |    45 +
 dts/arm/st/stm32f401.dtsi                          |     7 +
 dts/arm/st/stm32f411.dtsi                          |     7 +
 dts/arm/st/stm32l476.dtsi                          |    82 +-
 dts/arm/stm3210c_eval.dts                          |    24 +
 dts/arm/stm3210c_eval.fixup                        |    13 +
 dts/arm/stm32373c_eval.dts                         |    24 +
 dts/arm/stm32373c_eval.fixup                       |    13 +
 dts/arm/stm32_mini_a15.dts                         |    24 +
 dts/arm/stm32_mini_a15.fixup                       |    13 +
 dts/arm/yaml/nordic,nrf-uart.yaml                  |    30 +
 dts/arm/yaml/nordic,nrf-uarte.yaml                 |    30 +
 ext/hal/nxp/mcux/README                            |     8 +-
 ext/hal/nxp/mcux/devices/MKW20Z4/MKW20Z4.h         | 13769 +++++++++++
 .../nxp/mcux/devices/MKW20Z4/MKW20Z4_features.h    |  1350 ++
 .../mcux/devices/MKW20Z4/fsl_device_registers.h    |    56 +
 ext/hal/nxp/mcux/devices/MKW20Z4/system_MKW20Z4.c  |   296 +
 ext/hal/nxp/mcux/devices/MKW20Z4/system_MKW20Z4.h  |   294 +
 ext/hal/nxp/mcux/devices/MKW30Z4/MKW30Z4.h         | 13769 +++++++++++
 .../nxp/mcux/devices/MKW30Z4/MKW30Z4_features.h    |  1350 ++
 .../mcux/devices/MKW30Z4/fsl_device_registers.h    |    56 +
 ext/hal/nxp/mcux/devices/MKW30Z4/system_MKW30Z4.c  |   296 +
 ext/hal/nxp/mcux/devices/MKW30Z4/system_MKW30Z4.h  |   294 +
 ext/hal/nxp/mcux/devices/MKW40Z4/MKW40Z4.h         | 13769 +++++++++++
 ext/hal/nxp/mcux/devices/MKW40Z4/MKW40Z4.svd       | 23338 +++++++++++++++++++
 .../nxp/mcux/devices/MKW40Z4/MKW40Z4_features.h    |  1350 ++
 ext/hal/nxp/mcux/devices/MKW40Z4/fsl_clock.c       |     1 +
 ext/hal/nxp/mcux/devices/MKW40Z4/fsl_clock.h       |     1 +
 .../mcux/devices/MKW40Z4/fsl_device_registers.h    |    56 +
 ext/hal/nxp/mcux/devices/MKW40Z4/system_MKW40Z4.c  |   296 +
 ext/hal/nxp/mcux/devices/MKW40Z4/system_MKW40Z4.h  |   294 +
 samples/nfc/nfc_hello/prj.conf                     |     1 +
 scripts/sanity_chk/arches/arm.ini                  |     3 +-
 132 files changed, 73563 insertions(+), 536 deletions(-)
 rename arch/arm/soc/nordic_nrf5/nrf52/{Kconfig.defconfig.nrf52832 => Kconfig.defconfig.nrf52832_QFAA} (75%)
 rename arch/arm/soc/nordic_nrf5/nrf52/{Kconfig.defconfig.nrf52840 => Kconfig.defconfig.nrf52840_QIAA} (79%)
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.defconfig.mkl25z4
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.defconfig.series
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.series
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/Kconfig.soc
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/Makefile
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/linker.ld
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/soc.c
 create mode 100644 arch/arm/soc/nxp_kinetis/kl2x/soc.h
 create mode 100644 arch/arm/soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw40z4
 create mode 100644 boards/arm/hexiwear_kw40z/Kconfig.board
 create mode 100644 boards/arm/hexiwear_kw40z/Kconfig.defconfig
 create mode 100644 boards/arm/hexiwear_kw40z/Makefile
 create mode 100644 boards/arm/hexiwear_kw40z/board.h
 create mode 100644 boards/arm/hexiwear_kw40z/doc/hexiwear_kw40z.rst
 create mode 100644 boards/arm/hexiwear_kw40z/hexiwear_kw40z_defconfig
 create mode 100644 boards/arm/hexiwear_kw40z/pinmux.c
 create mode 100644 drivers/i2c/twihs_sam.c
 create mode 100644 drivers/serial/Kconfig.uart_sam
 create mode 100644 drivers/serial/uart_sam.c
 create mode 100644 dts/arm/96b_carbon.dts
 create mode 100644 dts/arm/96b_carbon.fixup
 create mode 100644 dts/arm/hexiwear_kw40z.dts
 create mode 100644 dts/arm/hexiwear_kw40z.fixup
 create mode 100644 dts/arm/nordic/mem.h
 create mode 100644 dts/arm/nordic/nrf52832.dtsi
 create mode 100644 dts/arm/nucleo_f103rb.dts
 create mode 100644 dts/arm/nucleo_f103rb.fixup
 create mode 100644 dts/arm/nucleo_f334r8.dts
 create mode 100644 dts/arm/nucleo_f334r8.fixup
 create mode 100644 dts/arm/nucleo_f401re.dts
 create mode 100644 dts/arm/nucleo_f401re.fixup
 create mode 100644 dts/arm/nucleo_f411re.dts
 create mode 100644 dts/arm/nucleo_f411re.fixup
 create mode 100644 dts/arm/nxp/nxp_kw40z.dtsi
 create mode 100644 dts/arm/st/mem.h
 create mode 100644 dts/arm/st/stm32f103Xb.dtsi
 create mode 100644 dts/arm/st/stm32f103Xe.dtsi
 delete mode 100644 dts/arm/st/stm32f103xb.dtsi
 create mode 100644 dts/arm/st/stm32f107.dtsi
 create mode 100644 dts/arm/st/stm32f334.dtsi
 create mode 100644 dts/arm/st/stm32f373.dtsi
 create mode 100644 dts/arm/st/stm32f4.dtsi
 create mode 100644 dts/arm/st/stm32f401.dtsi
 create mode 100644 dts/arm/st/stm32f411.dtsi
 create mode 100644 dts/arm/stm3210c_eval.dts
 create mode 100644 dts/arm/stm3210c_eval.fixup
 create mode 100644 dts/arm/stm32373c_eval.dts
 create mode 100644 dts/arm/stm32373c_eval.fixup
 create mode 100644 dts/arm/stm32_mini_a15.dts
 create mode 100644 dts/arm/stm32_mini_a15.fixup
 create mode 100644 dts/arm/yaml/nordic,nrf-uart.yaml
 create mode 100644 dts/arm/yaml/nordic,nrf-uarte.yaml
 create mode 100644 ext/hal/nxp/mcux/devices/MKW20Z4/MKW20Z4.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW20Z4/MKW20Z4_features.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW20Z4/fsl_device_registers.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW20Z4/system_MKW20Z4.c
 create mode 100644 ext/hal/nxp/mcux/devices/MKW20Z4/system_MKW20Z4.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW30Z4/MKW30Z4.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW30Z4/MKW30Z4_features.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW30Z4/fsl_device_registers.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW30Z4/system_MKW30Z4.c
 create mode 100644 ext/hal/nxp/mcux/devices/MKW30Z4/system_MKW30Z4.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/MKW40Z4.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/MKW40Z4.svd
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/MKW40Z4_features.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/fsl_clock.c
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/fsl_clock.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/fsl_device_registers.h
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/system_MKW40Z4.c
 create mode 100644 ext/hal/nxp/mcux/devices/MKW40Z4/system_MKW40Z4.h

Change-Id: I8d3fcd3ff46b33f5cc622b65e09da513b483fc3b
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 06:53:54 -05:00
Kumar Gala 4ada031fb5 unit: Fixup crc unit test for zassert change
We renamed ztest's assert to zassert and the crc test case wasn't
updated to match so it doesn't build.

Change-Id: I67cd5bb6eef0875f31b8825d5c3aa5e1fa46af04
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 06:08:27 -05:00
Piotr Mienkowski 929c159262 drivers: Extend Atmel SAM GPIO driver
Add soc_gpio_get(), soc_gpio_debounce_length_set() functions to Atmel
SAM soc_gpio driver.

Change-Id: I541c6fead9a308dd2e67c59dabe67b87cf1628ef
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-04-14 05:56:54 -05:00
Piotr Mienkowski 34c16ad2f7 drivers: Add Atmel SAM serial (UART) driver
Added serial (UART) driver for Atmel SAM MCU family.

Note:
- Error handling is not implemented
- The driver works only in polling mode, interrupt mode is
  not implemented.

Tested on Atmel SMART SAM E70 Xplained board

Origin: Original

Jira: ZEP-1959
Change-Id: I3e770fd1feb2ddf92cf405a9aa17be92eb32e19b
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-04-14 05:56:54 -05:00
Piotr Mienkowski 5c83e3817d drivers: Add Atmel SAM family I2C (TWIHS) driver
Added I2C bus (TWIHS) driver for Atmel SAM MCU family. Only
I2C Master Mode with 7 bit addressing is currently supported.

Tested on Atmel SMART SAM E70 Xplained board

Origin: Original

Jira: ZEP-1866
Change-Id: Ic5aa7b6b21295feccae883d580b38bbeaf2ce291
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-04-14 05:56:54 -05:00
Kumar Gala 77f65b907f arm: dts: Add DTS support for NRF52832 SoC
Add plumbing to build system and SoC level dtsi for the NRF52832 SoC.
We additionally add the necessary yaml files for the UART on the NRF52
SoCs.

Change-Id: I3b4a821b2993827e33d8e84bdbbc759d1521f8bd
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 05:56:54 -05:00
Kumar Gala edb3ad6b89 arm: curie_ble: Report curie_ble as a unique board
CONFIG_BOARD was set to arduino_101_ble instead of curie_ble.  Fix this
so the BOARD_NAME, BOARD, board dir, all are in sync.

Change-Id: I5f2a4f1aeec7c20f042e11b96e1c87883ad4df4b
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 05:56:54 -05:00
Kumar Gala 6959c4516e arm: nrf52: Introduce NRF52 SoC Specific config options
Introduce SoC specific config options similar to what exists on NRF51,
this is mostly to help distinguish between SRAM & Flash sizes on
different variants.

Also deleted some unnecessary setting of CONFIG_SOC_NRF528{32,40} in the
board defconfig files.

Change-Id: I3aaedf0c15423ae12636f87b8e6a39070cbb2c6f
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-14 05:56:54 -05:00
Maureen Helm 14ca99af1e sanitycheck: Add hexiwear_kw40z
Jira: ZEP-1391
Change-Id: I32d0acfc03c57b305667746e9d8315100dec6833
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00
Maureen Helm 1928632a97 samples: nfc_hello: Add CONFIG_SERIAL=y to project conf
Most boards enable a serial driver by default, but the hexiwear_kw40z
does not because it uses Segger RTT for the console. This sample
requires a serial driver, so add CONFIG_SERIAL=y to its project conf
file.

Jira: ZEP-1391
Change-Id: Iee813d1054378040fe9ff72a3ca1ea7bd66bcdfe
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00
Maureen Helm 8dd59f3d49 hexiwear_kw40z: Add hexiwear_kw40z board
Adds initial support and documentation for the kw40z on the hexiwear
board.

Jira: ZEP-1391
Change-Id: Idb58bfb3c2951b1f737a8c547860bde4ef4d9a3e
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00
Maureen Helm f487b208dd kw40z: Add kw40z SoC
Adds initial support for the kw40z SoC. This SoC has all the same
peripherals as the kw41z but with less flash and ram, so the defconfig
and dts are nearly the same.

Jira: ZEP-1388
Change-Id: Ib804451e8c2c71c4ff7d342bf23f6567d1542a2d
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00
Maureen Helm b9e209e4fc ext: mcux: Adapt ksdk 1.3 for kw40z to work with mcux 2.x drivers
Reuses the kw41z clock driver for kw40z via preprocessor includes.
Copies the kw41z fsl_device_registers.h to kw40z and subset devices with
minor modifications for each device.

Jira: ZEP-1388
Change-Id: Ifae16eb9b7e7d18fc13c22dc51887fc1d8a5e21d
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00
Maureen Helm 4c24c8343d ext: mcux: Import ksdk 1.3 device header files for kw40z
Imports device header files for the kw40z and its subset devices (kw30z,
kw20z) from the Kinetis SDK 1.3. The kw40z has all the same peripherals
as the kw41z but less flash and ram, therefore we can use the MCUXpresso
SDK 2.x drivers for kw41z with the KSDK device header files for the
kw40z.

Origin: https://www.nxp.com/webapp/Download?colCode=KW40Z-CONNECTIVITY-SOFTWARE&appType=license&Parent_
Maintained-by: External

Jira: ZEP-1388
Change-Id: I30b283a0c9dd4f88b8c21c03814dcdff76b684c4
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-04-14 05:56:53 -05:00