Commit graph

41120 commits

Author SHA1 Message Date
Anas Nashif
345fdd52b1 kernel: document behavior of k_free
Document that when passing NULL to k_free, nothing happens.

Jira: ZEP-1475
Change-Id: I0efab2c8c670b0cebfd3e72aa8cd64857798abea
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-21 13:53:20 +00:00
Anas Nashif
367bf7c175 doc: remove device_sync_call documentation
This is obsolete and not available anymore in the unified kernel.

Change-Id: I39f6afd5285a2286fe954bd8dc501f888d0d9003
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-21 13:53:12 +00:00
Anas Nashif
a4690a4ae0 mailmap: added axy (for Anas Nashif)
Change-Id: I1ed70f202f51fa53ecfa9bfd6d076fe33b5252f7
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-21 13:49:59 +00:00
Sergio Rodriguez
b52080749f drivers: gpio_cmsdk_ahb: Fix erronous if statements
The GPIO_INT_LEVEL and GPIO_INT_ACTIVE_LOW values are  zero so the
statements are never executed then is better use the bit complement
masks

This issue was reported by Coverity

Coverity-CID: 157586

Change-Id: Ic8b20660a991dd3d0c71248f84c917e5ce5c3c7c
Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
2016-12-21 13:49:40 +00:00
Javier B Perez
814534ba4e compare footprint: add sanity args files
Added sanity args to be used by the compare footprint.
Please notice that compare footprint use sanitycheck to
build footprint apps for base commit and for current commit.
This in order to collect the information and generate the diff.

Change-Id: I6f86bbfa020999b3f26e93a608fc7b34ee508e10
Signed-off-by: Javier B Perez <javier.b.perez.hernandez@intel.com>
2016-12-21 13:46:56 +00:00
Marcus Shawcroft
6a1632ed26 eth/ksdk: Use k_sem instead of nano_sem
Change-Id: I6b024f6054dede28b74f97102d80ef50f9e45a04
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-12-21 12:58:11 +00:00
Marcus Shawcroft
4ede76a6f9 eth/ksdk: Use k_sem_init() initial count
Remove the existing code that iterates over k_sem_give() and setup the
initial counter directly, take the opportunity to set the maximum count.

Change-Id: Ib91ea263567ff761e4953c142a22a56658efe293
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-12-21 12:58:11 +00:00
Chuck Jordan
5fbbe44883 arc: em_starterkit default changed to EM7D
ZEP-1317 records a problem were em_starterkit appears to boot up
EM7d, sometimes, due to a misread of the dip-switches.
This could be a mechanical issue. I am seeing it on my board too,
and I often have to struggle with the dip-switch to get it to boot
EM9D. For automated-testing, perhaps it is better if the default is
EM7D, since this is the all-switches-up and contact in the switch
isn't needed. Meanwhile, I'll work with our board team to try to get
to the bottom of this.

ZEP-1317

Change-Id: I41095c1d8b07ce156cc3856a50196c064af2ee18
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2016-12-21 12:56:23 +00:00
Flavio Santes
d8083e92ab arch/arc, usb, ztest: Add the ARG_UNUSED macro
Add the ARG_UNUSED macro to avoid compiler warnings.

Change-Id: Ie07f52e742bdb93fb35301bd50cce3865f229623
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:54 +00:00
Flavio Santes
358056692f drivers/usb: Use the right data-type
Use uint32_t instead of int.

Change-Id: I7d73a3fea61e48663aeada6792b9b6c19db1cb35
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:53 +00:00
Flavio Santes
d47abac73d samples: Add the ARG_UNUSED macro
Avoid compiler warnings by incorporating the ARG_UNUSED macro.

Change-Id: Iea567bf5f42d9f609bf68d171e0bc0e03b62b821
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:53 +00:00
Flavio Santes
3ec300fd94 shell: Init structure and add the ARG_UNUSED macro
The shell_cmd structure has three parameters and only two were
initialized. So, this commit initializes the remaining parameter
and also adds the ARG_UNUSED macro to avoid compiler warnings.

Change-Id: I667a4e9839ec5acd526df0bb465beb2062518315
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:53 +00:00
Flavio Santes
501dd224ad drivers: Add the ARG_UNUSED macro
Add the ARG_UNUSED macro to avoid compiler warnings.

