Commit graph

41480 commits

Author SHA1 Message Date
Gregory Nutt
5ad57111af sim/nsh: hello task sometimes needs a larger stack size or things get clobbered when calling into the system write() interface 2016-01-05 17:22:59 -06:00
Gregory Nutt
b28bf55fb0 Cosmetic spacing change 2016-01-05 14:52:20 -06:00
Gregory Nutt
670ac9fb2f Fix an ommission in compiler.h 2016-01-05 14:46:49 -06:00
Dimitry Kloper
06438b0dcc Fix 64-bit clock-related constant value evaluation for AVR compiler
This may be specific for Atmel AVR8 toolchain compiler.
The problem is that despite of being 8-bit architecture
avr-gcc supports uint64_t, but the following code

uint64_t value = 10000 * 1000;

produces a wrong negative value in the final code (tested
both with and without optimization).

The work-around is simple:

uint64_t value = 10000 * 1000L;

The code is a reduced part from sched/signal/sig_timedwait.c where
waitticks64 is calculated using NSEC_PER_TICK. This one is defined
as USEC_PER_TICK * NSEC_PER_USEC which leads to the example above.
2016-01-05 12:02:02 -06:00
Vladimir Komendantskiy
ae71c9b447 Fix a compile time error in drivers/net/tun.c. 2016-01-05 10:58:58 -06:00
Dimitry Kloper
06d83c6261 Introduce support for Atmel toolchain in-flash strings
Atmel toolchain AVR compiler provides a transparent in-flash object support using __flash and __memx symbols. The former indicates to compiler that this is a flash-based object.  The later used with pointer indicates that the referenced object may reside either in flash or in RAM. The compiler automatically makes 32-bit pointer with flag indicating whether referenced object is in flash or RAM and generates code to access either in run-time. Thus, any function that accepts __memx object can transparently work with RAM and flash objects.

For platforms with a Harvard architecture and a very small RAM like AVR this allows to move all constant strings used in trace messages to flash in the instruction address space, releasing resources for other things.

This change introduces IOBJ and IPTR type qualifiers.  The 'I' indicates that the object may like in instruction space on a Harvard architecture machine.

For platforms that do not have __flash and __memx or similar symbols IOBJ and IPTR are empty, making the types equivalent to, for example, 'const char' and 'const char*'.  For Atmel compiler these will become 'const __flash char' and 'const __memx char*'.  All printf() functions and syslog() functions are changed so that the qualifier is used with the format parameter.

From: Dimitry Kloper <dikloper@cisco.com>
2016-01-05 10:29:29 -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
b48ca00cd5 The delay parameter has 'int' type while explicit int32_t is used in sigtimedwait() (sig_timedwait.c) This can lead to wrong argument for systems that have default int size different than int32 (namely AVR). 2016-01-05 07:58:04 -06:00
Gregory Nutt
a063be5802 Merged in kloper/arch/atmega2560 (pull request #47)
Atmega2560
2016-01-05 07:06:51 -06:00
Dimitry Kloper
0cfe6c3590 ATMEGA2560: Introduce ostest variant for Arduino Mega2560 2016-01-04 22:47:17 +02:00
Dimitry Kloper
2fd0507443 Merged nuttx/boards/master into atmega2560 2016-01-04 22:34:49 +02: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
236bb67e4b NuttX.html: Use the name Hercules with the TI TMS4570 description 2016-01-04 13:21:25 -06:00
Gregory Nutt
b5df10067a README.txt edited online with Bitbucket 2016-01-04 19:04:34 +00:00
Gregory Nutt
5d27cf69b8 NuttX.html: Add mention of the TMS570 port 2016-01-04 12:28:00 -06:00
Gregory Nutt
63f13283de Upate TODO list 2016-01-03 11:59:43 -06:00
Gregory Nutt
efd5a63cf3 Update submodules 2016-01-01 12:18:04 -06:00
Gregory Nutt
b29ec04459 Trivial update to C comments 2016-01-01 12:17:40 -06:00
Gregory Nutt
e4f1b3a0fc Trivial update to NSH documentation 2016-01-01 12:16:40 -06:00
Gregory Nutt
eb723f3af9 Update time command description in the NSH document 2016-01-01 09:10:21 -06:00
Gregory Nutt
f8836afc07 Correct a statement in the description of the time command 2015-12-31 10:23:00 -06:00
Gregory Nutt
cb7d86f23b Fix errors in documentation of NSH time commands 2015-12-31 10:03:35 -06:00
Gregory Nutt
41992ca46a NuttShell.html: Add documentation of the time command 2015-12-31 09:34:27 -06:00
Gregory Nutt
b1938c065d sys/time.h: Fix timersub macro; time_t is unsigned 2015-12-31 09:05:35 -06:00
Chris Croswhite
b73a7515b6 Small compilation issue when selecting localtime, this patch adds the correct ifdef. 2015-12-30 19:12:42 -06:00
Gregory Nutt
05d16f15da Update ChangeLog 2015-12-30 16:33:27 -06:00
Gregory Nutt
c33724fc93 Update TODO list 2015-12-30 15:26:30 -06:00
Gregory Nutt
c1fff4706c signals: Adds a very limited, minimal implementation for SIGEV_THREAD 2015-12-30 15:01:14 -06:00
Gregory Nutt
9852932dcc Fix another error from the last set of header file renaming 2015-12-30 13:48:29 -06:00
Gregory Nutt
849df03d22 Update dates on files modified for SIGEV_THREAD support 2015-12-30 13:28:39 -06:00
Gregory Nutt
9835eeb181 signals: Basic framework to support SIGEV_THREAD 2015-12-30 13:20:31 -06:00
Gregory Nutt
697bc47187 Refresh configuration; update README 2015-12-30 12:36:53 -06:00
Gregory Nutt
b323e1d5ff Trivial, cosmetic 2015-12-30 12:36:22 -06:00
Gregory Nutt
e76e8f41c6 pthread: Correct default schedule policy 2015-12-30 12:18:24 -06:00
Gregory Nutt
40659d12df Rename libxx_internal.h to libxx.h 2015-12-30 07:56:56 -06:00
Gregory Nutt
3c286bd5f8 Update README files 2015-12-30 07:56:11 -06:00
Gregory Nutt
426eb61e47 Fix an error introduced in the last big set of header file renaming 2015-12-29 18:29:24 -06:00
Gregory Nutt
695a8890a6 Rename pm_internal.h to pm.h 2015-12-29 18:19:03 -06:00
Gregory Nutt
d1ece2c59f Fix some bad inclusions of files with internal in the name 2015-12-29 18:18:20 -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
8eab9280d8 Rename all architecture files of form xyz_internal.h to just xyz.h 2015-12-29 18:07:27 -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
b682190f52 Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
Gregory Nutt
6daa73a945 Remove internal from name of all board header files 2015-12-29 15:44:56 -06:00
Gregory Nutt
a64ebf212d STM32F3-Discvoery: Rename stm32f3discovery-internal.h to just stm32f3discovery.h 2015-12-29 15:09:04 -06:00
Dimitry Kloper
9cae5a0e14 Merged nuttx/boards/master into atmega2560 2015-12-29 21:54:24 +02:00
Dimitry Kloper
a7fea840be Merged nuttx/arch/master into atmega2560 2015-12-29 21:54:06 +02:00
Gregory Nutt
e9d116ef14 Coding Standard: Add TAB stop requirement 2015-12-29 13:36:26 -06:00