Commit Graph

11875 Commits

Author SHA1 Message Date
Gregory Nutt
2c2729521b Abandon attempt to get common data structures for NX and the raw framebuffer cursor interface. This backs out several changes. 2019-04-07 18:00:40 -06:00
Gregory Nutt
04b723e447 Squashed commit of the following:
include/nuttx/nx/nxcursor.h:  Add a header file descrbing the implementation of an NX cursor interface.  There is no implementation in place yet.

    include/nuttx/video/cursor.h:  Separate out cursor definitions from fb.h.  Other graphic interfaces other than a framebuffer may support a cursor, possible a software cursor.
2019-04-06 12:18:05 -06:00
jjlange
90ece2d917 Merged in jjlange/nuttx/lpc17_ethupdates2 (pull request #849)
Added support for Ethernet PHY ioctl() on LPC17xx.

* Added support for Ethernet PHY ioctl() on LPC17xx.

* Fixed whitespace.

* One more time.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-05 21:16:03 +00:00
Gregory Nutt
96ba87e6cf Trivial changes from review of last PR 2019-04-04 17:22:41 -06:00
jjlange
b50452301d Merged in jjlange/nuttx/lpc17_ethupdates (pull request #847)
Added support for KSZ8081RNA PHY to LPC17xx Ethernet driver.

* Added support for KSZ8081RNA PHY to LPC17xx Ethernet driver.

* Updated PHY error message

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-04 23:21:09 +00:00
oao Matos
880029d994 arch/arm/src/stm32f7/stm32_fmc.h: Updated stm32_fmc.h with more FMC definitions. 2019-04-04 11:42:10 -06:00
Erik Englund
6f408b87bf arch/arm/src/nrf52/nrf52832_errdata.c: Fix compiler error when following C89. 2019-04-03 15:32:40 -06:00
Anthony Merlino
9bda8c5472 Merged in antmerlino/nuttx/stm32f7-usbotg-fix (pull request #846)
arch/arm/stm32f7: Fixes some macros related to OTGFS/OTGHS preventing OTGHS from working.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-03 19:38:08 +00:00
Anthony Merlino
079a0ada7b Merged in antmerlino/nuttx/stm32f7-hsebypclk (pull request #845)
arch/arc/stm32f7: Add support for using the HSE in bypass mode, configured by board.h

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-03 19:36:52 +00:00
Anthony Merlino
370dc27c60 Merged in antmerlino/nuttx/stm32f7-sdmmc-bypclk (pull request #844)
arch/stm32f7: Support bypassing the input clock divider on the SDMMC interface. This enables using the full clock speed provided to the SDMMC interface with no dividing.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-03 19:36:21 +00:00
Xiang Xiao
2d3623e2f9 arch/arm/src/armv7-a/Toolchain.defs: Fix 'cc1: warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch' 2019-03-26 21:40:25 -06:00
Pierre-Olivier Vauboin
055835f20a arch/arm/src/stm32f7/stm32_qspi.c: Fix QuadSPI interrupts. This commit essentially replaces wrongly named configuration variables STM32F7_QSPI_INTERRUPTS into CONFIG_STM32F7_QSPI_INTERRUPTS. Also fixes some getreg/putreg where register addresses were used
instead of register offsets
2019-03-25 11:21:45 -06:00
Gregory Nutt
3e6c196ffa arch/ and config/ files: All board interfaces (those starting with board_) must be defined in board-specific logic. Otherwise, they cannot be customized of specialized usage by different boards. The board_reset() interface was defined in architecture-specific logic that only called up_systemreset(). That is useless!
This change removes the board_reset() implementation from the architecture-specific code and re-implements in the src/ directory of each board that has CONFIG_BOARDCTL_RESET enabled.  That is the correct functional partitioning.
2019-03-25 11:12:38 -06:00
Mateusz Szafoni
d1f547feec arch/arm/src/stm32/stm32_pwm.c: Missing commas in initializers can break compilation in certain configurations. 2019-03-24 08:32:04 -06:00
Mateusz Szafoni
7883f0e6a4 arch/arm/src/stm32/stm32_pwm.c: Set CCPxP and CCPxNP bits if polarity is negative. 2019-03-24 08:07:59 -06:00
Maximilian Kriegleder
75858219fb arch/arm/stm32: Updates to last timer-related changes. 2019-03-22 11:02:12 -06:00
Mateusz Szafoni
c266f53199 arch/arm/src/stm32/stm32_tickless.c and arch/arm/src/stm32/stm32_freerun.c: Apply Max's stm32_oneshot.c fix to the tickless implementation and to the freerunning time. 2019-03-22 07:57:33 -06:00
Maximilian Kriegleder
bb23ac43ce arch/arm/src/stm32/stm32_oneshot.c: Corrects error introduced by commit 2fcf682316 also affect stm32_oneshot.c (I noticed that ps on my STM32F4 did not show any CPU load in nuttx-7.27 onward). 2019-03-22 07:43:15 -06:00
Gregory Nutt
4049f690af arch/arm/src/stm32/stm32_dfumode.c: Will work only for STM32 F2 and F4. 2019-03-21 14:41:03 -06:00
Gregory Nutt
65bd5472c5 arch/arm/src/stm32/stm32_dfumode.c: Add comments. Current implementation only works for STM32F2 and F4. 2019-03-21 14:29:32 -06:00
Gregory Nutt
2b52379dd6 arch/arm/src/stm32/stm32_dfumode.c: Minor improvements. 2019-03-21 14:21:59 -06:00
Bill Gatliff
d2dac21929 arch/arm/src/stm32/stm32_dfumode.c: Add logic to reboot the STM32 in DFU mode. 2019-03-21 12:06:59 -06:00
Valmantas Paliksa
f88597203d arch/arm/src/stm32f7/stm32_qspi.c: Fix QuadSPI priority constants. 2019-03-21 07:21:57 -06:00
Gregory Nutt
842d3dc4e5 Rename sched_alarm_expiration to nxsched_alarm_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly). 2019-03-20 19:34:23 -06:00
Gregory Nutt
9acb652e29 Rename sched_timer_expiration to nxsched_timer_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly). 2019-03-20 19:31:43 -06:00
Gregory Nutt
b290160b3b Rename sched_process_timer to nxsched_process_timer. That is the appropriate name for an internal sched/ function (still many named incorrectly). 2019-03-20 19:27:40 -06:00
Gregory Nutt
c34ea0d3bc arch/arm/src/armv7-a/arm_addrenv_utils.c: Fix a new cache interface related warning. 2019-03-20 17:20:56 -06:00
Gregory Nutt
daa6461ce2 arch/ and configs/: Fix more errors related to cache interface changes. 2019-03-20 14:45:44 -06:00
Gregory Nutt
3c27f133fd arch/arm/src/stm32f7/stm32_qspi.c: Grr.. Its been a long day. Correct name of header file barriers.h. 2019-03-20 13:55:52 -06:00
Gregory Nutt
05dab30e84 arch/arm/src/stm32f7/stm32_qspi.c: Fix a warning about ARM_DSB() being implicitly defined. 2019-03-20 13:53:34 -06:00
Gregory Nutt
609b7f8229 arch/arm/src/stm32f7/stm32_qspi.c: Fix a warning about QSPI_DMA_PRIO being redefined. 2019-03-20 13:44:12 -06:00
Mateusz Szafoni
c134072e05 arch/arm/src/armv7-m/up_ramvec_initialize.c: Correct bad NVIC_VECTAB_TBLOFF_MASK definitions in previous commit. Were missing bits in the mask. Raised DEBUGASSERT in armv7-m/up_ramvec_initialize.c line: 144. 2019-03-20 10:52:45 -06:00
Gregory Nutt
d7851cf38d arch/arm/src/stm32f7/stm32_qspi.c: Update for new universal cache conrols. 2019-03-20 09:49:26 -06:00
Gregory Nutt
b174373faa arch/arm/src/stm32/stm32_allocateheap.c: Change 'if CONFIG_STM32_HAVE_CCM' to 'ifdef CONFIG_STM32_HAVE_CCM' to avoid a warning when CONFIG_STM32_HAVE_CCM is not defined. 2019-03-20 08:28:34 -06:00
Gregory Nutt
33d711166e arch/arm/src/armv7-a/Toolchain.defs: Correct conditional logic. Was mixing C preprocess and Makefile semantics. 2019-03-20 08:17:38 -06:00
Valmantas Paliksa
6e886de2ec arch/arm/src/stm32f7/stm32_qspi.c: Added stm32f7 Quad SPI support. 2019-03-20 07:19:47 -06:00
Valmantas Paliksa
5645cb5e51 arch/arm/src/stm32f7/stm32_can.c: Fix bittiming calculation. 2019-03-20 06:51:48 -06:00
Valmantas Paliksa
91bb1f0b9f arch/arm/src/stm32f7: Add ITM syslog support. 2019-03-20 06:46:53 -06:00
Valmantas Paliksa
8443f088da arch/arm/src/stm32f7/stm32_can.c: Add CAN driver with support for three bxCAN interfaces. 2019-03-20 06:43:39 -06:00
Valmantas Paliksa
d09dc74488 arch/arm/src/stm32f7/stm32_tim_lowerhalf.c: Add timer lowerhalf driver for stm32f7. 2019-03-20 06:31:20 -06:00
Valmantas Paliksa
72d8aa5b7b arch/arm/src/stm32f7/stm32_tim.c: dd OUTTOGGLE mode for STM32f7 timer 2019-03-20 06:23:35 -06:00
Gregory Nutt
006c48692f arch/arm/src/armv7-a/arm_scu.c: Another place where universal cached control change bork a compile due to missing ARM_DSB() definition. 2019-03-19 16:56:04 -06:00
Gregory Nutt
c8ffde6647 arch/arm: Fix more errors resulting from universal cache interfaces. The old cache-specific head file also provided a sneak way to include other necessary header files. With the old cache.h removed, those files all fail to build. 2019-03-19 14:13:45 -06:00
Gregory Nutt
aed32d35fa Fix typo in last commit found in build testing. 2019-03-19 13:26:46 -06:00
Gregory Nutt
c1beda8a34 ARMv7-A/R: Add barriers.h header file for consistency with ARMv7-M. 2019-03-19 13:20:23 -06:00
Gregory Nutt
348a03287d arch/arm: The last big change that unified the cache interfaces had a bad side-effect: It also removed the memory barrier definitions that were also in the removed architecture-specific cache.h header files. Fixed by adding a new barriers.h header file that provides these definitions. 2019-03-19 13:12:19 -06:00
zhangyuan7
471a18ee4d arch/arm: Add the initial cortex-a7 archtiecture support 2019-03-19 11:51:29 -06:00
Xiang Xiao
cc1595f232 arm/armv7-a: Add mmu_l1_map_regions() to remove the code duplication. 2019-03-19 11:30:37 -06:00
Xiang Xiao
75a97657be arch/arm/src/armv7-a/sctlr.h: Add SCR bit definitions. 2019-03-19 11:22:44 -06:00
liuzhuang
517f391267 arch/arm/src/armv7-a/arm_gicv2.c: Don't use GIC_ICDDCR_ENABLEGRP1 for NONSECURE since this bit doesn't exist in this mode. 2019-03-19 11:20:45 -06:00
Xiang Xiao
7e9a060202 arch/arm/src/armv7-a: Fix assemble error when including gic.h 2019-03-19 11:19:09 -06:00
zhangyuan7
f36ce38991 arch/arm/src/armv7-a/arm_head.S: add weak attribute to arm_data_initialize so platform could provide the new implemenation as needed. 2019-03-19 11:16:52 -06:00
zhangyuan7
2bc3eddb79 arch/arm/src/armv7-a: Guard some assembly files if configuration not selected. 2019-03-19 11:15:21 -06:00
zhangyuan7
c59dabe41c arch/arm/src/armv7-a: Remove inclusion pg_macros.h for armv7-a since this header file does not exist. 2019-03-19 11:13:27 -06:00
zhangyuan7
3d171340db arch/arm/armv7-a: Support thumb mode and fix interworking issue. 2019-03-19 11:10:41 -06:00
Xiang Xiao
032c7f1ec9 arch/armv7-m: Make the default NVIC_VECTAB_TBLOFF_MASK safer. The base address of the new vector table must be aligned to the size of the vector table extended to the next larger power of 2. 2019-03-19 10:43:32 -06:00
Xiang Xiao
64252a298f arch/: Unify the cache interface for all architectures 2019-03-19 10:37:13 -06:00
Xiang Xiao
2f208fdde8 arch/Kconfig: Move FPU options to a common place and unify the usage by removing ARCH_CORTEXRxF. 2019-03-19 10:26:15 -06:00
Gregory Nutt
18d52ecee2 app/graphics/nxbe/nxbe_setsize.c: Fix backward source/destination in memcpy() in new per-window framebuffer logic. 2019-03-16 17:37:29 -06:00
Gregory Nutt
56c7b65094 configs/open1788/pwfb: Add an example for testing per-window frame buffers. arch/arm/src/lpc17xx: Add a configuration option to skip over the framebuffer when adding DRAM to the heap. graphics: Early fixes from testing per-window framebuffer. Still lots of problems. 2019-03-16 12:31:29 -06:00
Bilal Wasim
1690f2ca8b arch/arm/src/armv7-a/mmu.h: pdating the cp15_wrttb and cp15_wrdacr functions to use inline assembly in the correct way. The incorrect method was generating errors as ARMv7-a expects the MCR/MRC instructions to provide registers as an argument(MRC p15, 0, <Rt>, c2, c0, 0) and the code was providing a constant value(and hence the build error). 2019-03-14 17:14:56 -06:00
Gregory Nutt
e780ee3a08 include/nuttx/nx/nxmu.h: Remove prototype of non-existent function. 2019-03-13 08:23:02 -06:00
Levin Li
1389d90a70 arch/arm/src/nrf52: 1. added RNG device driver 2. added errdata to correct temp which will be used by RNG module 3. use general task_trigger / event_clear inline api for all driver. 2019-03-13 07:21:29 -06:00
Gregory Nutt
82b276a34c binfmt/nxflat.c: Trivial design simplification. 2019-03-12 10:09:03 -06:00
Levin Li
043df95d8d arch/arm/include/nrf52/ and arch/arm/src/nrf52: 1. Added 52840 family support 2. Use common irq and memory layout header file for 52832 & 52840. 2019-03-12 09:43:49 -06:00
raiden00pl
0a7f7642c0 Merged in raiden00/nuttx_h7 (pull request #839)
arch/arm/src/stm32h7: initial support for protected build mode. Not functional yet. It compiles without errors and passes initialization but after entering the user app strange things happen.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-03-11 16:43:13 +00:00
Kejun ZHOU
f33ed3c8c0 *Merged in zhoukejun/nuttx_nucleo-f767zi (pull request #838)
Add three patches  about STM32 intherupts and network loopback files

* Add the missing macro STM32_IRQ_NIRQS used by ./arch/arm/src/stm32f7/stm32_irq.c

    Signed-off-by: Kejun ZHOU <zhoukejun@outlook.com>

* The struct in_addr doesn't have the member sin_addr.

    Signed-off-by: Kejun ZHOU <zhoukejun@outlook.com>

* The function lib_lo_ipv6match() is for IPv6.
    Correct the function it calls from lib_lo_ipv4matchto() to lib_lo_ipv6match().
    Also add CONFIG_NET_IPv6 for configuration.

    Signed-off-by: Kejun ZHOU <zhoukejun@outlook.com>
2019-03-11 03:44:57 +00:00
Johannes
c56ea62f3c arch/arm/src/imxrt/imxrt_clockconfig.c: If SDRAM is actived it was only running at 40MHz. This was becaus imxrt_clockconfig.c changed the SEMC clock divider after the DCD was configured. This commit corrects that. 2019-03-10 07:25:45 -06:00
raiden00pl
2caf135d05 Merged in raiden00/nuttx_h7 (pull request #837)
Initial OTG support for STM32H7 and some minor improvements

arch/arm/src/stm32h7/stm32h7x3xx_rcc.c: add support for HSI48 clock

configs/nucleo-f207zg: add support for USB and initialize CDCACM if configured

configs/nucleo-h743zi: add support for USB and initialize CDCACM if configured

drivers/usbdev/Kconfig: fix type for USBDEV_TRACE_INITIALIDSET

configs/teensy-3.x/usbnsh/defconfig: update config according to change in USBDEV_TRACE_INITIALIDSET

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-03-10 13:24:58 +00:00
Gregory Nutt
bd489b7915 arch/arm/src/stm32/stm32_otgfsdev.c: Fix a typo in the last commit 2019-03-08 14:18:18 -06:00
Gregory Nutt
e29e02529d arch/arm/src/stm32/stm32_otgfsdev.c/stm32_otghsdev, stm32f7/stm32_otgdev.c, and stm32l4/stm32l4_otgfsdev.c: Fix a warnings due to a function prototype mismatch. 2019-03-08 14:15:55 -06:00
Gregory Nutt
9d9b8cd48e configs/open1788/knxterm/defconfig: Add missing MPU configuration option. 2019-03-06 15:35:50 -06:00
Gregory Nutt
c21be8856c arch/arm/src/stm32h7/stm32_timerisr.c: Update comments to refernce the errata related to the SysTick clock not being HCLK/8. 2019-03-06 12:45:48 -06:00
Gregory Nutt
5fe6981c9a Squashed commit of the following:
libs/libc/pthread/pthread_spinlock.c:  Resolve several TODO issues by accessing up_testset() via the boardctl() interface rather than attempting to call it directly.

    configs/boardctl.c, include/sys/boardctl.h:  Add access to architecture-specific up_testset() via boardctl().

    arch/Kconfig's, sched/Kconfig, and include/nuttx/spinlock.h:  Spinlocks are not available unless the architecture supports the up_testset() operation.
2019-03-04 14:22:50 -06:00
Johannes
b95fadcaa6 Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>

    arch/arm/src/imxrt/:  Fix complaints from tools/nxstyle in new LCD files.
    Use tools/lowhex to convert hexadecimal constants to lower case.
    Use tools/rmcr to review white space at the end of lines.

Author: Johannes <nivus.entwicklung@gmail.com>

    arch/arm/src/imxrt and configs/imxrt1050-evk:  Adds framebuffer support for thje i.MXRT 1050.  Includdd DCD initialization for SDRAM to provide space for the framebufer. External code I used/ported is from NXP and is BSD 3-clause license.
2019-03-04 08:35:29 -06:00
raiden00pl
32086c6d8d Merged in raiden00/nuttx_h7 (pull request #836)
Initial DMA support for STM32H7

arch/arm/src/stm32h7: SPI DMA mode

arch/arm/src/stm32h7/chip/stm32h7x3xx_memorymap.h: add base addresses for D1, D2 and D3 domain; use 2 bytes to specify memory region

arch/arm/src/stm32h7/stm32h7x3xx_rcc.c: add D1 domain core prescaler configuration

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-03-03 12:22:37 +00:00
Mateusz Szafoni
66cb78c306 arch/arm/src/stm32h7/stm32_timerisr.c: H7 appears to ignore the SysTick CLKSOURCE bit and use the CPU clock in all cases. 2019-03-02 15:27:04 -06:00
Gregory Nutt
787d7dc8b7 arch/arm/src/imxrt/imxrt_ocotp.c: Fix a typo that I introduced trying to fix a warning. 2019-03-02 09:27:45 -06:00
raiden00pl
4ae7373427 Merged in raiden00/nuttx_h7 (pull request #835)
Improvements for H7 towards the DMA support

arch/arm/include/stm32h7/stm32h7x3xx_irq.h: fix typos and rename DMA1/2 irq names to match those from other STM32

arch/arm/src/stm32h7/chip/stm32_bdma.h: add auxiliary definitions

arch/arm/src/stm32h7/chip/stm32_dma.h: cosmetic changes

arch/arm/src/stm32h7/chip/stm32_dmamux.h: add auxliary definitions and fix some typos

arch/arm/src/stm32h7/chip/stm32_mdma.h: add auxliary definitions and fix some typos

arch/arm/src/stm32h7/chip/stm32h7x3xx_dmamux.h: add DMAMAP definitions for MDMA, DMA1, DMA2 and BDMA

arch/arm/src/stm32h7/chip/stm32h7x3xx_memorymap.h: fix AHB1 base adresses and add some address blocks

arch/arm/src/stm32h7/chip/stm32h7x3xx_rcc.h: fix some definitions to match other STM32 ports

arch/arm/src/stm32h7/stm32_allocateheap.c: use SRAM from D2 domain (SRAM123) for now

arch/arm/src/stm32h7/stm32h7x3xx_rcc.c: enable clock for MDMA and BDMA

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-03-01 17:37:22 +00:00
Gregory Nutt
f914ec6e2b tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
David Sidrane
4942867fcf Merged in david_s5/nuttx/master_stack_check (pull request #834)
armv7-m:stackcheck allow faulting stack calculation to make it to the up_assert reg dump

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-02-28 21:36:47 +00:00
David Sidrane
9342aba0bc Merged in david_s5/nuttx-3/david_s5/imxrtocotp-fixed-call-to-undefined-funct-1551382999506 (pull request #833)
imxrt:ocotp Fixed call to undefined function.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-02-28 19:51:11 +00:00
Gregory Nutt
ee676290b2 arch/arm/src/imxrt/imxrt_ocotp.c: Eliminate 2 of 3 warnings found in build testing. I will need to talk with DavidS about the third. 2019-02-28 13:28:52 -06:00
David Sidrane
66747949d9 arch/arm/src/imxrt: Added OCOTP Support. 2019-02-27 14:19:30 -06:00
Gregory Nutt
c13afc29e6 Trivial, Costmetic, ... 2019-02-27 14:02:53 -06:00
Gregory Nutt
0e4db7c2d7 arch/arm/src/lc823450/lc823450_usbdev.c: Fix new warning found in build testing. Also correct naming of global variables to follow the requirements of the NuttX coding standard. 2019-02-27 09:52:43 -06:00
Gregory Nutt
8f8d4b6ae3 arch/arm/src/stm32/stm32_hrtim.c: Fixed a typo found in build testing. 2019-02-27 08:56:35 -06:00
Gregory Nutt
dc8c814ca3 Squashed commit of the following:
Fixed coding standard error in several files.  Use of while( is incorrect; a space is required between while and (.  Also ran tools/nxstyle and fix thoses complaints as well in most files.

    Changes to comply with coding standard.  Mostly focused on files with missing space after keyword in if(, switch(, and for(.  Offending files also got changes to comply with tools nxstyle.  If there were logs of nxstyle complaints, the file also got a taste of tools/indent.sh.  Still need to fix occurrences of while( with missing space.  There are a lot of them.
2019-02-27 08:41:08 -06:00
David Sidrane
68f8161a45 arch/arm/src/imxrt/chip/imxrt_usb_analog.h: Add usb analog header file. 2019-02-25 13:09:19 -06:00
raiden00pl
b9ef70ed0f Merged in raiden00/nuttx_h7/h7dma (pull request #831)
Missing definitions and better organistaion for STM32H7 DMA

arch/arm/src/stm32f0l0/hardware/stm32_dma_v1.h: rename DMA channel definitions

arch/arm/src/stm32h7/chip/stm32_dma: separated files for MDMA, DMA, BDMA and DMAMUX

arch/arm/src/stm32h7/chip/stm32_dma: missing definitions for MDMA, BDMA and DMAMUX

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-02-25 16:02:39 +00:00
David Sidrane
8de101ca18 Merged in david_s5/nuttx-2/david_s5/imxrt_adcerror-in-offset-1550865183857 (pull request #828)
imxrt_adc:Error in offset

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-02-22 19:58:39 +00:00
Gregory Nutt
432f487581 arch/arm/src/stm32h7 and stm32l4: Apply David Sidrane's fix for the STM32F7 to the STM32L4 and STM32H7. The same change might be appropropriate to STMF0/LO and STM32, but the patch does not apply cleanly. It would have to be manually checked. 2019-02-19 14:47:27 -06:00
David Sidrane
44919b6723 arch/arm/src/stm32f7/stm32_i2c.c: Fix another memory access issue on a bus error. 2019-02-19 14:47:05 -06:00
Gregory Nutt
738be875eb arch/arm/src/tiva/hardware/tm4c/tm4c123_i2c.h: Correct some kruft that was left behind when this file was split out. Caused failures in build testing. 2019-02-16 18:42:26 -06:00
raiden00pl
79b3bec208 Merged in raiden00/nuttx_lora (pull request #825)
Master

arch/arm/src/stm32f0l0: SPI support for F0

arch/arm/src/stm32f0l0/Kconfig: L0 parts should select STM32F0L0_STM32L0

arch/arm/src/stm32f0l0/hardware: unify names for ADC/DAC/DMA/CAN

drivers/wireless/lpwan/sx127x/sx127x.c: return immediately when ISR0 is called but sx127x is not initialized

configs/nucleo-f091rc: support for sx127x

configs/nucleo-l073rz: cosmetics

configs/b-l072z-lrwan1/include/board.h: use HSI as default clock source and fix typo in SPI1 pins

Approved-by: GregoryN <gnutt@nuttx.org>
2019-02-16 20:53:16 +00:00
Gregory Nutt
4746b0cdd7 arch/arm/src/tiva/hardware/tiva_wdt.h: Add WDT register definition header file for all LM, Tiva, and CC13xx parts. 2019-02-16 14:49:23 -06:00
Gregory Nutt
c7599ac714 arch/arm/src/tiva/hardware/lm/lm_i2c.h: Fix missing #endif. 2019-02-16 13:56:00 -06:00
Gregory Nutt
3131195d7a arch/arm/src/tiva/hardware: Fix a typo in the new CC13xx I2C header files. Found in build testing. 2019-02-16 10:06:57 -06:00
Gregory Nutt
d1f65b127e arch/arm/src/tiva/hardware: Add CC13x0 and CC13x2 I2C header files. 2019-02-16 09:32:38 -06:00
Gregory Nutt
d0bd4c959d arch/arm/src/tiva/hardware/tiva_ssi.h: Fix typo error found in build testing. libs/libc/stdio/lib_libsscanf.c: Fix warnings found in build testing. 2019-02-15 14:38:06 -06:00
Gregory Nutt
ee8b0a076c arch/arm/src/tiva/hardware: Review and update for compatibility with CC13xx. 2019-02-14 17:27:37 -06:00
Gregory Nutt
69056d4053 net/: The value ERROR should never be returned from internal OS functions. That is reserved for returning values to appliations with the errno value set. Within the OS, errors are returned with a negated errno value ALWAYS. 2019-02-14 15:38:36 -06:00
Gregory Nutt
07c16d8b70 arch/arm/src/tiva: The LauchXL-CC1312R1 NSH configuration is now fully functional. On to bigger and better things. 2019-02-13 08:06:52 -06:00
Gregory Nutt
a2406c1ac8 arch/arm/src/tiva/hardware: Initialize .bss sooner, Fix some PRCM register definitions
configs/launchxl-cc1312r1:  Correct DIOs used to provide the UART0 serial console.

Status:  Board boots to NSH prompt now.  But I am not getting serial input.  Things are probably not very stable in general.
2019-02-12 16:35:14 -06:00
Gregory Nutt
cf62b2288b Squashed commit of the following:
arch/arm/src/tiva/cc13xx/cc13xx_prcm.c:  Fix reverse bit modification:  Set the bit to enabled clocking, clear the bit to dissable clocking.
    arch/arm/src/tiva/cc13xx/cc13xx_enablepwr.c:  Use correct index for determining if this the SERIAL or PERIPH power domain.
2019-02-12 14:00:05 -06:00
Gregory Nutt
a64869aa67 CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense.
Squashed commit of the following:

    configs/:  The few configurations that formerly set CONFIG_NFILE_DESCRIPTORS=0 should not default, rather they should set the number of descriptors to 3.
    fs/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    tools/:  Tools updates for changes to usage of CONFIG_NFILE_DESCRIPTORS.
    syscall/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    libs/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    include/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    drivers/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    Documentation/:  Remove all references to CONFIG_NFILE_DESCRIPTORS == 0
    binfmt/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    arch/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    net/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    sched/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    sched/Kconfig:  CONFIG_NFILE_DESCRIPTORS may no longer to set to a value less than 3
    configs/:  Remove all settings for CONFIG_NFILE_DESCRIPTORS < 3
2019-02-11 12:09:26 -06:00
Gregory Nutt
6b3078192e arch/arm/src/stm32_otg[fs/hs]host.c should include stm32_gpio.h 2019-02-11 06:22:24 -06:00
Gregory Nutt
9a11f821ee arch/arm/src/tiva/cc13xx/cc13xx_prcm.c: Fix copy past error in array initializer. 2019-02-10 13:39:51 -06:00
Gregory Nutt
9d89fcadf3 arch/arm/src/tiva/cc13xx/cc13x0_rom.c: Fix a few compile errors and coding standard problems. Still quite a way to go. 2019-02-05 17:51:59 -06:00
Gregory Nutt
a2e62f557d Squashed commit of the following:
sched/init/nx_bringup.c:  Fix a naming collision.
    sched/init:  Rename os_start() to nx_start()
    sched/init:  Rename os_smp* to nx_smp*
    sched/init:  Rename os_bringup to nx_bringup
    sched/init:  rename all internal static functions to begin with nx_ vs os_
2019-02-04 16:20:35 -06:00
Gregory Nutt
bb623d1e04 This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit().
Squashed commit of the following:

    Trivial, cosmetic
    sched/, arch/, and include:  Rename task_vforkstart() as nxtask_vforkstart()
    sched/, arch/, and include:  Rename task_vforkabort() as nxtask_vforkabort()
    sched/, arch/, and include:  Rename task_vforksetup() as nxtask_vfork_setup()
    sched/:  Rename notify_cancellation() as nxnotify_cancellation()
    sched/:  Rename task_recover() to nxtask_recover()
    sched/task, sched/pthread/, Documentation/:  Rename task_argsetup() and task_terminate() to nxtask_argsetup() and nxtask_terminate(), respectively.
    sched/task:  Rename task_schedsetup() to nxtask_schedsetup()
    sched/ (plus some binfmt/, include/, and arch/):  Rename task_start() and task_starthook() to nxtask_start() and nxtask_starthook().
    arch/ and sched/:  Rename task_exit() and task_exithook() to nxtask_exit() and nxtask_exithook(), respectively.
    sched/task:  Rename all internal, static, functions to begin with the nx prefix.
2019-02-04 13:42:51 -06:00
Gregory Nutt
90e4cf4349 mm/umm_heap: sbrk() is only available in the KERNEL build. 2019-02-04 10:32:31 -06:00
Gregory Nutt
b1001b4e50 Update TODO list regarding non-queuing of signal actions; Add comments in code at areas where the issue applies. 2019-02-04 08:35:03 -06:00
Gregory Nutt
1bbcd1ad96 Update some comments and cosmetic spacing. 2019-02-04 07:24:45 -06:00
Gregory Nutt
a77c073797 arch/: Fix an interlock that was broken by commit 641a98a434 in all implementations of up_sigdeliver. 2019-02-03 17:14:32 -06:00
Gregory Nutt
641a98a434 arch/: The saved return register state is available on the user stack. Thic commit reorders some logic so that certain, critical registers are preserved in the TCB. This does not make the logic 100% secure, but does prevent some obvious things. sched/signal/sig_delivery: Add a flag to the TCB to indicate that we are in a signal handler. Use this flag to assure that a there a never attempts to nest signal handling operations on a thread. This was guaranteed before but when locking of pre-emption during signal delivering was eliminated in a previous commit, there was a remote possibility of an attempt to do nested signal handling. This flag assures that there is only one signal handled at a time. 2019-02-03 15:29:47 -06:00
Gregory Nutt
d8943be51c arch/arm/src/sam34 and sama5: Port Anthony Merlino's fix of commit ee840c74da to similar Ethernet drivers for parts in other SAM families. 2019-02-02 16:14:43 -06:00
Anthony Merlino
ee840c74da Merged in antmerlino/nuttx/samv7_emac_bna_fix (pull request #824)
arch/arm/src/samv7/sam_emac.c: Fixes rxdesc index logic to handle Buffer Not Available (BNA) condition.

If a SOF is found, but no EOF, don't move past the frame. Instead, keep the index at the SOF buffer until the rest of the data is written.

This fixes a receiver lockup condition where the peripheral and this driver get out of sync with there head pointers. In this case the driver has moved past buffers it owns, without clearing ownership, which results in the peripheral and driver in a deadlock with each other.

Approved-by: GregoryN <gnutt@nuttx.org>
2019-02-02 21:56:20 +00:00
Gregory Nutt
7a0e62e24f arch/arm/src/samv7/sam_emac.c: Fix a compile problem introduced with commit cf1e0f7976. 2019-02-01 16:14:41 -06:00
Gregory Nutt
cf1e0f7976 arch/arm/src/samv7/sam_emac.c: The logic for determining the number of queues for SAMV71 must be extended. All SAMv7 parts increase the number of queues from 3 to 6 at revision B, not just the SAMV71. 2019-02-01 15:42:11 -06:00
David Sidrane
2f18326c09 arch/arm/src/imxrt/chip/imxrt_gpt.h: Correct register offsets. 2019-01-30 16:40:27 -06:00
Kevin Liu
46895dc86b 1./arch/arm/src/samv7/sam_spi.c DMA Tx/Rx timeout issue.
2./arch/arm/src/samv7/sam_qspi.c   compiling error when set CONFIG_SAMV7_QSPI_DLYBCT
3. fix compiling error when set CONFIG_BOARDCTL_IOCTL/CONFIG_BOARDCTL_UNIQUEID
2019-01-30 10:07:01 -06:00
David Sidrane
d70cb97950 arch/arm/src/imxrt/chip/imxrt_tmr.h: Fix addressing and restructure using common offset 2019-01-29 17:28:51 -06:00
David Sidrane
f7003f8ef2 arch/arm/src/imxrt: Add XBAR Support 2019-01-29 17:24:27 -06:00
Gregory Nutt
2fc9b7acfc Update some comments. 2019-01-29 17:13:54 -06:00
Gregory Nutt
88353226c9 arch/arm/src/lpc17xx/lpc17_allocateheap.c: Fix some errors introduced in my last change. Noted by Pavel Pisa 2019-01-28 15:11:36 -06:00
Xiang Xiao
39d83375d2 arch/arm/src Serial: Remove duplicated inclusion of nuttx/fs/ioctl.h 2019-01-28 06:16:15 -06:00
Gregory Nutt
5bf7890d32 arch/arm/src/lpc17xx/lpc17_allocateheap.c: Correct some confusion in the memory layout introduced in commit 40d666f440. The 'primary ram' may be either the internal SRAM or the external DRAM (in the case where an external bootloader has previously initialized the SDRAM). The primary ram is laid out as: .data, .bss, then the IDLE stack allocation. The global variable g_idlestack is the top of the IDLE stack and also the beginning of memory available for the heap in primary ram. With this change, a range comparison is used to determin if g_idlestack lies in SRAM or SDRAM. If so, then the remainder of the memory is available for HEAP usage. 2019-01-28 06:08:30 -06:00
Pavel Pisa
40d666f440 arch/arm/src/lpc17xx/: The enable of EMC clocks has to be preserved when already enabled by loader. EMC and related pins configuration has to be skipped if the system is run from SDRAM. A region of SDRAM which is used by system must not be used for heap. 2019-01-27 17:45:19 -06:00
Pavel Pisa
f43560c080 arch/arm/src/lpc17xx/lpc176x_clockconfig.c: The code preserves undocumented reserved bits only if board does not set them to keep previous behavior for boards where developers (hopefully) know what values should be set into these bits. 2019-01-27 17:30:01 -06:00
Gregory Nutt
78c8485b0d Fix some warnings found in build testing. 2019-01-27 17:23:01 -06:00
Gregory Nutt
732bef73a7 include/net/if.h: Fix some macro definitions overlooked in commit d105dc9b5e. Also corrects the name of a structure: mii_ioctl_notify_s vs mii_iotcl_notify_s. 2019-01-27 16:43:42 -06:00
Gregory Nutt
4b9abfa3c2 Every file that uses serial IOCTLs (TIOC*) must explicity include nuttx/fs/ioctl.h. This was included previously via sneak path in the now deleted arch/serial.h. 2019-01-27 13:41:44 -06:00
Gregory Nutt
2992660420 arch/arm/src/imxrt: Fix another newly introduced compilarsion error due to missing inclusion of nuttx/fs/ioctl.h. I think this is a side-effect of removing arch/serial.h which probably provided a sneak inclusion path for nuttx/fs/ioctl.h. We will just have to fix them one at a time as they pop-up in build testing. 2019-01-27 13:25:58 -06:00
Gregory Nutt
5b400cdf20 arch/arm/src: Fix newly introduced compilarsion errors in two more serial drivers: lpc17xx and lc8223450. Not sure why this are not occuring, but including nuttx/fs/ioctl.h. 2019-01-27 13:21:44 -06:00
Gregory Nutt
e4336bd1be arch/arm/src/am335x/am335x_serial.c: Eliminate an error 'TIOCSBRK undeclared. 2019-01-27 12:49:42 -06:00
raiden00pl
5911478777 Merged in raiden00/nuttx_pe (pull request #823)
Improvements in STM32 ADC, PWM and TIM

arch/arm/src/stm32/chip/stm32_adc_v2.h: missing T1TRGO2 for JEXTSEL

arch/arm/src/stm32/stm32_adc: configure injected channels external trigger when ADC enabled

arch/arm/src/stm32/stm32_adc: update injected conversion queue of context after configuration

arch/arm/src/stm32/stm32_adc: fix sample time configuration for channels. The array index for channels was missing

arch/arm/src/stm32/stm32_adc: support for offset configuration

arch/arm/src/stm32/stm32_pwm: fix TRGO/TRGO2 configuration

arch/arm/src/stm32/stm32_pwm: support for advanced timers channel 5 and 6

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-27 16:17:39 +00:00
Xiang Xiao
d105dc9b5e drivers/net/phy_notify.c and all network drivers that support PHY notifications: Support the signal notification through SIGEV_THREAD 2019-01-27 08:57:23 -06:00
Xiang Xiao
818d8dda1e Remove empty seria.h and all references 2019-01-26 15:08:14 -06:00
Alan Carvalho de Assis
db0b9b7c34 arch/arm/src/samd2l2 serial: Fix SAMD2L2 serial driver it needs sam_usart_enable() to work 2019-01-26 12:51:51 -06:00
Xiang Xiao
38ffb98f1b Kconfig files, binfmt/libelf, libs/libc/machin, libs/libxx: Correct libcxx exception handling by introducing the generic config(CXX_EXCEPTION and CXX_LIBSUPCXX) 2019-01-26 11:23:31 -06:00
Xiang Xiao
763ba51b78 arch/xxx/src/xxx/up_assert.c: Dump CPU0 IDLE stack only when PID equals 0. IDLE threads of other CPUs do not need this special check 2019-01-26 10:59:23 -06:00
Xiang Xiao
bda6d7f065 arch/arm/include/syscall.h: Add missing inclusion of arch/armv7-r/syscall.h for CortexR. 2019-01-26 07:43:31 -06:00
Xiang Xiao
9f408e9937 arch/arm/src/include/xxx/syscall.h: Align semi-hosting call style with other syscalls 2019-01-26 07:40:47 -06:00
ligd
5a6108c172 arch/xxx/src/common/up_initialize.c: Move up_pminitialize() after timer_initialize() 2019-01-26 07:32:14 -06:00
Xiang Xiao
81bef6cccf arch/Kconfig and arm/src/armv7-m/Kconfig: ARCH_HIPRI_INTERRUPT shouldn't select ARMV7M_USEBASEPRI. First because that is a violation of the layered nature of the Kconfig architecture, but also because then Kconfig will generated errors when high priority interrupts are used with other architectures. 2019-01-26 07:21:18 -06:00
Xiang Xiao
2e70eef767 arch/arm/include/armv-7m/irq.h and armv6-m/irq.h: Remove redundant conditioning on CONFIG_BUILD_PROTECTED 2019-01-26 07:04:15 -06:00
Xiang Xiao
9343451bea arch/xxx/include/: watchdog.h and arm-elf.h because they are empty. The arm-elf header file was never used; the empty watchdog.h header file was used in only one place. 2019-01-26 07:01:45 -06:00
Gregory Nutt
d35c7d95f1 arch/arm/src/tiva/cc13xx/cc13x2_v1_trim.c and cc13x2_cc26x2_v1_rom.c: Review and modified for coding style. Now pass tools/nxstyle wihout complaint. 2019-01-25 14:07:54 -06:00
Pavel Pisa
f9ac7a22ca arch/arm/src/lpc17xx/lpc17_can.c: The name can_txready clashes with Nuttx CAN core global function. LPC178x has only single LPC17_SYSCON_PCLKSEL with only single divisor. 2019-01-25 08:24:09 -06:00