Change-Id: Ia62125b5e93671aa0ab0891c92ae9fa06fadb09b
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:52 +00:00
Flavio Santes
5799495a5b drivers/sensor: Add the ARG_UNUSED macro
Add the ARG_UNUSED macro to avoid compiler warnings.

Change-Id: I2e0d8ccdcd2d525e109cee6c3bd1035640618eb0
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:51 +00:00
Flavio Santes
3d7d373a2f drivers/sensor/bmi160: Remove compiler warnings
Remove the unused argument and comparing int to unsigned int
compiler warnings.

Change-Id: Iad79ec2ef8206b2494875a93551a0f47e234ff8d
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:51 +00:00
Flavio Santes
f57023934e samples/net/echo_client: Add ARG_UNUSED
Add ARG_UNUSED to some function parameters to avoid
compiler warnings.

Change-Id: I5db5bc536f1eeb084e08d2fbe4a8b0a8456e67a5
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:50 +00:00
Flavio Santes
17a589a486 net/utils: Use the right data-type
Use size_t instead of int to avoid compiler warnings.

Change-Id: I86f804010a7bd0387299648f8c2c0f880f19f580
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:50 +00:00
Flavio Santes
9216e6c47d net: Add ARG_UNUSED
This patch adds the ARG_UNUSED macros to some function arguments
to avoid compiler warnings.

Change-Id: Iae2cd3018c9442ffa9268fdfd33eb9a21f55087c
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:49 +00:00
Flavio Santes
e62030a9ad misc/logger: Add ARG_UNUSED
This commit adds the ARG_UNUSED macro to some function arguments
to avoid compiler warnings when some sections are compiled out.

Change-Id: Ic003c5a6b2757112cbcf9111fceb14c0f8ea352a
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:49 +00:00
Flavio Santes
6ed5b16e49 misc/byteorder: Use the right data-type
Use size_t instead of int to avoid the following compiler warning:

warning: comparison between signed and unsigned integer expressions

Change-Id: I1dcd275e685f5c35793bdbf5ba0acc28ae4b181c
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:48 +00:00
Flavio Santes
15932d41cd drivers/slip: Use the right data-type
Use the right data-type to avoid compiler warnings.

Change-Id: I3e807482c5636f37ef1288689450dbe3c9c04dcf
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:48 +00:00
Flavio Santes
0a1c29cda4 driver: Add ARG_UNUSED to console and uart drivers
This patch adds the ARG_UNUSED macros to some function
arguments to avoid compiler warnings.

Change-Id: I628aea55d98cf8519c046ae5835e95cfa70a973f
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-12-21 12:54:47 +00:00
jing wang
208fc48d81 tests: add zephyr alerts test case
the commit cover alert send and receive with 4 types -
DEFAULT, IGNORE, PENDING, CONSUMED which across thread and isr
context.

Change-Id: I41dae9ba2dc980bcd768f1220f55b5492bc8ae37
Signed-off-by: jing wang <jing.j.wang@intel.com>
2016-12-21 01:56:19 +00:00
Evan Couzens
371e435cae doc: Add environment variables to getting_started.rst
Add GCCARMEMB_TOOLCHAIN_PATH and ZEPHYR_GCC_VARIANT to
getting_started.rst per ZEP-1027

Change-Id: Ia73697c66562e02a6d93afdac6cc92e327189abe
Signed-off-by: Evan Couzens <evanx.couzens@intel.com>
2016-12-20 21:42:17 +00:00
Anas Nashif
3dc9eb00cf net: remove obsolete net_testing.h
Change-Id: I75dff74912320a9b623667a53dc8e2b617f17572
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-20 13:31:38 -05:00
Anas Nashif
175f63e0f9 doc: add note about order of SDK installation
Jira: ZEP-1479
Change-Id: Ie3f7eb1e7ce8f245f1e54193a30a52cf552315cd
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-20 13:31:38 -05:00
Kumar Gala
d097011db9 Merge "Merge arm branch into master" 2016-12-20 18:00:17 +00:00
Yossi Havusha
bdd2e0145c samples/logger-hook: fix ring buffer usage and initialize variables.
1. Fix ring buffer usage according to suggestion in ZEP-1449
2. Redo fix variable initialization for CID 157609

