Andrew Tridgell
17c115d2aa
SITL: don't define __AVR_ATmega2560__ on desktop build
...
this allows us to properly separate the desktop build in the code
12 years ago
Andrew Tridgell
fe23d27904
SITL: added SREG declaration
12 years ago
Andrew Tridgell
b787dc8cce
APM: added wdt.h for SITL build of APM
13 years ago
Andrew Tridgell
82954f823b
SITL: make abs() 16 bit in SITL
...
this will help us find abs() bugs in autotest
13 years ago
Andrew Tridgell
7ff7514a88
SITL: added pgm_read_dword() and pgm_read_float()
13 years ago
Andrew Tridgell
1fdcc3e8f0
SITL: added support for new analog source
...
removed analogRead() to prevent people using it
13 years ago
Andrew Tridgell
cf4e56457b
SITL: map() is a C++ function, so needs to be in C++ part of the header
...
this fixes the ACM build
13 years ago
rmackay9
173ae33627
ArduCopter Desktop Build: added definition of "map" to wiring.h and included WMath.cpp to fix SITL build failures.
...
All real work on this issue done by Michael Oborne.
13 years ago
Andrew Tridgell
b337441ec5
SITL: added pgm_read_byte_far()
13 years ago
Andrew Tridgell
37275d229d
SITL: implement cli()/sei() properly for desktop build
...
this disables simulated hardware interrupts during critical sections
13 years ago
Andrew Tridgell
d658bc6f9d
desktop: more progmem string functions
13 years ago
Andrew Tridgell
f2a0a49d55
desktop: fixed desktop build for strlcat_P() changes
13 years ago
Andrew Tridgell
ffba37d599
desktop: first version of register level SITL support
...
this adds register level emulation of the ADS7844 and the RC
input/output hardware on the APM1, allowing for SITL testing without
enabling HIL in the code
13 years ago
Andrew Tridgell
3c3db649d5
desktop: make ISRs normal C++ functions
...
this will make it possible to add an abstract register simulation
class that allows us to intercept device IO
14 years ago
Andrew Tridgell
7098e8cfa1
first rough build for desktop CPUs
...
this allows ArduPlane to build and startup on 'desktop' systems (eg. a
Linux box). Very rough for now, and only for HIL so far
14 years ago