Max Neklyudov
8db29071da
timekeeping: initial implementation
2016-07-10 16:14:25 -06:00
Gregory Nutt
c16500dfdb
STM32 timer. More clean up: Add all function prototypes. Reorder functions to match ordering in operations structure.
2016-07-06 14:24:59 -06:00
Gregory Nutt
7c568f249a
STM32: Various fixed to get a clean compile after integrating tickless mode. Mostly because patch came from an old version of NuttX.
2016-07-06 13:37:08 -06:00
Gregory Nutt
711f3318c5
STM32 timer: Reorganize to conform better with the NuttX coding style
2016-07-06 13:36:17 -06:00
Max Neklyudov
d8286a7f47
STM32: Add support for Tickless mode (two timer implementation)
2016-07-06 12:48:30 -06:00
Paul A. Patience
20c611c12b
STM32 CAN: Bitfield definitions should be unsigned
...
Shifting 1 by 31 is undefined behaviour because 1 is signed.
We should probably use 1ul instead of 1 everywhere else,
but for now this silences a compiler warning.
2016-06-29 13:59:33 -04:00
Paul A. Patience
52a4a20efb
STM32L4 CAN: Port support for both RX FIFOs from STM32 CAN
2016-06-29 13:59:29 -04:00
Gregory Nutt
6aa067e929
Mostly costmetic changes from review of last PR
2016-06-29 07:33:30 -06:00
David Sidrane
eacd672ab0
STM32 BBSRAM fixed (and formated) flags
2016-06-28 16:25:04 -10:00
Gregory Nutt
c40c107e7a
STM32 F4 RTC: Fix some long lines
2016-06-28 16:55:06 -06:00
Gregory Nutt
a43da4d107
STM32 CAN: Clone missing stm32_enterinitmode() and _exitinitmode() from STM32L4. Don't know if this is write but is needed to compile.
2016-06-28 14:35:49 -06:00
Paul A. Patience
a4d5845887
efm32, lcp43, stm32, stm32l4: disable interrupts with NVIC_IRQ_CLEAR
2016-06-28 15:12:39 -04:00
Gregory Nutt
8e26d4c8e0
STM32 CAN: More fixes for compilation errors due to blind leverage of STM32L4 CAN filter IOCTLs to STM32
2016-06-27 15:16:13 -06:00
Gregory Nutt
1b5bef5325
STM32 CAN: Fix an error when filter methods were ported from STM32L4
2016-06-27 11:15:37 -06:00
Gregory Nutt
ea8760eb19
Cosmetic changes from review of last PR
2016-06-24 07:20:04 -06:00
Sebastien Lorquet
d3441668ee
Port STM32L4 CAN IOCTLs to STM32
2016-06-24 11:53:17 +02:00
Sebastien Lorquet
6de8dba383
Preliminary rename of stm32 can driver functions
2016-06-24 11:29:31 +02:00
Sebastien Lorquet
8b1a607671
Here is a patch to
...
-remove a wrong comment in atmel mcan ioctl
-add ioctls to set/get bit timing in stm32l4
-add ioctl hooks to allow future management of can id filters.
2016-06-21 06:21:54 -06:00
Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
d40a473f72
Without lowsyslog() *llwarn() is not useful. Eliminate and replace with *warn().
2016-06-20 09:37:08 -06:00
Gregory Nutt
8021354e01
ullinfo (vs ulinf)
2016-06-19 18:14:27 -06:00
Gregory Nutt
5b2aa7bf99
Remove all traces of CONFIG_SYSLOG
2016-06-19 13:59:43 -06:00
Gregory Nutt
77d01ab1da
Cosmetic changes from review of last PR
2016-06-18 13:00:17 -06:00
Gregory Nutt
d563a205ea
Merged in david_s5/nuttx/upstream_nucleo-144 (pull request #64 )
...
Upstream_nucleo 144
2016-06-18 12:37:23 -06:00
David Sidrane
f8dd4dd3eb
Missing Brace
2016-06-18 08:06:33 -10:00
Gregory Nutt
d20128cc11
STM32: In big change off err() to info(), several debug statements lost their ll property.
2016-06-18 07:40:27 -06:00
David Sidrane
1c472a5ff0
STM32 adc heared file error
2016-06-17 12:48:29 -10:00
David Sidrane
ae04f25965
Clean up and Use two level include 74xx77xx ADC
2016-06-17 12:48:29 -10:00
Gregory Nutt
0d3ecb3ddd
Fix another victim of the mass name changes: xyz_errmonitor->xyz_dbgmonitor
2016-06-17 07:00:33 -06:00
Pascal Speck
794a64a99b
hen configuring a GPIO via stm32_configgpio() the function will first set the mode to output and then set the initial state of the gpio later on. If you have an application with an externaly pulled-up pin, this would lead to a glitch on the line that may be dangerous in some applications (e.G. Reset Line for other chips, etc). This changes sets the output state before configuring the pin as an output.
2016-06-17 06:23:18 -06:00
Gregory Nutt
46de4a5779
Fix another search and replace error from last set of changes
2016-06-16 18:19:37 -06:00
Gregory Nutt
4a34540e8f
Eliminate a warning
2016-06-16 16:22:01 -06:00
Gregory Nutt
088e9920a8
Cosmetic: Fix some long lines in comment blocks
2016-06-16 15:45:57 -06:00
Gregory Nutt
5ecb8da118
Eliminate a warning
2016-06-16 15:26:19 -06:00
Gregory Nutt
a63072d080
Fix yet more typos from the last commits
2016-06-16 15:06:13 -06:00
Gregory Nutt
ae13471244
One more time. Correct name of USB debug macros are uinfo and uerr, not usbinfo and usberr.
2016-06-16 13:36:37 -06:00
Gregory Nutt
865150f666
STM32: Logic to reset backup domain only applies if the RTC is enabled.
2016-06-16 13:36:50 -06:00
Gregory Nutt
53ec3ca1a2
Fix a cut-and-paste error: uusbinfo->usbinfo
2016-06-16 13:18:59 -06:00
Gregory Nutt
e60ced1835
Update last change... STM32 does not have STM32_RTC_BKR register.
2016-06-16 12:51:21 -06:00
Gregory Nutt
bf0a3bf0c8
Fix error in recent LSE-related fix: Requires CONFIG_STM32_PWR, or will not build correctly
2016-06-16 12:43:35 -06:00
Gregory Nutt
6c1678d1d9
STM32 Ethernet: Fix a bad cut and paster error from recent changes
2016-06-16 12:35:57 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
fdaf3d7268
STM32: Move backup domain reset to stm32_rcc.c in order to avoid disabling LSE during RTC initialiation.
2016-06-16 09:52:15 -06:00
Gregory Nutt
f9652812e2
Change *err() to either info() or err(ERROR:..), depending upon if an error has occurred.
2016-06-16 09:38:16 -06:00
Gregory Nutt
b7f0fbc073
Centralize definitions associated with CONFIG_DEBUG_RTC
2016-06-16 07:39:23 -06:00
Gregory Nutt
6b517ed017
Centralize definitions associated with CONFIG_DEBUG_WATCHDOG
2016-06-16 06:28:04 -06:00
Gregory Nutt
03cbe671ad
Centralize definitions associated with CONFIG_DEBUG_PWM
2016-06-15 17:23:56 -06:00
Gregory Nutt
5c89b18af8
Centralize definitions associated with CONFIG_DEBUG_I2C
2016-06-15 16:30:12 -06:00
Gregory Nutt
63b1eb09e6
Centralize definitions associated with CONFIG_DEBUG_CAN
2016-06-15 15:45:27 -06:00
Gregory Nutt
6d9a0511ad
Rename CONFIG_DEBUG_HEAP to CONFIG_HEAP_COLORATION
2016-06-15 14:48:06 -06:00
Gregory Nutt
f2cac0ceb7
Merged in K-man23/nuttx/stm32f411-fix (pull request #60 )
...
Add GPIO_I2C2_SDA_4 to STM32F411
2016-06-15 11:58:40 -06:00
Gregory Nutt
ba03134bed
Centralize definitions associated with CONFIG_DEBUG_SPI
2016-06-15 10:41:13 -06:00
Konstantin Berezenko
89b192d080
Add GPIO_I2C2_SDA_4 to STM32F411
2016-06-15 09:06:08 -07:00
Gregory Nutt
c4e6f50eac
Centralize definitions associated with CONFIG_DEBUG_IRQ
2016-06-15 08:35:22 -06:00
David Sidrane
0bded28cf3
Fix some naming errors that were recently introduced with mass substirutions
2016-06-14 09:42:04 -06:00
Gregory Nutt
a98bc05f65
New debug macro: alert(). This is high priority, unconditional output and is used to simplify and stanardize crash error reporting.
2016-06-14 09:07:53 -06:00
Gregory Nutt
0f249016a0
Eliminate some warnings
2016-06-13 14:01:32 -06:00
Gregory Nutt
26718cee5c
Eliminate some warnings when CONFIG_DEBUG_FEATURES is enabled, but no output is enabled
2016-06-12 14:44:04 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
e6ca12f4c3
Changes from review of last PR
2016-06-09 16:57:05 -06:00
Konstantin Berezenko
2ebdcb463e
Fix compilation errors in debug mode of stm32_pwm.c
2016-06-09 15:48:08 -07:00
Gregory Nutt
48c9aa08a3
Merged in marten_svanfeldt/nuttx-public/for_upstream/stm32_dma_fix (pull request #43 )
...
Fix STM32 DMA code and configuration for STM32F37X chips
2016-06-09 09:10:13 -06:00
David Sidrane
44ead7f40a
Fix email address in file headers
2016-06-09 08:26:14 -06:00
Marten Svanfeldt
1b36526e91
Fix STM32 DMA code and configuration for STM32F37X chips
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2016-06-09 05:02:43 +02:00
Konstantin Berezenko
3fc7b6f0e5
Add stm32f105r support
2016-06-06 12:52:41 -07:00
Gregory Nutt
053ac343fd
STM32 PWM: More review changes from last commit; improve handling of unsigned types
2016-06-05 16:01:29 -06:00
Pierre-noel Bouteville
0bd444ae47
Just update duty if frequency is not changed and PSM started. This removeis glitch or blinking when only duty is frequently changed.
2016-06-05 15:35:43 -06:00
Gregory Nutt
6b84637a5b
Update some comments
2016-06-04 13:04:13 -06:00
Gregory Nutt
4965d0dc99
KL and LPC11: Perform similar name change as for STM32: xyz_lowputc -> up_putc
2016-06-04 11:29:27 -06:00
Alan Carvalho de Assis
86cfcfd58a
Add the up_getc() function to STM32 in order to support the minnsh configuration.
2016-06-04 07:22:45 -06:00
Gregory Nutt
37e8536a88
STM32: Put timer selections in a separate menu
2016-06-04 07:11:05 -06:00
Gregory Nutt
34df98d97e
Use DEBUG assertions to save space
2016-06-03 14:49:05 -06:00
Gregory Nutt
704fadb0e6
STM32 TIM: Assure that a compilation error will occur if the old timer input clock frequency definitions are used
2016-06-03 14:17:18 -06:00
Gregory Nutt
3ec2386be8
STM32 TIM: There is a TIM17 on some parts too
2016-06-03 14:08:28 -06:00
Gregory Nutt
282edefab3
STM32 TIM: Add hooks for all previously unsupported timers. Also fix some PWM warnings.
2016-06-03 13:51:43 -06:00
Gregory Nutt
c11e923ad4
Fix a cut'n'paste error left from last commit.
2016-06-03 12:11:55 -06:00
Gregory Nutt
910bac65fa
STM32 Timer: Generalize and extend calculation of per-timer pre-scaler value. Inspired by original proposal from Pierre-noel Bouteville.
2016-06-03 11:38:59 -06:00
Gregory Nutt
88a41862b5
Revert "STM32 Timer Driver: Change calculation of per-timer pre-scaler value"
...
This reverts commit 082d32226b
.
2016-06-03 09:41:17 -06:00
Pierre-noel Bouteville
082d32226b
STM32 Timer Driver: Change calculation of per-timer pre-scaler value
2016-06-03 08:45:22 -06:00
Pierre-noel Bouteville
426e425a55
Correct conditional compilation in STM32 timer cpature logic
2016-06-03 08:41:53 -06:00
Pierre-noel Bouteville
6a2a0bf11f
Note reserved bits in STM32 ADC
2016-06-03 08:39:17 -06:00
Gregory Nutt
fcdc17056b
STM32 F4 RTC: I believe that the F405/407 has only a single alarm. Not sure.
2016-06-02 15:04:23 -06:00
Gregory Nutt
82c73e206e
STM32 F4 RTC, trivial changes
2016-06-02 07:58:13 -06:00
Gregory Nutt
2f974ffeaf
Merged in david_s5/nuttx/upstream_to_greg (pull request #37 )
...
Fix the Value Line adc IRQ number selection
2016-05-31 19:18:11 -06:00
Gregory Nutt
82dec4acab
STM32F4 RTC: Remove 24 hour limit; Fix calculation of the alarm register (was not including day of the month). Fix a bad shift value
2016-05-31 19:13:21 -06:00
David Sidrane
70f2b47a0d
Fix the Value Line adc IRQ number selection
2016-05-31 14:54:04 -10:00
Gregory Nutt
6eac8bf28d
Update some comments
2016-05-31 17:31:15 -06:00
Gregory Nutt
15810946b1
Update some comments
2016-05-31 17:28:02 -06:00
Gregory Nutt
8ca5daf2b3
Changes from review of last PR
2016-05-31 15:52:56 -06:00
neilh10
639410849e
alarm 10 now runs to completion
2016-05-31 14:17:52 -07:00
Pierre-noel Bouteville
39c1e3aba2
Allow to not use all channet in a lower part of PWM
2016-05-30 11:58:22 -06:00
Gregory Nutt
f65616f872
Replace confusing references to uIP with just 'the network'
2016-05-30 09:16:32 -06:00
Konstantin Berezenko
5c6cd17d46
Add support for SPI 4 and 5 on stm32f411 chips
2016-05-27 11:08:18 -07:00
Gregory Nutt
3d3b7b5422
EFM32, STM32, TIVA: Allow lower half driver to build if any ADC is selected. Should not depend on CONFIG_ADC.
2016-05-27 06:46:33 -06:00
Gregory Nutt
31ac3f5123
STM32 ADC: Missed on adc_receive
2016-05-26 12:42:34 -06:00
Gregory Nutt
8f2a660c8b
Add ADC bind method to the STM32 ADC drivers
2016-05-26 12:25:54 -06:00
Gregory Nutt
783bab6c82
Costmetic changes from review of last PR
2016-05-25 18:04:39 -06:00
Gregory Nutt
3603dc6218
1-wire: Initialization/uninitialization functions are not use MCU-independent up_ naming. Should use STM32-specific stm32_ naming. These are not globally accessible but only accessible from STM32 board logic.
2016-05-25 17:56:47 -06:00
Paul A. Patience
d31aefe4ef
STM32 CAN: Add support for both RX FIFOs
2016-05-25 16:11:18 -04:00
Gregory Nutt
add152bf24
Update README
2016-05-25 14:07:59 -06:00
Gregory Nutt
4a63a7760a
STM32: Hook 1-Wire driver into the build system
2016-05-25 12:31:32 -06:00
Gregory Nutt
2a87741e72
Rename CONFIG_ARCH_HAVE_UARTn to CONFIG_UARTn_SERIALDRIVER
2016-05-25 10:45:01 -06:00
Gregory Nutt
249a2e48e5
Rename CONFIG_ARCH_HAVE_USARTn to CONFIG_USARTn_SERIALDRIVER
2016-05-25 10:39:23 -06:00
Aleksandr Vyhovanec
52c6cb1799
Fix typographical naming error in STM32 U[S]ART bit defintiions.
2016-05-25 09:04:03 -06:00
Aleksandr Vyhovanec
9a2002a302
1-wire driver based on U[S]ART in single-wire, half-duplex mode.
2016-05-25 08:59:47 -06:00
Konstantin Berezenko
a2253cdd3e
Add basic configuration for stm32f411e-disco board with STM32F411VE chip
2016-05-20 16:38:25 -07:00
Gregory Nutt
72de45b7cf
Merged in david_s5/nuttx/upstream_to_greg (pull request #21 )
...
Fixed Break changes needed CONFIG_SERIAL_TERMIOS to build
2016-05-17 18:09:23 -06:00
David Sidrane
f444f061d6
Fixed Break changes needed CONFIG_SERIAL_TERMIOS to build
2016-05-17 14:04:51 -10:00
Gregory Nutt
5fc619eb1b
Changes from review of last PR
2016-05-17 17:39:27 -06:00
David Sidrane
b11f49e7f1
Support BSD compatible breaks on stm32 U[S]ART
2016-05-17 13:09:34 -10:00
David Sidrane
55d8b0e277
Use the correct register and bit to send an STM32 non-bsd compatible break
2016-05-17 07:55:33 -10:00
Gregory Nutt
c00e3e55dc
Fix several places in DMA logic where a spurious semicolon causes bad conditional logic
2016-05-11 17:42:59 -06:00
Gregory Nutt
050f544782
Fix typo in variable name in serial BREAK logic. Review other serial implementations for similar naming problems.
2016-05-05 11:30:47 -06:00
Marco Krahl
8b36a83df1
stm32: fix wrong FSCM pin mapping for stm32f42x
2016-04-22 07:27:00 -06:00
Gregory Nutt
aa64214877
FB: Add a display number to the framebuffer planeinfo structure
2016-04-17 10:08:27 -06:00
Gregory Nutt
46846c0c24
Framebuffer driver: Add a display number to each interface in order to support multiple displays
2016-04-14 12:23:15 -06:00
Sergei Ustinov
8a5bf3c230
STM32 DAC output buffers correct enable.
2016-04-10 08:51:59 -06:00
Gregory Nutt
b4fc040783
RTC: Fix some compile issues when RTC_ALARM is disabled
2016-04-04 09:24:06 -06:00
Gregory Nutt
8a076d4c09
Eliminate a warning
2016-04-04 08:30:03 -06:00
Gregory Nutt
1e4674e535
STM32 RTC alarm: Use modifyreg32 for consistency
2016-04-04 08:28:01 -06:00
Gregory Nutt
1ea7b48677
RTC lower half was missing call to F4 alarm cancel function
2016-04-04 08:23:09 -06:00
Gregory Nutt
531b9f6626
STM32 RTC alarm: remove some if 0ed out logic.
2016-04-04 08:16:53 -06:00
Gregory Nutt
19aa5880e7
STM32 RTC Alarm: Add Neil's alarm cancellation logic
2016-04-04 08:15:48 -06:00
Gregory Nutt
65dc922a2e
STM32 RTC: Fix compile errors for STM32 F1
2016-04-03 13:26:29 -06:00
Gregory Nutt
a573617f33
Costmetic renaming
2016-04-03 12:38:02 -06:00
Gregory Nutt
9f0df8180a
STM32 RTC: Fix some errors when RTC debug is enabled
2016-04-03 09:52:08 -06:00
Gregory Nutt
6b3b12ee0a
STM32 RTC: Move the logic to set a relative alarm from the low level RTC driver up higher into the RTC device driver lower half.
2016-04-03 09:22:02 -06:00
Gregory Nutt
e904d98915
STM32 RTC: Add implementation of logic to set the alarm relative to the current time
2016-04-02 18:17:46 -06:00
Gregory Nutt
a609880839
STM32 F4 RTC: Add support for setting alarm via driver
2016-04-02 17:38:19 -06:00
Gregory Nutt
0fccd81eff
cosmetic update
2016-04-02 14:58:01 -06:00
Gregory Nutt
9bc38d19d9
RTC: Further simplications of the RTC driver interface; Add sample implementation of alarms for F1
2016-04-02 13:54:18 -06:00
Gregory Nutt
5fdefa1aad
Minor cleanup of STM32 alarm stuff
2016-04-02 13:11:57 -06:00
Gregory Nutt
476301e5a4
STM32: Adapt the lower half RTC driver to the new, simplified interface
2016-04-02 12:58:47 -06:00
Neil Hancock
5ac54013d2
STM32 F4: Add a custom RTC driver
2016-04-02 10:46:10 -06:00
Aleksandr Vyhovanec
472115eda9
ARMv7-M: Add support for the IAR compiler
2016-04-02 08:14:09 -06:00
Gregory Nutt
bd2da2f543
ARMv7-M: Add toolchain option to select the IAR tools. Move ARMv7-M assembly language into a gnu/ subdirectory. Makefile selects iar/ or gnu/ directory based upon tool configuration
2016-04-02 07:53:52 -06:00
Aleksandr Vyhovanec
29ab0fb991
STM32: Add support for the IAR compiler
2016-04-02 06:58:55 -06:00
Gregory Nutt
267e20c729
PM: Add domain to all PM interfaces. Internal PM data structures now handle multiple PM domains.
2016-03-27 13:01:32 -06:00
Gregory Nutt
32acc35c88
PM: Add activity domain to all PM callbacks
2016-03-27 11:18:54 -06:00
Paul A. Patience
2f187f8714
STM32 DAC: Fix DMA support for STM32F2xxx and STM32F4xxx
2016-03-20 17:26:40 -04:00
Gregory Nutt
51be83aa3a
ARM: Fix missing header file. Update comments in all *_irq.c files.
2016-03-09 15:08:58 -06:00
Gregory Nutt
4d4f54a789
Rename current_regs to g_current_regs; For ARM, g_current_regs needs to be an array to support multiple CPUs
2016-03-09 13:41:48 -06:00
Gregory Nutt
52d777fa8d
Merged in paulpatience/nuttx-arch/stm32f469 (pull request #56 )
...
STM32: Add support for STM32F46xxx
2016-03-01 11:53:07 -06:00
Gregory Nutt
f552aa3ee8
Merged in paulpatience/nuttx-arch/stm32f30xxx_pinmap (pull request #55 )
...
STM32: Rename STM32F30xxx ADC pins to be more consistent
2016-03-01 11:38:44 -06:00
Paul A. Patience
099990f3da
STM32: Add support for STM32F46xxx
2016-03-01 12:18:07 -05:00