Commit Graph

11744 Commits

Author SHA1 Message Date
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