Juha Niskanen
ae22eb224a
STM32L4: changes needed for STM32L452 and Nucleo-L452RE board
...
GPIO and UART seem similar across STMicro product matrix,
so renamed files accordingly. RCC is cloned just in case,
while conflicting differences there seem to be very minor.
2017-05-04 15:23:38 +03:00
Juha Niskanen
dd1b9dfa81
STM32L4: modularize Kconfig to support different product lines/families
...
This is modeled after STM32F7. Idea is to declare each chip in Kconfig
but allow for flash size override. Commit adds many STM32L4_HAVE_XXX
feature test macros.
2017-05-04 15:22:51 +03:00
Juha Niskanen
c67c4a75ba
STM32L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED
2017-05-04 09:31:12 +03:00
Gregory Nutt
b0e880b04c
Revert "STM32 I2C: More backward tests of CONFIG_I2C_POLLED. Needs to be reviewed."
...
This reverts commit 1e054a2d3b1e3fb7be4348d88e35db3773e836b9.
2017-05-03 18:26:24 -06:00
Gregory Nutt
1e054a2d3b
STM32 I2C: More backward tests of CONFIG_I2C_POLLED. Needs to be reviewed.
2017-05-03 17:33:35 -06:00
Juha Niskanen
ad3b941c44
STM32L4: stm32l4x6xx_pinmap: update I2C4 and DCMI pins
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2017-05-02 10:16:34 -06:00
Gregory Nutt
40b5c46024
STM32L4: Delete more references to DFPU, ITCM, and DTCM.
2017-05-02 08:03:21 -06:00
Juha Niskanen
a59b7bc932
STM32L4: add GPIO_PORTI definition
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2017-05-02 07:41:14 -06:00
Juha Niskanen
0eb14e9baa
STM32L4: don't think these chips have DPFPU, DTCM or ITCM
2017-05-02 07:36:11 -06:00
Gregory Nutt
f175af3cd3
More missed enum spi_dev_e forward references.
2017-04-29 08:29:01 -06:00
Sebastien Lorquet
c56c6f7ccc
ARM arch changes
2017-04-28 18:23:29 +02:00
Gregory Nutt
9431fb1d91
STM32L4: I2C was not using current interrupt handling parameter passing logic.
2017-04-28 08:21:02 -06:00
Juha Niskanen
b4d2651ca9
STM32L4: stm32l4_i2c: add I2C4 code
2017-04-28 08:09:16 -06:00
Sebastien Lorquet
c3119f06a2
Update STM32L4 README.txt file.
2017-04-27 08:37:14 -06:00
Juha Niskanen
8a6662c957
TM32L4: Add some defines for the new peripherals in STM32L496 parts
2017-04-27 07:25:20 -06:00
Juha Niskanen
707d1e67fc
STM32, STM32F7, STM32L4: Remove incorrect comment about STM32L1 LSE/RTC/LCD
2017-04-27 07:18:36 -06:00
Juha Niskanen
06e4c4aedd
STM32L4: add support for the STM32L496XX family
2017-04-25 08:47:50 -06:00
Sebastien Lorquet
dc2890904d
STM32L4 DMA: Correct bad channel definition.
2017-04-12 10:25:51 -06:00
Alan Carvalho de Assis
a58823c449
STM32XX: Fix Pending Register definition
2017-04-11 06:45:45 -06:00
Jussi Kivilinna
e3b3e57e56
RTC: add interface for check if RTC time has been set
...
New interface allows checking if RTC time has been set. This allows to application to detect if RTC has valid time (after
reset) or should application attempt to get real time by other means (for example, by launching ntpclient or GPS).
2017-04-06 09:53:11 -06:00
Juha Niskanen
9f3b24a4a1
STM32 F7: add stm32 RNG support. This is copied from stm32l4. Tested on STM32F746ZG board.
2017-03-29 07:08:10 -06:00
David Cabecinhas
08e92abb0b
ARM: Remove redundant interrupt stack coloring
2017-03-16 19:13:39 +08:00
Gregory Nutt
4d33f26717
Update some comments
2017-03-12 12:33:44 -06:00
Gregory Nutt
d9cdb6c383
STM32; OTG host implementations of stm32_in_transfer() must obey the polling interval for the case of isochronous and itnerrupt endpoints.
2017-03-12 08:39:30 -06:00
Gregory Nutt
24816cb08b
All STM32 host drivers. In IN endpoint retry, delay for a clock tick to give some breathing space for the CPU. EXPERIMENTAL change.
2017-03-10 10:25:43 -06:00
David Sidrane
acaebb361b
STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to similar STM32 I2C drivers.
...
Save elapsed time before handling I2C in stm32_i2c_sem_waitstop()
This patch follows the same logic as in previous fix to
stm32_i2c_sem_waitdone().
It is possible that a context switch occurs after I2C registers are read
but before elapsed time is saved in stm32_i2c_sem_waitstop(). It is then
possible that the registers were read only once with "elapsed time"
equal 0. When scheduler resumes this thread it is quite possible that
now "elapsed time" will be well above timeout threshold. In that case
the function returns and reports a timeout, even though the registers
were not read "recently".
Fix this by inverting the order of operations in the loop - save elapsed
time before reading registers. This way a context switch anywhere in the
loop will not cause an erroneous "timeout" error.
2017-03-10 05:07:39 -10:00
Gregory Nutt
9cd3f7f80a
STM32, STM32 F7, STM32 L4: OTG host drivers: Do not do data toggle if interrupt transfer is NAKed. Sugested by webbbn@gmail.com
2017-03-09 15:07:31 -06:00
Gregory Nutt
04297d1b0f
Update some comments
2017-03-09 13:57:37 -06:00
Gregory Nutt
a3b4475474
STM32, STM32 F7, and STM32 L4: Back out part of 3331e9c49aaaa6dcc3aefa6a9e2c80422ffedcd3. Returning immediately int he case of a NAK makes the Mass Storage Class driver unreliable. The retry/timeout logic is necessary. This implementation tries to implement a compromise: If a NAK is received after some data is received, then the partial data received is returned as with 3331e9c49aaaa6dcc3aefa6a9e2c80422ffedcd3. If if a NAK is received with no data, then no longer returns the NAK error immediately but retries until data is received or a timeout occurs. Initial testing indicates that this fixes the issues the MSC. However, I hae concerns that if multiple sectors are read in one transfer, there could be NAKs between sectors as well and, in that case, then change will still cause failures.
2017-03-09 13:49:25 -06:00
Gregory Nutt
ee5ae3a57d
STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to similar STM32 I2C drivers.
2017-03-09 07:37:52 -06:00
Gregory Nutt
0631c1aafa
STM32 OTGFS, STM32 L4 and F7: Adapt Janne Rosberg's patch to STM32 OTGHS host to OTGFS host, and to similar implements for L4 and F7.
2017-03-07 07:17:24 -06:00
Gregory Nutt
ba67eb742e
STM32L4: Remove warning. Remove unused variable.
2017-03-05 14:21:00 -06:00
HuangQi
6febad2f2c
fixed a typo
2017-03-04 11:26:22 +08:00
Gregory Nutt
8353ddbef4
STM32 L4 Serial: Ooops unmatched parenthesis
2017-03-03 15:18:09 -06:00
Gregory Nutt
7982b45367
STM32 L4: Pin IRQ logic no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing.
2017-03-02 12:36:40 -06:00
Gregory Nutt
28d3344ac2
STM32/F7/L4: EXTI ALARM function no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing.
2017-03-02 09:18:10 -06:00
Gregory Nutt
d5e04a8c43
STM3 L4: EXTI COMP function no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing.
2017-03-02 09:03:12 -06:00
Gregory Nutt
89058172f1
STM32/F7/L4: EXOT PVD function no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing.
2017-03-02 08:56:31 -06:00
Mark Schulte
4761a7d816
Add argument to timer irq callback
2017-03-01 08:49:14 -06:00
Gregory Nutt
ac6e552ff7
Fixes for coding standard: '*' needs to 'snuggle' with following variable name
2017-02-28 18:37:44 -06:00
Gregory Nutt
813dc90505
STM32 L4 Serial: Convert to use new interrupt argument interface.
2017-02-28 11:02:09 -06:00
Gregory Nutt
370e188fa3
Convert more drivers to use new interrupt argument structure.
2017-02-28 09:05:01 -06:00
Gregory Nutt
704df7bd39
IRQ arguments: Fix errors discovered in build testing
2017-02-27 19:28:24 -06:00
Gregory Nutt
95856946d2
Interrupt argument bugfixes
2017-02-27 15:22:35 -06:00
Gregory Nutt
80dba27434
Fix copy past type: xcptr_t -> xcpt_t
2017-02-27 15:00:42 -06:00
Gregory Nutt
aa8d4422a5
Fix some mismatched function prototypes
2017-02-27 14:43:10 -06:00
Gregory Nutt
67de2e5f66
Add argument to STM32 EXTI interrupt handlers.
2017-02-27 14:21:30 -06:00
Mark Schulte
b3222bbc8a
irq_dispatch: Add argument pointer to irq_dispatch
...
Provide a user defined callback context for irq's, such that when
registering a callback users can provide a pointer that will get
passed back when the isr is called.
2017-02-27 06:27:56 -06:00
Gregory Nutt
4b4f0dc4df
STM32L4 COMP: Remove some unused definitions
2017-02-20 08:41:43 -06:00
Gregory Nutt
4033953878
STM32L4 COMP: Port from Motorola MDK.
2017-02-19 11:33:35 -06:00