Jira: ZEP-1449

Change-Id: Icce055940f4f82f3d87898f53cfbcae1fe73162c
Signed-off-by: Yossi Havusha <yossi.havusha@intel.com>
2016-12-20 17:00:00 +00:00
Kumar Gala
5ab8f8f15a Merge arm branch into master
----------------------------------------------------------------

Carles Cufi (13):
      Bluetooth: controller: Use SERIES config instead of NRF52
      drivers: serial: nrf5: Undefine MDK macros to avoid conflict
      ext: Update Nordic MDK header files
      boards: nrf52: Specify nRF52832 IC in default config
      arch: arm: Refactor and cleanup nRF52 series arch code
      arch: arm: Add support for the Nordic nRF52840 IC
      boards: arm: Add support for the Nordic pca10056 PDK
      boards: arm: Refactor the GPIO and UART dependencies
      boards: nrf51_pca10028: Add button and LED definitions
      boards: nrf52_pca10040: Add button and LED definitions
      boards: nrf52840_pca10056: Add button and LED definitions
      boards: bbc_microbit: Add button and LED definitions
      gpio: nrf5x: Add support for GPIOTE and GPIO callbacks

Gil Pitney (5):
      cc3200: Add a GPIO driver for the TI CC3200 LaunchXL
      cc3200: Add pinmux initialization for GPIO Ports
      cc3200: Add generic definitions for LEDs and switches
      cc3200: Ensure UART can wake up Zephyr after wfi in idle
      cc3200: Move UART peripheral clock enable into soc init

Kumar Gala (1):
      sanity_chk: add nucleo_f411re to arm list of boards for sanity

Matthias Boesl (1):
      board: add initial support for Nucleo-64 with Soc STM32F411RE

