Daniel Agar
b699bdef3b
Merged in dagar/nuttx/pr-stm32f7_stackcheck-upstream (pull request #714 )
...
stm32f7 add up_stackcheck.c
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-31 18:01:46 +00:00
Gregory Nutt
f8bfbd58c5
arch/arm/src/armv7-m/up_trigger_irq.c: Add logic to trigger ARMv7-M interrupts and exceptions.
2018-08-25 10:23:21 -06:00
Gregory Nutt
9bc951a335
Rename devif_loopback_out to devi_loopback
2018-08-25 08:33:21 -06:00
Gregory Nutt
e8270defc9
arch/: Fix an error found in build testing. The protoype of mpu_log2regionfloor() changed; an additional parameter was added. However, none of the calls to mpu_log2regionfloor() were updated to pass the new, additional parameter.
2018-08-24 16:40:37 -06:00
Xiang Xiao
0074afa0ac
net/netdev: add devif_loopback_out() to check the loopback case where a packet is being sent to itself. Modify the net driver to call this function in this case. This function will simply re-inject the packet back into the network and the network driver will not put anything on the wire.
2018-08-24 09:21:33 -06:00
Xiang Xiao
e1202d2ed3
Replace all ASSERT with DEBUGASSERT to save the code space
2018-08-24 06:58:30 -06:00
Xiang Xiao
467d2a58ea
Replace non critical PANIC with DEBUGPANIC to save the code space
2018-08-24 06:21:15 -06:00
Evgeniy Bobkov
df7565e557
arch/arm/src/stm32f7/stm32_serial.c: Previous logic would invalidate the data cache as each byte was read from the DMA buffer. This change adds logic to invalidate the data cache less frequently by monitoring the state of the Rx DMA buffer cache coherency and invalidating only regions as necessary. This commit also reverts commit e17d8c719e2b79bd9f55c0b6e63b7bf2a6fb68f4 which has a logic error in cases where data is removed from the Rx DMA buffer at a rate higher than it is added to the Rx DMA buffer.
2018-08-21 06:20:23 -06:00
Gregory Nutt
0e7fa2c9b0
Update some comments.
2018-08-20 22:06:04 -06:00
Gregory Nutt
e17d8c719e
arch/arm/src/stm32f7/stm32_serial.c: Previous logic would invalidate the data cache as each byte was read from the DMA buffer. This change moves one line of code: The cache invalidation moved from the single character read logic to the DMA complete interrupt handler. It is only necessary to invalidate the DMA buffer at the time that the Rx DMA completes.
2018-08-20 19:07:40 -06:00
Juha Niskanen
c90ee015e4
arch/arm/src/stm32, stm32f7, stm32l4: Make STM32F4XX RTC depend on CONFIG_STM32_RTC, cosmetic changes to comments
2018-08-16 08:05:24 -06:00
Gregory Nutt
8c61c2f31b
Remove trailing spaces at the end of lines.
2018-08-13 07:39:38 -06:00
Gregory Nutt
5433c9f6d1
Revert "arch/arm/src/stm32, stm32f7, stm32l4 Kconfig files: The option to select the STM32 RTC should not be available if the external RTC option is selected."
...
While this is a good idea and a proper thing to do, it also creates a circular dependency and errors during configuration. RTC depends on STM32_RTC which depends on RTC_EXTERNAL with depends on RTC. No can do.
This reverts commit 714e8c1f9e64e72f29934d86f33c5da9fb88ecd4.
2018-08-08 12:51:40 -06:00
Gregory Nutt
714e8c1f9e
arch/arm/src/stm32, stm32f7, stm32l4 Kconfig files: The option to select the STM32 RTC should not be available if the external RTC option is selected.
2018-08-08 12:49:01 -06:00
Gregory Nutt
8d68d9ca43
arch/arm/src/stm32, stm32f7, stm32l4, and related defconfig files: The STM32 RTC driver was being selected by the global CONFIG_RTC option. That is in correct. For example, if you want to disabled the STM32 RTC and use an external RTC you cannot because the external RTC also depends on the global CONFIG_RTC. The solution is to add a new CONFIG_STM32xx_RTC configuration option the permits to you select or deselect the STM32 RTC but still be able to selecte the external RTC.
2018-08-08 12:42:04 -06:00
Evgeniy Bobkov
67287e89d0
This commit basically reverts my version of the change bbee0d70de46872b38105a8a872e15eb0f899719 in favor of Evgeniy Bobkov's version per request of Juha Niskanen.
2018-08-06 06:22:19 -06:00
Gregory Nutt
4e5cf1229c
drivers/mmcsd/Kconfig: three configuration settings were within ifdef/endif and led to warning: xxx selects xxxx which has unmet direct dependencies. Fix by moving settings to drivers/Kconfig and outside of the ifdef-endif. Also renamed CONFIG_SDIO_PREFLIGHT to CONFIG_ARCH_HAVE_SDIO_PREFLIGHT to follow naming of similar hidden architecture capability configurations.
2018-08-05 17:58:17 -06:00
Gregory Nutt
c2267a57a0
Kconfig files: Fix several errors noted by Alex Denisov in Bitbucket issue 115.
2018-08-05 10:48:02 -06:00
Gregory Nutt
bbee0d70de
arch/arm/src/stm32f7: Fix an error introduced by the patch by Evgeniy Bobkov in Issue #114 . That patch brok all STM32 F7 builds.
2018-08-03 14:26:29 -06:00
Evgeniy Bobkov
caa7fa7327
This commit ports the stm32f20xxf40xx_flash.c driver to the STM32F7 platform and fixes some relevant problems in the header files.
2018-08-03 11:02:59 -06:00
Gregory Nutt
10069067c1
include/nuttx/i2c/i2c_master.h: Rename I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other contexts than a repeated start. Add comments to clarilfy setup for repeated start.
2018-08-03 08:51:55 -06:00
Gregory Nutt
41666dafa8
drivers/usbhost/usbhost_max3421e.c: Fix an error in reading the pending interrupts. Aos fix a number of typos and update a README.
2018-07-29 15:06:44 -06:00
Bob Feretich
f9f56aa254
arch/arm/src/stm32f7/: Fix data timeout errors with multiblock transfers.
2018-07-20 09:52:32 -06:00
Gregory Nutt
4d648625e3
arch/arm/src/stm32fy: IO compensation is non longer an inline function, just a plain callable function. Not really necessary for the F7, but now the implementation is identical to the F2 and F4.
2018-07-16 09:50:10 -06:00
Gregory Nutt
f09f186375
arch/arm/src/stm32f7: Port Bob Feritich's change (2c699d781279d899cffd0446d4073a9a6ea3fa48) to STM32 F2 and F4 which appear to have identical SD support and I/O compensation requirements.
2018-07-15 17:46:58 -06:00
Gregory Nutt
0c093f800d
arch/arm/src/stm32f7: Port Bob Feritich's change (2c699d781279d899cffd0446d4073a9a6ea3fa48) to SDMMC2 and to all other STM32F7 architectures. Also add a conifiguration option to automatically enable I/O compensation.
2018-07-15 16:17:41 -06:00
Gregory Nutt
2c699d7812
arch/arm/src/stm32f7/chip/stm32f72xx73xx_pinmap.h: All of the SDMMC pins were set to 50 MHz, but not the clock. This sets the clock to 50 MHz also. This combined with turning on I/O compensation makes intermittent failures go away.
2018-07-15 15:23:39 -06:00
David Sidrane
fbe5f56dd5
Merged in david_s5/nuttx/master_singlewire (pull request #679 )
...
Added Single Wire Kconfig knob
* stm32f0:Added Kconfig knob for STM32F0_USART_SINGLEWIRE
* stm32f7:Added Kconfig knob for STM32F7_USART_SINGLEWIRE
* stm32l4:Corrected comment in Kconfig STM32L4_USART_SINGLEWIRE
* stm32:Added Kconfig knob for STM32_USART_SINGLEWIRE
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-12 19:30:43 +00:00
Gregory Nutt
f3c12215cf
arch/arm/src/stm32, stm32f0, stm32f7, stm32: Correct naming of global variables that violations the naming requirements of the coding standard.
2018-07-12 10:54:51 -06:00
Alan Carvalho de Assis
283b73edc5
Fix lots of typos in C comments and Kconfig help text
2018-07-08 18:24:45 -06:00
Gregory Nutt
1783d344dc
Eliminate some new warnings found in build testing.
2018-07-08 13:44:39 -06:00
Gregory Nutt
1450c0c2f2
arch/arm/src/stm32f7/stm32_sdmmc.c: Fix some missing right parentheses.
2018-07-07 15:23:46 -06:00
Ramtin Amin
f39c611d64
arch/arm/src/stm32f7/stm32_sdmmc.c: Add SDIO coard support.
2018-07-05 07:31:41 -06:00
Gregory Nutt
22cd0d47fa
This commit attempts remove some long standard confusion in naming and some actual problems that result from the naming confusion. The basic problem is the standard MTU does not include the size of the Ethernet header. For clarity, I changed the naming of most things called MTU to PKTSIZE. For example, CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE.
...
This makes the user interface a little hostile. People thing of an MTU of 1500 bytes, but the corresponding packet is really 1514 bytes (including the 14 byte Ethernet header). A more friendly solution would configure the MTU (as before), but then derive the packet buffer size by adding the MAC header length. Instead, we define the packet buffer size then derive the MTU.
The MTU is not common currency in networking. On the wire, the only real issue is the MSS which is derived from MTU by subtracting the IP header and TCP header sizes (for the case of TCP). Now it is derived for the PKTSIZE by subtracting the IP header, the TCP header, and the MAC header sizes. So we should be all good and without the recurring 14 byte error in MTU's and MSS's.
Squashed commit of the following:
Trivial update to fix some spacing issues.
net/: Rename several macros containing _MTU to _PKTSIZE.
net/: Rename CONFIG_NET_SLIP_MTU to CONFIG_NET_SLIP_PKTSIZE and similarly for CONFIG_NET_TUN_MTU. These are not the MTU which does not include the size of the link layer header. These are the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename CONFIG_NET_6LOWPAN_MTU to CONFIG_NET_6LOWPAN_PKTSIZE and similarly for CONFIG_NET_TUN_MTU. These are not the MTU which does not include the size of the link layer header. These are the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename CONFIG_NET_ETH_MTU to CONFIG_NET_ETH_PKTSIZE. This is not the MTU which does not include the size of the link layer header. This is the full size of the packet buffer memory (minus any GUARD bytes).
net/: Rename the file d_mtu in the network driver structure to d_pktsize. That value saved there is not the MTU. The packetsize is the memory large enough to hold the maximum packet PLUS the size of the link layer header. The MTU does not include the link layer header.
2018-07-04 14:10:40 -06:00
Marcin Wyrwas
898fdbded0
Merged in plwm/nuttx/stm32f746g-disco-sdram (pull request #665 )
...
Add support for STM32F746G-disco board SDRAM
* add support for STM32F746G-disco board SDRAM
* changed fb config to use SDRAM and fixed compilation
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-02 23:49:55 +00:00
Gregory Nutt
576b8b1841
stm32, stm32f0, stm32f7, stm32h7, stm32l4: Fix another duplicated configuration variable name: CONFIG_SERIAL_DISABLE_REORDERING.
2018-06-30 09:43:51 -06:00
Gregory Nutt
f24f523e4e
arch/arm/src/imxrt,stm32,stm32f0,stm32f7,stm32l4: Fix scope of naming. CONFIG_PM_SERIAL_ACTIVITY->CONFIG_STM32_PM_SERIAL_ACTIVITY, for example.
2018-06-28 16:18:15 -06:00
Gregory Nutt
7dec38b18f
drivers/Kconfig: Global configuration variable CONFIG_FB_TRANSPARENCY is only defined in architecture-specific Kconfig files and then multiple times. Add the single global definition in drivers/Kconfig. arch/arm/src/stm32, stm32f7, and same5: Rename the architecture-specific variables appropriately. Selecting the architecture-specific version will also select the global version.
2018-06-28 12:31:51 -06:00
Gregory Nutt
ba53219821
drivers/Kconfig: Global configuration variable CONFIG_FB_CMAP is only defined in architecture-specific Kconfig files and then multiple times. Add the single global definition in drivers/Kconfig. arch/arm/src/stm32 and stm32f7: Rename the architecture-specific variables appropriately. Selecting the architecture-specific version will also select the global version.
2018-06-28 12:01:55 -06:00
David Sidrane
06c7b9a5bc
Merged in david_s5/nuttx/master_f7_i2cfix (pull request #664 )
...
stm32f7:I2C reset Configure I2C pins as GPIO output
Pins were reset to inputs in the deinit. This resets
them to outputs.
Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-27 18:35:34 +00:00
Gregory Nutt
691470c1cd
arch/arm/src/stm32,stm32l4,stm32f7: Fix duplicated configuration options. All should be unique.
2018-06-27 10:20:14 -06:00
Gregory Nutt
d6ed50a370
arch/arm/src/stm32f7/chip/stm32f72xx73xx_dma.h: Macros did not account for the increase from 8 to 16 DMA channels.
2018-06-26 10:12:35 -06:00
Marcin Wyrwas
1c76e10c06
Merged in plwm/nuttx/stm32f746g-disco-lcd (pull request #661 )
...
add support for STM32F746G-disco board LCD
Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-25 23:44:31 +00:00
Daniel Agar
68418262a5
Merged in dagar/nuttx/pr-fixCompileError (pull request #660 )
...
stm32f7: Fix compile error caused by intentional use of fall through
Approved-by: Sebastien Lorquet <sebastien@lorquet.fr>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-25 16:33:56 +00:00
Gregory Nutt
a0c0d7f42b
Oops. Forgot to add files that go with the previous commit.
2018-06-21 07:15:35 -06:00
Juha Niskanen
c1518ecd26
arch/arm/src/stm32f7: Port input capture from stm32
2018-06-21 05:58:31 -06:00
Gregory Nutt
cb374e6e62
arch/: Clean up some naming and spacing.
2018-06-20 15:38:06 -06:00
Gregory Nutt
8bd9cfe038
Squashed commit of the following:
...
arch/arm: Remove support for CONFIG_ARMV7M_CMNVECTOR. It is now the only vector support available. Also remove CONFIG_HAVE_CMNVECTOR. That no longer signifies anything."
arch/arm/src/stm32: This commit removes support for the dedicated vector handling from the STM32 architecture support. Only common vectors are now supported.
2018-06-20 12:30:37 -06:00
Gregory Nutt
8fdbb1e0a4
Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t
...
Squashed commit of the following:
sched: Rename all use of system_t to clock_t.
syscall: Rename all use of system_t to clock_t.
net: Rename all use of system_t to clock_t.
libs: Rename all use of system_t to clock_t.
fs: Rename all use of system_t to clock_t.
drivers: Rename all use of system_t to clock_t.
arch: Rename all use of system_t to clock_t.
include: Remove definition of systime_t; rename all use of system_t to clock_t.
2018-06-16 12:16:13 -06:00
Gregory Nutt
a4496f036c
arch/arm/src/stm32 and stm32f7: Make LTDC and DMA2D drivers as similar as possible. Basically they should only differ in the configuratin naming: CONFIG_STM32F7_ vs CONFIG_STM32_. I suspect that the STM32F7 may also require some cache operations with the WRITE_BACK data cache is enabled.
2018-06-15 15:10:19 -06:00