bugobliterator
09096cb355
AP_HAL_SITL: add get_storage_ptr method
3 years ago
Peter Barker
67226433e3
AP_HAL_SITL: add simulated RAMTRON device
3 years ago
Peter Barker
402669f269
AP_HAL_SITL: add and use HAL_SITL &hal_sitl
...
analogous to our normal "extern hal" stuff but removes need for casting
3 years ago
Peter Barker
3292128531
AP_HAL_SITL: allow for selection of Storage backend type at runtime
3 years ago
Peter Barker
d9e3526bd2
AP_HAL_SITL: correct compilation for mission pread/pwrite ret check
4 years ago
bugobliterator
49d934eb42
AP_HAL_SITL: add support for multiple periph instances
4 years ago
Peter Barker
035e798b23
AP_HAL_SITL: use a separate eeprom.bin for SITL build
...
This resolves a problem in autotest where the eeprom.bin gets wiped out
when we run Replay against a log as part of test.Copter.Replay
4 years ago
Andrew Tridgell
5125fc1a64
HAL_SITL: added checks for flash storage
5 years ago
Andrew Tridgell
c0039c85e0
HAL_SITL: emulate sector size for flash storage properly
5 years ago
Andrew Tridgell
ae9e8c3dbc
HAL_SITL: fixed bitmask error on storage erase
5 years ago
Peter Barker
f480df228b
AP_HAL_SITL: set cloexec on eeprom.bin
5 years ago
Jaaaky
d7abd636ac
AP_HAL_SITL: Fix build with --sitl-flash-storage option
6 years ago
Peter Barker
a7589a4aed
AP_HAL_SITL: correct comparison between signed and unsigned
...
Closes #10637
6 years ago
Andrew Tridgell
751dade9a8
HAL_SITL: enable optional storage in flash
...
this brings storage in SITL very close to storage in ChibiOS
6 years ago
Lucas De Marchi
f6d475c1e6
AP_HAL_SITL: add O_CLOEXEC in places missing it
...
By opening with O_CLOEXEC we make sure we don't leak the file descriptor
when we are exec'ing or calling out subprograms. Right now we currently
don't do it so there's no harm, but it's good practice in Linux to have
it.
8 years ago
Andrew Tridgell
655f57ad01
HAL_SITL: cleanup class names
...
remove SITL prefix
9 years ago
Gustavo Jose de Sousa
27b9d71e2c
AP_HAL_SITL: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
c81ad1d622
HAL_SITL: reformat HAL_SITL with astyle
10 years ago
Andrew Tridgell
40e3b422b5
HAL_SITL: rename HAL_AVR_SITL to HAL_SITL
...
it is nothing to do with the original AVR emulation now
10 years ago
Andrew Tridgell
a70b195a4a
SITL: fixed limits on storage
11 years ago
Andrew Tridgell
d40d0f6aec
AP_HAL: removed old storage type read/write functions
...
not needed any more
11 years ago
Andrew Tridgell
3640ae9cdf
SITL: allow for different storage sizes
11 years ago
Andrew Tridgell
2316c3bd11
AP_HAL: make storage->write_block() take a const pointer
12 years ago
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
12 years ago