Andrew Tridgell
c44ab01be8
AP_HAL: use noreturn attribute on panic
...
should reduce coverity warnings
10 years ago
Max Basescu
32994a5b1e
AP_HAL_AVR: Changed constrain_period to use RC_OUTPUT bounds instead of RC_INPUT
...
Done in order to get full range of motion for servo output
10 years ago
Andrew Tridgell
0cc31c2db5
AP_HAL_AVR: convert example from .pde to .cpp
10 years ago
Lucas De Marchi
dcf992b558
AP_HAL_AVR: use functor macros
...
Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
10 years ago
Lucas De Marchi
9ef870c08a
AP_HAL_AVR: Do not compare delegate to NULL
...
Use the simpler "if (delegate_name)" since it allows simpler
implementation in the class, i.e. the bool operator rather than having
to compare to another object.
10 years ago
Andrew Tridgell
df21c6c68d
AP_HAL: support micros64() and millis64() on all platforms
...
this will allow for 64 bit timestamps in DF logs (Peter is working on
that)
10 years ago
Andrew Tridgell
84cda98bec
HAL_AVR: fixed example build
10 years ago
Andrew Tridgell
5d6f883887
HAL_AVR: implement updated new_input() semantics
10 years ago
Andrew Tridgell
7fb114752c
AP_HAL_AVR: accept a much shorted sync pulse width on RCInput
...
this should fix issues with OpenLRSng default settings
10 years ago
Randy Mackay
7c293f01d9
HAL_AVR: fix example sketch
10 years ago
Grant Morphett
236efad159
AP_HAL_AVR: Increased number of AVR input channels from 8 to 11
10 years ago
Andrew Tridgell
b8e73a737a
HAL_AVR: fixed warning
10 years ago
Andrew Tridgell
928024854e
HAL_AVR: fixed example build
11 years ago
Andrew Tridgell
4bb72f8d85
HAL_AVR: fixed example build
11 years ago
Andrew Tridgell
d40d0f6aec
AP_HAL: removed old storage type read/write functions
...
not needed any more
11 years ago
Andrew Tridgell
02dec5634f
AP_HAL: fixed example builds
11 years ago
Andrew Tridgell
273bc230e6
HAL_AVR: renamed pins_arduino_mega.c to .cpp
...
this fixes a compiler hang on at least one Ubuntu platform. May be a
problem building empty C files?
It also makes our build more consistent
11 years ago
Andrew Tridgell
3015356671
HAL_AVR: fixes for HAL_GPIO_ define change
11 years ago
Andrew Tridgell
6eee2421cc
AP_HAL: removed RCInput valid_channels() and added new_input() and num_channels()
...
the valid_channels() method was inconsistently implemented between
boards, and served two quite different purposes. It is clearer as two
functions
11 years ago
Andrew Tridgell
d36989f6a1
AP_HAL: fixed example build
11 years ago
Andrew Tridgell
6c74ca58c3
HAL_AVR: no uartE
11 years ago
Randy Mackay
42d9225fbe
HAL_AVR: ArduCopterLibs to use AC_P library
11 years ago
Andrew Tridgell
1849db7074
AP_HAL: added board_voltage AnalogIn method
...
this makes it easier to get the board voltage from any library,
without having to allocate another analog channel object
11 years ago
Andrew Tridgell
fc6ce42a28
HAL_AVR: fixed build
11 years ago
Andrew Tridgell
87cc95dd7f
AP_HAL: removed unused enable_mask and disable_mask functions
11 years ago
Andrew Tridgell
461638780b
HAL_AVR: fixed warning on memcheck build
11 years ago
Andrew Tridgell
ea649e036b
AP_HAL: added HAL_CPU_CLASS define for selecting algorithms
...
this will make it easier to select the appropiate level of algorithm
for a CPU
11 years ago
Andrew Tridgell
75cb04dd8b
HAL_AVR: use memcheck for available_memory()
11 years ago
Andrew Tridgell
36e06a1709
HAL_AVR: moved memcheck into HAL_AVR
11 years ago
Randy Mackay
f8e269cd04
OptFlow: correct SPI mode and baud rates
11 years ago
Andrew Tridgell
4fb1fdb627
HAL_AVR: added NULL uartD
11 years ago
Randy Mackay
80059d3516
AP_HAL_AVR: resolve compiler warning
11 years ago
Randy Mackay
f5488bc447
HAL: MPU6k and Baro SPI to 8Mhz
11 years ago
Andrew Tridgell
08a6503364
HAL_AVR: force all devices on SPI0 to low speed when one is low speed
...
this forces MS5611 to low speed when MPU6K is low speed
11 years ago
Andrew Tridgell
11e1cf31c4
HAL_AVR: changed to 16 byte bulk transfer on SPI0
11 years ago
Andrew Tridgell
580e7b8a4a
HAL_AVR: switch back to 500kHz SPI for MPU6k until we understand the issues
...
this is for new plane release. We need for analysis before we can
re-enable high speed SPI
11 years ago
Randy Mackay
443023bbbf
AP_HAL: add ignore_errors to I2C driver
11 years ago
Andrew Tridgell
a5788dde8f
HAL_AVR: added Scheduler.set_timer_speed() support
11 years ago
Andrew Tridgell
34770fe6bf
HAL_AVR: fixed SPI bus speed switching
...
this fixes a bug in changing the bus speed between devices
11 years ago
Randy Mackay
f2f61af125
HAL_AVR: scheduler interrupt 500hz for APM2
11 years ago
Andrew Tridgell
04836ea763
HAL_AVR: set initial bus speed on MPU6k to 500kHz, then change to 8MHz
...
this should allow us to work even with older chips. See the MPU6000
product specification, which says max 20MHz for sensor and interrupt
regs, and max 1MHz for all other regs
11 years ago
Andrew Tridgell
4dc2f4bd58
HAL_AVR: spi3 at 8mhz for mpu6k and ms5611
11 years ago
John Arne Birkeland
f6038f36bf
HAL_AVR: Improved AVRTimer micros() and millis()
...
- More efficient code by using 16-bit timer
- micros() now has proper 1 us resolution and less overhead
- millis() has less overhead
- removed unneeded/unwanted initializatin of timers in AVRTimer::init()
11 years ago
Andrew Tridgell
5ba34b38c1
HAL_AVR: added specialised transfer functions for MPU6k and APM1 ADC
...
this saves quite a lot of time in interrupts
11 years ago
Andrew Tridgell
ae1fd4baa4
HAL_AVR: reduce the latency of semaphore waits
...
this reduces the average cost of waiting for the MPU6000 semaphore
from the main loop
11 years ago
Andrew Tridgell
fc7f3c8aa6
AP_HAL: fixed example build
11 years ago
Andrew Tridgell
de4d505f62
HAL_AVR: fixed examples build
12 years ago
Andrew Tridgell
7072c52b57
HAL_AVR: removed Console driver
12 years ago
Andrew Tridgell
8e0a136d78
HAL_AVR: mark some examples as not building
12 years ago
Andrew Tridgell
a59f505d25
HAL_AVR: implement an efficient buffer write() call for AVR
...
this saves some cycles in the telemetry code
12 years ago