David Sidrane
7262a788c4
Better granualarity and erro checking of the board's MCG settings
...
Allow for complete MCG_C2 definition from the boart.h file
Moved #ifdef out of code by setting default values for
Allow for individule bit setting in MCG_C2 for
BOARD_EXTCLOCK_MCG_C2
BOARD_MCG_C2_FCFTRIM
BOARD_MCG_C2_LOCRE0
Added range and sanity checking
2017-02-09 08:39:31 -10:00
David Sidrane
0e687121e5
arch/arm/include/kinetis/kinetis_mcg.h
2017-02-09 08:39:31 -10:00
David Sidrane
b2deadd569
Support the Indexed name LOCK->LOCK0
2017-02-09 08:39:30 -10:00
David Sidrane
eee029eec1
MCG defines are based on the MCG feature configuration
...
We define the bits as a common set of names. This means that
an index may be added to a name i.e. LOCK is LOCK0 as that is
the superset name.
2017-02-09 08:39:30 -10:00
David Sidrane
ab7b72f2e8
Kinetis chip Adding K66 and inlcuding MCG versioning
...
This includes arch/arm/include/kinetis/kinetis_mcg.h
to bring in the MCG versioning and defines the KINETIS_K66
family for the added SoCs:
--------------- ------- --- ------- ------- ------ ------ ------ -----
PART NUMBER CPU PIN PACKAGE TOTAL PROGRAM EEPROM SRAM GPIO
FREQ CNT FLASH FLASH
--------------- ------- --- ------- ------- ------ ------ ------ -----
MK66FN2M0VMD18 180 MHz 144 MAPBGA 2 MB — — KB 260 KB 100
MK66FX1M0VMD18 180 MHz 144 MAPBGA 1.25 MB 1 MB 4 KB 256 KB 100
MK66FN2M0VLQ18 180 MHz 144 LQFP 2 MB — — KB 260 KB 100
MK66FX1M0VLQ18 180 MHz 144 LQFP 1.25 MB 1 MB 4 KB 256 KB 100
2017-02-09 08:39:30 -10:00
David Sidrane
9bbd98580b
Created a kinetis MCG versioning scheme pulled in by Kinetis chip.h
...
The motvations is to version the IP blocks of the Kinetis
K series family of parts.
This added versioning and configuration features for the
Kinetis MCG IP block.
It is envisioned that in the long term as a chip is added.
The author of the new chip definitions will either find
the exact configuration in an existing chip define and
add the new chip to it Or add the MCG feature configuration
#defines to the chip ifdef list in
arch/arm/include/kinetis/kinetis_mcg.h In either case the
author should mark it as "Verified to Document Number:"
taken from the reference manual.
The version KINETIS_MCG_VERSION_UKN has been applied to
most all the SoCs in the kinetis arch prior to this commit.
The exceptions are the CONFIG_ARCH_CHIP_MK60FN1M0VLQ12,
All K64 and K66 which not have Verified MCG configurations.
2017-02-09 08:39:30 -10:00
David Sidrane
6199d1801e
Add K66 memory map
2017-02-09 08:39:30 -10:00
David Sidrane
db65734820
Add Kinetis K66 to Kinetis Kconfig
2017-02-09 08:39:30 -10:00
David Sidrane
bdd99f5aa1
Removed ws at EOL
2017-02-09 08:39:30 -10:00
Marc Rechté
d501ffc563
Kinetis SDHC driver fixes.
2017-02-09 11:28:30 -06:00
Gregory Nutt
1d290c2b37
setvbuf: Add support for disabling I/O buffering. Initially cut; untested.
2017-02-09 09:24:44 -06:00
Alan Carvalho de Assis
afa1066b4d
LPC43: Fix missing #endif
2017-02-08 11:52:15 -06:00
Gregory Nutt
e803e2c3f4
Costmetic changes from review of last PR.
2017-02-07 17:16:56 -06:00
David Sidrane
a4ea49aaa2
Better granualarity and erro checking of the board's MCG settings
...
Allow for complete MCG_C2 definition from the boart.h file
Moved #ifdef out of code by setting default values for
Allow for individule bit setting in MCG_C2 for
BOARD_EXTCLOCK_MCG_C2
BOARD_MCG_C2_FCFTRIM
BOARD_MCG_C2_LOCRE0
Added range and sanity checking
2017-02-07 12:38:28 -10:00
David Sidrane
ff056cf9bd
arch/arm/include/kinetis/kinetis_mcg.h
2017-02-07 12:38:28 -10:00
David Sidrane
87f759172a
Support the Indexed name LOCK->LOCK0
2017-02-07 12:38:28 -10:00
David Sidrane
6022c62229
MCG defines are based on the MCG feature configuration
...
We define the bits as a common set of names. This means that
an index may be added to a name i.e. LOCK is LOCK0 as that is
the superset name.
2017-02-07 12:38:28 -10:00
David Sidrane
2216ed52a9
Kinetis chip Adding K66 and inlcuding MCG versioning
...
This includes arch/arm/include/kinetis/kinetis_mcg.h
to bring in the MCG versioning and defines the KINETIS_K66
family for the added SoCs:
--------------- ------- --- ------- ------- ------ ------ ------ -----
PART NUMBER CPU PIN PACKAGE TOTAL PROGRAM EEPROM SRAM GPIO
FREQ CNT FLASH FLASH
--------------- ------- --- ------- ------- ------ ------ ------ -----
MK66FN2M0VMD18 180 MHz 144 MAPBGA 2 MB — — KB 260 KB 100
MK66FX1M0VMD18 180 MHz 144 MAPBGA 1.25 MB 1 MB 4 KB 256 KB 100
MK66FN2M0VLQ18 180 MHz 144 LQFP 2 MB — — KB 260 KB 100
MK66FX1M0VLQ18 180 MHz 144 LQFP 1.25 MB 1 MB 4 KB 256 KB 100
2017-02-07 12:38:28 -10:00
David Sidrane
ec567371b6
Created a kinetis MCG versioning scheme pulled in by Kinetis chip.h
...
The motvations is to version the IP blocks of the Kinetis
K series family of parts.
This added versioning and configuration features for the
Kinetis MCG IP block.
It is envisioned that in the long term as a chip is added.
The author of the new chip definitions will either find
the exact configuration in an existing chip define and
add the new chip to it Or add the MCG feature configuration
#defines to the chip ifdef list in
arch/arm/include/kinetis/kinetis_mcg.h In either case the
author should mark it as "Verified to Document Number:"
taken from the reference manual.
The version KINETIS_MCG_VERSION_UKN has been applied to
most all the SoCs in the kinetis arch prior to this commit.
The exceptions are the CONFIG_ARCH_CHIP_MK60FN1M0VLQ12,
All K64 and K66 which not have Verified MCG configurations.
2017-02-07 12:38:28 -10:00
David Sidrane
5bfd2fedc6
Add K66 memory map
2017-02-07 12:38:28 -10:00
David Sidrane
97ae289f99
Add Kinetis K66 to Kinetis Kconfig
2017-02-07 12:38:28 -10:00
David Sidrane
eb955c9f15
Removed ws at EOL
2017-02-07 12:38:28 -10:00
Gregory Nutt
62a1f6f110
up_timer_initialize() is named incorrectly. The prefix should be the architecture name, not up_ since it is private to the architecture. up_timerisr() is similarly misnamed and should also be private since it is used only with the xyz_timerisr.c files. Also updat TODO list.
2017-02-07 10:35:04 -06:00
Gregory Nutt
9395704192
Kinetis, not Kinetics.
2017-02-07 08:20:52 -06:00
Gregory Nutt
54ce3817a5
SDIO interface: Handle all possible DMA combinations in all SDIO drivers.
2017-02-07 07:15:29 -06:00
Marc Rechté
b459fd1529
Updates to Kinetis SDHC driver
2017-02-06 07:43:05 -06:00
Gregory Nutt
1c66c06315
STM32F7 SDMMC: Make sure that all SDMMC configuration variables begin with STM32F7_; Eliminate CONFIG_SDMMC1/2_DMA altogether. Does not appear to be used.
2017-01-31 14:27:50 -06:00
Gregory Nutt
b7d29086e0
STM32F7 SDMMC: Add support for single bit operation on SDMMC2
2017-01-31 12:22:06 -06:00
David Sidrane
9066b4c093
stm32_sdio.c edited online with Bitbucket
2017-01-31 18:01:40 +00:00
Gregory Nutt
3dbdb3bb31
CONFIG_SDIO_DMA: Was been defined in several low-level architecute Kconfig files, but used at the highest levels in the code. Both are bad and both are fixed with this commit
2017-01-31 11:52:00 -06:00
Gregory Nutt
2a4791f4ee
Removed dmasupported() method from the SDIO interface. That is now a bit in the cpapability set.
2017-01-31 09:51:15 -06:00
Gregory Nutt
9ac00a355f
Add capabilities() method to SDIO interface. Remove CONFIG_SDIO_WIDTH_D1_ONLY. That should not be a global propertie, but rather a capability/limitation of single slot when there may be multiple slots.
2017-01-31 09:16:01 -06:00
Gregory Nutt
db77807ad2
Back out use on inline functions to access 16-bit registers. The inline functions were a work-around for misbehaving compiler years and years ago. The mon standard macro-ized version should work just fine.
2017-01-27 11:53:04 -06:00
Alan Carvalho de Assis
25bf212ab4
LPC43 pinset definitions: Add more 1 bit to pinset to reach SFSCLK0-SFSCLK3
2017-01-26 13:31:29 -06:00
Alan Carvalho de Assis
cf2beeb1cf
LPC43: Remove PINCONFIG_DIGITAL
2017-01-26 13:26:55 -06:00
Gregory Nutt
3b9bcd57ba
Remove uninterpretable comment.
2017-01-26 07:20:35 -06:00
Gregory Nutt
ff61d8f69d
Add missing sched_note_*() calls to sam4cm SMP functions.
2017-01-24 14:33:57 -06:00
Gregory Nutt
f40a0311f5
Merged in david_s5/nuttx/upstream_2_greg_f3_bkp (pull request #200 )
...
Add missing STM32_BKP_BASE
2017-01-23 23:42:33 +00:00
David Sidrane
02825f3db0
Add missing STM32_BKP_BASE
2017-01-23 13:38:57 -10:00
Gregory Nutt
492bde8cdb
Merged in david_s5/nuttx/upstream_2_greg_f7_config (pull request #199 )
...
Added missing ARCH_HAVE_RESET for F7
2017-01-23 23:08:50 +00:00
David Sidrane
ab18e483bd
Added missing ARCH_HAVE_RESET for F7
2017-01-23 13:01:55 -10:00
Gregory Nutt
4a8c6a6d2d
ELF: Move ARMv6-M, ARMv7-M, and legacy ARM versions of ELF relocation logic to libc/machine
2017-01-21 15:24:25 -06:00
Gregory Nutt
edd9186540
ELF: Move ARMv7-A and ARMv7-R versions of ELF relocation logic to libc/machine
2017-01-21 14:40:26 -06:00
Gregory Nutt
be5ba90d4f
Move optimized ARM memcpy functions from arch/arm/src/ to libc/machine/. This is necessary for the PROTECTED and KERNEL build modes. Otherwise, memcpy() will be built in to kernel space and not accessible to applications.
2017-01-20 10:53:46 -06:00
Gregory Nutt
3c4684ef5f
Eliminate CONFIG_ARCH_OPTIMIZED_FUNCTIONS. Move options to select architectur-specific C library options from libc/Kconfig to libc/machine/Kconfig and rename.
2017-01-20 09:30:07 -06:00
Gregory Nutt
9cc37d8ee1
Math library optimatizations for FPU only apply to ARMv8 which is not yet supported.
2017-01-20 08:24:59 -06:00
Gregory Nutt
cbeade4069
Remove comment blocks from empty file sections.
2017-01-19 11:59:41 -06:00
Gregory Nutt
0c0c98691e
STM32 and STM32L4 Oneshot: EBUSY is more appropriate error then ENOMEM
2017-01-18 16:20:15 -06:00
Wolfgang Reißnegger
a22dc9b1a8
SAM3/4: Add support for ATSAM4S4C.
2017-01-18 11:56:51 -08:00
Gregory Nutt
b05f928143
STM32L4: Port fix for multiple oneshot timers from STM32. Also fixes a few issues with original STM32 implementation.
2017-01-18 10:45:22 -06:00
Gregory Nutt
0069761d6f
STM32 Oneshot: Fix logic so that it can support multiple oneshot timers.
2017-01-18 08:48:26 -06:00
Neil Hancock
2ece27f435
Kinetis: Add support for K64/K66 RTC lower half driver
2017-01-17 15:34:44 -06:00
Gregory Nutt
0db31d0cd1
SMP: Fix a typo introduced in c5b00ccfc4
2017-01-16 08:48:05 -06:00
Gregory Nutt
a2083fbc92
Update some comments
2017-01-15 12:35:03 -06:00
Gregory Nutt
2837eff0cd
SMP: Most cosmetic clean-up from review of previous commit.
2017-01-14 09:22:13 -06:00
Gregory Nutt
c5b00ccfc4
SMP Signals: Fix some SMP signal delivery logic. Was not handling some critical sections correctly and was missing logic to signal tasks running on other CPUs.
2017-01-14 08:28:37 -06:00
Gregory Nutt
3ed091376c
In all implementations of _exit(), use enter_critical_section() vs. disabling local interrupts.
2017-01-13 11:08:24 -06:00
Maciej Skrzypek
902c41462d
Kinetis: New K60 has no Flex memory
2017-01-13 08:20:48 -06:00
Maciej Skrzypek
0c430e1d0f
Kinetis MCG: Wrong FRDIV set in MCG_C1
2017-01-13 08:19:05 -06:00
Maciej Skrzypek
b6b30bcc7d
Kinetis: Need to set HAVE_UART_DEVICE when UART4 is selected
2017-01-13 08:16:31 -06:00
Maciej Skrzypek
98bdd12521
Kinetis Serial: Fixed compile error when UART5 is selected
2017-01-13 08:14:41 -06:00
Maciej Skrzypek
4becebe59f
Kinetis: Fixed wrong MCG VDIV calculation on new NXP K60
2017-01-13 08:13:21 -06:00
Maciej Skrzypek
bc1826da63
Kinetis: Added CHIP_MK60FN1M0VLQ12 chip
2017-01-13 08:10:03 -06:00
Gregory Nutt
4ede950039
Fix some typos in comments.
2017-01-12 18:02:23 -06:00
Gregory Nutt
895f01dd80
Merged in david_s5/nuttx/upstream_revert_265af481209d60033f7cd4c4216048b1ce3eb435 (pull request #194 )
...
Revert "STM32 serial: Make input hardware flow-control work with RX DMA. From Jussi Kivilinna"
2017-01-12 17:58:20 -06:00
Gregory Nutt
bd696b8c40
Merged in david_s5/nuttx/upstream_to_greg_HSI_ON_re (pull request #193 )
...
HSI should not be turned off
2017-01-12 17:47:16 -06:00
David Sidrane
20e723715c
HSI should not be turned off
2017-01-12 13:44:03 -10:00
Gregory Nutt
d5cdab0e51
Revert "HSI should not be turned off"
...
This reverts commit 4e051c05fb
.
This change broke the STM32 seril driver.
2017-01-12 16:27:04 -06:00
Gregory Nutt
3191549116
Merged in david_s5/nuttx/upstream_to_greg_HSI_ON (pull request #191 )
...
HSI should not be turned off
2017-01-11 17:14:14 -06:00
Gregory Nutt
62fe2bf11a
Merged in david_s5/nuttx/upstream_to_greg_HSI_not_req_on_F4 (pull request #192 )
...
STM32F4 does not have the requierment that the HSI be on for FLASH erase/write operations
2017-01-11 17:13:36 -06:00
David Sidrane
0dbf44e3ad
STM32F4 does not have the requierment that the HSI be on for FLASH erace/write operations
2017-01-11 12:47:24 -10:00
David Sidrane
4e051c05fb
HSI should not be turned off
2017-01-11 12:18:12 -10:00
Gregory Nutt
1f33654f2d
Update some comments
2017-01-06 17:15:01 -06:00
Gregory Nutt
905a1ce10f
SAMV7 Ethernet: Fix a compiler error introduced with commit 7467329a98
2017-01-06 16:49:18 -06:00
Gregory Nutt
13d00344c9
Add configuration to prevent selection of Windows native toolchains when using Ubuntu under Windows 10
2017-01-02 07:16:47 -06:00
Gregory Nutt
3a0413c048
Back out most of 34be3e7c3c
and update README again. Windows native tools cannot be used with Ubuntu under Windows 10 now. For Cygwin, that support depends on the 'cygpath -w' tool to convert POSIX paths to Windows paths. There is no corresponding tool for Ubuntu under Windows 10.
2017-01-01 16:29:03 -06:00
Gregory Nutt
34be3e7c3c
Add configuration support for builds with Ubuntu under Windows 10
2017-01-01 15:34:23 -06:00
Gregory Nutt
b9e2bd4f37
Merge branch 'master' of bitbucket.org:nuttx/nuttx
2016-12-31 12:25:20 -06:00
Gregory Nutt
17cbec16dc
STM32 SDIO: Remove warning about unused variable in STM32 F4 builds.
2016-12-31 12:24:02 -06:00
Aleksandr Vyhovanec
a0814ece13
Fix typos
2016-12-30 09:49:31 +03:00
Masayuki Ishikawa
3a0ae405b2
i.MX6: Fix clearing GPT status register
2016-12-28 10:19:18 -06:00
Gregory Nutt
49fae0ac6b
Revert "All CMP platforms: Apply same fix verified on other platforms found on Xtensa."
...
This reverts commit fb146abee0
.
2016-12-25 07:08:44 -06:00
Gregory Nutt
ea7b673174
Merged in david_s5/nuttx/upstream_sdio_1bit_dma (pull request #188 )
...
Allow dma in 1 bit mode in STM32F4xxx
2016-12-24 20:21:03 -06:00
Gregory Nutt
12148f0e33
Merged in paulpatience/nuttx/stm32 (pull request #180 )
...
STM32: Forgot to update chip.h for STM32F303x[BC]'s 4 ADCs
2016-12-24 20:20:39 -06:00
Gregory Nutt
efb86382c3
SMP: Back out deferred IRQ locking. This was accidentally merged into master and it looks like it is going to be more work than I thought to get it working again. Changes will go to the irqlock branch.
2016-12-24 19:53:37 -06:00
David Sidrane
df9ae3c13f
Revert "STM32 serial: Make input hardware flow-control work with RX DMA. From Jussi Kivilinna"
...
This reverts commit 265af48120
.
Conflicts:
arch/arm/src/stm32/stm32_serial.c
2016-12-23 14:12:57 -10:00
Gregory Nutt
b262c6be91
Merge remote-tracking branch 'origin/master' into irqlock
2016-12-23 13:09:11 -06:00
Gregory Nutt
f3d755c16f
Some trivial, cosmetic changes for irqlock branch
2016-12-23 13:04:33 -06:00
Frank Benkert
29cf2eb342
AMV7: CAN: Make delete_filter functions more robust
2016-12-23 11:45:21 -06:00
Gregory Nutt
729ee7c099
ARMv7-A: Small improvement to some register handling in context restoration.
2016-12-23 11:13:18 -06:00
Gregory Nutt
d9ef0e86fb
Fix a couple of errors in the last commit
2016-12-23 10:45:13 -06:00
Gregory Nutt
c00a1870d7
Implement deferred IRQ locking. Adds support for ARMv7-A.
2016-12-23 10:17:36 -06:00
Gregory Nutt
e6fff09ef8
Implement deferred IRQ locking. So far only form ARMv7-M.
2016-12-23 07:55:41 -06:00
David Sidrane
76ceb37553
Allow dma in 1 bit mode in STM32F4xxx
2016-12-22 09:19:37 -10:00
Gregory Nutt
fb146abee0
All CMP platforms: Apply same fix verified on other platforms found on Xtensa.
2016-12-21 14:04:09 -06:00
Gregory Nutt
5666bf30a7
Review of last PR
2016-12-20 07:08:46 -06:00
Young
07b70fcc20
Improve the PWM logs
2016-12-20 17:05:51 +08:00
Young
9d355e12d5
Support indefinite number of pulses generation in PULSECOUNT mode
2016-12-20 14:08:31 +08:00
Young
e35406f7d6
Support PWM_PULSECOUNT feature for TI tiva
2016-12-20 13:20:04 +08:00
David Sidrane
ec85425041
STM32: Fix some STM32F7 copy paste errors
2016-12-17 08:31:12 -06:00