Maureen Helm (2):
      frdm_k64f: hexiwear_k64: Fix basic blinky sample
      frdm_k64f: Fix basic button sample

 arch/arm/soc/nordic_nrf5/Kconfig.defconfig         |    18 +
 .../nordic_nrf5/nrf52/Kconfig.defconfig.nrf52832   |     4 +
 .../nordic_nrf5/nrf52/Kconfig.defconfig.nrf52840   |    36 +
 .../soc/nordic_nrf5/nrf52/Kconfig.defconfig.series |     4 -
 arch/arm/soc/nordic_nrf5/nrf52/Kconfig.series      |     1 +
 arch/arm/soc/nordic_nrf5/nrf52/Kconfig.soc         |     4 +-
 arch/arm/soc/nordic_nrf5/nrf52/Makefile            |     8 +-
 arch/arm/soc/nordic_nrf5/nrf52/soc.c               |   377 +-
 .../st_stm32/stm32f4/Kconfig.defconfig.stm32f411xe |    34 +
 arch/arm/soc/st_stm32/stm32f4/Kconfig.soc          |     3 +
 .../ti_simplelink/cc32xx/Kconfig.defconfig.cc3200  |    19 +
 arch/arm/soc/ti_simplelink/cc32xx/soc.c            |    12 +
 boards/arm/96b_nitrogen/Kconfig.defconfig          |    10 +-
 boards/arm/bbc_microbit/Kconfig.defconfig          |    10 +-
 boards/arm/bbc_microbit/board.h                    |    56 +
 boards/arm/cc3200_launchxl/board.h                 |    16 +
 .../arm/cc3200_launchxl/cc3200_launchxl_defconfig  |     3 +
 boards/arm/cc3200_launchxl/pinmux.c                |    38 +-
 boards/arm/frdm_k64f/board.h                       |    12 +
 boards/arm/hexiwear_k64/board.h                    |     6 +
 boards/arm/nrf51_blenano/Kconfig.defconfig         |    10 +-
 boards/arm/nrf51_pca10028/Kconfig.defconfig        |    10 +-
 boards/arm/nrf51_pca10028/board.h                  |    32 +
 boards/arm/nrf52840_pca10056/Kconfig               |    23 +
 boards/arm/nrf52840_pca10056/Kconfig.board         |    19 +
 boards/arm/nrf52840_pca10056/Kconfig.defconfig     |    45 +
 boards/arm/nrf52840_pca10056/Makefile              |     2 +
 boards/arm/nrf52840_pca10056/board.h               |    54 +
 .../nrf52840_pca10056/nrf52840_pca10056_defconfig  |    20 +
 boards/arm/nrf52_pca10040/Kconfig.defconfig        |    10 +-
 boards/arm/nrf52_pca10040/board.h                  |    34 +-
 boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig |     1 +
 boards/arm/nucleo_f411re/Kconfig.board             |    20 +
 boards/arm/nucleo_f411re/Kconfig.defconfig         |    23 +
 boards/arm/nucleo_f411re/Makefile                  |     2 +
 boards/arm/nucleo_f411re/Makefile.board            |     6 +
 boards/arm/nucleo_f411re/board.h                   |    22 +
 boards/arm/nucleo_f411re/nucleo_f411re_defconfig   |    36 +
 boards/arm/nucleo_f411re/support/openocd.cfg       |    12 +
 drivers/gpio/Kconfig                               |     2 +
 drivers/gpio/Kconfig.cc32xx                        |    93 +
 drivers/gpio/Makefile                              |     1 +
 drivers/gpio/gpio_cc32xx.c                         |   335 +
 drivers/gpio/gpio_nrf5.c                           |   180 +-
 drivers/pinmux/Makefile                            |     1 +
 drivers/pinmux/stm32/pinmux_board_nucleo_f411re.c  |    48 +
 drivers/serial/Kconfig.nrf5                        |     2 +-
 drivers/serial/uart_nrf5.c                         |    16 +
 ext/hal/nordic/mdk/compiler_abstraction.h          |    21 +-
 ext/hal/nordic/mdk/nrf.h                           |    36 +-
 ext/hal/nordic/mdk/nrf51.h                         |    28 +-
 ext/hal/nordic/mdk/nrf51422_peripherals.h          |   144 +
 ext/hal/nordic/mdk/nrf51802_peripherals.h          |   144 +
 ext/hal/nordic/mdk/nrf51822_peripherals.h          |   144 +
 ext/hal/nordic/mdk/nrf51824_peripherals.h          |   144 +
 ext/hal/nordic/mdk/nrf51_bitfields.h               |   604 +-
 ext/hal/nordic/mdk/nrf51_deprecated.h              |     6 +-
 ext/hal/nordic/mdk/nrf51_to_nrf52.h                |    19 +-
 ext/hal/nordic/mdk/nrf51_to_nrf52840.h             |   567 +
 ext/hal/nordic/mdk/nrf52.h                         |    62 +-
 ext/hal/nordic/mdk/nrf52832_peripherals.h          |   218 +
 ext/hal/nordic/mdk/nrf52840.h                      |  2417 +++
 ext/hal/nordic/mdk/nrf52840_bitfields.h            | 14633 +++++++++++++++++++
 ext/hal/nordic/mdk/nrf52840_peripherals.h          |   240 +
 ext/hal/nordic/mdk/nrf52_bitfields.h               |  2696 +---
 ext/hal/nordic/mdk/nrf52_name_change.h             |     6 +-
 ext/hal/nordic/mdk/nrf52_to_nrf52840.h             |    88 +
 ext/hal/nordic/mdk/system_nrf52.h                  |     4 +-
 ext/hal/nordic/mdk/system_nrf52840.h               |    69 +
 scripts/sanity_chk/arches/arm.ini                  |     2 +-
 subsys/bluetooth/controller/hal/radio.c            |     2 +-
 71 files changed, 20716 insertions(+), 3308 deletions(-)

Change-Id: I4a5c2b348e207dd5df3760b6ce1efe52f106e2fb
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-12-20 09:20:10 -06:00
Kumar Gala
f4df430bac sanity_chk: add nucleo_f411re to arm list of boards for sanity
Change-Id: I34d3c7a7dd8dc53e6c592fc9339c656a39aeeb3b
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-12-20 09:15:28 -06:00
Matthias Boesl
ffa67b77c6 board: add initial support for Nucleo-64 with Soc STM32F411RE
Change-Id: I698693bccce1e9599c20e57f5d4172643ca38cc9
Signed-off-by: Matthias Boesl <matthias.boesl@gmail.com>
2016-12-20 09:15:19 -06:00
Carles Cufi
129a2f0bb6 gpio: nrf5x: Add support for GPIOTE and GPIO callbacks
To support interrupt-based GPIO callbacks in the nRF5x series one needs
to use the GPIOTE module, which has a series of channels that can be
programmed to trigger interrupts on level changes.
This commit adds basic support for the GPIOTE module within the nRF5x
GPIO driver, as well as callback support in order for basic buttons and
switches to work.

