Commit Graph

1992 Commits

Author SHA1 Message Date
Gregory Nutt
a81abd3514 Improve Cortex-A5 context switching so that a little less copying is done 2013-07-24 07:47:51 -06:00
Gregory Nutt
2e8fcc7229 ARMv7-N: Fix a copy error introduced in the previous check-in 2013-07-23 19:09:17 -06:00
Gregory Nutt
cb3f394d53 Improve some ARMv7-A/M floating point register save time; Add floating point register save logic for ARMv7-A 2013-07-23 17:52:06 -06:00
Gregory Nutt
9e24c4fcd5 ARMv7-A: Need 8-byte stack alignment when callign C code from interrupt handlers. This change needs to be ported to other ARM architectures as well 2013-07-23 14:47:16 -06:00
Gregory Nutt
596cdf2982 SAMA5: Adapt clocking for different boot modes. New header files for AXI matrix, BSC, and SFR 2013-07-23 13:54:49 -06:00
Gregory Nutt
ae3f2b2876 Add SAMA5D3 pin multiplexing definitions 2013-07-23 09:47:01 -06:00
Gregory Nutt
e9f8689cee Add SAMA5 GPIO configuration support 2013-07-22 20:59:47 -06:00
Gregory Nutt
50cd6352fa Add support SAMA5 UART and serial driver 2013-07-22 19:16:37 -06:00
Gregory Nutt
9665c0d267 SAMA5 clock configuration should now agree with Atmel sample code; Added header file with macros to enable and disable peripheral clocking 2013-07-22 17:00:02 -06:00
Gregory Nutt
571308c27a Add SAMA5 clock logic. Cloned from SAM3U and not yet verified 2013-07-22 14:42:05 -06:00
Gregory Nutt
fb8a7a91fb SAMA5 interrupt handling logic 2013-07-22 11:54:39 -06:00
Gregory Nutt
ca9b52b07f SAMA5/Cortex-A: Improve irqsave/restore inlines + add irqenable. Add skeleton file for SAMA5 interrupt management. Also change from last commit that was left in the editor 2013-07-21 17:08:40 -06:00
Gregory Nutt
b26d506514 Add system timer logic for the SAMA5 2013-07-21 15:49:17 -06:00
Gregory Nutt
0b46176b43 A few more Cortex-A5 and SAMA5 files 2013-07-21 12:52:38 -06:00
Gregory Nutt
0d9250fae5 Misc Cortex-A5 changes include new file for cache operations 2013-07-20 13:06:00 -06:00
Gregory Nutt
6f0e07d071 A few more SAMA5D3 files 2013-07-19 17:45:28 -06:00
Gregory Nutt
137cd94b6a Basic framework to support the AT91SAMA5D3 family and the SAMA5D3x-EK board(s) in particular 2013-07-19 15:23:03 -06:00
Gregory Nutt
c294e9b374 More ARMv7-A files that are just copies of the ARMv4/5 files for now 2013-07-19 11:43:04 -06:00
Gregory Nutt
15ae557793 Minor but fatal typo introduced in last checkin 2013-07-18 15:45:21 -06:00
Gregory Nutt
28a90ba46d Some initial frame for Cortex-A5 support. No much yet 2013-07-18 15:20:47 -06:00
Gregory Nutt
91313feac2 NSH cmp command by Andrew Twidgell 2013-07-18 08:24:29 -06:00
Gregory Nutt
78bffd06c2 STM32 SDIO driver: Add supported for data block end (DBCKEND) interrupt. From Chia Cheng Tsao 2013-07-08 09:04:05 -06:00
Gregory Nutt
d649c2a462 Ticket #16: STM32 OTG FS device driver endpoint allocation. From Chia Cheng Tsao 2013-07-08 08:55:05 -06:00
Gregory Nutt
dcb4545afb prohibit re-entrance into sam_configgpio() 2013-07-05 17:15:54 -06:00
Gregory Nutt
d5f274ac76 Fix SAM34 interrupt handling for ports D-F; fix MISO logic in Arduino Due touchscreen driver 2013-07-03 08:12:45 -06:00
Gregory Nutt
348304fcb4 Several fixes to get a clean compile of the Arduino touch screen 2013-07-02 13:52:09 -06:00
Gregory Nutt
a954eb76b2 Created new directories to hold SPI-related files 2013-07-01 08:11:54 -06:00
Gregory Nutt
5c86557971 Update LM FLASH definitions for LM4F120. From Vinti 2013-06-29 07:02:56 -06:00
Gregory Nutt
4db87105e9 SAM33/4: Need to disable write protection before modify PIO pin configuration 2013-06-28 15:34:51 -06:00
Gregory Nutt
880d7f261b Add an NSH configuration for the Arduino Due; Pluse several fixes related to the Due and to the SAM3X in general 2013-06-28 14:32:08 -06:00
Gregory Nutt
4fe041a10b Arduino Due: Fixes to FLASH address, flash wait states, updated Comments. Now boots and runs a bit before crashing 2013-06-28 11:29:14 -06:00
Gregory Nutt
8f41963efd With these changes the Arduino Due port builds without errors 2013-06-27 15:07:07 -06:00
Gregory Nutt
2ecac742b6 Flesh out the Arduino Due board configuratino and integrate it with the build and configuration system 2013-06-27 14:24:27 -06:00
Gregory Nutt
3910edbf90 Review and update of SAM3/4 header files and conditional logic for SAM3X/A support 2013-06-27 11:06:13 -06:00
Gregory Nutt
77b36e0bc1 Add peripheral configuration logic for the SAM3X/3A; Change all references to SAM3/4 SPI to SPI0 for compatibity with the SAM3X/3A which has SPI0 and SPI1; Add directory which will eventually holdl an Arduino Due port 2013-06-26 18:46:44 -06:00
Gregory Nutt
69bd94290a Add SAM3X/3A pin multiplexing and GPIO encoding header files 2013-06-26 17:02:43 -06:00
Gregory Nutt
87cfee43af Add SAM3X/3A memory map 2013-06-26 14:37:57 -06:00
Gregory Nutt
ae6dbb9bf9 Add SAM3X/3A peripheral clock controls 2013-06-26 14:00:26 -06:00
Gregory Nutt
8865cf8be0 Add SAM3X/3A interrupt vectors 2013-06-26 12:59:56 -06:00
Gregory Nutt
2812f5be67 Add support for SAM3X and 3A chips, interrupts, and peripheral IDs 2013-06-26 12:28:32 -06:00
Gregory Nutt
64d149233b Fix integration of RAM test into the build and configuration system 2013-06-26 10:54:12 -06:00
Gregory Nutt
e00a8397bc Add support for a separate CCM memory allocator for members of the STM32 family that support CCM memory 2013-06-25 09:13:30 -06:00
Gregory Nutt
22c3d49807 SAM4L Xplained SLCD driver is complete 2013-06-23 09:05:20 -06:00
Gregory Nutt
c21986c418 Beginning of a driver for the SAM4L LED1 module 2013-06-21 17:42:09 -06:00
Gregory Nutt
7a65c32d4b Straighten out issues about who calls C++ initializers with CXXTEST or HELLOXX are built as NSH applications; Add an ofstream test to CXXTEST suggested by Michael; Update many defconfig fiels to that they set configurations to handle C++ constructors just as before these configuration changes 2013-06-21 09:32:57 -06:00
Gregory Nutt
4fded8a25c More KL25Z SPI fixes 2013-06-20 19:58:45 -06:00
Gregory Nutt
6e2fe7ccaf KL25Z GPIO register dump function now compiles 2013-06-20 18:00:56 -06:00
Gregory Nutt
d088cbec5b Fix backward wait condition in KL24Z SPI driver 2013-06-20 17:39:42 -06:00
Gregory Nutt
2e40a98c74 Add framework for managing SPI-related discretes on the Freedom KL25Z board. 2013-06-20 13:50:16 -06:00
Gregory Nutt
3c05e28e6d More Freedom KL25Z changed to and from Alan Carvalho de Assis 2013-06-19 20:50:27 -06:00
Gregory Nutt
bdc68f73ad Fix errors in KL25Z SPI driver reported by Alan Carvalho de Assis 2013-06-19 19:32:13 -06:00
Gregory Nutt
f3781d1eec Add SAM4L PDCA register definition file 2013-06-19 18:38:31 -06:00
Gregory Nutt
e377bab446 SPI register definition file updated to include a few differences for the SAM4L 2013-06-19 16:03:19 -06:00
Gregory Nutt
c9ed0f9120 SAM4L LCDCS register definitions 2013-06-19 13:59:47 -06:00
Gregory Nutt
23579f3af4 Add SPI driver for the Freescale KL25Z 2013-06-19 12:10:01 -06:00
Gregory Nutt
5368531d60 Add SPI register definitions for the Freescale KL25Z 2013-06-19 09:56:32 -06:00
Gregory Nutt
49ad89dd70 Fix test of NULL pointer in the SAM3/4 SPI driver 2013-06-18 12:16:52 -06:00
Gregory Nutt
a56bf3f8b3 Freescale KL25Z support from Alan Carvalho de Assis 2013-06-18 11:20:57 -06:00
Gregory Nutt
7e372171c2 SAM3/4 SPI phase control (CPHA) is inverted 2013-06-18 09:29:55 -06:00
Gregory Nutt
2d6a50a1ce Corrections to the Kinetis TSI header file from Alan Carvalho de Assis 2013-06-18 07:14:05 -06:00
Gregory Nutt
db66a5a313 SAM3U-EK: Correct polarity of the PENIRQ signal 2013-06-16 14:31:18 -06:00
Gregory Nutt
ab84bdd2d8 Re-architected SAM3/4 SPI interface; Change BUSY bit handling in the ADS7843E driver 2013-06-16 10:09:21 -06:00
Gregory Nutt
20fdf8161f Add support for the SAM4L Xplained Pro I/O1 module 2013-06-15 10:56:08 -06:00
Gregory Nutt
d7fb126a61 Fixes for SAM4S and 4L due to recent changes to SAM3S; Updated README files 2013-06-14 08:54:24 -06:00
Gregory Nutt
c5169b092a SAM3/4S GPIO interrupt changes 2013-06-13 18:53:14 -06:00
Gregory Nutt
f7edd7a31c SAM3/4: Loop counter for PLL delay must be volatile or it may get optimized away 2013-06-13 16:18:25 -06:00
Gregory Nutt
2bce348e0f SAM3/4: Some minor design improvements to the SAM3/4 serial driver 2013-06-13 15:16:52 -06:00
Gregory Nutt
9f590e5228 Fix error in AT91SAM SPI driver introduced in recent comment. Varioius improvements to README files and debug output 2013-06-13 13:38:31 -06:00
Gregory Nutt
e6a3078b77 Add support for a generic windows-based EABI toolchain; Add NX configuration to force default NXTK border colors 2013-06-13 11:04:18 -06:00
Gregory Nutt
0762d45517 Correct border colors for SAM3U-EK border; clean up some comments; make sure that sam_vectors.S is identical to stam32_vectors.S 2013-06-12 19:42:39 -06:00
Gregory Nutt
30a572d244 Remove CONFIG_XYZ_BUILTIN configurations, replace with the single CONFIG_NSH_BUILTIN_APPS. Add SAM3/4 sam_periphclks.h which is just a header file that includes the right header file. Misc SAM3U-EK cleanup 2013-06-12 17:32:00 -06:00
Gregory Nutt
42e63b437e Misc updates to SAM3U register definition files for SAM4S compatibility 2013-06-12 12:35:48 -06:00
Gregory Nutt
677365210e SAM4S: Add NSH configuration. Calibrated delay loops. Port now seems fully functional 2013-06-12 10:56:42 -06:00
Gregory Nutt
c0a0de6593 Correct SAM3S-Xplained load address, FLASH wait states, and UART1 pin configuration 2013-06-12 08:18:42 -06:00
Gregory Nutt
a42a382b70 Use UART1 for the console on the SAM4S-Xplained not USART0 2013-06-11 19:24:47 -06:00
Gregory Nutt
ea776434ba Changes for a clean build of configs/sam4s-xplained 2013-06-11 17:33:43 -06:00
Gregory Nutt
42a46aa55f Add configs/sam4s-xplained 2013-06-11 16:29:59 -06:00
Gregory Nutt
1b57fdd7dd SAM4S: Add macros to manage peripheral clocks 2013-06-11 15:42:30 -06:00
Gregory Nutt
93ee6cb291 SAM4S: Add pin multiplexing definitions 2013-06-11 14:32:07 -06:00
Gregory Nutt
3fb47dae74 SAM4S: GPIO, chip characteristics, peripheral Kconfig 2013-06-11 12:28:31 -06:00
Gregory Nutt
6576156731 SAM4S: Add memory map and interrupt logic 2013-06-10 16:18:47 -06:00
Gregory Nutt
ae4cbd44c7 Beginning updates of SAM3U header files o include support for the SAM4S: WDT, SUPC, EEFC, MATRIX, and PMC 2013-06-10 11:57:37 -06:00
Gregory Nutt
617a0225cc SAM4L: Extend interrupt support for the larger number of NVIC interrupts of the SAM4L 2013-06-09 13:00:38 -06:00
Gregory Nutt
2f4ae2f2b0 SAM4L: Add an NSH configuration and C++ support 2013-06-09 11:43:20 -06:00
Gregory Nutt
bae87a0ea1 SAM4L: Mic fixes to get the SAM4L Xplained running. The ostest now passes. 2013-06-09 10:57:42 -06:00
Gregory Nutt
91d6ebfa0e SAM3U/4L changes to hide differences by clocking in those MCUs 2013-06-08 13:50:42 -06:00
Gregory Nutt
04d573e3a8 SAM4L: Add USART/UART register definition header files 2013-06-08 11:39:06 -06:00
Gregory Nutt
c28bf69735 SM4L: USB clock configuration and WDT register definition file 2013-06-08 09:21:20 -06:00
Gregory Nutt
0173b72281 SAM4L: Add logic to configure FLASH read mode and wait states 2013-06-07 18:12:00 -06:00
Gregory Nutt
4538b2c468 SAM4L: Add logic to enable selected peripherals on power up; Extend configuration so that each peripheral can be selected -- even though the drivers are not yet implemented 2013-06-07 14:59:33 -06:00
Gregory Nutt
8d72772a11 SAM4L: Add DFLL0 support, add logic to set the power scaling mode, add support for RAM functions 2013-06-07 13:26:55 -06:00
Gregory Nutt
5dd03676dc Update SAM4L PLL0 logic 2013-06-07 10:28:06 -06:00
Gregory Nutt
0ddc440df5 Add logic to enable SAM4L clocks 2013-06-06 19:11:32 -06:00
Gregory Nutt
9149253356 Add SAM4L BSCIF register definition file 2013-06-06 16:24:33 -06:00
Gregory Nutt
1029074cc6 Fix a backward conditional that cause the STM32 usb host driver to fail to detect disconnection events. From Scott 2013-06-06 15:00:18 -06:00
Gregory Nutt
78681b6d8f Add flow control support to the STM32 serial driver; Fix some issues with UART2 and 5. From Lorenz Meier and Mike Smith 2013-06-06 14:49:14 -06:00
Gregory Nutt
0678780f2d Add register definitions for SAM4L BPM and SCIF blocks 2013-06-06 11:19:18 -06:00
Gregory Nutt
4055f6d697 Add register definitions for SAM4L BPM and SCIF blocks; SAM4L clock initialization now selects an optimal power scaling mode 2013-06-06 11:18:52 -06:00
Gregory Nutt
3e823e5468 Move SAM4L peripheral clock logic to a separate file 2013-06-05 18:48:30 -06:00
Gregory Nutt
652f78a2eb Updates to SAM4L clocking. Still not finished 2013-06-05 16:41:52 -06:00