Pat Hickey
fa02ad7d4c
AP_HAL: preprocessor enum of HAL_BOARD
2012-12-20 14:51:37 +11:00
Pat Hickey
9cee6cc941
AP_HAL: remove Dataflash driver
2012-12-20 14:51:37 +11:00
Pat Hickey
cb38651df5
AP_HAL: RCInput has overrides
2012-12-20 14:51:34 +11:00
Pat Hickey
8879cbbc69
AP_HAL: Console uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
de4adefe4e
AP_HAL: AnalogIn uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
243590bb73
AP_HAL: UARTDriver & Stream uses only sized int types
...
Signed-off-by: Pat Hickey <pat@galois.com>
2012-12-20 14:51:33 +11:00
Pat Hickey
709869f8ce
AP_HAL: use sized ints in GPIO
2012-12-20 14:51:33 +11:00
Pat Hickey
ca4bc8d760
AP_HAL: AnalogIn read changed to read_latest and read_average
2012-12-20 14:51:33 +11:00
Pat Hickey
6218d7779f
AP_HAL: expose DF_LOGGING_FORMAT to user
2012-12-20 14:51:33 +11:00
Pat Hickey
3bca50f422
AP_HAL: BetterStream removes printf attribute from _printf_P
2012-12-20 14:51:33 +11:00
Pat Hickey
592d32ba47
AP_HAL: add reboot to scheduler
2012-12-20 14:51:32 +11:00
Pat Hickey
7049934a69
AP_HAL: AnalogIn channel gets scale, source gets set_pin
2012-12-20 14:51:32 +11:00
Pat Hickey
dbb6a2a0e5
AP_HAL: change uart0,1,2,3 to uartA,B,C
2012-12-20 14:51:32 +11:00
Pat Hickey
f543cede01
AP_HAL & AP_HAL_AVR: new SPI driver model
2012-12-20 14:51:31 +11:00
Pat Hickey
2a12392b9e
AP_HAL: export semaphore header
2012-12-20 14:51:30 +11:00
Pat Hickey
b2c44d8a81
AP_HAL: move AP_Semaphore to be part of the HAL
2012-12-20 14:51:30 +11:00
Pat Hickey
f4b5ef9fad
AP_HAL AnalogIn: gets constants for BOARD_VCC and NONE
2012-12-20 14:51:30 +11:00
Pat Hickey
47f555feac
AP_HAL_AVR: I2CDriver increments lockup count on any error
...
tridge made these changes to the "I2c" lib in a3589f2956
2012-12-20 14:51:30 +11:00
Pat Hickey
c9541d3b00
AP_HAL: added begin_atomic and end_atomic to scheduler
2012-12-20 14:51:29 +11:00
Pat Hickey
7908e41416
AP_HAL Storage: use a int type rather than pointer type for location
2012-12-20 14:51:29 +11:00
Pat Hickey
a399851ca2
AP_HAL: Depend on AP_Progmem rather than AP_Common to provide pstr
2012-12-20 14:51:28 +11:00
Pat Hickey
bae7e4b88e
AP_HAL Scheduler: simplify register_timer_process, min time for delay cb
2012-12-20 14:51:27 +11:00
Andrew Tridgell
87e300b119
AP_HAL: added double print functions
...
this copes with the fact that the compiler doesn't really know that
float and double are the same things
2012-12-20 14:51:27 +11:00
Pat Hickey
7480707f9e
AP_HAL: Add attach_interrupt method to GPIO
2012-12-20 14:51:26 +11:00
Pat Hickey
d422ab7806
AP_HAL: Extend Scheduler to support defered timer procs
...
* based on queue_proc from AP_PeriodicProcess
2012-12-20 14:51:26 +11:00
Pat Hickey
73ccfaf2d7
AP_HAL: implement DigitalSource abstraction
...
* GPIO's complement to AnalogSource
2012-12-20 14:51:25 +11:00
Pat Hickey
017f592eef
AP_HAL: add ConsoleDriver interface
2012-12-20 14:51:24 +11:00
Pat Hickey
36154559fc
AP_HAL: change txspace from a BetterStream method to a Stream method.
2012-12-20 14:51:24 +11:00
Pat Hickey
279a755ab3
AP_HAL: AnalogIn interface fleshed out
2012-12-20 14:51:23 +11:00
Pat Hickey
6671310399
AP_HAL Scheduler: interface has AP_PeriodicProcess functionality
2012-12-20 14:51:22 +11:00
Pat Hickey
af68c09591
AP_HAL Namespace: typedef Proc and TimedProc
2012-12-20 14:51:22 +11:00
Pat Hickey
187571cca9
AP_HAL Scheduler fixes & AP_HAL_AVR Scheduler changed to match
2012-12-20 14:51:22 +11:00
Pat Hickey
2adfc4fbc5
AP_HAL Scheduler add method register_delay_callback (unimplemented)
2012-12-20 14:51:22 +11:00
Pat Hickey
1d89419059
AP_HAL: Scheduler should use stdint types, conform names
2012-12-20 14:51:22 +11:00
Pat Hickey
06441b4117
AP_HAL_AVR Dataflash implemented, tested for APM2
...
* Need to get my APM1 board from home to test it on there...
2012-12-20 14:51:21 +11:00
Pat Hickey
34ec5081e2
AP_HAL: Dataflash interface populated
2012-12-20 14:51:21 +11:00
Pat Hickey
3b697fe299
AP_HAL: rename Log to Dataflash
...
* I'd love to build a proper abstraction for logging, but I don't have the
time to do so right now.
* The dataflash libs need to be pushed into the AP_HAL_AVR anyway, so I'll
do that now and replace the interface with a better logging driver later.
2012-12-20 14:51:21 +11:00
Pat Hickey
5d2327f52f
AP_HAL: Don't need a separate Console class, BetterStream will do.
2012-12-20 14:51:21 +11:00
Pat Hickey
261ef791a7
AP_HAL Storage: trivial interface and implementation wraps avr/eeprom funcs
2012-12-20 14:51:21 +11:00
Pat Hickey
b0d8f43111
AP_HAL_AVR: Implemented SPIDriver based on Arduino, but it doesn't work yet
...
* I don't have an APM2.5 board I can easily connect a logic analyzer to see
the traffic on the bus...
2012-12-20 14:51:21 +11:00
Pat Hickey
5445ad02f8
AP_HAL_AVR: RCOutput tested implementation for APM2
2012-12-20 14:51:21 +11:00
Pat Hickey
acfbddef0d
AP_HAL: proper RCOutput interface specification
2012-12-20 14:51:20 +11:00
Pat Hickey
fb6abbe191
AP_HAL: proper RCInput interface specification
2012-12-20 14:51:20 +11:00
Pat Hickey
db76562cd5
AP_HAL: global rename PPMInput -> RCInput, PWMOutput -> RCOutput
...
* for clarity. nobody cares that PPM/PWM is the implementation, and with
sbus etc it might not be
2012-12-20 14:51:20 +11:00
Pat Hickey
46f31aa69c
AP_HAL_AVR: Implement I2CDriver based on libraries/I2C
...
* Removed a ton of code we don't need from that driver, which should make
writing new drivers easier.
2012-12-20 14:51:20 +11:00
Pat Hickey
cae931a93a
AP_HAL_AVR UARTDriver does basic hello world printing
...
* will import more complex tests next
2012-12-20 14:51:20 +11:00
Pat Hickey
e9c5f07db2
AP_HAL: Working GPIO interface & implementation
...
* actually, tested the output only... gotta do input next
2012-12-20 14:51:20 +11:00
Pat Hickey
ea8242ace1
AP_HAL: Add scheduler interface, move Arduino init code to implementation
2012-12-20 14:51:19 +11:00
Pat Hickey
18329b1a5d
AP_HAL: add virtual init method to HAL class
2012-12-20 14:51:19 +11:00
Pat Hickey
8eb9b39a44
AP_HAL_AVR move library classes to their own AP_HAL_AVR namespace
2012-12-20 14:51:19 +11:00