- Jan 09, 2016
-
-
Gregory Nutt authored
debug macros for AVR (take #2): Introduce arch-specific debug macro hooks
-
Dimitry Kloper authored
Make it possible for arch code to provide hook macros for NuttX dbg that will lead to arch-specific syslog() and lowsyslog() variants.
-
Dimitry Kloper authored
-
- Jan 08, 2016
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
- Jan 07, 2016
-
-
Dimitry Kloper authored
-
Gregory Nutt authored
-
- Jan 06, 2016
-
-
Gregory Nutt authored
-
- Jan 05, 2016
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Dimitry Kloper authored
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.
-
Vladimir Komendantskiy authored
-
Dimitry Kloper authored
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>
-
Dimitry Kloper authored
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).
-
- Jan 03, 2016
-
-
Gregory Nutt authored
-
- Jan 01, 2016
-
-
Gregory Nutt authored
-
- Dec 31, 2015
-
-
Gregory Nutt authored
-
Chris Croswhite authored
-
- Dec 30, 2015
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
- Dec 29, 2015
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
- Dec 28, 2015
-
-
Gregory Nutt authored
-
- Dec 27, 2015
-
-
Gregory Nutt authored
-
- Dec 26, 2015
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
- Dec 25, 2015
-
-
Gregory Nutt authored
-
- Dec 24, 2015
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Manuel Stühn authored
-
- Dec 23, 2015
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-