Commit Graph

4333 Commits

Author SHA1 Message Date
Juha Niskanen
7407e41569 Add CONFIG_ADC_NO_STARTUP support for STM32 F1 (untested) 2015-07-30 07:42:31 -06:00
Gregory Nutt
f795e386d7 moxART needs to select some architecture. Is ARM7TDMI close? 2015-07-29 20:41:05 -06:00
Gregory Nutt
5b46df9c49 Fix compile error from last ADC change 2015-07-29 17:37:35 -06:00
Gregory Nutt
0843af5367 Fixes that call sched_resume_scheduler and sched_suspend_scheduler must include nuttx/sched.h 2015-07-29 16:51:26 -06:00
Gregory Nutt
23ed19c514 Clean-up from last commit to make sure that all files have BSD licensed header with the correct authors and that the code conforms to the NuttX coding style 2015-07-29 13:52:23 -06:00
Anton D. Kachalov
b10095ed59 [arm/src/moxart/irq] irq_decode: process one irq at once
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-07-29 19:13:47 +03:00
Anton D. Kachalov
ab27747484 [arm/src/moxart/irq] irq_decode: process several interrupts at once
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-07-29 19:13:47 +03:00
Anton D. Kachalov
ea6c65d813 [moxart/moxart_timer] Correct compare value for T1
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-07-29 19:13:47 +03:00
Anton D. Kachalov
309ee5d348 [moxart/moxart_irq] Cleanup includes
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-07-29 19:13:47 +03:00
Anton D. Kachalov
7f28335f81 [moxart/moxart_timer] Div clock by 8
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-07-29 19:13:47 +03:00
Anton D. Kachalov
46c8885814 [arm/moxart/moxart_irq] Typo fix 2015-07-29 19:13:47 +03:00
Anton D. Kachalov
75762f1519 Add support for MoxaRT 2015-07-29 19:13:47 +03: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
eddf8161a5 Add scheduler resume/suspend calls to all implementations of up_release_pending() 2015-07-26 10:13:29 -06:00
Gregory Nutt
37969b8279 Add scheduler resume/suspend calls to all implementations of up_reprioritize_rtr() 2015-07-26 09:46:28 -06:00
Gregory Nutt
838c5355eb Correct resume scheduler hooks and add suspend scheduler hooks to all implementations of up_unblock_task 2015-07-26 09:07:47 -06:00
Gregory Nutt
a92c0a10ab Add scheduler resume/suspend calls in all implementations of up_block_task() 2015-07-26 08:31:23 -06:00
Gregory Nutt
9d98177daa Add logic to reset the replenish the sporadic scheduler when a task is resumed 2015-07-24 09:54:28 -06:00
Gregory Nutt
39192c3537 Fix a compile error found by tools/tesbuild.sh 2015-07-22 15:45:47 -06:00
Gregory Nutt
999452c3ae Eliminate a warning detected by nuttx/tools/testbuild.sh 2015-07-22 14:11:10 -06:00
Gregory Nutt
ca203f6a4f Fix warnings from the STM32F7 pinmap.h header file; add a .gitignore file 2015-07-22 11:00:41 -06:00
David Sidrane
778c630c6b Add support for the STM32446. From David Sidrane 2015-07-22 07:26:53 -06:00
David Sidrane
092488cbd0 Make some STM32F7 pin naming more consistent 2015-07-21 15:33:56 -06:00
David Sidrane
e36ca25c5c STM32: Fix incorrect naming of inclusion guard in IRQ header files 2015-07-21 12:25:15 -06:00
David Sidrane
e7d039ac2b STM32: Fix incorrect naming of inclusion guard in IRQ header files 2015-07-21 11:30:45 -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
9c284bb05f Syscall fixes: Add support for Cortex-M7; mount syscall has to be suppressed if there are no mountable file systems 2015-07-21 11:20:46 -06:00
Gregory Nutt
d2c8d4a495 Review/updated Cortex-M7 MPU definitions 2015-07-21 11:19:14 -06:00
Gregory Nutt
ba2046d0cd STM32 F7: Port some F4 protected mode files to the F7 2015-07-21 07:59:20 -06:00
Max Neklyudov
b13e182099 Correct some problems with SAM3/4 watchdog driver. Includes some small improvements. From Max Neklyudov. 2015-07-21 07:15:39 -06:00
David Sidrane
e6216a9175 Correct some typos in the STM32 F7 RCC register definition header file. From David Sidrane. 2015-07-21 06:51:33 -06:00
Gregory Nutt
84ffc1fe2c STM32 F7 Ethernet: Fix some backward conditinal compilation 2015-07-20 15:49:07 -06:00
Gregory Nutt
57191d15df STM32 F7: Fix some errors in some macro definitions 2015-07-20 15:29:32 -06:00
Gregory Nutt
088d42a948 STM32 F7: Port the STM32 F7 2015-07-20 13:54:41 -06:00
Gregory Nutt
9737c6a0bc STM32 F7 Ethernet: With these last changes, the STM32 F7 Ethernet driver is functional 2015-07-20 10:57:06 -06:00
Gregory Nutt
d406163a66 Refresh submodules; upated STM22F3 Ethernet debug output 2015-07-20 09:31:49 -06:00
Gregory Nutt
3fa40fd3c8 STM32 F7 Ethernet: RX/TX descriptors should be flushed to memory when they are first initialized 2015-07-20 07:05:35 -06:00
Gregory Nutt
bab4a5308a STM32 F7 Ethernet: Add cache operations to make sure we have data coherency when accessing all DMA-related data 2015-07-19 17:04:43 -06:00
Gregory Nutt
2ce3c75264 STM32 F7 Ethernet: Add logic to align all DMA memory to the D-Cache line size 2015-07-19 16:35:25 -06:00
Gregory Nutt
c4d91c8c9f Another FIX for gethostbyname if CONFIG_NETDB_DNSCLIENT is not defined 2015-07-19 14:45:34 -06:00
Gregory Nutt
a01ff4cb0b STM32 F7: Fix a few of the many Ethernet compilation issues (still more) 2015-07-19 12:58:41 -06:00
Gregory Nutt
e5ea468d75 STM32 F7: Quick'n'dirty port of the STM32 F4 Ethernet driver. Does not yet even compile 2015-07-19 12:51:23 -06:00
Gregory Nutt
d748f1ac27 STM32 F7: Add Ethernet header file 2015-07-19 12:26:13 -06:00
Gregory Nutt
3150706ee4 STM32 F7: Add logic to enable I-/D-Cache, ITCM and DTCM 2015-07-19 10:43:26 -06:00
Gregory Nutt
be008484e7 STM32 F7: Port the STM32 F3 serial driver to the STM32 F7 2015-07-19 09:25:27 -06:00
Gregory Nutt
7241185e13 STM32 F7: Add DMA header files 2015-07-19 07:34:09 -06:00
Gregory Nutt
08c883b6e8 STM32 F7: Add low level serial console support 2015-07-18 16:24:02 -06:00
Gregory Nutt
d64058d36e STM32 F7: Bring in other EXTI related files from STM32 F4 2015-07-18 16:00:00 -06:00
Gregory Nutt
5f9b0b3a2f STM32 F7: Add USART/UART register definition 2015-07-18 15:58:59 -06:00
Gregory Nutt
12f04f8500 STM32 F7: Add heap initializatino logic; Clone the STM32 CCM allocator as the F7 DTCM allocator 2015-07-18 12:52:24 -06:00
Gregory Nutt
465d7fe8c5 STM32 F7: Add PWR register definitions 2015-07-18 11:55:35 -06:00
David Sidrane
5e1a50c93e STM32: Oops. Some STM32 F7 edits accidentally went into STM32 files ;(. Fixed by David Sidrane 2015-07-18 11:05:44 -06:00
Gregory Nutt
4a5f66481d STM32 F7: Add FLASH and SYSCFG header files 2015-07-18 10:06:44 -06:00
Gregory Nutt
4f307ba36a STM32F7: Clone GPIO support from the STM32 F4 2015-07-18 08:34:07 -06:00
Gregory Nutt
9c78772fce STM32 F7: Add RCC clock configuration logic from STM32 F429 2015-07-17 17:39:33 -06:00
Gregory Nutt
cbaf241078 STM32 F7: Fix input clock source to SysTick 2015-07-17 16:38:47 -06:00
Gregory Nutt
6f5aa9ae21 STM32F7: Add GPIO header files 2015-07-17 15:43:51 -06:00
Gregory Nutt
d722792487 STM32 F7: Add RCC header files 2015-07-17 13:52:10 -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
8e4f3bddb6 Add CONFIG_NETDEV_LATEINIT that can be used to suppress calls to up_netinitialize() from early initialization 2015-07-17 07:20:16 -06:00
Gregory Nutt
a7a7ec8850 STM32 F7: Misc naming fixes 2015-07-16 19:49:20 -06:00
Gregory Nutt
3583f8c1dc STM32 F7: Add more configuration selections 2015-07-16 18:30:40 -06:00
Gregory Nutt
05676a233c STM32 F7: Add pin multiplexing definitions 2015-07-16 16:31:02 -06:00
Gregory Nutt
d8915e9dc6 Add include/chip.h definitions and configuration support for the STM32 F7 2015-07-16 08:47:25 -06:00
Gregory Nutt
eb64a6c238 Add STM32 F7 memory map header file 2015-07-15 16:24:03 -06:00
Gregory Nutt
2bdca23c92 STM32F7: Bring over a couple more Cortex-M7 files from SAMV7 2015-07-15 14:51:41 -06:00
Gregory Nutt
be16a06857 Create a src directory for the STM32F7 (not much in it yet) 2015-07-15 14:32:28 -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
3efe60bb6d STM32 F7: Add interrupt vector definitions 2015-07-15 10:54:03 -06:00
Alan Carvalho de Assis
3f68755997 SAML21" Fix small typo. It should be 2-Wire I2C instead of 1-Wire. From Alan Carvalho de Assis. 2015-07-12 12:17:42 -06:00
Alan Carvalho de Assis
82fd1536a6 AMDL: Add support to Peripheral as Output with Read back. From Alan Carvalho de Assis. 2015-07-12 09:23:40 -06:00
Gregory Nutt
1f5e16dc95 Fix some warnings/errors detected by nuttx/tools/testbuilds.sh 2015-07-10 18:41:26 -06:00
Janne Rosberg
3fdfae16b7 samdl/sam_usb.h: fix USBDEV_CTRLB_SPDCONF defines Datasheet 03-2015 and 06-2015 is wrong. These defines are correct verified with analyser and also same values are used on Atmel xdk-asf-3.24.2 sources. From Janne Rosberg. 2015-07-10 15:23:41 -06:00
Janne Rosberg
02979feb7b samdl/saml_usb.h: fix wrong EP offset calculation. From Janne Rosberg 2015-07-10 15:21:37 -06:00
Janne Rosberg
b32d747212 Fix some typos. From Janne Rosberg 2015-07-10 15:19:24 -06:00
Janne Rosberg
d6a51360f1 samdl: fix USBDEV_PKTSIZE_BCNT size. From Janne Rosberg 2015-07-10 15:15:55 -06:00
Alessandro Temil
d4cd35af5f More changes to LPC3450 pin configuration: The hardware ETM pins will not toggle unless the SLEW FAST bit is set. From Alessandro Temil. 2015-07-09 13:36:22 -06:00
Alessandro Temil
d687bedf36 Correct some LPC4350 GPIO pin configurations. From Alessandro Temil 2015-07-09 12:09:00 -06:00
Gregory Nutt
56e4189a73 SAMD21: Correct some GCLK ID definitions for SERCOM 2015-07-06 09:26:49 -06:00
Gregory Nutt
ef5531b30b SAMD21: Last fix to header files caused a compile problem because logic used a value which is no longer available for the SAMD21 2015-07-04 13:18:30 -06:00
Gregory Nutt
724c1eacaa Add support for a BOARDIOC_RESET boardctl() command. Enable configuration options to support BOARDIOC_RESET for ARMv6-M and ARMv7-M 2015-07-04 10:39:24 -06:00
Gregory Nutt
2e5bef56f2 SAMD20/1: Fix some typos found by inspecting header files 2015-07-04 07:19:52 -06:00
Gregory Nutt
b8976adfb3 SAM4L: GPIO interrupts are not yet supported; can't compile sam_gpioirq.c yet 2015-07-03 09:33:52 -06:00
Gregory Nutt
797aa0a138 Power off support now depends on CONFIG_ARCH_HAVE_POWEROFF 2015-07-03 06:53:51 -06:00
Gregory Nutt
004c076985 Correct some issues introduced in the last commit 2015-07-02 17:54:05 -06:00
Gregory Nutt
c3290fdabd Modify board_power_off() so that is is called only via boardctl() 2015-07-02 17:09:54 -06:00
Gregory Nutt
19320d157a Move prototype of board_power_off() to include/nuttx/board.h where it belongs 2015-07-02 16:25:31 -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
1839d132f0 Add a dummy arch_invalidate_icache because for symmetry in the naming of cache operations 2015-07-02 11:13:23 -06:00
Gregory Nutt
46fec91b12 Remove a warning 2015-07-01 18:25:13 -06:00
Gregory Nutt
6df1d2823f Fix misc. compilation error/warning detected by tools/testbuild.sh 2015-07-01 14:33:37 -06:00
Gregory Nutt
dbc5f910fc Fix some typos in header files 2015-07-01 11:45:08 -06:00
Gregory Nutt
c73745bede lpc214x USB device: Fix a warning 2015-07-01 10:25:14 -06:00
Gregory Nutt
d20dbf5054 LPC17xx: Fix a warning about an unused local variable 2015-07-01 09:36:39 -06:00
Gregory Nutt
92f9876f75 Fix a Cortex-A compilation error in the vfork() logic when system calls are enabled in modes other than CONFIG_BUILD_KERNEL. 2015-07-01 08:34:51 -06:00
Gregory Nutt
77285beeca DM320: GIO header uses get/putreg functions and so should include up_arch.h 2015-07-01 08:01:49 -06:00
Gregory Nutt
a1676a177d arch/arm/src/sama5/sam_ehci.c: Fix some bad conditional compilation that left a function undefined if CONFIG_USBHOST_ASYNCH is not selected. 2015-07-01 07:04:02 -06:00
Alan Carvalho de Assis
928c88a5f6 Port some per-process stack dumping logic from ARMv7-M to ARMv6-M. From Alan Carvalho de Assis 2015-06-30 11:42:48 -06:00
Alan Carvalho de Assis
39b77fbe8b Fix Cortex-M0 assembly error when the interrupt stack is enabled 2015-06-30 08:41:47 -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
27bdf5d8a1 SAMD21: Update SPI and I2C header files for SAMD21 support 2015-06-22 13:12:00 -06:00
Max Neklyudov
8438b8eee8 SAM3/4: Add a TWI driver for the SAM4CM. From Max Neklyudov. 2015-06-22 09:32:15 -06:00
Gregory Nutt
911b1ce68e SAMD21: Update WDT and EVSYS header files for SAMD21 support 2015-06-22 09:15:54 -06:00
Gregory Nutt
52803ee23b Back out another error introduced with commit 02c33f66c5a8be774034cd40e4125e9323c7b4d8. Causes an infinite loop in up_lowputc(). 2015-06-22 07:48:29 -06:00
Max Neklyudov
0f19a33b3d SAM4CM: Fix SUPC register definitions. From Max Neklyudov
Remove conditional logic form non-SAM4CM parts (Gregory Nutt)
2015-06-22 06:52:57 -06:00
Max Neklyudov
e4d7b311b7 sam4cm: add CFB and MAC AES modes. From Max Neklyudov 2015-06-22 06:42:37 -06:00
Max Neklyudov
bdf0b6a9ab Back out an error introduced with commit 02c33f66c5a8be774034cd40e4125e9323c7b4d8. Causes an infinite loop in up_lowputc(). From Max Neklyudov. 2015-06-22 06:19:45 -06:00
Gregory Nutt
c5bc7cc120 SAMD21: Update SAMD SYSCTRL and NVMCTRL definitions for the SAMD21 2015-06-21 11:40:23 -06:00
Gregory Nutt
e7e7b465d5 SAMD21: Update fuse definitions for the SAMD21 2015-06-21 10:20:23 -06:00
Gregory Nutt
4a38276ff9 SAMD21: Extend SAMD USART support to include SAMD21 differences 2015-06-21 09:17:01 -06:00
Gregory Nutt
780cb0911d Add board configuration for the SAMD21 Xplained board 2015-06-21 07:48:46 -06:00
Gregory Nutt
379a1e114f SAMD21: Add pin multiplexing definitions 2015-06-20 18:55:23 -06:00
Gregory Nutt
97d697f7c4 SAMD2x: Eliminate a warning 2015-06-20 16:06:01 -06:00
Gregory Nutt
5eeabf29dd Missed a few in previous commit 2015-06-20 15:55:56 -06:00
Gregory Nutt
1d3abb18e4 SAMD21: Update GCLKs for SAMD21 2015-06-20 15:55:21 -06:00
Gregory Nutt
d9863f11f6 SAMD21: Update PM definitions for SAMD21 support 2015-06-20 15:32:57 -06:00
Gregory Nutt
28ae44eb02 SAMD21: Add memory map header file 2015-06-20 15:02:25 -06:00
Gregory Nutt
66a960dacd SAMD21: Add interrupt vectors definitions 2015-06-20 14:40:47 -06:00
Gregory Nutt
15c8e2e00a SAMD21: Add interrupt vectors definitions 2015-06-20 14:40:36 -06:00
Gregory Nutt
d00ed2d780 Add configuration support for SAMD21 2015-06-20 14:31:53 -06:00
Gregory Nutt
e013bb49a8 SAML21 USB: Add host side register defintiions 2015-06-20 11:09:35 -06:00
Gregory Nutt
d298b8048c SAML21 USB: Add device side register defintiions 2015-06-20 09:25:06 -06:00
Gregory Nutt
b6629c0745 SAML21: Partial USB header file 2015-06-20 07:13:35 -06:00
Gregory Nutt
b39cd9ee93 Refresh SAMV71-Xult configurations 2015-06-17 12:01:33 -06:00
Gregory Nutt
ad7eb4e24f Update some comments 2015-06-17 06:31:30 -06:00
Gregory Nutt
3c06202152 SAM4L DMA: Need separate peripheral IDs for TX and RX 2015-06-17 06:23:07 -06:00
Alan Carvalho de Assis
2a10db2dbf SAMA5D TWI: Fix typo in driver initialization logic. 2015-06-17 06:13:46 -06:00
Gregory Nutt
a5175456ed SAML21: Add OPAMP register definition header file 2015-06-16 15:54:49 -06:00
Gregory Nutt
61543db536 SAML21: Add DAC register definition header file 2015-06-16 13:32:27 -06:00
Gregory Nutt
5ee4cf6ae4 SAML21: Add AES register definition header file 2015-06-16 12:22:49 -06:00
Gregory Nutt
b5cc782205 SAML21 DMAC: Mostly cosmetic changes 2015-06-16 10:39:21 -06:00
Gregory Nutt
08dcb6dc8d SAML21 DMA: Fix a logic error. Since the write back descriptors overly the base descriptors, we need to do some special things in order to correctly free any allocated descriptors 2015-06-16 10:07:26 -06:00
Gregory Nutt
12ca013ff4 SAMV7: Add RTC register definition header file 2015-06-16 07:23:47 -06:00
Gregory Nutt
b1230eb951 Fix a comment 2015-06-15 15:09:23 -06:00
Gregory Nutt
48b7631dbb SAMV7: Add MCAN register definition header file 2015-06-15 11:37:59 -06:00
Gregory Nutt
9511364a03 SAML21 minor stuff 2015-06-14 14:27:58 -06:00
Gregory Nutt
01c5c63369 SAML21: Completes first rought cut of DMAC driver 2015-06-14 13:29:59 -06:00
Gregory Nutt
4f8db55462 SAML21 DMA: BASEADDR and WRBADDR can only be written while the DMAC is disabled 2015-06-14 11:46:44 -06:00
Gregory Nutt
fb6252aa6f SAML21 DMA: More DMA logic. Still incomplete 2015-06-14 11:26:52 -06:00
Gregory Nutt
c2f2919ab0 SAML21 DMA: Add logic to set up base and writeback table addresses 2015-06-14 10:51:10 -06:00
Gregory Nutt
1f6f3d7bb2 Fix reversed arguments in SAML21 DMA logic 2015-06-14 08:52:39 -06:00
Gregory Nutt
75077f4728 SAML21: Add DMA descriptor management logic 2015-06-14 08:48:25 -06:00
Gregory Nutt
8c8b2d926b SAMD21: Add build framework for DMA support. Nothing there yet except for skeletal logic taken from SAM3/4. 2015-06-13 15:06:37 -06:00
Gregory Nutt
26518df3ed SAML21: Add DMAC register definition header file 2015-06-13 10:16:07 -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
c07a9632cc Clean up and review of header files for conformance to standards 2015-06-12 19:17:42 -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
d6ce8220fd Clean up and review of header files for conformance to standards 2015-06-12 18:07:47 -06:00
Gregory Nutt
46148524a9 SAM4S/4E: Eand default loop optimiozation if EEFC_FMR configuration. From Marco Aurélio da Cruz 2015-06-11 14:35:49 -06:00
Gregory Nutt
4b11c9da2c Kinetis: Add up-sysemreset.c to Make.defs 2015-06-11 12:08:45 -06:00
Gregory Nutt
4712c23218 Make some imported files a little closer to the NuttX coding standard 2015-06-11 09:14:44 -06:00
Gregory Nutt
85d88d364f Kinetis: Add logic to set CFM protect area to all 0xff in all configurations 2015-06-11 08:39:40 -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
98b2034cdf Teensy-3.1: Add user LED support 2015-06-10 17:19:26 -06:00
Gregory Nutt
ad2a529624 RAM functions should have noinline attribute 2015-06-10 14:51:42 -06:00
Gregory Nutt
cb1a6e7954 Cosmetic 2015-06-10 14:20:11 -06:00
Gregory Nutt
0742ee3c3e Add support for MK20DN--VLH5 and MK20DX---VLH5. Needed for backward compatible support for Teensy-3.0 2015-06-10 11:45:17 -06:00
Gregory Nutt
075261f5ee SAML21: Since SERCOM5 usese a different output channel, it will also need a different GCLK generator 2015-06-10 08:38:35 -06:00
Gregory Nutt
9be151cdbb SAML21: A different SLOW clock must be used with SERCOM5 2015-06-10 08:18:05 -06:00
Gregory Nutt
f01c04f1a7 Add support for other members of the Kinetis MK20DX---VLH7 family; undate a README 2015-06-09 18:01:32 -06:00
Gregory Nutt
d1847d2e0b Correct write to incorrect register in EFM32 SPI driver. From Pierre-noel Bouteville. 2015-06-09 12:50:30 -06:00
Gregory Nutt
13e8c0d5b1 Update/add README.txt files 2015-06-09 07:03:25 -06:00
Gregory Nutt
f3425d6298 Fix SAMA5 CAN frame construction. From Max Holtzberg. 2015-06-07 13:13:44 -06:00
Gregory Nutt
f875a26ed2 Add SPI GPIO pin initialization. From Pierre-noel Bouteville. 2015-06-05 14:26:21 -06:00
Gregory Nutt
0488df7cf3 Correct some comments. Noted by Jouko Holopainen 2015-06-04 08:12:58 -06:00
Gregory Nutt
e816afe161 LC17 Ethernet: Ignore 4-bit versin number when checking for PHY ID match 2015-06-03 19:47:10 -06:00
Gregory Nutt
03562269d4 Lincoln60: Add a network enabled NXH configuration (still does not yet build) 2015-06-03 18:48:08 -06:00
Gregory Nutt
7677cf72eb LPC17 Ethernet: Add support for the Micrel KSZ8041 PHY. 2015-06-03 17:34:36 -06:00
Gregory Nutt
d9d6ff1d1b Fix some memory sizing errors in refreshed defconfig files 2015-06-02 08:44:57 -06:00
Gregory Nutt
e6b8d2eebe Refresh some Olimex LPC1766STK networking configurations 2015-06-02 08:12:44 -06:00
Gregory Nutt
1d697a18d1 Condition default value for CONFIG_ARMV7M_TARGET2_PREL on UCLIBCXX_EXCEPTION 2015-06-01 15:12:33 -06:00
Gregory Nutt
280e2ee385 Add support uClibc++ excpetions. This involves additional handling for relative relation types, additional support for unwinding, as well as additional changes. The culmination of a big effort fromo Leo Aloe3132 2015-06-01 14:16:18 -06:00
Gregory Nutt
73419e77f4 LPC17 Ethernet: Fix several compilation related issues when CONFIG_NET_NOINTS=y 2015-06-01 08:35:40 -06:00
Gregory Nutt
29b6f140e3 LPC17xx Ethernet: Improve CONFIG_NET_NOINTS implementation 2015-06-01 08:07:32 -06:00
Gregory Nutt
0c59dd2888 Fix a missing # in the previous commit 2015-05-31 13:26:13 -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
38735fafeb More missing semicolons after DEBUGASSERT 2015-05-27 13:32:39 -06:00
Gregory Nutt
d41b050526 Fix another missing semicolon after DEBUGASSERT 2015-05-27 11:49:19 -06:00
Gregory Nutt
d50761428c LPC11: Fix hardcoded BAUD calculation. Is no configurable. From Alan Carvalho de Assis 2015-05-27 09:44:07 -06:00
Gregory Nutt
528275a77c Fix some typos 2015-05-27 07:34:35 -06:00
Gregory Nutt
ac102d3f85 K20: Some preliminary pin definitions 2015-05-26 17:02:47 -06:00
Gregory Nutt
318345fb1d Basic support for the Kinetis K20 architecture. Taken from PX4. This is the work of Jakob Odersky. 2015-05-26 15:03:35 -06:00
Gregory Nutt
cae38625f8 SAM4L: Fix some issues from loast commit. Now running off DFLL with source clock = XOSCK32K 2015-05-26 13:25:39 -06:00
Gregory Nutt
b96a141e8a SAML21-Xlplained: Add options to enable XOSC32K and to use it as the DFLL source; NSH configure now uses DFLL with OSC16M source 2015-05-26 10:39:38 -06:00
Gregory Nutt
f055d4cac4 Logic that samples the free running counter reads the pending interrupt status regsiter and can cause interrupts to be lost. So, if when the status regsiter is read, the logic must also handle the timer overflow event. Found and fixed by Max Neklyudov 2015-05-26 08:09:10 -06:00
Gregory Nutt
fe175fbc16 SAMD20: Fixes the problem introduced with the SAML21 integration 2015-05-25 10:13:06 -06:00
Gregory Nutt
643a98a0a8 SAML21: Fix issue with open loop operation; Add configuration options to select clock source 2015-05-24 10:27:37 -06:00
Gregory Nutt
9649e564f9 LPC11xx: Use offsets instead of absolute address in look-up tables. This saves about 156 bytes of FLASH. From Alan Carvalho de Assis. 2015-05-24 07:49:38 -06:00
Gregory Nutt
6973337ccd Fix numerous typos in configuration variable names. Tracked down by Alan Carvalho de Assis 2015-05-23 17:08:35 -06:00
Gregory Nutt
8e71f90d84 SAML21: Add missing support for GCLK8 2015-05-23 17:02:13 -06:00
Gregory Nutt
d495834882 SAML21: Several SERCOM fixes. No gets UART output, but at the wrong BAUD 2015-05-23 13:08:28 -06:00
Gregory Nutt
84ca7f4a46 SAM4L: Re-order some clock initialization. There was a dependency of GCLK0 on DFLL, but DFLL was being enabled after GCLK0 2015-05-23 11:01:22 -06:00
Gregory Nutt
41f9fb8c62 SAML21: Fix some register definitions; board OSC16M frequency 2015-05-23 10:54:51 -06:00
Gregory Nutt
09d1bc7060 LPC11xx: Add support for up_getc() which is needed for NSH if there is no file system. From Alan Carvalho de Assis. 2015-05-23 09:23:36 -06:00
Gregory Nutt
601aa6e358 SAMD/L: Change ordering of some initialization steps to match Atmel sample code. Add Errate 13134 support. SAML wait states changed to 1. Sample code is using 0 2015-05-23 08:55:06 -06:00
Gregory Nutt
d1aae43e2a SAM4CM: Add support for optical mode for UART1. From Max Neklyudov. 2015-05-23 06:48:36 -06:00
Gregory Nutt
9140a0fcc4 Initial support for the NXP LPC11 family and the LPC1115 MCU in particular. Contributed by Alan Carvalho de Assis. 2015-05-22 14:14:09 -06:00
Gregory Nutt
1c82e961f5 SAML21. With these changes, the board now builds without error 2015-05-22 10:36:37 -06:00
Gregory Nutt
0eee2c40a8 SAML21: Rename sam_gclk.c to samd_gclk.c. Create saml_gclk.c with corrected logic for the SAML21 2015-05-22 07:28:19 -06:00
Gregory Nutt
2314cbd37e SAML21 clock config: Fix a misthink in last commit. Move setting of ONDEMAND to after clock is enabled in most cases 2015-05-21 16:50:55 -06:00
Gregory Nutt
2478184c22 SAML21: Clean up a few more compilation issues 2015-05-21 16:23:15 -06:00
Gregory Nutt
a0b9e26aba SAML21: Add logic to set MCLK CPU and related dividers 2015-05-21 13:40:34 -06:00
Gregory Nutt
ed47a08832 SAML21: Add FDPLL96M configuration logic 2015-05-21 11:52:38 -06:00
Gregory Nutt
786b292b1f SAML21: Add logic to support GLCK peripheral channels; add logic to configure FDPLL lock timer and ref clock GCLKs 2015-05-21 10:47:41 -06:00
Gregory Nutt
544a789714 SAMD/L: Move GCLK configuration logic to its own C file 2015-05-21 10:07:42 -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
790d53bb06 SAM3/4 Serial: In NONBLOCKING mode serial does not receive bytes from UART. This happens because RX interrupt was disabled in the setup routine. To fix this I save interrupt configuration before uart shutdown and restore it after. From Max Neklyudov. 2015-05-21 07:06:47 -06:00
Gregory Nutt
bd2bbfe53a Fixes for Tiva TM4C1294NCPDT. From Frank Sautter. 2015-05-20 18:34:15 -06:00
Gregory Nutt
ac2fe431aa SAML21: Add some parameter checking for FDPLL96M 2015-05-20 13:51:40 -06:00
Gregory Nutt
5eae4c914a Minor restructure for SAML21 FDPLL 2015-05-20 13:37:08 -06:00
Gregory Nutt
307d0d0e55 SAML21 minor cleanup 2015-05-20 13:00:39 -06:00
Gregory Nutt
8075f8ab84 SAML32: Update some DFLL logic 2015-05-20 12:26:49 -06:00
Gregory Nutt
7000cf8193 Fix SYNCBUSY wait for the SAML21 2015-05-20 11:49:24 -06:00
Gregory Nutt
321b54f49a Updated EFM32 RTC driver from Pierre-noel Bouteville 2015-05-19 14:53:01 -06:00
Gregory Nutt
8980f72251 SAML21-Xplained: Update the cloned SAMD20-Xplained board configuration for specifics of the SAML21-Xplained 2015-05-19 14:32:09 -06:00
Gregory Nutt
23732e2c9b SAMD/L: Hide differences in the way peripheral clocking is enabled behind macros. Some updates to saml_clockconfig.h + various fixes while working toward SAML21 build 2015-05-19 11:03:24 -06:00
Gregory Nutt
b94a8d7ee7 Clock configuration logic for the SAML21. Initial commit is just the SAMD20 clock configuration with some naming changes and does not compile 2015-05-19 07:02:58 -06:00
Gregory Nutt
792c76c4e6 Add saml_trng.h for SAML32 2015-05-19 06:31:48 -06:00
Gregory Nutt
0294384dd7 Add saml_eic.h for SAML21 2015-05-18 18:55:16 -06:00
Gregory Nutt
4458a34787 SAML21: Add interrupt header file + fix a few initial compile issues. Still a long way to go 2015-05-18 17:41:28 -06:00
Gregory Nutt
dfa87403b3 Add basic board build configurat for the SAML21 Xplained. Initial commit is jsut the SAMD20 Xplained with name changes and does not yet build 2015-05-18 13:16:32 -06:00
Gregory Nutt
c28a6a91f3 Rename sam_fuses.h to samd_fuses.h; add saml_fused.h for the SAML21 2015-05-18 11:59:53 -06:00
Gregory Nutt
aecb60a8e8 Rename sam_sercom.h to samd_sercom.h; Add saml_sercom.h for the SAML21 2015-05-18 10:54:50 -06:00
Gregory Nutt
317fb073ef Rename sam_port.h to samd_port.h; add saml_port.h for the SAML21 2015-05-18 10:35:11 -06:00
Gregory Nutt
16a2d363f9 Rename sam_nvmctrl.h to samd_nvmctrl.h; add saml_nvmctrl.h for SAML21 2015-05-18 09:44:12 -06:00
Gregory Nutt
a8cf79da52 Add SAML21 SUPC header file 2015-05-18 07:25:30 -06:00
Gregory Nutt
54027c756e Add saml_i2c_slave.h for the SAML21 2015-05-17 18:18:35 -06:00
Gregory Nutt
d0f236d855 Fix some mismatched C++ logic in header files 2015-05-17 16:51:18 -06:00
Gregory Nutt
2dc8fd6958 Rename sam_i2c_slave.h to samd_i2c_slave.h 2015-05-17 16:50:40 -06:00
Gregory Nutt
89379b0a45 Rename sam_i2c_master.h to samd_i2c_master.h; Add saml_i2c_master.h for SAML21 2015-05-17 16:42:37 -06:00
Gregory Nutt
0745a55c03 SAMD/L: Move content of chip/sam_memorymap.h to chip.h; move chip/sam_pinmap. to sam_pinmap.h for consistency with other header files 2015-05-17 15:34:51 -06:00
Gregory Nutt
aa74609424 Rename sam_spi.h to samd_spi.h; Add saml_spi.h for the SAML21 2015-05-17 15:22:52 -06:00
Gregory Nutt
9d0db0aa4f Rename sam_usart.h to samd_usart.h; add saml_usart.h for the SAML21 2015-05-17 14:31:21 -06:00
Gregory Nutt
afc650b42a samd_wdt.h should include sam_sercom.h 2015-05-17 13:39:11 -06:00
Gregory Nutt
10f0ca91b9 Rename sam_evsys.h to samd_evsys.h; Add saml_evsys.h for the SAML21 2015-05-17 12:54:53 -06:00
Gregory Nutt
3421f6ebb3 Rename sam_wdt.h to samd_wdt.h; Add saml_wdt.h for SAML21 2015-05-17 11:01:24 -06:00
Gregory Nutt
2f53158588 Add SAML21 RSTC register definitions 2015-05-17 10:41:21 -06:00
Gregory Nutt
2a9f38ef63 SAML21: Add PM header file 2015-05-17 10:09:20 -06:00
Gregory Nutt
3d89476aa2 SAML21: Rename chip/sam_pm.h to chip/samd_pm.h 2015-05-17 09:18:36 -06:00
Gregory Nutt
469ea85654 Rename sam_gclk.h to samd_gclk.h. Add saml_gclk.h 2015-05-17 08:06:56 -06:00
Gregory Nutt
4648c45218 SAML21: Add OSC32KCTRL header file 2015-05-16 15:49:22 -06:00
Gregory Nutt
370917bb5c Add SAML21 OSCCTRL definitions 2015-05-16 13:33:09 -06:00
Gregory Nutt
bfb822380b SAML21: Rename sam_clockconfig.c to samd_clockconfig.c. saml_clockconfig.c forthcoming. 2015-05-16 13:32:12 -06:00
Gregory Nutt
79d3684fb4 Add SAML21 MCLK header file 2015-05-16 11:02:19 -06:00
Gregory Nutt
8437a63f11 Rename the sam_sysctrl.h header file to samd_sysctrl.h since it does not apply to the saml 2015-05-16 11:01:45 -06:00
Gregory Nutt
05c245fc2d SAML21: Add pin multiplexing definitions 2015-05-15 11:45:56 -06:00
Gregory Nutt
0f1eef72fe SAML21: Flesh out SAML21 memory map 2015-05-15 09:30:25 -06:00
Gregory Nutt
d2a7a1ad9c SAMA5 OHCI: Fix errors introduced with blind changes to match changes to LPC17 OHCI. Fix some handling for the case where we get a falso alarm transfer completion after disconnection/cancellation 2015-05-15 09:02:17 -06:00
Gregory Nutt
95ae90a246 LPC17 USB host: Fix some OHCI done head handling when a tranfer is cancelled 2015-05-15 08:29:45 -06:00
Gregory Nutt
9061809e2d OHCI drivers: Try disabling bulk list when cancelling bulk transfers 2015-05-15 07:31:13 -06:00
Gregory Nutt
4dc10dbe85 Oop.. remove duplicate #else 2015-05-14 14:13:43 -06:00
Gregory Nutt
5ba5b5e24b SAML21: Add configuration logic and placeholders for memory man and pin configruation header files 2015-05-14 14:02:50 -06:00
Gregory Nutt
ec2e922d17 Fix a missed renaming in a Kconfig file 2015-05-14 12:33:42 -06:00
Gregory Nutt
3ec627b02d Rename SAMD directories and configuration variables to SAMDL so that the same build environment can support the SAML 2015-05-14 12:25:09 -06:00
Gregory Nutt
f1c51eea57 SAMA5D OHCI: Missing D-Cache flush 2015-05-14 11:10:15 -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
77e6e913bf LM3S Ethernet: More semicolons needed after modified DEBUGASSERT macro. From Brennen Ashton 2015-05-14 06:35:40 -06:00
Gregory Nutt
f56260f1e1 Update README 2015-05-13 13:30:26 -06:00
Gregory Nutt
99734ee2ff Fix several defien -> define. Thanks Pierre 2015-05-13 06:33:17 -06:00
Gregory Nutt
14d99a0ef2 SAMV7 TWIHS: Fix logic that performs multi-message tranfers with and without repeated starts. This change is the final piece that was required to get the maXTouch Xplained Pro workding. 2015-05-12 17:56:35 -06:00
Gregory Nutt
178321fb0e KL: Fix offset to the TPM status register. From Michael Hope. 2015-05-12 07:08:33 -06:00
Gregory Nutt
10bfcaf939 Fix typo in arch/arm/include/kl/chip.h header file. From Michael Hope 2015-05-12 07:05:29 -06:00
Gregory Nutt
11b79e6714 EHCI HCDs: Check for transfer in progress before attempting cancellation 2015-05-11 12:12:19 -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
102554adfe OHCI HCDs will not support cancellation of syncrhonous transfers 2015-05-11 10:36:17 -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
32a4131f92 Fix a cut'n'paste error in the last commit 2015-05-10 10:23:23 -06:00
Gregory Nutt
9e07b2deb1 OHCI: Fix length calculation in all OHCI drivers: CBP==0 means that the entire buffer was transferred, not that a null packet was tranaferred 2015-05-10 10:01:22 -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
780c81f130 USB host CDC/ACM fixes. Still kind of buggy 2015-05-08 10:58:41 -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
2325f2c529 kl: enable the clocks to UART1 and UART2. The previous version would cause a hard fault on startup due to the modules not being clocked. Also drop the GPIO configuration as it's done during kl_start(). From Michael Hope. 2015-05-07 17:17:54 -06:00
Gregory Nutt
292cb9fe2f kl: fix PWM debugging. TPM1 and TPM2 have two channels instead of six and will hard fault if you try to read the missing channels. From Michael Hope. 2015-05-07 17:17:53 -06:00
Gregory Nutt
d1da52a018 Misc improvements to the CDC/ACM host driver, mostly related to parsing the configuration descriptor. Still does not work. 2015-05-07 10:02:51 -06:00
Gregory Nutt
8062555384 Add support for the KL25Z64. The KL25Z64 is a lower memory variant of the KL25Z128 and is used on the Teensy LC. From Michael as SourceForge patch 50. 2015-05-07 06:47:17 -06:00
Gregory Nutt
afafe84050 LPC17 USB host: Fix some compile errors when bulk endpoints + USB debug enabled. Refresh a configuration 2015-05-06 16:15:12 -06:00
Gregory Nutt
5f113517f6 Fix a few typos in comments 2015-05-06 15:26:07 -06:00
Gregory Nutt
a813d9438c SAMA5 OHCI: Remove a DEBUGASSERT that was firing if a a spurious interrupt was received 2015-05-06 07:44:37 -06:00
Gregory Nutt
14837ed20e Fix some bugs introduced with the last set of big commits 2015-05-05 14:59:29 -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