Commit Graph

11931 Commits

Author SHA1 Message Date
Gregory Nutt
b6152cb409 arch/arm/src/stm32f0l0/stm32_dma_v1.c: Fix yet another compilation error found in this file by build testing. 2019-05-22 08:57:39 -06:00
Gregory Nutt
ae2a3d4efd arch/arm/src/stm32f0l0/stm32_dma_v1.c: Fix a compilation probleml found in build testing. 2019-05-22 08:28:03 -06:00
Gregory Nutt
b49be4bb20 Squashed commit of the following:
arch/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    sched/ audio/ crypto/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    Documentation/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    fs/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    graphics/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    net/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    drivers/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    include/, syscall/, wireless/:  Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX poll() can not longer be disabled.
    configs/:  Remove all references to CONFIG_DISABLE_POLL.  Standard POSIX poll can no longer be disabled.
2019-05-21 18:57:54 -06:00
Juha Niskanen
2df7235536 arch/arm/src/stm32l4: Make STM32L4 CRS synchronization source board configurable.
configs/nucleo-l432kc:  Add new configuration settings to board.h
configs/nucleo-l452re: ditto
configs/nucleo-l496zg: ditto
configs/stm32l476vg-disco: ditto
2019-05-21 10:21:57 -06:00
Maximilian Kriegleder
8f285b249d arch/arm/src/stm32/Kconfig: Correct some typos in conditional logic. 2019-05-21 10:15:30 -06:00
Mateusz Szafoni
8603a13f38 arch/arm/include/stm32f0l0/chip.h: Add one more definition of STM32_NADC. 2019-05-17 13:12:21 -06:00
raiden00pl
a5250662fa Merged in raiden00/nuttx_lora/lora (pull request #872)
Port AES and RND to STM32 M0 + some improvements

arch/arm/src/stm32f0l0/stm32_rng.c: change the function names to use the stm32_rng prefix

arch/arm/src/stm32f0l0/stm32_usbdev.c: move HSI48 enable to stm32xx_rcc.c

arch/arm/src/stm32f0l0: add support for AES

arch/arm/src/stm32f0l0: add support for RND

arch/arm/src/stm32f0l0: add HSI48 support for L0

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-17 18:46:30 +00:00
raiden00pl
0c6df13a4c Merged in raiden00/nuttx_stm32 (pull request #871)
arch/arm/src/stm32/Kconfig: simplify ARCH_HAVE_FPU selection and remove redundant options for F207

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-17 11:41:16 +00:00
Gregory Nutt
4676470dd7 arch/arm/src/stm32/chip/stm32_i2c.h: Fix typo in last PR noted by David Sidrane 2019-05-15 09:34:50 -06:00
raiden00pl
8ce1f1a67b Merged in raiden00/nuttx_lora/lora (pull request #869)
Port STM32F7 I2C to STM32F3 and STM32F0L0

arch/arm/src/stm32: port I2C IPv2 driver from F7 (only F3 chips)

arch/arm/src/stm32f0l0: port I2C IPv2 driver from F7

configs/b-l072z-lrwan1: nxlines_oled example (ssd1306)

configs/b-l072z-lrwan1: support for the I2C tool

configs/nucleo-f303ze: nxlines_oled example (ssd1306)

arch/arm/src/stm32h7/chip.h: cosmetics

arch/arm/src/stm32/chip/stm32_tim.h: cosmetics

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-15 08:20:28 +00:00
Juha Niskanen
2f46f4f11f arch/arm/src/stm32l4: Port HSI48 and CRS from STM32F0L0 2019-05-14 06:35:34 -06:00
Juha Niskanen
8bf2e45b6c arch/arm/src/stm32l4/stm32l4_usbdev.c: add missing PWR USBV enable, correct two USB register bits 2019-05-14 06:32:07 -06:00
Gregory Nutt
8905bd6fa6 arch/arm/src/stm32f0l0: Eliminate some warnings found in build testing. 2019-05-13 12:29:26 -06:00
raiden00pl
ebad04c269 Merged in raiden00/nuttx_l0f0/stm32m0_adc (pull request #867)
Initial ADC support and some improvemnets for the STM32 M0

arch/arm/src/stm32f0l0/Kconfig: improvements

configs/b-l072z-lrwan1: add ADC example

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-09 13:02:53 +00:00
Gregory Nutt
1cce434a6b configs/lpcxpresso-lpc54628: Update a README.txt. 2019-05-08 10:32:10 -06:00
Gregory Nutt
9b13eaf595 arm/src/lpc54xx/: Bring in the USB FS OHCI driver from LPC17. This is a quick'n'dirty port that I will finish sometime later (I hope). Currently, it is missing hardware clocking setup and is not even hooked into the build system yet. Needless to say it does not yet even compile. 2019-05-08 10:01:37 -06:00
Mateusz Szafoni
21feca2a46 arch/arm/src/stm32h7/Kconfig: fix warnings;
arch/arm/src/stm32h7/stm32_tim.c: don't use hardcoded UIF interrupt
2019-05-06 06:45:16 -06:00
Jukka Laitinen
246898fd1c arch/arm/src/stm32h7: Add missing parts for timer driver: Add the missing header files, add the driver Kconfig, and add it to make system. 2019-05-05 15:35:06 -06:00
Jason Harris
a3312b74bb arch/arm/src/common/up_initialize.c: up_initialize.c needs to know about ramlog_consoleinit() 2019-05-04 18:28:43 -06:00
Gregory Nutt
3e848fb893 Merged imxrt1020 into master 2019-04-30 16:08:46 -06:00
Jukka Laitinen
7f74947c93 arch/arm/src/stm32h7/: Add timer devices driver for stm32h7. This is mostly a forklift from stm32f7 with some h7 specific modifications. 2019-04-30 08:59:42 -06:00
Jukka Laitinen
54856cfa5e arch/arm/src/stm32h7/: Add stm32h7 ethernet driver. This is the initial push for the ethernet driver. The driver has been tested to be working on a nucleo board. This is still WIP, it doesn't for example do MAC filtering on HW level, but just receives all ethernet packets. 2019-04-30 08:43:39 -06:00
Jukka Laitinen
c4b4291efd arch/arm/src/stm32h7/stm32_i2c.c: Fix I2C4 compilation for stm32h7. 2019-04-30 07:21:41 -06:00
Jukka Laitinen
98162e268f arch/arm/src/stm32h7/chip/stm32h7x3xx_pinmap.h: Add the GPIO_ETH_RMII_RXD1 pinmap definition for stm32h7. 2019-04-30 07:18:52 -06:00
Jukka Laitinen
1a66824a6b arch/arm/src/stm32h7/chip/stm32h7x3xx_memorymap.h: Add the stm32h7 SYSTEM_UID and DEBUGMCU_BASE register definitions. 2019-04-30 07:17:00 -06:00
Jukka Laitinen
d3ff5476e0 arch/arm/src/stm32h7/stm32h7x3xx_rcc.c: Set the stm32h7 default HSI predivider to 4. The I2C driver currently assumes HSI clock to be 16MHz. 2019-04-30 07:15:37 -06:00
Jukka Laitinen
7a1522294c arch/arm/src/stm32h7/chip/stm32h7x3xx_rcc.h: Fixes for stm32h7 rcc definitions: (1) Fix compilation for UART7, UART8 and I2C4, (2) Add backup domain control registers. 2019-04-30 07:13:54 -06:00
Jukka Laitinen
66b0b0c09b arch/arm/src/stm32h7: Add stm32h7 sdmmc driver. This is the initial sdmmc driver for stm32h7. It is mostly copied from stm32f7, with modified register addresses and bits, and IDMA added. This is still WIP, it only works with IDMA. 2019-04-30 07:08:19 -06:00
Gregory Nutt
abf6965c24 Squashed commit of the following:
libs/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    syscall/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    wireless/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    Documentation/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    include/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    drivers/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    sched/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    configs:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    arch/xtensa:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    arch/z80:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    arch/x86:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    arch/renesas and arch/risc-v:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    arch/or1k:  Remove all references to CONFIG_DISABLE_SIGNALS.  Signals are always enabled.
    arch/misoc:  Remove all references to CONFIG_DISABLE_SIGNALS.  Signals are always enabled.
    arch/mips:  Remove all references to CONFIG_DISABLE_SIGNALS.  Signals are always enabled.
    arch/avr:  Remove all references to CONFIG_DISABLE_SIGNALS.  Signals are always enabled.
    arch/arm:  Remove all references to CONFIG_DISABLE_SIGNALS.  Signals are always enabled.
2019-04-29 14:52:05 -06:00
Juha Niskanen
d02ec6373c arch/arm/src/stm32l4: Add USB FS device support. 2019-04-29 08:09:33 -06:00
Gregory Nutt
b3819e8f0d configs/same70-xplained/twm4nx: Add a configuration for test Twm4Nx using VNC. 2019-04-28 12:49:18 -06:00
Gregory Nutt
c7f042ba14 arch/arm/src: Remove dependency on CONFIG_ARCH_FPU for inclusion of nvic.h in all other *_start.c files. 2019-04-25 07:17:10 -06:00
Mateusz Szafoni
5602248097 arch/arm/src/stm32h7/stm32_start.c: Inclusion of nvic.h should not be conditioned on CONFIG_ARCH_FPU. 2019-04-25 07:09:19 -06:00
Jason Harris
2609b0dff3 drivers/usbhost/usbhost_storage.c: Correct typo "const const" to "const".
arch/arm/src/stm32/stm32_i2s.c:  In debug assertions, it  on a sample rate of 0, but based on other code comments this value implies disabling the i2s master clock.

arch/arm/src/stm32/stm32_usbhost.h and arch/arm/src/stm32/Kconfig:  Allow vbus monitoring for the OTG_HS host driver.
2019-04-23 11:11:11 -06:00
Nobuto Kobayashi
eba004d498 arch/arm/src/cxd56xx and arch/arm/include/cxd56xx: Add initial CXD56xx chip sources. 2019-04-22 07:51:22 -06:00
Anthony Merlino
78f48f476f Merged in antmerlino/nuttx/stm32f7-pinmap-revert (pull request #857)
arch/arm/src/stm32f7: stm32f76xx77xx_pinmap.h:  Adds additional pin alternate function for SPI2

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-17 17:06:23 +00:00
Anthony Merlino
b13cf7833a Merged in antmerlino/nuttx/stm32f76xx7xx_spi_pin (pull request #856)
arch/arm/src/stm32f7: stm32f76xx77xx_pinmap.h:  Adds additional pin alternate function for SPI2

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-17 17:04:13 +00:00
David Sidrane
9c08d7fa42 Merged in david_s5/nuttx/master_f7_i2c_txe_fix (pull request #854)
stm32f7:i2c track bad state

The previous commit was true draconian.
   Now we track bad state and so the SW
   reset only when it occurs.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-17 13:50:11 +00:00
Fabian Justi
53a94594d6 Merged in Justifa/nuttx (pull request #855)
Master

* arch/arm/src/stm32l4/stm32l4_pwm.c Fix register addr, en_bit and resetbit for pwm timers

* configs/nucleo-l476rg/src/nucleo-l476rg.h Fixed naming stm32l4_pwm_setup
    configs/nucleo-l476rg/src/stm32_appinit.c Fixed naming stm32l4_pwm_setup

Approved-by: David Sidrane <david_s5@nscdg.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-17 13:48:37 +00:00
David Sidrane
dd1a2b5ddb Merged in david_s5/nuttx/master_f7_i2c_txe_fix (pull request #853)
stm32f7:i2c interrupt storm fix

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-16 22:45:40 +00:00
Matias N
7ac80a1d56 arch/arm/src/stm32/Kconfig: it seems one option in the timer configuration was lost at some point. 2019-04-15 14:57:01 -06:00
Matias N
3025fcefd3 arch/arm/src/stm32/stm32f10xxf30xx_flash.c: RCC register access should not be offset by FLASH register base. 2019-04-13 11:49:21 -06:00
Gregory Nutt
de7aedfe96 arch/arm/src/stm32: As noted by Matias N, the FLASH base address used was incorrect. It was using the address of the FLASH data, not the address of the FLASH registers. 2019-04-13 11:18:38 -06:00
Valmantas Paliksa
c38b6cb068 arch/arm/src/stm32f7/stm32_can.c: CAN fixes. 2019-04-12 11:40:34 -06:00
Valmantas Paliksa
2bb15a49a6 arch/arm/src/stm32f7/stm32_uid.c: Add UID access. 2019-04-12 08:46:02 -06:00
Valmantas Paliksa
29164c5706 arch/arm/src/stm32f7/stm32_flash.c: Add flash block mapping support for progmem. 2019-04-12 08:43:16 -06:00
Valmantas Paliksa
c574e71c89 arch/arm/src/stm32f7/stm32_ethernet.c: Autogenerate Ethernet MAC address from device unique ID. 2019-04-12 08:31:57 -06:00
Valmantas Paliksa
17176480df arch/arm/src/stm32f7/stm32_spi.c: Add SPI DMA threshold configuration. 2019-04-12 08:14:17 -06:00
Valmantas Paliksa
8cea24fdf0 arch/arm/src/stm32f: Added support for TICKLESS mode. 2019-04-12 08:10:02 -06:00
Ramtin Amin
e74e46aa7f arch/arm/src/stm32f7/stm32_otgdev.c: Correct hardcoded FIFO size that is wrong for OTG FS. 2019-04-11 10:37:40 -06:00
Gregory Nutt
fb04ad1e82 arch/arm/src/stm32f7/stm32_otgdev.c: Fix some comments that were screwed up by indent.sh. 2019-04-11 09:04:39 -06:00
raiden00pl
95340ebfda Merged in raiden00/nuttx_l0f0 (pull request #852)
Support for STM32L071X and a few improvements for STM32F0L0

arch/arm/src/stm32f0l0: add peripherals configuration for STM32L0

arch/arm/src/stm32f0l0: a few fixes for USART

arch/arm/include/stm32f0l0/stm32f0_irq.h: use names as in other STM32

arch/arm/include/stm32f0l0/chip.h: use names as in other STM32

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-09 13:28:38 +00:00
Eduard Niesner
d4a5204e1e arch/arm/src/stm32f7: Ported the PWM from F4 to F7. 2019-04-08 07:15:48 -06:00
Matthew Koch
33f4505c55 ^Merged in mjkoch/nuttx (pull request #851)
Kconfig warnings: defaults for choice values not supported

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-08 03:29:28 +00:00
Matthew Koch
f8495006a5 Merged in mjkoch/nuttx (pull request #850)
I2C1 config on stm32f746g-disco. Typo in stm32f7/stm32_i2c.c

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-08 01:06:33 +00:00
Ramtin Amin
7d2bd2371f arch/arm/src/stm32f7: USB High speed for STM32F7 series 2019-04-07 19:05:06 -06:00
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