Change-Id: I9ae600f894372ad42b09a18cc38a90fc29abb0df
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:49 -06:00
Maureen Helm
feef536ada frdm_k64f: Fix basic button sample
The basic button sample expects SW0_GPIO_NAME and SW0_GPIO_PIN macros to
be defined by board.h. The frdm_64f doesn't have a physical switch with
this name, so create an alias to SW3 to make the sample work.

Change-Id: I61eb096582d9898dbcb9799e69078ad0c4b700cf
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2016-12-20 09:14:49 -06:00
Maureen Helm
d73ee7e37d frdm_k64f: hexiwear_k64: Fix basic blinky sample
The basic blinky sample expects LED0_GPIO_PORT and LED0_GPIO_PIN macros
to be defined by board.h. The frdm_k64f and hexiwear_k64 boards don't
have a physical LED with this name, so create an alias to the green LED
to make the sample work.

Change-Id: I3426c571bb2e3165dbd9f4372d863b474c35fd5c
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2016-12-20 09:14:49 -06:00
Gil Pitney
8b93aaa229 cc3200: Move UART peripheral clock enable into soc init
Previously, UART clock enable was done in pinmux init.

This is now moved into soc initialization, along with other
power related initialization routines.

Change-Id: I1f9464655ad966e9caac2d238006f12a06b202ab
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2016-12-20 09:14:49 -06:00
Gil Pitney
3bbdee3a61 cc3200: Ensure UART can wake up Zephyr after wfi in idle
Previously, running UART applications in Zephyr from sFlash would
not show consistent character output.

The PRCM clock enable for UART was missing the sleep mode while
enabling the UART clock.

This has been fixed, and verified with philosophers (polled output)
and shell (interrupt driven) zephyr examples running from sFlash.

Change-Id: I95a87996f252d82b0c1c13d3f77535971b5cf9c5
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2016-12-20 09:14:49 -06:00
Carles Cufi
3f943a8774 boards: bbc_microbit: Add button and LED definitions
For the basic samples to work, button and LED definitions are required
in board.h. These map the buttons and LEDs present on the board to
the corresponding GPIOs they are wired into.

In this particular case the LEDs are actually arranged in a 3x9 matrix,
with the GPIOs wired to the rows and columns of said matrix. An upcoming
patch will provide utility functions to access the matrix.

Change-Id: Icce93ee6a08ae28445c6dc4a41529105ac80f14a
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:49 -06:00
Carles Cufi
ac39609067 boards: nrf52840_pca10056: Add button and LED definitions
For the basic samples to work, button and LED definitions are required
in board.h. These map the buttons and LEDs present on the board to
the corresponding GPIOs they are wired into.

Change-Id: Ia0be30cecd8c0ceabb495258480eb6f3ce13d3e5
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:49 -06:00
Carles Cufi
08d97e4fe9 boards: nrf52_pca10040: Add button and LED definitions
For the basic samples to work, button and LED definitions are required
in board.h. These map the buttons and LEDs present on the board to
the corresponding GPIOs they are wired into.

Change-Id: I2785441c286b95fd77e636e9bf3d68bc9f5a1acc
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
3b8d811a45 boards: nrf51_pca10028: Add button and LED definitions
For the basic samples to work, button and LED definitions are required
in board.h. These map the buttons and LEDs present on the board to the
corresponding GPIOs they are wired into.

Change-Id: I60903eb834ef1b2618b0525896c120fca84db177
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
3655291d5f boards: arm: Refactor the GPIO and UART dependencies
To make way for the upcoming blinky and GPIO support for nRF5x-based
boards, this change addresses the hardcoded dependencies in Kconfig
default configurations of the different boards, moving the common option
defaults to the SoC default configuration itself.

