David Sidrane
2bbe389897
stm32:Fix coding standard error
2017-09-12 14:16:46 -10:00
David Sidrane
48f0209b84
stm32f7:I2C fixed typo in comment
2017-09-12 14:16:45 -10:00
David Sidrane
ef411578d5
stm32:stm32 alt I2C ensure proper error handling.
...
Injecting data errors would cause the driver to
continually reenter the isr with BERR an RxNE.
This fix allows the error to be cleared and
propagated to the waiting task.
2017-09-12 14:16:45 -10:00
David Sidrane
617c91b373
stm32:stm32f40xxx I2C ensure proper error handling.
...
Injecting data errors would cause the driver to
continually reenter the isr with BERR an RxNE.
This fix allows the error to be cleared and
propagated to the waiting task.
2017-09-12 14:16:45 -10:00
Jussi Kivilinna
61878848ad
net/sock: recvfrom: Fix double leave_cancellation_point on error path
2017-09-12 07:17:53 -06:00
Gregory Nutt
d76a541a57
Trivial, cosmetic
2017-09-11 19:22:49 -06:00
Masayuki Ishikawa
d95153706a
Merged in masayuki2009/nuttx.nuttx/lc823450 (pull request #481 )
...
latest updates on lc823450
* arch/arm/src/lc823450: Conform to the NuttX coding style
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch/arm/src/lc823450: Merge the latest fix in lc823450_rtc.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch/arm/src/lc823450: Add ADC driver
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch/arm/src/lc823450: Add watchdog driver
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* configs/lc823450-xgevk: Enable ADC and watchdog driver
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-12 01:00:32 +00:00
Mateusz Szafoni
2ffc2ab875
Merged in raiden00/nuttx (pull request #480 )
...
Master
* smps.c: fix error messages
* stm32f33xxx_hrtim.h: fix definition
* stm32_hrtim: fix pclk calculation
* stm32_hrtim.c: cosmetics
* smps.h: cosmetics
* add upper-half driver for high power LED driver (powerled)
* stm32f334-disco: beginning of lower half driver for high power LED (powerled)
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-10 17:43:20 +00:00
Gregory Nutt
435dd39d4c
arch/arm/Kconfig: Add more classic ARM11 architecture selections.
2017-09-09 12:44:56 -06:00
Gregory Nutt
3ca3674cca
Update/fix last commit: On some STM32's, the CSR regiser is 18 vs. 16 bits wide. Need to use 32-bit register accesses.
2017-09-08 14:21:24 -06:00
Oleg Evseev
3596c75d78
STM32: Add logic for enabling wakeup pins.
2017-09-08 13:23:08 -06:00
Juha Niskanen
3719d0a395
Merged in juniskane/nuttx_stm32l4/stm32l4_adc_kconfig_pr (pull request #478 )
...
STM32L4: ADC, Kconfig small changes
* STM32L4 ADC: port analog watchdog ioctls from the Motorola MDK
* STM32L4: Kconfig: add some L486 and L496 chips, remove duplicates
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-06 22:05:44 +00:00
Jussi Kivilinna
449a891a8e
stm32f7: add new configuration option for enabling flash ART Accelerator and flash prefetcher
2017-09-04 07:56:51 -06:00
Mateusz Szafoni
23edfe2557
Merged in raiden00/nuttx (pull request #477 )
...
Master
* stm32f33xxx_hrtim.h: add some comments
* stm32_hrtim: add burst mode configuration, rename some definitions
* smps.h: add private data to the smps_s structure
* stm32_hrtim: cosmetics
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-03 18:46:41 +00:00
Gregory Nutt
860ff78d55
Kinetis: First cut implementation of the alarm read function. Pretty simple because the Kinetis RTC is just a 1Hz counter.
2017-09-03 12:44:45 -06:00
Gregory Nutt
5f67fc8f1b
RTC alarms: getalarmdatetime functions are private and should be declared static.
2017-09-03 12:20:13 -06:00
Gregory Nutt
789e204141
Correct naming of fields in struct alm_rdalarm_s. Should not be the same as the corresponding fields of struct alm_setalarm_s. The whole purpose of that naming convention is to keep the field names unique.
2017-09-03 09:51:47 -06:00
Gregory Nutt
f42a8a38eb
Add hooks for Boris Astardzhiev's RTC change for STM32L4 to Kinetis. Lower level logic not yet implemented.
2017-09-03 08:39:03 -06:00
Gregory Nutt
9021e1caeb
Port Boris Astardzhiev RTC change for STM32L4 to STM32
2017-09-03 08:39:03 -06:00
Gregory Nutt
01fa856f9b
Fix warning introduced with PR to STM32L4 RTC.
2017-09-03 08:39:03 -06:00
Gregory Nutt
92b3c9477a
Port Boris Astardzhiev RTC change for STM32L4 to STM32F7
2017-09-03 08:39:02 -06:00
Boris Astardzhiev
b1eceb838b
Extend the RTC framework with an alarm read ioctl (RTC_RD_ALARM). Through it consumer could get configuration settings about previously scheduled hardware alarms (active status, hours, minutes, seconds).
2017-09-03 08:39:02 -06:00
Mateusz Szafoni
daac3bd7f8
Merged in raiden00/nuttx (pull request #476 )
...
Master
* stm32_dac.c: fix compilation when DMA disabled for channel
* smps.h: update some comments
* smps.c: more sanity checks
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-02 19:52:21 +00:00
Jussi Kivilinna
fe7d8c941c
stm32f7: do not enable read-modify-write on DTCM. "AN 4667 - STM32F7 Series system architecture and performance" recommends to disable read-modify-write on DTCM: "If the DTCM-RAM is used as data location and the variables used are byte or/and halfword types, since there is no ECC management in this RAM on the STM32F7 Series, it is recommended to disable the read-modify-write of the DTCM-RAM in the DTCM interface (inthe DTCMCR register) to increase the performance."
2017-09-01 08:01:54 -06:00
Juha Niskanen
258fa08e69
STM32L4 DAC: Fix naming so that DAC1 and DAC2 always refer to channels 1 and 2
...
User should not be bothered by details like how many IP blocks there are. As no
current STM32L4 has second DAC block (channel 3), remove support for such
hypothetical hardware. DMA channels corrected.
Change-Id: I2cba7e55803871f1ff945538113f12cf5088f68d
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2017-09-01 10:01:03 +03:00
Juha Niskanen
0003ad171d
STM32L4 DAC: separate DMA buffer configuration for channels
...
Change-Id: Ibc6dc90b39b784b5534b8908eaf615bf1ddcb7ed
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2017-09-01 10:00:55 +03:00
Juha Niskanen
4025205772
STM32L4 DAC: add option for routing DAC output to ADC
...
Actually write something to the DAC DMA buffer.
Change-Id: I1b2516ac26fb17f5242611b56be8926c5f40c2c7
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2017-09-01 10:00:46 +03:00
Gregory Nutt
91d473b816
Revert "stm32 FLASH allow non blocking operation on constrained devices"
...
This reverts commit ad2ef95ddf
.
2017-08-31 15:14:26 -06:00
David Sidrane
9fc283526a
Merged in david_s5/nuttx/master_stm32_flash (pull request #474 )
...
stm32 FLASH allow non blocking operation on constrained devices
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-08-31 18:04:07 +00:00
Sergey Ustinov
8c35b2ddca
Add the set counter function for stm32 timers
2017-08-31 11:54:00 -06:00
David Sidrane
ad2ef95ddf
stm32 FLASH allow non blocking operation on constrained devices
...
On a very memory constrained device with a single task. The
sem_wait and sem_post operations can be disabled, to save space.
The default is blocking enabled.
2017-08-31 07:47:37 -10:00
Sergei Ustinov
795650a2fb
I'm worried about the stm32_tim_getcounter funtion. It returns always 32 bits. But major stm32 timers have 16 bits counters. I think, it's not a good idea to return the memory behind the TIMx_CNT register. This changes adds the register size checking.
2017-08-31 11:45:28 -06:00
Gregory Nutt
a7fd8eb203
Trivial removal of a blank line.
2017-08-31 11:36:18 -06:00
Gregory Nutt
27cfde9968
Protected/Kernel Builds: Review us of kmm_addregion vs. kumm_addregsion in other configurations.
2017-08-31 08:49:21 -06:00
Gregory Nutt
69f1399aa7
LPC43xx: Add external RAM to the user heap, not the kernel heap.
2017-08-31 08:12:42 -06:00
Alan Carvalho de Assis
ef3898c2dd
LPC43xx: Modify up_allocate_(k)heap() to support PROTECTED mode
2017-08-31 07:58:16 -06:00
Gregory Nutt
9d3b1af1cd
ARM syscall logic: Clear bit 0 in PC settings. Bit 0 is the thumb mode indication and should not be set in the PC.
2017-08-30 13:56:03 -06:00
raiden00pl
85c48de040
stm32_hrtim: add DMA configuration
2017-08-28 17:44:14 +02:00
Juha Niskanen
809569cda9
STM32L4 ADC: implement peripheral
2017-08-28 07:05:33 -06:00
Juha Niskanen
a2dc88e075
STM32, STM32L4, STM32F7 ADC: fix channel 18 sample time
2017-08-28 07:05:33 -06:00
Juha Niskanen
e8cd2f88b8
STM32L4 RCC: enable ADC clock source
2017-08-28 07:05:32 -06:00
Alan Carvalho de Assis
81d6cefd65
Add support to STM32F433RC
2017-08-28 07:05:32 -06:00
raiden00pl
5695a55569
stm32_dac.c: support external triggering for DMA transfer
2017-08-27 18:25:55 +02:00
Mateusz Szafoni
ea35f31f73
Merged in raiden00/nuttx (pull request #469 )
...
Master
* stm32f0/Kconfig: remove references to HRTIM
* STM32F33: missing SYSCFG CFGR3 definitions
* stm32_hrtim.h: remove redundant definitions
* stm32_hrtim.c: fix DAC triggers configuration
* stm32_hritm.c: warning message when default value selected
* stm32_hrtim.c: missing master timer logic
* stm32_hrtim.c: add more assertions
* stm32_dac.c: fix conditional
* stm32_dac.c: conditional logic for timer triggering
* stm32_dac.c: fix TSEL configuration when HRTIM
* stm32_dac.c: unnecessary condition
* stm32_dac.c: DMA request remapping
* stm32_dac.c: fix commpilation errors
* stm32_dac.c: add DMA buffers initialization logic
* stm32_hrtim.c: enable DAC triggering
* analog/comp.c: fix compilation errors when poll disabled
* stm32_hrtim.c: remove doubled assertions
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-08-27 12:49:53 +00:00
Gregory Nutt
7858ed834b
Minor, cosmetic changes from review of last comment.
2017-08-27 06:48:42 -06:00
Masayuki Ishikawa
cc9c8260f0
arch/arm/src/lc823450: Add eMMC/SD and USB support
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-08-27 19:11:07 +09:00
Masayuki Ishikawa
56bf5b2a98
arch/arm/src/lc823450: Conform to the NuttX coding style
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-08-27 19:11:03 +09:00
Juha Niskanen
1be5f0a3fc
STM32L4 COMP: comparators share RCC enable bit with SYSCFG
2017-08-25 07:06:39 -06:00
Juha Niskanen
1152e4868b
STM32L4 DAC: report transfer as completed in DMA callback. Without this even O_NONBLOCK writes block the calling task if DAC was using DMA.
2017-08-25 07:05:11 -06:00
Juha Niskanen
874947d7e5
STM32L4 TIM: TIM15,16,17 are always in APB2
2017-08-25 07:02:21 -06:00