Commit Graph

1341 Commits

Author SHA1 Message Date
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