Change-Id: I8db0750311ad5a12b76237b39438376f20f6f496
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-12-20 09:14:48 -06:00
Gil Pitney
22172bb584 cc3200: Add generic definitions for LEDs and switches
Adds generic definitions for GPIO pins for onboard LEDs and
switches to enable the basic blinky, button, and disco
Zephyr examples for the TI CC3200 LaunchXL.

Change-Id: Iac0ed2ad01285f9e84eea1fa7013771ddd8d3a78
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2016-12-20 09:14:48 -06:00
Gil Pitney
a90e1be4ac cc3200: Add pinmux initialization for GPIO Ports
Leverages the configuration generated by the TI recommended PinMux
utility to enable pins for the 4 GPIO ports on the CC32xx LaunchXL
board, pre-configuring GPIOs for the onboard:
- 3 LEDs, and
- Two user push buttons (SW2, SW3).

The pinmux configuration is used in lieu of a Zephyr
pinmux driver, and is called during board initialization.

Change-Id: Id2403fc2ec3fcc0a62ee5149e1ac596e7e06ead4
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2016-12-20 09:14:48 -06:00
Gil Pitney
f18cced2c1 cc3200: Add a GPIO driver for the TI CC3200 LaunchXL
The pinmux configuration is done during board initialization.

This was validated using the following Zephyr apps:
 - samples/basic/blinky
 - samples/basic/disco
 - samples/basic/button

All 4 GPIO ports are supported.

Change-Id: If8599a23c1d56cfd678a6e2e5339f7e093c6061a
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2016-12-20 09:14:48 -06:00
Carles Cufi
429bea5381 boards: arm: Add support for the Nordic pca10056 PDK
With the appearance of the nRF52840 IC a new Preview Development Kit
(PDK) board has been introduced. This patch adds basic support for this
new board.

JIRA: ZEP-1418

Change-Id: If5845e75312ec756b968e595e5dc31c4c9624be2
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
ce8629c92b arch: arm: Add support for the Nordic nRF52840 IC
The new Nordic nRF52840 IC is the latest member of the nRF52 family.
It supports the following features among others:

    * Cortex-M4F core at 64MHz
    * 1024KB of flash and 256KB of RAM
    * Bluetooth 5-ready and 802.15.4 compatible radio
    * USB device support
    * NFC Tag support
    * Quad-SPI
    * Hardware accelerated crypto engine

http://www.nordicsemi.com/eng/Products/nRF52840

JIRA: ZEP-1418

Change-Id: I677c787bb33d02695e057d5dced7e3455b9f6c50
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
c5d2c4a65d arch: arm: Refactor and cleanup nRF52 series arch code
In preparation for the upcoming nRF52840 support, this patch refactors
the nRF52 series support code to allow for future members of the IC
family to be added, while keeping everything that is common together.

JIRA: ZEP-1418

Change-Id: I4200064ca888d72ba0b8629ce94e4ea6384099ad
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-12-20 09:14:48 -06:00
Carles Cufi
6afcee5862 boards: nrf52: Specify nRF52832 IC in default config
In preparation for the new Nordic MDK and nRF52840 IC support this patch
adds the specific nRF52832 IC model in the pca10040 board default
config, so that future boards with different ICs from the same nRF52
series are supported correctly.

JIRA: ZEP-1418

Change-Id: Ic7c2076eeeb33fb729e4dbba2ff4702ab812a826
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
87a5e7b1cb ext: Update Nordic MDK header files
Nordic Semiconductor's Microcontroller Development Kit
provides a set of low-level header files that describe
the different hardware registers and peripherals of
Nordic ICs.

This new version adds support for the nRF52840 IC.

Origin: Nordic MDK 8.11.1
URL: http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy
Maintained-by: External

JIRA: ZEP-1418

Change-Id: I76793f8f2bb1e588ed5244bd19a020bad021839b
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00
Carles Cufi
e15c5527ed drivers: serial: nrf5: Undefine MDK macros to avoid conflict
The new Nordic MDK redefines certain UART signal names for backwards
compatibility with the new nRF52840 IC.
This patch addresses the potential name conflict between the redefined
signals and the existing variable names defined in the UART driver.

JIRA: ZEP-1418

Change-Id: I559d9335d2eeaa0a88d3f261b70508a1c98b989d
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-20 09:14:48 -06:00