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
Gregory Nutt
aea0c7c3ef
Merged in petekol/arch (pull request #49 )
...
Master
2016-01-15 10:21:19 -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
Dimitry Kloper
0d684a42e4
Merged nuttx/arch/master into atmega2560
2016-01-07 21:59:42 +02: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
Gregory Nutt
a063be5802
Merged in kloper/arch/atmega2560 (pull request #47 )
...
Atmega2560
2016-01-05 07:06:51 -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
Dimitry Kloper
d3d98f9b6a
Merged nuttx/arch/master into atmega2560
2016-01-04 21:31:38 +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
Dimitry Kloper
a7fea840be
Merged nuttx/arch/master into atmega2560
2015-12-29 21:54:06 +02:00
Gregory Nutt
68cc2ecfd2
ATMEGA2560: Most cosmetic changes from review of pull request
2015-12-29 13:02:20 -06:00
Gregory Nutt
87a6662998
Merged in kloper/arch/atmega2560 (pull request #46 )
...
Atmega2560
2015-12-29 12:20:09 -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