Commit Graph

5918 Commits

Author SHA1 Message Date
Stefan Kolb
b6dd44bdcd SAMV71 TC: Fix compilation errors when certain timers are enabled. 2016-01-20 09:39:12 -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
Gregory Nutt
727361d736 Remove Eclipse project files from repository. Noted by Sebastien Lorquet 2016-01-19 10:00:26 -06: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
Gregory Nutt
4e8772dfca ATMEGA: A few trivial updates to USART-related macros 2016-01-16 14:38:28 -06:00
Gregory Nutt
6ca2315cf0 ATMEGA: Make some naming used with the 2560 compatible with other ATmega parts 2016-01-16 13:41:49 -06:00
Gregory Nutt
b5584c3cf9 Trivia, cosmetic 2016-01-15 13:38:35 -06:00
Gregory Nutt
027e5ef1a1 LPC43xx: Fix some errors/warnings in ADC driver 2016-01-15 13:37:12 -06:00
Gregory Nutt
6c2cd3edee Changes from review of last pull request 2016-01-15 10:55:58 -06:00
Lok Tep
a089847f39 Merged nuttx/arch into master 2016-01-15 15:32:55 +01:00
Gregory Nutt
2030784891 sim: Add more symbols to nuttx-names.dat 2016-01-14 15:14:25 -06:00
Juha Niskanen
8a671d604d stm32/chip: Fix STM32L15 TIM5 base address. 2016-01-11 07:25:50 -06:00
Gregory Nutt
4b71d74a2b Minor typo fix in warning 2016-01-09 19:57:48 -06:00
Gregory Nutt
10001f8556 WINTOOl should be selected only for Cygwin. MSYS and native should not have it. 2016-01-09 16:34:33 -06:00
Gregory Nutt
7231439290 Test for CONFIG_AVR_HAS_MEMX_PTR must be after inclusion of config.h 2016-01-09 08:11:25 -06:00
Gregory Nutt
d0578bfc2b Changes to last pull request needed for conformance with coding standard 2016-01-09 07:25:24 -06:00
Gregory Nutt
203899cca8 Merged in kloper/arch/atmega2560 (pull request #48)
debug macros for AVR (take #2): Introduce debug macro hooks for AVR
2016-01-09 07:17:35 -06:00
Dimitry Kloper
642b92b391 Introduce debug macro hooks for AVR
When AVR_HAS_MEMX_PTR is enabled provide dbg macro hooks that place
the format strings in program memory releasing RAM for other tasks.
2016-01-09 14:44:38 +02:00
Gregory Nutt
7a393f9e8b Eliminate some warnings 2016-01-08 11:26:16 -06:00
Gregory Nutt
278701f93d Eliminate warnings (one of which looks like a bug) 2016-01-08 11:22:57 -06:00
Gregory Nutt
68e3f5d9ce All AVR toolchain configuration names must end with _TOOLCHAIN to work properly with nuttx/tools/testbuilds.sh 2016-01-08 10:39:59 -06:00
Gregory Nutt
595799212c SAMV7: Add logic to check if multiple banks are busy in TXINI interrupt processing. This logic is probably necessary, but currently commented out because it is untested 2016-01-08 07:47:00 -06:00
Gregory Nutt
dfe3240973 AVR: Rename ATMEGA_PC_SIZE to AVR_PC_SIZE since it must be used in common AVR logic. Add definitions for other AVR architectures as necessary for compilation 2016-01-07 08:14:09 -06:00
Gregory Nutt
951c40215a Atmega: Eliminate some warnings 2016-01-06 09:50:15 -06:00
Gregory Nutt
fe94318bb4 PIC32MX/MZ: Fix error in assember macro. Noted by Tilak Tangudu 2016-01-05 10:04:50 -06:00
Dimitry Kloper
16212f19e7 AVR: Introduce Atmel Toolchain as a configuration option
Atmel's AVR8 toolchain is similar to WinAVR, but at present moment
it has one important feature that WinAVR does not. The __flash and __memx
allow built in comiler support for transparent program memory pointers.
Functions that use such pointers will work both with RAM arrays and
flash memory arrays. The compiler generates an appropriate code automatically.
For systems with tiny memory like atmega, this is very important and
allows to move all static const strings into flash.
2016-01-04 21:53:44 +02:00
Dimitry Kloper
b9f06dc5e3 ATMEGA2560: Fix compilation when CONFIG_DISABLE_SIGNALS is undefined 2016-01-04 21:39:48 +02:00
Gregory Nutt
b29ec04459 Trivial update to C comments 2016-01-01 12:17:40 -06:00
Gregory Nutt
b323e1d5ff Trivial, cosmetic 2015-12-30 12:36:22 -06:00
Gregory Nutt
d235dcc3b0 Rename the LPC2378 header file internal.h to lpc2378.h 2015-12-29 18:17:23 -06:00
Gregory Nutt
71c289ce4f Rename all architecture files of form xyz_internal.h to just xyz.h 2015-12-29 18:07:11 -06:00
Gregory Nutt
68cc2ecfd2 ATMEGA2560: Most cosmetic changes from review of pull request 2015-12-29 13:02:20 -06:00
Dimitry Kloper
0b8a43abbb Merged nuttx/arch/master into atmega2560 2015-12-29 19:10:57 +02:00
Dimitry Kloper
3c0c90e07d Minor identation fix 2015-12-29 19:09:20 +02:00
Dimitry Kloper
3746305f12 AVR: Minor adapt to a differnt TIMER IRQ notions for Atmega2560 2015-12-29 19:08:13 +02:00
Dimitry Kloper
556954141e AVR: Add support for AVR chips with 24-bit Program Counter register
The main challenge is to change the context switch code to be aware of the
extra byte that is saved on stack during call and intterupt. This relates also
to the task startup and signal handling.
2015-12-29 19:01:06 +02:00
Dimitry Kloper
99aab135b2 AVR: Make setting of XDIV optional for platforms that support it
Put setting of XDIV into ifdef since not AVR platforms support it.
2015-12-29 18:56:12 +02:00
Dimitry Kloper
462307f4b7 AVR: Clear EIND on system start-up
For AVR chips (Atmega2560) Program Counter register larger than 16 bits
EIND represents the most significant byte that is used for EICALL and EIJMP
instructions.

Setting of EIND is normally managed by compiler, but I have seen a situation
when for first 64K flash segment compiler didn't set EINT explicitly. Thus
setting EIND at system startup makes sure we are safe.
2015-12-29 18:46:28 +02:00
Dimitry Kloper
9a4a06bf47 AVR: Explicitly disable interrupts as the first step of system init
Disabling interrupts at the very beginning of system init does not
make sense after reset since interrupts are disabled anyway. But
it is very convenient for debugging purposes, in situations when the
system misbehaves and ocassionally jumps to zero.
2015-12-29 18:35:36 +02:00
Dimitry Kloper
ff5e589f76 AVR: add support for TCGETS and TCSETS terminal controls
Sometimes I need UART to support binary data transfer, TCSETS/TCGETS allow
stwitching into binary mode.
2015-12-29 17:56:44 +02:00
Gregory Nutt
416e01bbfa TMS570: Add some placeholders for missing logic; fix some conditional compilation 2015-12-29 09:30:37 -06:00
Dimitry Kloper
d6f6e41a36 AVR: Fix linking error for AVR platforms that have no ARCH_HAVE_LEDS defined
Minor bug while working on Arduino Mega support. I didn't add support
for ARCH_HAVE_LEDS and have it undefined in .config. To my surprise compilation
failed since AVR code had a related function compiled in.
2015-12-29 17:26:11 +02:00
Dimitry Kloper
8f8b88f532 AVR: Fix resulting nuttx file name when EXEEXT is not empty
arch/avr/Makefile is adding extra EXEEXT to the
nuttix image file. This was not discovered since in most configurations
EXEEXT is empty string.
2015-12-29 17:19:30 +02:00
Gregory Nutt
7a0d6cd7ca TMS570: Fix an error introduced in last commit 2015-12-29 08:10:16 -06:00
Gregory Nutt
d9737f0645 TMS570: reset stack pointer before calling os_start 2015-12-29 07:56:22 -06:00
Gregory Nutt
e7d7036cb9 ARMv7-R: L2CC_VBASE->L2CC_BASE 2015-12-28 16:32:34 -06:00
Gregory Nutt
ae0e6b4096 ARMv7-R and TMS570: Re-orider some initialization logic. __start used to called arm_boot() which would return. Then __start would call os_start(). That won't work for the TMS570 if is does a destructive memory tested because the return information will be lost in the stack. Also comment a nuisance assertion. The assertion is probably correct but certainly a nuisance during initial testing 2015-12-28 16:15:33 -06:00
Gregory Nutt
00f70474bb TMS570: Power-up errcheck assertion is a headache 2015-12-28 08:30:03 -06:00
Dimitry Kloper
41bdcd16b8 Change notation of PCH and PCL registers into PC0 and PC1
This is for forthcoming Atmega2560 support. The Atmega2560 has 24-bit PC
thus, PCH and PCL would become PCH, PCM and PCL (M for Middle). The problem
that in this notation PCM is equivalent to former PCH. This makes compatable
porting kind of difficult, at least for my taste.

Instead PCH becomes PC0 and PCL becomes PC1 (think of the index as order of
bytes pushed to stack when call is performed, PC0 as MSB goes first, PC1
goes to stack second, and for 24-bit PC, PC2 as LDB goes last).
2015-12-28 00:46:24 +02:00
Gregory Nutt
c3758286d7 TMS570: Add ESM interrupt handler 2015-12-27 08:34:14 -06:00
Gregory Nutt
e0214f9d62 ARMv7-R: Remove some CONFIG_PAGING logic left over from ARMv7-A leverage 2015-12-27 08:32:53 -06:00
Gregory Nutt
e1b1f80237 TMS570: Add ESM initialization logic 2015-12-27 07:54:43 -06:00
Gregory Nutt
6d0650349a Add support for ARM big-endian toolchains with prefix armeb- 2015-12-26 18:13:01 -06:00
Dimitry Kloper
0c1294d332 Introduce a new Kconfig variant for Atmega2560 and add some basic stuff
Modify Kconfig to be aware of the new chip.
Add all the interrupt hanler constants and vectors where needed.
Move contsatnts from generic to specific headers when needed.
2015-12-27 01:47:35 +02:00
Gregory Nutt
46da8a07ef Costmetic changes from review of merge request 2015-12-26 16:39:51 -06:00
Gregory Nutt
21bdeac349 Merged in kloper/arch/avr_irq_bomb_fix (pull request #45)
AVR: Fix interrupt bombing during a context switch
2015-12-26 16:31:25 -06:00
Gregory Nutt
9bcf27d15b TMS570 is big-endian 2015-12-26 14:47:54 -06:00
Dimitry Kloper
0998876ef6 AVR: Fix interrupt bombing during a context switch
TCB_RESTORE macro has a problem when restoring Status Register
and returning from the function (in up_fullcontextrestore()) as non-atomic action.

If there is some frequently occurring interrupt, chances are that we will
enter the interrupt handler just before ret is called.
The handler may cause a context switch which, when unrolled, will
execute up_fullcontextrestore() function that employs TCB_RESTORE.
It will be interrupted again just before return, leaving part of context
switch content un-popped again, etc... Thus, chances are that the stack will
eventually blow.

Note that this is not some edge condition fix. This bug was discovered when
testing AVR with UART configured to work on 115200 baud rate.
2015-12-26 21:55:40 +02:00
Gregory Nutt
1f2d9c9174 TMS570: Does not have prioritized interrupts in the sense of other CPUs. Fix some compile errors when DEBUG is enabled 2015-12-26 12:26:57 -06:00
Gregory Nutt
d592b2824e TMS570: A little more selftest logic 2015-12-26 12:05:32 -06:00
Gregory Nutt
a27cd8e54e TMS570: Add the beginning of some selftest logic 2015-12-26 10:01:53 -06:00
Gregory Nutt
9c1b677bd5 TMS570: Clean up misc. build issues 2015-12-26 08:18:52 -06:00
Gregory Nutt
c58393cb4d TMS570: Add GIO drivrs and GIO interrupt support 2015-12-25 13:44:49 -06:00
Gregory Nutt
ccc6913383 TMS570: Add definitions to support GIO second level interrupts 2015-12-25 11:43:38 -06:00
Gregory Nutt
f539d331c5 TMS570: A few more GIO definitions 2015-12-25 11:30:08 -06:00
Gregory Nutt
0a936e7fa7 TMS570: More GIO definitions 2015-12-25 11:28:01 -06:00
Gregory Nutt
2563663a45 TMS570: Add GIO header file 2015-12-25 10:39:04 -06:00
Gregory Nutt
be99e773cf TMS570: Return serial status when a byte is read 2015-12-25 08:47:12 -06:00
Gregory Nutt
6b1f3da01a TMS570: Don't try building arm_fpuconfig.S for a Cortex-R4 2015-12-24 13:46:49 -06:00
Gregory Nutt
ea1fa2e938 TMS570: SCI serial driver is now included in the build and compiles without error 2015-12-24 13:37:42 -06:00
Gregory Nutt
90cfe8e23b TMS570: Initalize SCI interrupt handling logic 2015-12-24 12:35:22 -06:00
Gregory Nutt
af1504ec4a TMS570: Flesh out low-level serial console logic 2015-12-24 11:07:03 -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
097b5820a1 Merge branch 'master' of bitbucket.org:pnb990/nuttx-kernel-arch 2015-12-24 09:42:48 +01:00
pnb
e22d8aea5d add oter timer 2015-12-24 09:42:33 +01:00
pnb
5f9d23290a Merge remote-tracking branch 'upstream/master' 2015-12-24 09:21:40 +01:00
Gregory Nutt
7c72f32bbc TMS570: Add TMS570 SCI driver(s). Initial commits are just SAMV7 drivers with name changes. A lot more needs to be done 2015-12-23 17:48:33 -06:00
Gregory Nutt
1ab3e02ac8 TMS570: Fix a few naming issues leftover from leverage 2015-12-23 16:08:29 -06:00
Gregory Nutt
a76f2b853a TMS570: Add system timer logic 2015-12-23 13:41:36 -06:00
pnb
cfe9555e24 capture start to works need test it more 2015-12-23 19:07:45 +01:00
Gregory Nutt
fa36531fee TMS570: Add default VIM channel assignments 2015-12-23 09:45:32 -06:00
Gregory Nutt
6db67471cb TMS570: Add an RTI header file. Still incomplete on initial commit 2015-12-23 08:18:18 -06:00
Gregory Nutt
663d2b0127 Eliminate a warning due to a range check on an undefined pre-processar variable 2015-12-22 13:20:20 -06: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
Gregory Nutt
d7af5b234c Fix an error in pre-processor condition 2015-12-21 21:36:34 -06:00
Gregory Nutt
860a2fc786 TMS570: Add interrupt decode logic 2015-12-21 12:17:26 -06:00
Gregory Nutt
092c681157 TMS570: Add a little more IRQ/FIQ logic 2015-12-21 10:57:01 -06:00
Lok Tep
74c4f4636a adc initerrupts 2015-12-21 17:23:07 +01:00
Gregory Nutt
caad954b01 TMS570: Add VIM header file 2015-12-21 07:40:27 -06:00
Gregory Nutt
010a73d3b6 TMS570: A little more selftest structure 2015-12-20 17:55:21 -06:00
Gregory Nutt
a2fb50d812 TMS570: Add a framework that will eventually support self-test 2015-12-20 11:51:36 -06:00
Gregory Nutt
2629053bbe TMS570: Add pin multiplexing logic 2015-12-20 10:14:51 -06: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
b69c91a8a8 TMS570: Add empty, stub interrupt initialization logic 2015-12-19 19:06:30 -06:00
Gregory Nutt
63d5032d3b TMS4570: Was not building arm_head.S or up_allocateheap.c; ARMv7-R: Fix variious problems not that arm_head.S is being built 2015-12-19 18:56:23 -06:00
Gregory Nutt
4d99e2b0e6 TMS570: Add FLASH wait state configuration 2015-12-19 16:33:39 -06:00
Gregory Nutt
c9c473997c TMS570: Add ECLK setup 2015-12-19 15:56:00 -06:00
Gregory Nutt
d7595446bf TMS570: More clock configuration logic 2015-12-19 13:15:26 -06:00
Gregory Nutt
2bd1be6c96 TMS570: Use values from TI OTP to set LPO trim value 2015-12-19 11:40:38 -06:00
Gregory Nutt
fac00f04d0 TMS570: Add a FLASH controller header file 2015-12-19 09:01:24 -06:00
Gregory Nutt
1ddabf9ff1 TMS570: Add peripheral initialization logic 2015-12-19 08:10:21 -06:00
Gregory Nutt
3a6aa75d15 TMS570: Initial PBIST register definitions 2015-12-18 20:36:06 -06:00
Gregory Nutt
834c2baf40 TMS570: Add SCI header file 2015-12-18 19:52:08 -06: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
Gregory Nutt
50205b4342 TMS570: Add some basic PLL configuration logic 2015-12-18 18:24:53 -06:00
Gregory Nutt
aa524024d0 Add a few more TMS570 SYS register bit definitions 2015-12-18 11:15:16 -06:00
Gregory Nutt
0403132800 TMS570: Add selftest configuration option; Add a few more SYS register definitions 2015-12-18 09:09:58 -06:00
Gregory Nutt
d4b7bf59d0 TMS570: More start-up logic 2015-12-18 08:57:29 -06:00
Gregory Nutt
f55ff3a3c5 TMS570: Add PBIST header file 2015-12-18 06:55:43 -06:00
Gregory Nutt
e7b48d264b TMS570: Separate SYS register definitions into SYS, STS2, and PCR 2015-12-18 06:39:19 -06:00
Gregory Nutt
1ff36b19e8 TMS570: Misc, minor updates 2015-12-17 15:31:58 -06:00
Gregory Nutt
0405ac92a2 TMS570: Add SYS register definitions (incomplete) 2015-12-17 15:30:54 -06:00
Gregory Nutt
4bdc22d7e2 TMS570: Eliminate some warnings 2015-12-17 12:57:48 -06:00
Gregory Nutt
0f7f364865 TMS570: Correct a few problems introduced in previous commits 2015-12-17 12:52:15 -06:00
Gregory Nutt
6baccab3ae Need to select MEMINIT if TMS570 selected 2015-12-17 12:40:24 -06:00
Gregory Nutt
3f964ab20c SR4 is the same as SR1-3 2015-12-17 12:28:45 -06:00
Gregory Nutt
add1754dcc TMS570: Add ESM header file 2015-12-17 12:17:48 -06:00
Gregory Nutt
cd0baf490f Fix Kconfig: BOOT_SDRAM_DATA, not CONFIG_BOOT_SDRAM_DATA 2015-12-17 10:50:53 -06:00
Gregory Nutt
c251fd7756 ARMv7-R: Add a configuration to support delayed memory initialization. This logic was already in place for SDRAM but is also required for some ECC memories as well. 2015-12-17 10:49:56 -06:00
Gregory Nutt
9364824a53 ARMv7-R: Add logic to work-around errata, remove logic to access VBAR since this is no VBAR and add logic to access PMCR. TMS570: Add logic to set debug bits in PMCR 2015-12-17 09:34:38 -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
5794675247 TMS570: Memory map applies only to LS04x and LS03x. Peripheral numbering seems to start with 1, not 0 2015-12-16 14:10:45 -06:00
Gregory Nutt
9f9cb00104 TMS570: Remove some garbage left in Kconfig file 2015-12-16 12:46:42 -06:00
Gregory Nutt
f310887bb9 TMS570: Add memory map and peripheral selection logic 2015-12-16 11:06:14 -06:00
Gregory Nutt
521ae00387 Merge remote-tracking branch 'origin/master' into armv7r 2015-12-16 09:03:55 -06:00
Gregory Nutt
bacf7cf07e ARMv7-R: fix some issues to get a clean compilation; TMS570: Add enough logic to support a minimum build. Not much there on the initial commit 2015-12-16 09:03:14 -06:00
Gregory Nutt
aa1e67ffe7 Merge remote-tracking branch 'origin/master' into armv7r 2015-12-15 17:16:02 -06:00
Gregory Nutt
8cabb844ab TMS570: Hook into build/configuration system 2015-12-15 17:15:37 -06: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
Gregory Nutt
a6e035baeb TMS570: Add arch/arm/include/tms570 header files 2015-12-15 13:41:12 -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
Gregory Nutt
8fb76cf970 TMS570: Add a place holder for the TMS570. Not much there yet 2015-12-14 16:38:05 -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
c1933a0814 Merge remote-tracking branch 'origin/master' into armv7r 2015-12-14 15:44:12 -06:00
Gregory Nutt
1169ff6dbd MPU: Add support for separated vs. unified MPU 2015-12-14 15:41:18 -06:00
Gregory Nutt
b3502af042 ARMv7-M: Add MPU support 2015-12-14 15:38:58 -06:00
Gregory Nutt
290e5058ea Merge remote-tracking branch 'origin/master' into armv7r 2015-12-14 13:58:08 -06: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
09f79919b5 ARMv7-R: Review/update CPSR bit definitions 2015-12-14 13:19:22 -06:00
Gregory Nutt
3f5d4fc136 Merge remote-tracking branch 'origin/master' into armv7r 2015-12-14 13:04:47 -06:00
Gregory Nutt
1f05f49e66 ARMv7-A: Update some co-processor register naming 2015-12-14 13:04:03 -06:00
Gregory Nutt
39cace15a1 Update CP15 access macros 2015-12-14 13:02:54 -06:00
Gregory Nutt
7475712d87 ARMv7-R: Review/update cache operations 2015-12-14 12:32:32 -06:00
Gregory Nutt
c1e14b0a6b Merge remote-tracking branch 'origin/master' into armv7r 2015-12-14 11:57:10 -06:00
Gregory Nutt
6e9aa0a1d7 ARMv7-A/M: Cosmetic changes 2015-12-14 11:56:39 -06:00
Gregory Nutt
b9feaf13b0 Update ARMv7-R system control register definitions from TRM 2015-12-14 11:54:58 -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
Gregory Nutt
b7024fd202 Merged in paulpatience/nuttx-arch/stm32f30xxx_pinmap (pull request #37)
STM32: Fix typos in STM32F30xxx pinmap
2015-12-14 08:58:34 -06:00
Gregory Nutt
67604e661f Merge remote-tracking branch 'origin/master' into armv7r 2015-12-14 08:43:29 -06:00
Gregory Nutt
edecfc2dac ARMv7-A: Cosmetic changes 2015-12-14 08:42:39 -06:00
Paul A. Patience
89da1f27dd STM32: Fix typos in pinmaps 2015-12-14 09:41:49 -05:00
Gregory Nutt
5585f44b7e Add initial support for ARMv7-R architecture. Initial commit is largely a clone of ARMv7-A and needs further review 2015-12-14 08:40:38 -06:00
Paul A. Patience
7589e940b6 STM32: Fix typos in STM32F30xxx pinmap 2015-12-14 09:36:28 -05:00
Gregory Nutt
cd8d37f46b Eliminate a warning 2015-12-12 11:37:25 -06:00
Gregory Nutt
412c7c83a1 Forgot to add a file in the last commit 2015-12-12 09:37:01 -06: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
ead6656a35 SAMV7 USBHS device: Beef up test for data sent in DMA complete interrupt handler 2015-12-11 08:28:49 -06:00
Gregory Nutt
cb5c221ce7 Update a few comments 2015-12-10 06:32:27 -06:00
Gregory Nutt
a0594ec60e SAMV7 USBHS device: Last change fixed certain problems and introduced some new ones. Here is an untested fix to address all known problems 2015-12-09 14:19:14 -06:00
Gregory Nutt
c26a624a9f SAMA5: Backport some USB device ZLP logic from the SAMV7 2015-12-08 17:36:46 -06:00
Gregory Nutt
9135afa8c1 SAMV7 USBHS device: End of DMA is too soon to process ZLP. Wait for TXINI 2015-12-08 13:21:43 -06:00
Gregory Nutt
cd7c22bbd4 SAMV7: Trivial correcto to last USBHS device change when using huge request buffers 2015-12-08 11:10:16 -06:00
Gregory Nutt
19520b5c2c SAMV7 USBHS device: Fix check if zero lenght packet is needed 2015-12-08 10:11:44 -06:00
Lok Tep
1481537f8c config B option, reverted 2015-12-08 09:27:23 +01:00
Lok Tep
6c872c3162 ssp in pin buffer fix 2015-12-07 23:13:14 +01:00
Lok Tep
8ddb2a6a2a ssp buffer check fix 2015-12-07 23:12:57 +01:00
Lok Tep
264fbc1ecc CONFIG_I2C_RESET dummy function 2015-12-07 23:12:40 +01:00
Gregory Nutt
927b1dcc1f Initialize the telnet factory as part of the common architecture intialization 2015-12-07 11:40:29 -06:00
Gregory Nutt
8df99623aa SAMV7: For to add RSWDT driver before committing 2015-12-06 16:41:10 -06:00
Gregory Nutt
6a9876f960 SAMV7: Add an untested RSWDT driver 2015-12-06 09:56:45 -06:00
Gregory Nutt
8f55ec5c69 SAMV7: Port the WDT driver from the SAMA5 to the SAMV7 2015-12-06 09:29:51 -06:00
Gregory Nutt
347bb86045 SAMV7: Port SAMAD5 TRNG driver to the SAMV7 2015-12-06 08:53:31 -06:00
Gregory Nutt
3afc0799ad Eliminate a warning 2015-12-05 10:35:11 -06:00
Gregory Nutt
52601d9da8 SAMV7: Add support for PCK6 as a timer/counter clock source 2015-12-04 10:49:20 -06:00
Lok Tep
82c865e2b0 init global interrupt in timer mode 2015-12-04 10:23:29 +01:00
Gregory Nutt
9d769f6056 SAMV7: Extend programmable clock support for queries about the PCK configuration 2015-12-03 14:11:39 -06:00
Gregory Nutt
8c4302f75d Bring programmable clock logic from SAMA5 to SAMV7 2015-12-03 10:22:11 -06:00
Gregory Nutt
1399e00166 SAMV7: Fix some issues with lost timer/counter interrupts 2015-12-02 18:09:23 -06:00
Gregory Nutt
2300273a07 SAMV7 TC: Some trivial improvements 2015-12-02 15:53:51 -06:00
Gregory Nutt
9a54702d99 SAMV7: Revise timer driver. SAMA5 has one pid/interrupt per timer/counter; SAMV7 has a pid/interrupt per channel 2015-12-02 14:09:34 -06:00
Gregory Nutt
192772b7ee SAMV7: Add support for CONFIG_SCHED_TICKLESS_LIMIT_MAX_SLEEP 2015-12-02 09:21:34 -06:00
Gregory Nutt
3ce3dbc6ed SAMV7: Ported tickless logic from the SAMA5/SAM4CM to the SAMV7 2015-12-02 08:26:33 -06:00
Gregory Nutt
02c57c22f8 SAMA5: Misc clean from review while porting some logic to the SAMV7 2015-12-02 08:25:23 -06:00
Gregory Nutt
bda05b312e SAMV7: Port the SAMA5 timer/counter driver to the SAMV7 2015-12-02 07:18:25 -06:00
Gregory Nutt
975ea3e677 SAMA5: Fix a typo in timer/counter setup 2015-12-02 07:17:17 -06:00
Lok Tep
f02d3808a3 compile spifi with vpath 2015-12-02 12:51:45 +01:00
Gregory Nutt
6734c91a05 SAMV7 USB: Add some warnings to avoid certain bad configuration selections 2015-12-02 05:30:10 -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
Lok Tep
fd74d0b625 spifi 2015-12-01 23:09:31 +01: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
Lok Tep
9a527ad3ed adc: timer mode 2015-12-01 14:53:52 +01: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
5367c5993c SAMV7: Add some conditional logic to handle the case where the board has no 32.768KHz crystal installed 2015-11-30 15:21:25 -06:00
Gregory Nutt
e421258808 Move sim/src/up_appinit.c to configs/sim/src where it really belongs 2015-11-29 13:54:03 -06:00
Gregory Nutt
4d2299896e SAMV7: Add support to network device statistics to the Ethernet driver 2015-11-27 12:30:15 -06:00
Gregory Nutt
8ce454a584 Remove some warnings; eliminate unused variables 2015-11-26 12:46:53 -06:00
Gregory Nutt
e5e631e57f include/nuttx/net/netdev.h and several Ethernet drivers in arch/: Most network drivers to not support statistics. Those that do only support them when DEBUG is enabled. Each driver collects an architecture specific set of statistics and there is no mechanism in place to view those statistics. Thus, the driver feature was mostly useless. This change standardizes the driver statistics and puts the definition in the common network device structure defined in netdev.h where they can be accessed by network applications. All Ethernet drivers that collect statistics have been adapted to use these common statistics. 2015-11-26 12:07:18 -06:00
Gregory Nutt
2afd4595e4 Re-think how __KERNEL__ option is set in architecture Makefiles. Should be passed in EXTRADEFINES 2015-11-26 06:59:35 -06:00
Gregory Nutt
22b4932a4f __KERNEL__ should be defined when compiler architecture specific logic 2015-11-25 18:06:56 -06:00
Gregory Nutt
4aa3dcb51a __KERNEL__ should be defined when compiler architecture specific logic 2015-11-25 18:05:36 -06:00
Gregory Nutt
f4e8f84887 __KERNEL__ should be defined when compiler architecture specific logic 2015-11-25 17:52:14 -06:00
Gregory Nutt
14d7ede265 All instances of up_initialize() should call loop_register() is CONFIG_DEV_LOOP=y 2015-11-25 17:10:41 -06:00
Lok Tep
dd4ef7b2e9 rename to offset 2015-11-25 21:07:14 +01:00
Lok Tep
70ab09976a setup out with data
ep 5-6
fixex
2015-11-25 21:07:00 +01: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
Ken Pettit
641ca79321 arch/sim/src: Add a special file system for use with simulator that supports access to the host file system from the simulation. From Ken Petit 2015-11-25 08:36:44 -06:00
Gregory Nutt
d7c5ff98f4 Fix a typo 2015-11-23 18:55:38 +00:00
Gregory Nutt
edb1439d8f Last change introduced warnings when CONFIG_SIM_M32=y; This fixes those warnings too 2015-11-23 12:44:59 -06:00
Gregory Nutt
076b05b460 In Kconfig of all CPUs with 16-bit address, force CONFIG_MM_SMALL=y 2015-11-23 12:16:35 -06:00
Gregory Nutt
9f98dfecb7 sim: Eliminate a warning 2015-11-23 11:59:33 -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
Ken Pettit
992d7d1e85 arch/sim/src/up_spiflash.c: Add support for W25 FLASH simulation. From Ken Petit 2015-11-18 07:08:38 -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
Lok Tep
5d689fedcf spifi regs 2015-11-17 18:02:08 +01:00
Gregory Nutt
88ebcc895b Fix some spacing problems found by tools/nxstyle.c 2015-11-15 10:47:42 -06:00
Gregory Nutt
bd384d93eb SAMV7 MCAN: Cosmetic change 2015-11-15 08:38:27 -06:00
Lok Tep
0d1ba69ba8 Merge remote-tracking branch 'origin/master' 2015-11-15 12:55:21 +01:00
Lok Tep
386939c8af roght ram bank 2015-11-15 12:52:57 +01:00