Commit Graph

45 Commits

Author SHA1 Message Date
Lucas De Marchi a096703b06 Global: don't link with AP_Progmem
AP_Progmem is not used anymore.
2015-12-27 15:58:12 -02:00
Lucas De Marchi 8f9fa568b4 Tools: remove unused AP_ADC_AnalogSource 2015-12-03 13:32:45 +11:00
Caio Marcelo de Oliveira Filho 6e7b73610d waf: add waf support 2015-12-03 07:54:30 +11:00
Caio Marcelo de Oliveira Filho ee7e3e34c0 Tools: CPUInfo use millis/micros/panic functions 2015-11-20 12:26:48 +09:00
Andrew Tridgell 8f4ce7f20b build: removed all nocore.inoflag files
these were APM2 specific
2015-11-16 08:05:17 +11:00
Caio Marcelo de Oliveira Filho 36ffef97c0 CPUInfo: remove unnecessary includes 2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho ec52df991c build: compile only the HAL files needed by the board
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho 2e464a53c2 AP_HAL: make code not depend on concrete HAL implementations
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.

A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.

The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.

Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.

The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Gustavo Jose de Sousa 84b5555a1a Tools: 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.
2015-08-11 16:28:41 +10:00
Andrew Tridgell a3546a3ac2 CPUInfo: convert example from .pde to .cpp 2015-06-01 17:07:08 +10:00
Andrew Tridgell 75229ebf6c Tools: removed fast_atan 2015-05-05 13:57:10 +10:00
Andrew Tridgell 9e02ce44ae Tools: fix for HAL_SITL rename 2015-05-05 09:45:57 +10:00
Randy Mackay ff5f0f1d23 CPUInfo: add include to fix compile error 2015-04-29 10:10:21 +09:00
Randy Mackay 82df53ed80 CPUInfo: fix compile error 2015-02-09 22:26:51 +09:00
Andrew Tridgell b3316865fa CPUInfo: fixed build 2015-01-05 07:36:49 +11:00
Andrew Tridgell 2918b04f17 CPUInfo: fixed build 2014-08-13 18:46:44 +10:00
Andrew Tridgell 72d35e8da4 CPUInfo: fixed build 2014-08-10 22:36:03 +10:00
Andrew Tridgell 7b8287793c CPUInfo: fixed build 2014-08-06 18:56:39 +10:00
Andrew Tridgell 9c69e736f1 CPUInfo: fixed build 2014-07-25 18:41:30 +10:00
Randy Mackay 919b0ea29b CPUInfo: add fast_atan2 2014-06-06 18:51:05 +09:00
Andrew Tridgell b9939368ea CPUInfo: fixed build 2014-03-19 12:13:44 +09:00
Andrew Tridgell 30fd792d40 CPUInfo: fixed SITL build 2014-02-18 19:16:26 +11:00
Andrew Tridgell 0749cc1fd9 Tools: we don't have AP_NavEKF.h yet 2014-01-15 13:48:50 +11:00
Andrew Tridgell 4d5346be79 CPUInfo: fixed SITL build 2014-01-14 20:50:34 +11:00
Andrew Tridgell bdbf9a8935 CPUInfo: fixed build 2013-12-17 11:51:36 +11:00
Randy Mackay a8970ee509 Tools: add additional divide timing 2013-07-18 23:08:13 +09:00
Andrew Tridgell 896dd648c9 Tools: fixed indent-tabs-mode 2013-05-30 09:56:00 +10:00
Andrew Tridgell 3f8fb48479 CPUInfo: test NaN and Infinity printing 2013-04-17 21:39:22 +10:00
James Bielman 5631f865b2 Update floating point calculations to use floats instead of doubles.
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
Andrew Tridgell 75c1666302 CPUInfo: added note on dataflash write cost 2013-01-08 14:37:39 -08:00
Andrew Tridgell 477ed294c6 CPUInfo: begin_atomic/end_atomic have been removed 2013-01-04 14:59:56 +11:00
Andrew Tridgell 1c3031f50d CPUInfo: added output for PX4FMU 2013-01-03 15:45:23 +11:00
Andrew Tridgell a56b8c7b67 Tools: port a couple of test sketches to PX4 2013-01-02 18:00:49 +11:00
Andrew Tridgell 374af1cd14 build: change from Arduino.mk to apm.mk 2013-01-02 17:29:37 +11:00
Pat Hickey eb530b86e8 move Arduino.mk to /mk/Arduino.mk 2012-12-20 14:52:35 +11:00
Andrew Tridgell 2760c182f5 Tools: fixed CPUInfo build under SITL 2012-12-20 14:52:34 +11:00
Andrew Tridgell 07d8690fbe Tools: convert CPUInfo to AP_HAL 2012-12-20 14:52:30 +11:00
Andrew Tridgell adf6030cfa CPUInfo: added acos(), asin() and atan2() 2012-07-05 13:00:46 +10:00
Andrew Tridgell 353186e822 CPUInfo: update with 64 bit timings 2012-05-23 17:33:33 +10:00
Andrew Tridgell bb352c6bcf don't need AP_Math.h here any more 2012-02-18 10:51:57 +11:00
Andrew Tridgell 85ecb05261 CPUInfo: added timing of sqrt() 2012-02-18 10:51:57 +11:00
Andrew Tridgell 81e52e43c1 added some notes on EEPROM speed 2012-02-13 16:22:51 +11:00
Andrew Tridgell 11ff665ca0 CPUInfo: show the speed of 64 bit maths 2011-12-19 18:52:56 +11:00
Andrew Tridgell 19781d5e4a put output of CPUInfo test in git 2011-09-17 15:06:17 +10:00
Andrew Tridgell d5b19840f0 Tools: added CPUInfo sketch
this shows the approximate cost of a wide range of common operations,
and the sizes of most data types
2011-09-17 14:58:02 +10:00