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
Paul A. Patience
221b49cf05
STM32: Rename STM32F30xxx ADC pins to be more consistent
2016-03-01 09:55:59 -05:00
Gregory Nutt
0da57e1b53
It is too late to be doing this... Fix the spacing error introduced with the second correction to the spelling error
2016-02-24 17:56:40 -06:00
Gregory Nutt
29297da2a7
Another spelling error
2016-02-24 17:55:30 -06:00
Gregory Nutt
550e0f945b
STM32 I2C: Fix some spelling; duplicate I2C reset fix on other variants of the driver
2016-02-24 16:45:45 -06:00
David Sidrane
3b871c4fa2
No really removed spaces
2016-02-24 22:23:39 +00:00
David Sidrane
052b45db0a
Added spacing back
2016-02-24 22:21:07 +00:00
David Sidrane
aa6968dcd5
Ensures frequency is updated on reinitalized bus
2016-02-24 12:02:11 -10:00
Gregory Nutt
9c63736c98
Standard some naming if code sectino comments
2016-02-21 18:06:09 -06:00
Gregory Nutt
441cd2bf1c
Fix a typo introduced in last set of name changes
2016-02-14 19:58:30 -06:00
Gregory Nutt
8b7dd552a3
Fix a typo introduced in last big set of name changes
2016-02-14 17:44:45 -06:00
Gregory Nutt
666cc280f4
Rename irqenable() to up_irq_enable(); rename irqdisable() to up_irq_disable()
2016-02-14 16:54:09 -06:00
Gregory Nutt
83bc1c97c3
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
2016-02-14 16:11:25 -06:00
Gregory Nutt
70e502adb0
Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-13 19:11:09 -06:00
Gregory Nutt
3caffdd82e
Standardization of some naming in preparation for a large automated change
2016-02-13 12:57:09 -06:00
Gregory Nutt
a6eb9a351c
Add spinlock support for ARMv7-M architectures
2016-02-09 13:44:22 -06:00
Gregory Nutt
1166e311b0
Networking: Remove the HSEC argument from devif_timer.
2016-02-03 11:17:15 -06:00
Gregory Nutt
d2b2cd3415
Duplicate Manuel's EMAC driver fix to every other driver that supports CONFIG_NET_NOINTS
2016-02-03 10:33:22 -06:00
Manuel Stuehn
7236e742ab
STM32 Ethernet: Fix a cornercase where the TX poll timer is not restarted.
2016-02-03 08:24:49 -06:00
Gregory Nutt
1e4f2ae2c1
Rename up_i2c initialize and uninitialize functions using the correct MCU-specific naming
2016-02-02 12:08:23 -06:00
Gregory Nutt
d2571985ef
I2C: up_i2creset should not be a global function; Now it is an I2C interface method
2016-02-02 11:21:45 -06:00
Gregory Nutt
30624c8dfa
EFM32, STM32, and Tiva I2C Drivers: Clean up some kruft that is no longer needed after the last massive I2C interfcase change
2016-02-01 19:51:55 -06:00
Gregory Nutt
0693e76be8
I2C: Remove the setfrequency method from the interface
2016-02-01 16:30:29 -06:00
Gregory Nutt
a64f36a63e
I2C: Remove setaddress method
2016-02-01 12:14:20 -06:00
Gregory Nutt
ce988c7ed3
Remove the read and write methods from the I2C interface
2016-02-01 09:22:10 -06:00
Gregory Nutt
2171438c61
I2C_TRANSFER support is no longer optional
2016-01-31 14:00:53 -06:00
Gregory Nutt
531d73af41
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:35:46 -06:00
Gregory Nutt
9f9b85a932
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 07:59:44 -06:00
Freddie Chopin
8203659ee5
stm32_rtc_endwr(): wait for RTC_CRL_RTOFF bit to be set. This ensures that the write "reaches" RTC registers before access is disabled by stm32_pwr_enablebkp().
2016-01-28 16:58:02 -06:00
Gregory Nutt
04bbd8c67f
For STM32, rename up_spiinitialize to stm32_spibus_initialize
2016-01-26 12:22:27 -06:00
Gregory Nutt
c0fb4e34a7
I2C: Eliminate the I2C_WRITEREAD method
2016-01-26 10:23:09 -06:00
Gregory Nutt
b7cbbab761
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:10:21 -06:00
Gregory Nutt
4bd6adb725
Add dummy hwfeatures method to all SPI interfaces
2016-01-23 15:09:38 -06:00
Gregory Nutt
5ebd84c890
Update to use 64-bit timer when available
2016-01-21 11:53:58 -06:00
Paul A. Patience
3ecdb0c21c
STM32 TIM: Fix comment
2016-01-19 17:02:00 -05:00
Gregory Nutt
b7e9fb9284
Merged in paulpatience/nuttx-arch/stm32_qencoder (pull request #52 )
...
STM32 QEncoder: Fix typo
2016-01-19 15:47:07 -06:00
Paul A. Patience
d81001326c
STM32 QEncoder: Fix typo
2016-01-19 16:44:21 -05:00
Paul A. Patience
26a434d76a
STM32 TIM: Fix typos and add forgotten bit
2016-01-19 15:49:03 -05:00
Frank Benkert
dd13fcde44
CAN: Add more extensive error reporting information
2016-01-18 12:21:20 -06:00
Gregory Nutt
74c7e3d0bf
STM32 OTF FS/HS Host. Fix two cases where stm32_putreg parameters were backward. Noted by Hang Xu
2016-01-18 08:10:37 -06:00
Paul A. Patience
196d379010
STM32 QEncoder: Fix some typos
2016-01-17 21:52:03 -05:00
Juha Niskanen
8a671d604d
stm32/chip: Fix STM32L15 TIM5 base address.
2016-01-11 07:25:50 -06:00
Gregory Nutt
ba0f5467d0
A few more cosmetic changes
2015-12-24 07:38:17 -06:00
Gregory Nutt
376b35be39
Mostly cosmetic changes from review for conformance to coding standard
2015-12-24 07:35:19 -06:00
pnb
400d06e9ec
fix capture bug
2015-12-24 12:26:39 +01:00
pnb
709c257a43
cosmetic
2015-12-24 09:45:02 +01:00
pnb
e22d8aea5d
add oter timer
2015-12-24 09:42:33 +01:00
pnb
cfe9555e24
capture start to works need test it more
2015-12-23 19:07:45 +01:00
pnb
54b275ec09
Merge branch 'master' of bitbucket.org:pnb990/nuttx-kernel-arch
2015-12-22 16:32:19 +01:00
pnb
9cc2119c4e
capture compile
2015-12-22 16:28:19 +01:00
pnb
badc0c2215
Merge remote-tracking branch 'upstream/master'
2015-12-22 13:29:31 +01:00
pnb
0ef3dc81aa
Merge branch 'master' of bitbucket.org:pnb990/nuttx-kernel-arch
2015-12-22 13:28:39 +01:00
pnb
7d244d4d04
Revert "add timer capture STM32"
...
This reverts commit 7a484f4d7665c533998d6893c21b69340038b5fc.
2015-12-22 13:27:42 +01:00
pnb
764c9ea887
Revert "used DEFINE instead of setcapturecfg function to set filter and prescaler of input capture"
...
This reverts commit 08600d05eb12cb4f62280766b7f780e8eaa2284b.
2015-12-22 13:27:35 +01:00
pnb
573462e355
Revert "continue capture integration"
...
This reverts commit c0b6ba73d59dc973d6984bce12ff4a20d870de2a.
2015-12-22 13:27:00 +01:00
pnb
406bc5e67e
continue capture
2015-12-22 13:26:22 +01:00
Gregory Nutt
3e4fb7a60d
Merged in paulpatience/nuttx-arch/stm32_adc (pull request #42 )
...
STM32 ADC: Add DMA support for STM32F30xxx
2015-12-22 05:45:10 -06:00
pnb
f88e62c8e9
continue capture
2015-12-22 12:21:03 +01:00
Paul A. Patience
754a4ddb98
STM32 ADC: Add DMA support for STM32F30xxx
2015-12-22 03:42:37 -05:00
pnb
510dc7872d
Merge remote-tracking branch 'upstream/master'
2015-12-20 13:00:17 +01:00
pnb
2f78c0c1bc
continue capture integration
2015-12-20 12:54:21 +01:00
Gregory Nutt
727f0f47d6
Merged in paulpatience/nuttx-arch/stm32_pwm (pull request #40 )
...
STM32 PWM: Fix timer type bug
2015-12-18 18:47:41 -06:00
pnb
e25bc48d01
used DEFINE instead of setcapturecfg function to set filter and prescaler of input capture
2015-12-16 23:42:43 +01:00
pnb
701c386299
add timer capture STM32
2015-12-16 21:39:51 +01:00
Gregory Nutt
1cd73ec861
Merged in paulpatience/nuttx-arch/stm32_qencoder (pull request #41 )
...
STM32 QEncoder: Add support for STM32F30xxx
2015-12-15 14:13:44 -06:00
Paul A. Patience
377d29f1a1
STM32 QEncoder: Add support for STM32F30xxx
2015-12-15 12:13:37 -05:00
Gregory Nutt
26883fc7b9
Merged in paulpatience/nuttx-arch/stm32_tim (pull request #39 )
...
STM32 TIM: Remove some warnings, fix timer resolution bug and cosmetic changes
2015-12-14 16:59:51 -06:00
Paul A. Patience
b7e8e1fb99
STM32 TIM: Remove some warnings, fix timer resolution bug and cosmetic changes
2015-12-14 17:24:11 -05:00
Paul A. Patience
7274084540
STM32 PWM: Fix timer type bug
2015-12-14 17:21:55 -05:00
Gregory Nutt
dfec6a0dd0
Rename CONFIG_ARMV7M_MPU to CONFIG_ARM_MPU so that we can reuse the configuration settings for the ARMV7R MPU
2015-12-14 13:56:21 -06:00
Gregory Nutt
cbc2f226c0
Merged in paulpatience/nuttx-arch/stm32_pinmap (pull request #38 )
...
STM32: Fix typos in pinmaps
2015-12-14 08:59:47 -06:00
Paul A. Patience
89da1f27dd
STM32: Fix typos in pinmaps
2015-12-14 09:41:49 -05:00
Paul A. Patience
7589e940b6
STM32: Fix typos in STM32F30xxx pinmap
2015-12-14 09:36:28 -05:00
Gregory Nutt
daea1e614b
All architectures need to build ELF support if either CONFIG_ELF or CONFIG_MODULE are selected. Cortex-M7 also must support module cache corherence
2015-12-12 09:35:05 -06:00
Gregory Nutt
754aace61b
STM32: CCM procfs more typos
2015-12-01 16:28:14 -06:00
Gregory Nutt
bc74aa322b
STM32: Fix a couple of typos in STM32 CCM procfs
2015-12-01 16:20:51 -06:00
Gregory Nutt
1f82dda9d8
Clean up some naming
2015-12-01 15:04:12 -06:00
Gregory Nutt
548ba1640f
STM32: CCM procfs is no longer a part of the 'base' procfs entries and can now only be supported via run time registration with CONFIG_FS_PROCFS_REGISTER=y
2015-12-01 14:55:05 -06:00
Gregory Nutt
7037f13c2d
Trivial cosmetic change from review
2015-11-30 18:01:26 -06:00
Wail Khemir
fd8db7ad38
Change prescaler dynamically to support bigger periods on 16 bits timers
2015-11-30 18:52:05 -05:00
Gregory Nutt
8ce454a584
Remove some warnings; eliminate unused variables
2015-11-26 12:46:53 -06:00
Gregory Nutt
b1e17d8892
Fix some conditional compilation. CONFIG_LIBC_LOCALTIME should be checked in most of the same places wehre CONFIG_TIME_EXTENDED is checked
2015-11-25 12:51:07 -06:00
Gregory Nutt
30834721df
Trivial changes for compliance with coding standard
2015-11-20 17:53:03 -06:00
Wail Khemir
702368fce4
Small bug fix for stm32 lower half timer driver
2015-11-20 18:16:39 -05:00
Gregory Nutt
25a2e17347
Rename up_rtcinitialize to up_rtc_initialize so that it looks like other RTC interfaces
2015-11-20 08:27:04 -06:00
Gregory Nutt
25e54726a3
STM32: Fix a build error detected by tools/testbuil.sh: The STM32L does not define UID address
2015-11-18 14:33:27 -06:00
Gregory Nutt
a6d6c430d9
Changes to last merge from review for compliance to coding standards
2015-11-17 21:10:17 -06:00
Marwan Ragab
4999c14085
Added implementation to get 96-bit stm32 unique id
2015-11-17 21:34:41 -05:00
Gregory Nutt
a8ab72f97a
Fix some stylistic issues found by tools/nxstyle
2015-11-17 17:31:38 -06:00
Gregory Nutt
3c84aa3b5f
(Hopefully) cosmetic changes from review of recent merges for conformance to coding standard
2015-11-17 16:53:21 -06:00
Wail Khemir
9451b09d3a
Added a lower-half timer driver for stm32 which is compatible with the upper-half driver located at /drivers/timers/timer.c
2015-11-17 16:57:02 -05:00
Paul A. Patience
52454cf79b
Fix typo
2015-11-11 13:06:15 -05:00
Gregory Nutt
1c79e77811
ARMv7-M: Minor naming change to improve readability
2015-11-06 11:24:52 -06:00
Paul A. Patience
7d793bb99b
STM32 ADC: Add support for STM32F30xxx
2015-11-05 10:13:58 -05:00
Gregory Nutt
96cee3709a
Merged in paulpatience/nuttx-arch/stm32_pwm (pull request #28 )
2015-11-01 16:51:32 -06:00
Paul A. Patience
4c2c989838
STM32 PWM: Add support for multiple output channels
2015-11-01 17:11:35 -05:00
Gregory Nutt
79df561669
Rename board_led_off to board_autoled_off
2015-11-01 09:09:36 -06:00
Gregory Nutt
b28e32e3d3
Rename board_led_on to board_autoled_on
2015-11-01 09:07:06 -06:00
pnb
d1b4d55343
pwm duty can by zero
2015-11-01 14:45:12 +01:00
pnb
0090cfe6d4
Change name of HAVE_TIMx_PWM_OUTPUT into HAVE_TIMx_GPIOCONFIG
2015-10-31 16:00:24 +01:00
pnb
668c56b1a6
avoid warning unsused function when GPIO_TIMxCHxOUT declared in board and CONFIG_STM32_TIMx not enable but an other CONFIG_STM32_TIMx is enabled
2015-10-31 15:42:00 +01:00
Gregory Nutt
22ea50464f
Merged in marten_svanfeldt/nuttx-arch-public/for_upstream/stm32_qencoder (pull request #23 )
...
Enhance STM32 QEncoder driver with configurable input filters
2015-10-22 18:28:22 +08:00
Gregory Nutt
e3d44ace60
Merged in marten_svanfeldt/nuttx-arch-public/for_upstream/stm32f429_pinmap (pull request #22 )
...
Add missing pin definitions on STM32F429, specifically pins available on STM32F429N chip
2015-10-22 18:26:53 +08:00
Gregory Nutt
04705d14df
Merged in marten_svanfeldt/nuttx-arch-public/for_upstream/stm32f373_exti (pull request #21 )
...
Add EXTI definitions for STM32F373
2015-10-22 18:21:45 +08:00
Gregory Nutt
2b078150e8
Merged in marten_svanfeldt/nuttx-arch-public/for_upstream/stm32f429n (pull request #20 )
...
Add support for STM32F429N (TFBGA) chip
2015-10-22 18:19:52 +08:00
Gregory Nutt
c87c50df14
Merged in marten_svanfeldt/nuttx-arch-public/for_upstream/stm32_PLLSAI (pull request #19 )
...
Fix setup of PLLSAI in STM32F4xx.
2015-10-22 18:17:21 +08:00
Marten Svanfeldt
3299a31b27
Enhance STM32 QEncoder driver with configurable input filters
...
Current driver applies a fixed filter of f_sample=f_dts/4, N=6. This can
potentially be insufficient in noisy environments, or too slow for really
fast encoder sources, so let the user set it from the Kconfig file
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 11:06:01 +08:00
Marten Svanfeldt
fdb484f24e
Add missing pin definitions on STM32F429, specifically pins available on STM32F429N chip
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 10:56:36 +08:00
Marten Svanfeldt
d1c7e5b5fb
Fix setup of PLLSAI in STM32F4xx.
...
To correctly setup the PLLSAI register it is required to first mask out
the old PLL divisor and multiplier factors before setting new ones
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 10:33:39 +08:00
Marten Svanfeldt
4d879a33ee
Add support for STM32F429N (TFBGA) chip
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 10:30:57 +08:00
Marten Svanfeldt
54b333dcd3
Add EXTI definitions for STM32F373
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 10:22:41 +08:00
Paul A. Patience
08175bef58
STM32 PWM: Add ifdef for STM32F30XX
2015-10-09 17:20:42 -04:00
Gregory Nutt
a326b79b25
Merged in paulpatience/nuttx-arch (pull request #17 )
...
STM32: Fix some incorrect configurations in Kconfig file
2015-10-09 14:13:02 -06:00
Paul A. Patience
253e112b4a
STM32: Fix some incorrect configurations in Kconfig file
2015-10-09 13:47:22 -04:00
Max Kriegler
a20a61caef
STM32 F4: Correct pin mapping for TIM12 Channel 2
2015-10-09 10:32:46 -06:00
Gregory Nutt
d90f597a05
More spacing/alignment issues
2015-10-08 19:31:58 -06:00
Gregory Nutt
beb060d422
Yet more spacing issues
2015-10-07 20:24:19 -06:00
Gregory Nutt
a92842906f
STM32: Fix a search-and-replace error in previous commit
2015-10-07 19:58:05 -06:00
Gregory Nutt
53f6fd6e66
STM32: Correct some spacing issues
2015-10-07 13:45:15 -06:00
Lederhilger Martin
a9c8458458
STM32 PWM: Add logic to handle writes to 32-bit registers properly
2015-10-06 07:29:37 -06:00
Gregory Nutt
aaa697ec83
Remove dangling whitespace
2015-10-04 15:27:17 -06:00
Gregory Nutt
6fc6d17760
Fix some spacing problems
2015-10-04 14:59:08 -06:00
Gregory Nutt
9caf33e13b
Standardize the width of all comment boxes in C header files
2015-10-03 07:28:30 -06:00
Gregory Nutt
7ced84c5f0
Standardize the width of all comment boxes in C files
2015-10-03 07:25:03 -06:00
Gregory Nutt
36726b1bc4
Standardize the width of all comment boxes in header files
2015-10-02 17:42:29 -06:00
Gregory Nutt
ddf936c913
Various fixes for compilation issues found by tools/testbuild.sh
2015-10-01 11:09:39 -06:00
Gregory Nutt
166d307add
STM32: Fix conditional compilation of TIM SYSLOG initialization
2015-10-01 08:39:21 -06:00
Lederhilger Martin
7d72d1defc
STM32 ADC: Fix some cut'n'paste typos in ADC header file
2015-09-30 07:21:50 -06:00
Gregory Nutt
473a3cf2a6
STM32: Trivial chnages from review of merge
2015-09-23 15:00:47 -06:00
pnb
f19c5e883d
add swo for stm32F4xxx
2015-09-23 22:51:22 +02:00
Gregory Nutt
7a2428819f
Minor style: # if pre-processor command should be in columnn 1
2015-09-18 12:47:24 -06:00
Gregory Nutt
39859a9645
All ARMV7-M: Force 8-byte stack alignment when calling from assembly to C to interrupt handling
2015-09-15 07:37:09 -06:00
Gregory Nutt
f7ca98c5ae
Fix error in almost all ARMv7-M interrupt stack handling
2015-09-14 07:07:13 -06:00
Paul A. Patience
260778feb1
Fix typo
2015-09-10 21:07:03 -04:00
Gregory Nutt
e354853776
Elminiate some warnings
2015-09-08 09:18:59 -06:00
Gregory Nutt
d8c83218fe
Eliminate warnings
2015-09-08 08:27:34 -06:00
Gregory Nutt
7065f78b92
Eliminate a warning
2015-09-08 08:18:01 -06:00
Gregory Nutt
cfd41bdb30
STM32: Eliminate some warnings
2015-09-07 16:25:54 -06:00
Gregory Nutt
975d912b40
Cosmetic: Move # of pre-processior command to column 1
2015-09-05 09:07:37 -06:00
Gregory Nutt
544ed7cdbd
Purely cosmetic changes from code review
2015-09-04 16:36:43 -06:00
David Sidrane
9c13fa3f67
Added suport for overriding the STM32 flash size. To allow the use of STM32F2 and STM32F4 devices with F, G, I flash designations
2015-09-04 10:26:09 -10:00
Ilya Averyanov
f2b5f05124
STM32 Ethernet: stm32_ifdown() prototyped twice
2015-09-02 08:23:45 -06:00
Paul A. Patience
a0dc724a5d
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT32UC3 clock initialization: AVR32_CLOCK_PLL_OSC1 should be AVR32_CLOCK_PLL0_OSC1 and AVR32_CLOCK_PLL1_OSC1.
2015-09-01 13:47:06 -04:00
Gregory Nutt
70f1a49fbe
arch/arm/src/up_iternal.h and several ARM Make.defs files: In the original implementation, NOT defined(CONFIG_ARMV7M_CMNVECTOR) was a sufficient test to determine if lazy floating point register saving was being used. But recents changes added common lazy register as well so now that test must be (NOT defined(CONFIG_ARMV7M_CMNVECTOR) || defined(CONFIG_ARMV7M_LAZYFPU)).
2015-08-31 08:40:02 -06:00
David Sidrane
98ce2b2912
Fixed Mask and made configuration macros consistant
2015-08-24 08:56:24 -10:00
David Sidrane
b95c642a88
Added Kconfig Enable Support for SAI and I2S PLL
2015-08-24 08:55:45 -10:00
David Sidrane
6559c8994a
Remove the word NOT - that was used to test the fix.
2015-08-21 18:51:28 -06:00
David Sidrane
390c777a2a
Removed the word NOT - that was used to test the fix.
2015-08-21 18:40:20 -06:00
Gregory Nutt
4c0d36740d
Some of the last review chnages were still in the editor
2015-08-21 18:25:10 -06:00
Gregory Nutt
9a32e907df
Trivial, cosmetic changes from review of merge
2015-08-21 18:22:57 -06:00
Gregory Nutt
16c5be9767
Merged in david_s5/arch/upstream_446 (pull request #7 )
...
Upstream_446
2015-08-21 18:11:05 -06:00
David Sidrane
9d64050d68
Added Changes to support for the new USB OTG controller for F446 register map
2015-08-21 13:57:08 -10:00
David Sidrane
7c96342c63
Break the stm32_otg.h into an stm32fxxxxx and stm32f44xx (should work on F7) versions
2015-08-21 13:55:06 -10:00
David Sidrane
5d1ff3f7e1
Use read modify write on PLL and CFG registers
2015-08-21 13:22:09 -10:00
David Sidrane
1c746edceb
Added PLL P constants
2015-08-21 13:20:16 -10:00
Gregory Nutt
da6c5aabdf
All ARMV7-M IRQ setup: Always set the NVIC vector table address. This is needed in cases where the code is running with a bootload and when the code is running from RAM. It is also needed by the logic of up_ramvec_initialize() which gets the vector base address from the NVIC. Suggested by Pavel Pisa
2015-08-21 08:42:24 -06:00
Gregory Nutt
0db7ac92d9
Minor coding style fixes in last commit; remove some unneeded debug output
2015-08-19 07:54:46 -06:00
SaeHie Park
75626fb071
STM32: Fix eth mem leak in recvframe
2015-08-19 15:40:04 +09:00
Gregory Nutt
b7d6720a23
All CAN drivers: Set the new error indication to zero in the CAN message report
2015-08-18 07:24:12 -06:00
Paul A. Patience
c800841632
Added definitions for STM32F303K6, STM32F303K8, STM32F303C6,
...
STM32F303C8, STM32F303RD, and STM32F303RE devices.
2015-08-17 14:00:49 -04:00
Gregory Nutt
ba6c0b3fa3
Fix more common typos
2015-08-16 11:06:29 -06:00
Gregory Nutt
e29220183a
Fix some common typos
2015-08-16 10:59:10 -06:00
Gregory Nutt
f7350568f3
STM32 ADC changes suggested by Max Kriegleder
2015-08-04 06:29:40 -06:00
Gregory Nutt
095d2d3eee
Fix a typo in the STM32 F2 DMA header file
2015-07-30 16:03:52 -06:00
Gregory Nutt
2c5a6831cd
ADC DMA should work on the F2 as well because the DMA is equivalent on the F2 and F4
2015-07-30 15:49:33 -06:00
Max Kriegler
9ed14b0924
STM32 ADC: Add DMA support for the STM32 F4 family. From Max Kriegler
2015-07-30 08:47:45 -06:00
Juha Niskanen
7407e41569
Add CONFIG_ADC_NO_STARTUP support for STM32 F1 (untested)
2015-07-30 07:42:31 -06:00
Gregory Nutt
5b46df9c49
Fix compile error from last ADC change
2015-07-29 17:37:35 -06:00
Juha Niskanen
3d32eb9465
tm32_adc: Add STM32L152XX ADC support
...
Porting from Thingsee OS.
Credits: Dmitry Nikolaev wrote most of the code, Teemu Pirinen from Offcode Ltd.
contributed support for changing single shot adc channel, minor tweeks by
Jussi Kivilinna and Juha Niskanen
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
Includes additional changes from review.
2015-07-29 08:34:27 -06:00
Gregory Nutt
032c237865
Minor modifications from review of previous commits
2015-07-29 08:34:01 -06:00
Gregory Nutt
90ac233e09
Minor modifications from review of previous changes
2015-07-29 08:32:23 -06:00
Juha Niskanen
ddc93995a0
chip/stm32_adc.h: Add defines for STM32L152XX ADC support
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2015-07-29 07:38:29 -06:00
Juha Niskanen
f4812bfbf9
stm32/chip: Add some STM32L15XX support bits (from Thingsee)
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2015-07-29 07:36:21 -06:00
Gregory Nutt
39192c3537
Fix a compile error found by tools/tesbuild.sh
2015-07-22 15:45:47 -06:00
David Sidrane
778c630c6b
Add support for the STM32446. From David Sidrane
2015-07-22 07:26:53 -06:00
David Sidrane
5c5df7aefe
STM32 F229: Fix bad inclusion guard in a header file
2015-07-21 11:25:29 -06:00
Gregory Nutt
4a5f66481d
STM32 F7: Add FLASH and SYSCFG header files
2015-07-18 10:06:44 -06:00
Gregory Nutt
f45f0ab59a
STM32 RCC: Fix some more typos in STM32 RCC header files
2015-07-17 12:16:29 -06:00
Gregory Nutt
bd711c038d
STM32 RCC: Fix what looks like a double paste
2015-07-17 12:00:46 -06:00
Gregory Nutt
7eb5e7f9ec
STM32F746G-DISCO: Getting closer to a build
2015-07-17 11:47:16 -06:00
Sebastien Lorquet
7f7082f938
Extend STM32 Ethernet operating frequency to 180MHz:
...
-Extend frequency range options to 180 MHz for STM32 ETH_MACMIIA_CR
-Fix a typo in a frequency range option in LPC43
-Only configure the PPS GPIO if the PTP protocol is enabled
From Sebastien Lorquet
2015-07-17 07:44:12 -06:00
Gregory Nutt
1ed5f5a3ed
STM32: Move STM32F42xxx IRQ definitions out of stm32f40xxx_irq.h into their own stm32f42xxx_irq.h header file
2015-07-15 13:52:20 -06:00
Gregory Nutt
629b37deec
STM32: Fix a minor error in new STMF42* header files
2015-07-15 13:21:39 -06:00
Gregory Nutt
abbfbb0716
STM32: Move STM32F42xxx vector definitions out of stm32f40xxx_vector.h into their own stm32f42xxx_vector.h header file
2015-07-15 13:02:55 -06:00
Gregory Nutt
0d0bbafbc5
STM32: Move STM32F42xxx SYSCFG definitions out of stm32f40xxx_syscfg.h into their own stm32f42xxx_syscfg.h header file
2015-07-15 12:54:15 -06:00
Gregory Nutt
7666fde938
STM32: Move STM32F42xxx RCC definitions out of stm32f40xxx_rcc.h into their own stm32f42xxx_rcc.h header file
2015-07-15 12:50:04 -06:00
Gregory Nutt
987c010c1f
STM32: Move STM32F42xxx DMA definitions out of stm32f40xxx_dma.h into their own stm32f42xxx_dma.h header file
2015-07-15 12:38:33 -06:00
Gregory Nutt
1d7789caa6
STM32: Move STM32F42xxx pinmap definitions out of stm32f40xxx_pinmap.h into their own stm32f42xxx pinmap.h header file
2015-07-15 12:28:45 -06:00
Gregory Nutt
1f5e16dc95
Fix some warnings/errors detected by nuttx/tools/testbuilds.sh
2015-07-10 18:41:26 -06:00
Gregory Nutt
51df91e93d
STM32 RTCC: Eliminate a warning when ALARM support is enabled
2015-07-02 15:02:59 -06:00
Gregory Nutt
46fec91b12
Remove a warning
2015-07-01 18:25:13 -06:00
Gregory Nutt
fb926e7283
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
29136e51cc
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
7bd3d5eaf1
Clean up and review of header files for conformance to standards
2015-06-12 19:00:52 -06:00
Gregory Nutt
7fab748667
STL32 F15x: stm32_stdclockconfig() was calling stm32_pw_setvos() which accessed PWR_CR via an inactive APB. From Juha Niskanen.
2015-06-11 08:09:36 -06:00
Gregory Nutt
4e811aa54d
Add basic support for the STM32F205RG. From SourceForge Ticket 40 (anonymous).
2015-05-31 13:06:26 -06:00
Gregory Nutt
d41b050526
Fix another missing semicolon after DEBUGASSERT
2015-05-27 11:49:19 -06:00
Gregory Nutt
528275a77c
Fix some typos
2015-05-27 07:34:35 -06:00
Gregory Nutt
4a60f1c9f5
STM32: Building stm32_rng.c should be conditioned on CONFIG_STM32_RNG, not CONFIG_DEV_RANDOM. From Juha Niskanen
2015-05-21 07:47:22 -06:00
Gregory Nutt
0883ea1af0
USB host drivers: Cannot take semaphores in cancel() method
2015-05-14 09:58:21 -06:00
Gregory Nutt
5fad63c28a
STM32/EFM32 USB host drivers. Remove some detritus left from previous change
2015-05-14 07:55:55 -06:00
Gregory Nutt
c2c7dadf0f
The USB host cancellation now applies to all transfers and so it no longer conditional
2015-05-11 12:04:03 -06:00
Gregory Nutt
cac9879ad2
EHCI HCDs will now support cancellation of syncrhonous transfers
2015-05-11 11:43:31 -06:00
Gregory Nutt
3f092b8f9c
STM32 and EFM32 host will now support cancellation of synchronous methods
2015-05-11 11:15:28 -06:00
Gregory Nutt
0536435ff8
Correct an error recently introduced in the STM32 and EFM32 USB host controller drivers.
...
The test for data partially transferred is incorrectec: chan->xfrd != xfrlen
Should be chan->xfrd > 0
From Ronly XLN.
2015-05-11 09:04:25 -06:00
Gregory Nutt
6e5a4e8b5e
Add EXTI line definitions for the STM32L family.
2015-05-09 09:03:14 -06:00
Gregory Nutt
4250bb5138
STM32 F3: Add DBGMCU register definitions for the F3 family. From Greg Meiste.
2015-05-09 06:05:17 -06:00
Gregory Nutt
aaaa8f2e9d
Adds support for STM32F302K8 and STM32F302K6. From Ben Dyer via PX4/David Sidrane.
2015-05-08 14:10:55 -06:00
Gregory Nutt
b8483aea40
In go_os_start that sets the IDLE thread stack coloration, mov does not set condition codes which are tested by the following beq. Need to use movs instead. Noted by David Sidrane
2015-05-07 20:36:08 -06:00
Gregory Nutt
8f959373e1
USB host: Modify the transfer() and asynch() methods so that the actual size of the transfer is returned. Unverified on initial commit.
2015-05-05 13:14:22 -06:00
Gregory Nutt
93b251b372
Cosmetic changes
2015-05-05 06:42:58 -06:00
Gregory Nutt
12bf2aa3be
Correct description of some input parameters. Suggested by Pelle Windestam
2015-05-05 06:26:59 -06:00
Gregory Nutt
d824979cec
Merge remote-tracking branch 'origin/master' into usbhub
2015-05-02 11:39:08 -06:00
Gregory Nutt
b3d12c6026
STM32 USB device. Add protection in the event that out-of-bound enpoint numbers are received. From David Sidrane.
2015-05-02 10:58:27 -06:00
Gregory Nutt
823af4b409
USB host: Need to include the port structure when disconnecting, otherwise may destroy a root hub port
2015-05-02 10:44:18 -06:00
Gregory Nutt
5a2ed0f6c1
Merge remote-tracking branch 'origin/master' into usbhub
2015-05-01 15:38:48 -06:00
Gregory Nutt
e76b7d99fa
Added missing EXTI definitions for the STM32 F3; Correct an error the port D base address in the STM32 F3 and F37 memory maps. From Greg Meiste.
2015-05-01 07:31:56 -06:00
Gregory Nutt
149d8c039d
EFM32 USB host: Add missing trace data and some missing connection-related logic; update a configuration
2015-04-30 13:46:53 -06:00
Gregory Nutt
501d82928d
STM32/EFM32 USB host: Implemented asynchronous cancel method
2015-04-30 11:24:18 -06:00
Gregory Nutt
c096b7d426
USB Hub: Fix compile problems when hub debug enabled
2015-04-30 08:12:55 -06:00
Gregory Nutt
a4455d07c1
STM32 HUB: Fix more compilation errors when hub support is enabled
2015-04-30 08:00:41 -06:00
Gregory Nutt
2f7682f7df
Fix some errors in initial re-verification of USB host on the STM32F4-Discovery
2015-04-30 07:28:30 -06:00
Gregory Nutt
d4feb7205f
First cut, dirty conversion of EFM32, STM32 FS and HS host drivers to the new interfaces
2015-04-29 15:53:58 -06:00
Gregory Nutt
d3ef23e05a
STM32 PVD: Adds support for STM32's Programmable Voltage Detector feature. I put register access behind CONFIG_STM32_ENERGYLITE as have not checked F1/F2/F4 etc. manuals. Tested on STM32L1. PVD interrupt looks generic, at least #defines it needs are in headers for every chip variant. By Dmitry Nikolaev, submitted by Juha Niskanen.
2015-04-28 06:37:59 -06:00
Gregory Nutt
d77a19f0a2
Two r's and only two r's in the word interrupt
2015-04-23 14:04:43 -06:00
Gregory Nutt
aaeb9843d6
STM32 RTC counter: Include enable/disable backup domain within critical section. Per recommendtion of Alexander Oryshchenko.
2015-04-21 18:08:31 -06:00
Gregory Nutt
47f2a0b09d
STM32 F1 RT Counter: Another fix from Darcy Gong
2015-04-19 07:05:39 -06:00
Gregory Nutt
2d2f645e77
STM32 F1 RTC Counter: Now need to enable backup domain write access when setting the time. From Darcy Gong
2015-04-19 06:58:07 -06:00
Gregory Nutt
4c0b8fba52
Fix an error introduced into stm32_pwr_enablebkp(). That function must preserve the previous state of backup domain access on return.
2015-04-18 07:31:20 -06:00
Gregory Nutt
383f6c52dd
STM32 - cosmetic changes to indentation
2015-04-16 16:35:06 -06:00
Gregory Nutt
5f7f2b6461
STM32 DMA2D: Use helper function when freeing layers. From Marco Krahl
2015-04-16 11:16:14 -06:00
Gregory Nutt
5d221fa356
Add support for the new DMA2D features to the STM32F429i-Disco LTDC configuration. From Marco Krahl.
2015-04-16 09:11:53 -06:00
Gregory Nutt
7a6a5b7bd0
Defines a second interface for the dma2d controller. Controlling both LTDC and DMA2D was unpractical from the programmers view because both controllers are to different. LTDC only controls the display visibility but the DMA2D controller changes the content of the frame buffer (buffer of the layer).
...
The main features are:
1. DMA2D interface
Supports the nuttx pixel formats:
- FB_FMT_RGB8
- FB_FMT_RGB24
- FB_FMT_RGB16_565
Dynamic layer allocation during runtime for the supported formats
- The number of allocatable layer can be configured.
Supported dma2d operation:
- blit (Copy content from source to destination layer) also works with
selectable area.
- blend (Blend two layer and copy the result to a destination layer wich can
be a third layer or one of the source layer) also works with selectable
area.
- fillarea (Fill a defined area of the whole layer with a specific color)
As a result of that the dma2d controller can't transfer data from the core coupled memory, CCM is disabled but usable by the ccm allocator. Currently the ccm allocator is used for allocating the layer structurei only. For the dma memory (layers frame buffer) memory is allocated from heap 2 and 3.
2. LTDC interface
I have changed the api for the currently non implemented operations:
- blit (Copy content from a dma2d layer to an ltdc layer) also works with
selectable area.
- blend (Blend two dma2d layer and copy the result to a destination ltdc
layer) also works with selectable area.
Note! ltdc layer is a layer referenced by the ltdc interface. dma2d layer
is a layer referenced by the dma2d interface.
One of the most important questions for me was, How can i flexible use an
ltdc layer with the dma2d interface, e.g. as source layer for dma2d
operations?
Get the layer id of the related dma2d layer by a special flag when using
getlid() function of the ltdc interface and use the layer id to reference
the specific dma2d layer by the dma2d interface.
The ltdc coupled dma2d layers are predefined and can't be dynamically
allocated of freed. They use the same frame buffer memory and the same
color lookup table.
Changes:
- layer internal format of the clut table
- interrupt handling for register reload (vertical vblank) instead using
waiting loop
- small fixes and refactoring
From Marco Krahl.
2015-04-16 09:11:52 -06:00
Gregory Nutt
cbcfb44942
STM32 IWDG typo fix. from chenming582892
2015-04-15 20:13:56 -06:00
Gregory Nutt
6b7a0cb3b8
Revert commit b80e8be652dfa52e97daa65aa3e550cf31cb2409
2015-04-12 06:26:50 -06:00
Gregory Nutt
9ece96b6d3
Remove all traces of CONFIG_ARMV7M_STACKCHECK
2015-04-11 10:01:44 -06:00
Gregory Nutt
0a675b8ca4
STM32 changes from David Sidrane
2015-04-11 07:19:20 -06:00
Gregory Nutt
2cdc5f99b9
STM32 CAN: More places where FR instead FIR used
2015-04-09 19:30:19 -06:00
Gregory Nutt
321ccb3ba3
Fix several typos in comments
2015-04-09 16:13:03 -06:00
Gregory Nutt
abea446dfa
Missing i found by David Sidrane
2015-04-09 15:16:05 -06:00
Gregory Nutt
fe38ca23e5
Cosmetic
2015-04-09 07:59:31 -06:00
Gregory Nutt
ae15c6963c
Make some file section headers more consistent with standard
2015-04-08 08:04:12 -06:00
Gregory Nutt
dd3457173d
Implements CONFIG_TIME_EXTENDED as we discussed relative to providing the last 3 members of the tm struct and support for filling them in and even using the wday in the STM32 RTC. From David Sidrane.
2015-04-08 06:56:43 -06:00
Gregory Nutt
c226d51c3c
STM32: Another fix to RTC magic register from David Sidrane
2015-04-06 17:21:53 -06:00
Gregory Nutt
e0a49a81e4
Add conditional logic so that people who use F1 don't have to be bother with meaningless RTC MAGIC settings
2015-04-06 16:35:56 -06:00
Gregory Nutt
8461827dcd
STM32 RTCC: Make back-up register and magic value used by RTCC configurable. From David Sidrane
2015-04-06 16:26:59 -06:00
Gregory Nutt
e1e0fc259c
Typo fixes from David Sidrane
2015-04-06 15:27:37 -06:00
Gregory Nutt
69d2d77424
Move include/nuttx/timer.h, rtc.h and watchdog.h to include/nuttx/timers/.
2015-04-01 12:37:44 -06:00
Gregory Nutt
f073092fad
The STM32F4Discovery board doesn't come with a Low speed external oscillator so the default LSE source for the RTC doesn't work.
...
In stm32_rtcc.c the up_rtcinitialize() logic doesn't work with the LSI. The check on RTC_MAGIC on the BK0R register lead to rtc_setup() call that rightfully enables the lsi clock; but the next times, when the rtc is already setup, the rtc_resume() call does NOT start the lsi clock!
The right place to put LSE/LSI initialisation is inside stm32_stdclockconfig() in stm32fxxxxx_rcc.c. Doing this I checked the possible uses of the LSI and the LSE sources: the LSI can be used for RTC and/or the IWDG, while the LSE only for the RTC (and to output the MCO1 pin)..
This change is not verifed for any other platforms.
From Leo Aloe3132
2015-03-29 15:34:48 -06:00
Gregory Nutt
db52134d47
STM32 RTC lower-half: Fix some errors that cause compilation failures. From shilo.xyz
2015-03-19 12:56:47 -06:00
Gregory Nutt
265af48120
STM32 serial: Make input hardware flow-control work with RX DMA. From Jussi Kivilinna
2015-03-13 07:18:21 -06:00
Gregory Nutt
b8476c7ee8
STM32: Fix RX DMA setup for UART5. From Jussi Kivilinna.
2015-03-13 07:06:46 -06:00
Gregory Nutt
f8c73c3499
stm32: usbdev: Fix stale initialization invalidating later NULL check. From Juha Niskanen
2015-03-12 08:08:50 -06:00
Gregory Nutt
6511afa1c2
stm32_i2c: Add missing NULL check. From Juha Niskanen
2015-03-12 07:53:41 -06:00
Gregory Nutt
d8a99fb73f
SAMV71-XULT: Enable 64-bit floating point support
2015-03-11 12:30:14 -06:00
Gregory Nutt
9bcdf974a0
Add new common lazy FPU state saving option for ARMv7-M. Not yet verified
2015-03-06 08:26:43 -06:00
Gregory Nutt
b6b50f5f42
Fix some BBRAM return values (from David Sidrane). Also some MTD-related cosmetic changes
2015-03-05 08:08:11 -06:00
Gregory Nutt
466b69fe00
Add missing SPI callback functions to the STM32 SPI driver. From Freddie Chopin
2015-03-04 06:52:46 -06:00
Gregory Nutt
32067448d7
Add support for new STM32L1 chip variant. From Juha Niskanen
2015-03-04 06:33:44 -06:00
Gregory Nutt
5eba2afbd6
STM32 BBSRAM driver updated by David Sidrane
2015-03-03 16:05:24 -06:00
Gregory Nutt
33ac85adcb
Adds architecture support for the STM32F372 and F373 (no board support yet). Only tested on STM32F373CC, but should work on the rest. Contributed by Marten Svanfeldt.
2015-03-02 10:33:42 -06:00
Gregory Nutt
429863f348
arch/: board function prototypes are now in include/nuttx/board.h. Remove from architecture header file; Add inclusion of nuttx/board.h to all files referencing board functions
2015-02-27 17:19:38 -06:00
Gregory Nutt
0dc70108b8
STM32: Fix for compilation introduced by last backup RAM change. Not sure it it is correct, be now things do compile
2015-02-21 17:51:03 -06:00
Gregory Nutt
63711ad338
Adds the ability to use the STM32F2 and STM32F4 Battery Backedup SRAM in the file system. With an option to Save Panic context to one of the files. From David Sidrane.
2015-02-21 15:15:51 -06:00
Gregory Nutt
7d43cf2087
Changes to support fully write protecting the backup domain. N.B. stm32_pwr_enablebkp did not account for the delay from enable to the domain being writable. The KISS solution is a up_udelay. A more complex solution would be a negated write test with restore. From David Sidrane.
2015-02-21 14:53:33 -06:00
Gregory Nutt
ac0cd3655a
Fix some time value changes; mostly changing greater than 1000000000 to greater than or equal to 1000000000. From Juha Niskanen
2015-02-20 07:07:36 -06:00
Gregory Nutt
2532e33de2
VFS: The inode unlink method should not be support if operations on the root pseudo-filesystem are disabled.
2015-02-18 09:34:58 -06:00
Gregory Nutt
d3196ca5c3
The RTC ioctl() method is now a configuration option
2015-02-18 08:23:10 -06:00
Gregory Nutt
57eb72a13f
Add an IOCTL method to the RTC interface
2015-02-18 08:05:31 -06:00
Gregory Nutt
0081b0840b
Missed a Kconfig definition in the last commit
2015-02-16 10:41:12 -06:00
Gregory Nutt
c747521953
STM32 RTC: Extend the RTC interface to support reading subseconds. From Jussi Kivilinna
2015-02-16 07:18:09 -06:00
Gregory Nutt
529bc9626c
Add support for RTC driver to the STM32F4-Discovery board
2015-02-15 10:11:01 -06:00
Gregory Nutt
68d39b69aa
Remove an unused variable
2015-02-15 08:51:39 -06:00
Gregory Nutt
726b0d5f58
RTC: A little more clean-up of the RTC driver
2015-02-15 08:19:23 -06:00
Gregory Nutt
53322a50f4
STM32 RTC: Implement the rdtime() method of the RTC lower half interface
2015-02-13 13:56:22 -06:00
Gregory Nutt
702f155fd0
STM32 RTC driver lower half: Implement the settime method of the RTC interface
2015-02-13 13:36:15 -06:00
Gregory Nutt
b0b6747d49
Break out a new internal interface, stm32_rtc_setdatetime(). This eliminates some un-necessary time conversions. From Freddie Chopin.
...
Add a skeleton implementation of the RTC lower half interface at arch/arm/src/stm32/stm32_rtc_lowerhalf.c. This is just the framework for the RTC lower half. None of the interface methods have yet been implemetned.
2015-02-13 12:56:58 -06:00
Gregory Nutt
501bc15fbd
RTC: Remove all backdoor interfaces from rtc.h
2015-02-13 08:41:34 -06:00
Gregory Nutt
fa580e17cf
Oops... Conditioned on IPv4 wheren IPv6 was intended
2015-02-09 14:16:32 -06:00
Gregory Nutt
67f0563fad
Add logic so that STM32 Ethernet drivier can avoid interrupt level processing and, instead, execute on the work thread.
2015-02-09 08:33:29 -06:00
Gregory Nutt
b2ed249b42
STM32 SPI: Clean-up asymmetric configuration of SPI6
2015-02-07 18:59:06 -06:00
Gregory Nutt
706f01b8a2
STM32 SPI: The source clock for SPI 4,5, and 6 should be PCLK2, not PCLK1 (for F411, F427, and F429). Per David Sidrane.
2015-02-07 13:59:45 -06:00
Gregory Nutt
ee8d792737
Networking: Changes need to build ICMPv6 'router' configuration on STM32 with network debug enabled
2015-02-05 11:47:56 -06:00
Gregory Nutt
821ffc0b8a
STM32: Add an IPv6 configuration for the STM32F4-Discovery board (witht he STM32-DISCO_BB base board). Verify that the STM32 Ethernet driver works with IPv6.
2015-02-05 11:21:04 -06:00
Gregory Nutt
506c6c8512
ICMPv6: Add logic to behave like a router (if so configured): NuttX will not send the router advertisement message in response to any router solicitation messages.
2015-02-05 09:43:29 -06:00
Gregory Nutt
1646e643d7
Networking: Break out Ethernet definitions into a separate file; add IPv6 multicast addresses as common globals, Ethernet drivers need to filter link-local, all nodes Ethernet address
2015-02-04 14:51:20 -06:00
Gregory Nutt
f036df9faa
Minor update to Kconfig file selections
2015-02-04 08:21:32 -06:00
Gregory Nutt
011c6e0c7e
Re-arrange condition logic from the last change to avoid having STM32-specific conditional logic outside of the STM32 sandbox.
2015-02-04 07:24:19 -06:00
Gregory Nutt
2393a074e5
STM32: Add driver for STM32L162XX AES peripheral. Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2015-02-04 06:49:05 -06:00
Gregory Nutt
523b12c624
Recent changes to stm32_rtcc.c do not compile with STM32L15XX configurations. From Jussi Kivilinna.
2015-01-27 09:20:42 -06:00
Gregory Nutt
2ce16c8fda
Disabling any of EXTI 5-9 interrupts was disabling interrupts for all EXTI 5-9. Same issue with EXTI 10-15. From Jussi Kivilinna.
2015-01-27 09:15:43 -06:00
Gregory Nutt
30b141e2c8
Remove CONFIG_DEBUG_STACK. Adding CONFIG_STACK_COLORATION makes this configuration option pointless
2015-01-24 06:49:51 -06:00
Gregory Nutt
e8f266001d
Add CONFIG_STACK_COLORATION that does the same thing as CONFIG_DEBUG_STACK but without enabling debug. From David Sidrane
2015-01-24 06:03:39 -06:00
Gregory Nutt
b3db229b77
STM32 Ethernet: Port IPv6 address filtering from the Tiva TM4C driver
2015-01-21 15:04:39 -06:00
Gregory Nutt
9588b0e7a7
All Ethernet drivers (again): Missed one place where arp_out() is called and neighber_out() needs to be called
2015-01-21 11:36:33 -06:00
Gregory Nutt
723b7fc430
Networking: Modify all Ethernet drivers: Do neighbor look-up on all outgoing IPv6 packs in order to properly set the destination link layer address.
2015-01-20 15:52:25 -06:00
Gregory Nutt
f6063c3896
Networking: Add missing raw/packet socket support to all Ethernet drivers
2015-01-20 15:14:29 -06:00
Gregory Nutt
07132f462f
Ethernet drivers: Use IFF_IS_IPv4 macro. Cannot rely on the EtherType being set correctly.
2015-01-20 06:26:14 -06:00
Gregory Nutt
3aafa0b93d
nuttx/arch/arm/src/stm32/stm32_serial.c: fix declaration and definition of up_receive() and up_dma_receive() to match fields of uart_ops_s from nuttx/include/nuttx/serial/serial.h
2015-01-19 06:42:27 -06:00
Gregory Nutt
ac69e11a5f
Networking: All Ethernet drivers: Call ipv6_input if IPv6 is enabled and an IPv6 packet is received
2015-01-15 09:31:23 -06:00
Gregory Nutt
836a8b1625
- Rename devif_input() ipv4_input()
...
- Copy net/devif/devif_input.c to ipv6_input.c. Remove all IPv4-specific logic.
- Rename net/devif/devif_input.c to ipv4_input.c. Remove all IPv6-specific logic
- Split IPv4 header structure out as net_ipv4hdr_s from net_iphdr_s
2015-01-15 08:03:56 -06:00
Gregory Nutt
6bc54c3541
Networking: Condition certain ARP logic on CONFIG_NET_ARP in all Ethernet drivers
2015-01-15 07:07:39 -06:00
Gregory Nutt
1193b4aa55
STM32 SDIO: Don't let architectures select CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE unless they have implemented SDIOWAIT_WRCOMPLETE
2015-01-08 17:47:34 -06:00
Gregory Nutt
1ace391fcf
MMCSD SDIO: Add support for a new SDWAIT_WRCOMPLETE condition. The previous logic used a busy-wait loop to pool the card R1 start to determine when the card was ready for the next transfer. That busy-wait can be quite long -- hundreds of milliseconds. And alternative is to look the the SD D0 pin which will change state when the card is no longer busy.
...
This logic implements a change the avoids the busy-wait poll by reconfiguring the SD D0 pin as a GPIO interrupt, then waiting for the card to becom ready without taking up CPU cycles.
This change is conditioned on CONFIG_MMCSD_SDIOWATI_WRCOMPLETE and is currenlty only implemented for the STM32 SDIO driver.
From David Sidrane
2015-01-08 06:23:42 -06:00
Gregory Nutt
a97d304d1a
STM32 RTC: Add Kconfig options needed with the preceding commit
2015-01-02 06:45:45 -06:00
Gregory Nutt
7b89f64b37
stm32-rtc: Add support for the internal low speed clock (LSI)
...
Some boards do not have the external 32khz oscillator installed, for those boards we must fallback to the crummy to the crummy internal RC clock. Turn on by defining CONFIG_RTC_LSICLOCK.
From Kevin Hester <kevinh@geeksville.com> via Lorenz Meier.
2015-01-02 06:32:40 -06:00
Gregory Nutt
a0727124c2
stm32: update description and code documentation. Also fixes a few code formattings.
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-29 09:59:46 -06:00
Gregory Nutt
1a27614552
stm32: fix wait upon vertical blank. This should never have occurred before.
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-29 09:48:25 -06:00
Gregory Nutt
171c017a0c
stm32: fix faulty access to non existing layer. This disables operation that requires double layer support, when configured for single layer only.
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-29 09:45:30 -06:00
Gregory Nutt
59c6f42be4
STM32 Serial: PX4 HW workarround for flaky STM32 RTS. From David Sidrane
2014-12-27 18:58:18 -06:00
Gregory Nutt
d597e94332
Remove STM32-specific RX flow control logic from the upper level serial driver to the lower level STM32 serial driver
2014-12-27 09:45:45 -06:00
Gregory Nutt
405d72c1ad
Serial Upper Half: Add watermarks to RX flow control logic
2014-12-27 07:43:06 -06:00
Gregory Nutt
214183ff93
STM32: Fix some incorrectly placed conditional logic
2014-12-26 12:41:35 -06:00
Gregory Nutt
570943bd71
STM32 I2C: Add strings to decode trace events. From David Sidrane
2014-12-26 08:35:21 -06:00
Gregory Nutt
831167f806
Add support for run time stack checking for the STM32. From David Sidrane
2014-12-26 08:30:42 -06:00
Gregory Nutt
16a302e732
STM32 LTDC: Move ltdc.h from include/nuttx/video to arch/arm/include/stm32; Trivial updates after general review
2014-12-19 14:52:17 -06:00
Gregory Nutt
44d72c6545
stm32: Add configuration option for ltdc
...
This adds the following ltdc configuration options:
- dither support
- cmap support, is this the right place for CONFIG_FB_CMAP?
- support for extended ltdc interface
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:58:39 -06:00
Gregory Nutt
193edfb7be
stm32: implements ltdc frambuffer and support for ltdc layer operation
...
This implements the framebuffer support for the generic nuttx framebuffer
interface, (see nuttx/video/fb.h)
This also implements the interface to perform hardware accelerated layer
operation by the ltdc controller and dma2d controller later (see
nuttx/video/ltdc.h).
The following methods are supported by the ltdc interface:
- getvideoinfo
Get video information of the layer
- getplaneinfo
Get plane information of the layer
- getlid
Handle specific layer identifier. This allows to detect to current layer
state (e.g. important for layer flipping)
- setclut
Set the layer color lookup table. Up to 256 color entries supported.
- getclut
Get the layer color lookup table
- setcolor
Set the default layer color. In the context of the ltdc layer this means set
the default color outside the active area or if the layer is disabled.
- getcolor
Get the default layer color
- setcolorkey
Set the layer colorkey (chromakey). Colorkey is enabled by blendmode
LTDC_BLEND_COLORKEY
- getcolorkey
Get the layer colorkey
- setalpha
Set the constant alpha value. If blend mode LTDC_BLEND_SRCPIXELALPHA or
LTDC_BLEND_DESTPIXELALPHA is defined than the blended color is calculated
by the formel:
Cdest = Pixelalpha * Constalpha * Csrc.
Otherwise:
Cest = Constalpha * Csrc
- getalpha
get the alpha value
- setblendmode
Set the layer blendmode.
Supported blendmodes:
non blendmode (do not perform blend operation independent on the layers
alpha and colorkey)
alpha alpha blending (transparency)
destpixelalpha use pixel alpha value for the top layer (Layer2)
srcpixelalpha use pixel alpha value for the subjacent layer (Layer1)
colorkey enable colorkey
- getblendmode
Get the layer blendmode
- setarea
Set the active layer area, the visible rectangle inside the whole layer.
This also allows to change the position of the whole layer which is visible in
the selected area independent on the area position.
- getarea
Get the active layer area
- update
Reload the layer shadow register and make changes visible. Also supports
layer flipping.
Note! Dithering and background color are static parameter and can only changed
at build time.
Implementation details:
The implementation of ltdc interface was inspired by SDL and DirectFB.
All layer settings are shadowed before they become active (except setclut).
They are still inactive until the layer is updated. This is done by the update
method. Should clut only active after an update or not? Clut is used for drawing
while the other settings usually used for blend or blit operations. So i think
this should be the right way.
The implementation of ltdc interface was inspired by SDL and DirectFB.
All layer settings shadowed before they become active (except clut).
They are still inactive until the layer is updated. This is done by the update
call. Should clut only activated after an update or not? Clut is used for draw
operation while the other settings usually used for blend or blit operations.
So i think this should be the right way.
Deviations from the ltdc hardware implementation:
- Shadow register update of both layer (Layer1 or Layer2) is independent as long
LTDC_UPDATE_SIM is not set. This flag allows to update both layer simultaneous.
Otherwise only the desired layer is updated.
Layer operation:
Keep in mind, both layer are allways active (of course if both enabled by the
configuration). First the Layer 1 is blended with the background color and the
result is blended with the Layer2. To avoid blend effects, set the Layer2 in non
blend mode. This is equal to blend with alpha = 255. Enable blending of Layer2
with the background color by enable blending of Layer1 and disable the opacity
by setting the alpha value to 0.
Layer flip:
A layer flip usual mean swapping two framebuffer. So the current inactive buffer
can refreshed with data while the active framebuffer is visible. A flip
operation changes the inactive layer to the active one and vice versa.
The ltdc implementation supports layer flip. This can be done by the update call
and the flag LTDC_UPDATE_FLIP. In this case ltdc makes the inactive layer
invisible. In detail, the inactive layer is disabled and the blendmode reset.
Detection of the current layer state (e.g. active or inactive) is supported
by the getlid method combined with one of the LTDC_LAYER_* flags.
Maybe an additional method "flip" for flip operation should be added to the ltdc
interface? But this make no sence from my view if the layer is a non LTDC layer,
e.g. playing with dma2d only.
Supported and tested nuttx pixel formats:
Single Layer without LTDC interface support:
- FB_FMT_RGB8 (cmap support required)
- FB_FMT_RGB16_565
- FB_FMT_RGB24
Single Layer with LTDC interface support:
- FB_FMT_RGB8 (cmap support required)
- FB_FMT_RGB16_565
- FB_FMT_RGB24
Dual Layer with LTDC interface support:
- FB_FMT_RGB8 (cmap support required)
- FB_FMT_RGB16_565
- FB_FMT_RGB24
Why is FB_FMT_ARGB8888 missing?
Changes:
- Remove unused register debug method.
Todo:
- Add support for backlight, currently not neccessary
Did i forgot something? Take a look in the ltdc example or the interface
description (see nuttx/include/video/ltdc.h).
Thanks to Ken for the base layout. ;)
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:48:53 -06:00
Gregory Nutt
83d87e5ef7
stm32: Add infrastructure for dma2d support
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:41:08 -06:00
Gregory Nutt
060a61dfac
stm32: Add common stm32 layer description. This defines a common layer description for the ltdc and dma2d controller.
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:37:08 -06:00
Gregory Nutt
df31cf1db8
stm32: configure PLLSAI clock to enable ltdc register access
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:30:58 -06:00
Gregory Nutt
3385fe60cf
stm32: Add missing clut register definition
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:28:42 -06:00
Gregory Nutt
e9074c8a44
stm32: rename CFBLR register name to the name used in the reference manual
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:26:04 -06:00
Gregory Nutt
f181dcef29
stm32: rename PLLSAI register name to this one in the reference manual
...
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-12-19 13:21:39 -06:00
Gregory Nutt
f284c5cab2
Unify sensor debug. ADX driver was using input debug; LM75 and QENCODE that their own custom debug. Now all use CONFIG_DEBUG_SENSOR, sndbg()
2014-12-16 09:54:32 -06:00
Gregory Nutt
a574a3cc8a
STM32 LTDC: Fix a typo in conditional compilation
2014-12-13 07:45:42 -06:00
Gregory Nutt
f8592281a7
STM32 OTG HS DEV (in FS mode): Disable ULPI clock enable in RCC AHB1 Register. If Both ULPI and the FS clock enable bits are set in FS mode, then the ARM never awakens froom WFI due to a chip issue. From Ken Pettit
2014-12-13 07:44:13 -06:00
Gregory Nutt
dd3d417aed
STM32 OTGHS Device: Fix for OTGHS core working in FS mode. From Ken Pettit
2014-12-12 07:43:32 -06:00
Gregory Nutt
cb9e3c2bb9
Set the GPIO_SPEED_50MHz on all F2 and F4 SPI pin configurations. This is based on an F411 SPI1 errata but the fixed is generalized to all SPI and all F2 and F4 (let me know if this introduces any other issues). Discovered and fixed by Sebastien Lorquet after much consternation.
2014-12-08 09:51:52 -06:00
Gregory Nutt
6d7106424e
STM32: Add MCO configuration for the STM32L1xx. From Jussi Kivilinna
2014-12-02 10:19:37 -06:00
Gregory Nutt
13de352dcd
STM32L15: Fix typo in MCO pin definition. From Jussi Kivilinna
2014-12-02 10:18:02 -06:00
Gregory Nutt
f94052de26
Update comments
2014-11-29 15:28:28 -06:00
Gregory Nutt
eace825e3b
STM32 F4 I2C: Port Tridge's I2C noise resiliance logic from the PX4 repository.
2014-11-29 13:37:45 -06:00
Gregory Nutt
0d50608eae
Fix one warning. There are a couple of others that look like real problems
2014-11-28 11:49:24 -06:00
Gregory Nutt
3d55cd82ee
Forgot too add file before last commit
2014-11-27 06:14:09 -06:00
Gregory Nutt
0ad88d9664
Enable support for STM32F102. https://github.com/PX4/NuttX/pull/28.diff
2014-11-27 06:12:35 -06:00
Gregory Nutt
727a7c9e40
Fixes for more issues found by cppcheck
2014-11-24 17:00:26 -06:00
Gregory Nutt
184ebdf191
STM32 F4 OTGHS device controller driver from Brennan Ashton
2014-11-20 07:19:04 -06:00
Gregory Nutt
2330c9c842
Rename CONFIG_NET_BUFSIZE to CONFIG_NET_ETH_MTU is all MCU Ethernet drivers
2014-11-16 08:10:06 -06:00
Gregory Nutt
bf984b2b3a
Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday
2014-11-15 08:22:51 -06:00
Gregory Nutt
e69e2767ad
Correct a typo in the STM32 OTGFS register bit definitions
2014-11-13 10:43:54 -06:00
Gregory Nutt
dc16ffe11a
Fix a typo in an I2C header file. From Jahu Niskanen
2014-11-11 07:12:16 -06:00
Gregory Nutt
c65372b80c
Support for the STM32F103RG. From Murilo Ponte
2014-11-10 07:48:46 -06:00
Gregory Nutt
5ebc472f43
STM32 Serial: Don't compile up_earlyserialinit() if USE_EARLYSERIALINIT is not define. Otherwise, a macro definition clobbers the function definition
2014-10-28 06:58:37 -06:00
Gregory Nutt
60d2547cd7
Move selection for CONFIG_SERIAL_TERMIOS out of MCU Kconfigs to common drivers/serial/Kconfig. Add CONFIG_ARCH_HAVE_SERIAL_TERMIOS to indicate if an MCU supports TERMIOS
2014-10-27 11:31:16 -06:00
Gregory Nutt
800826ac64
Add framework for EFM32 DMA support -- no logic in place yet
2014-10-24 17:59:13 -06:00
Gregory Nutt
2763da5ddd
EFM32: Add IDLE power management hooks. Nothing implemented; just define the hooks
2014-10-22 07:26:31 -06:00
Gregory Nutt
94270a0229
Add ADC pinmap definitions for the STM32 F103R from Lederhilger Martin
2014-10-21 06:48:16 -06:00
Gregory Nutt
d2cf8395f9
stm32: rename spi frame format definition
...
This renames the stm32 spi frame format definition to the short description
name as well as the other cr2 register flags.
Note! STM32_SPI3_FRF was never used by nuttx somewhere
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-10-20 15:12:59 -06:00
Gregory Nutt
0aea891272
Enable selection of SPI2 for STM32L15XX in Kconfig. From Jussi Kivilinna
2014-10-16 07:03:23 -06:00
Gregory Nutt
26b42e3f57
Minor update to last Kconfig change
2014-10-15 12:33:37 -06:00
Gregory Nutt
e73b64f5ea
Add Kconfig selections for STM32-F4x1RE SPI peripheral
2014-10-15 12:22:04 -06:00
Gregory Nutt
a835387529
Fix file mode on modified files
2014-10-14 15:45:56 -06:00
Gregory Nutt
56841b9e20
Support for the STM32 F411RE from Serg Podtynnyi
2014-10-14 15:42:28 -06:00
Gregory Nutt
7012d13e95
Cosmetic changes to comments
2014-10-10 16:54:47 -06:00
Gregory Nutt
85c75a39b0
Fix a few typos
2014-10-10 11:41:40 -06:00