Commit Graph

29 Commits

Author SHA1 Message Date
Andrew Tridgell b03728853e Tools: allow CPUInfo to build on systems without ESC telem 2024-01-07 09:36:29 +11:00
Andrew Tridgell ff22c103b2 Tools: allow div1000 testing on all boards 2023-12-21 09:09:11 +11:00
Andrew Tridgell 388fab1ef8 Tools: added testing of _hrt_div1000() 2023-12-19 11:47:24 +11:00
Andrew Tridgell e33f0269d3 Tools: improved benchmarking of time functions 2023-12-19 11:47:24 +11:00
Andy Piper d04f8fe655 CPUInfo: use HAL_XIP_ENABLED 2023-04-28 08:31:15 +10:00
Andy Piper 48e1959737 CPUInfo: build fix on H7
don't disable data cache on STMH730 on CPUInfo
2023-04-28 08:31:15 +10:00
Andrew Tridgell 6944e73c57 Tools: fixed build of CPUInfo and other tools 2023-04-10 16:48:50 +10:00
Michael Oborne a7a903e110 CPUInfo: add DSP 2022-03-08 14:26:57 -08:00
Andy Piper f6c07df162 Tools: make CPUInfo test fairer, add data for external flash
fix CPUInfo on linux
make cache disabling optional in CPUInfo
2022-02-09 12:47:55 +00:00
Andrew Tridgell 41534d816c CPUInfo: added timing of micros16() 2021-10-02 18:26:39 +10:00
Siddharth Purohit 47a3298236 CPUInfo: print time upto 4 decimal points 2021-09-01 17:10:53 +10:00
Andrew Tridgell 1284f1bd8a Tools: removed separate recursive sempahore test 2020-01-19 20:19:30 +11:00
Andrew Tridgell 5c4dda38b5 Tools: Added semaphore ops to CPUInfo
taking a semaphore on F765 takes about 1.3us. About 1.5us for a
recursive semaphore

On a F405 it costs about 2.6us for semaphore, about 2.8us for
recursive semaphore
2020-01-18 18:19:26 +11:00
Andrew Tridgell ea4d294ed1 Tools: added micros64() to CPUInfo 2019-12-09 12:43:39 +11:00
Andrew Tridgell e00d242688 Tools: added EKF maths to CPUInfo 2019-03-04 11:00:40 +11:00
Andrew Tridgell ec0e6137e3 Tools: updated CPUInfo 2019-03-01 11:39:12 +11:00
Andrew Tridgell c67ec11cc5 Tools: improved CPUInfo test 2019-02-26 16:18:26 +11:00
Eugene Shamaev 797fc84e92 Tools/CPUInfo: type conversion 2018-05-22 08:35:01 +09:00
Pierre Kancir c73584c9b8 CPUInfo: example fix travis warning
missing function declaration
implicit cast
some style fix
2017-04-13 19:56:16 +01:00
murata 334da0d9d5 Tools: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Gustavo Jose de Sousa de96ca95a6 CPUInfo: cast result of sizeof to unsigned long
That fix works when size_t is 32 or 64 bits.
2016-05-18 15:36:48 -03:00
Lucas De Marchi c82f28f35a Tools: CPUInfo: fix warnings on printf
../../Tools/CPUInfo/CPUInfo.cpp:21:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
  hal.console->printf("char      : %d\n", sizeof(char));
                                                      ^
And so on.

Ideally for sizeof() which returns size_t we would use %zu, but that's not
implemented by our version of printf. So use %lu which should be ok in all of
our boards.
2016-05-04 08:58:37 -03:00
Ricardo de Almeida Gonzaga 5bd034a5a8 Global: start using cmath instead of math.h 2016-04-05 21:06:19 -07:00
Caio Marcelo de Oliveira Filho ee7e3e34c0 Tools: CPUInfo use millis/micros/panic functions 2015-11-20 12:26:48 +09:00
Caio Marcelo de Oliveira Filho 36ffef97c0 CPUInfo: remove unnecessary includes 2015-10-21 09:16:10 +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