Commit Graph

85 Commits

Author SHA1 Message Date
Andrew Tridgell e58b2fc51a Tools: allow CPUInfo to build on HAL_Linux 2024-03-02 17:55:43 +11:00
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
Ryan Friedman 5da30295ad Tools: Remove executable permissions and add missing shebang
* Hex files should not be executable
* .txt files should not be executable
* The DDS test listener was supposed to be executable but was missing a shebang

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-09-08 17:09:26 +10:00
David Buzz ef3687b2af Tools: cpuinfo data 2023-05-02 14:38:03 +10: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
tsubashmail@gmail.com df5b2f7911 Tools: port for STM32L4+ processor
Added support for stm32l4+ processor

- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
2023-04-14 07:48:56 +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 4f7630e29c Tools: allow for double EKF build 2021-07-10 07:20:41 +10:00
Siddharth Purohit f1c865bdd3 Tools: use program group "tool" instead of "tools" 2021-07-07 17:31:09 +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 ee83f228e1 Tools: added H743 and pixracer CPUInfo output 2019-02-26 16:18:26 +11:00
Andrew Tridgell c67ec11cc5 Tools: improved CPUInfo test 2019-02-26 16:18:26 +11:00
Andrew Tridgell 15853adb04 build: removed remaining make.inc files 2018-12-22 11:06:59 +11:00
Eugene Shamaev 797fc84e92 Tools/CPUInfo: type conversion 2018-05-22 08:35:01 +09:00
Andrew Tridgell 9096bcf7b2 Tools: fixed reference to linux-debug 2018-05-09 14:17:32 +10: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
Andrew Tridgell 35bed59bd4 Tools: Add EKF3 and remove EK1 2016-12-19 08:07:10 +11:00
Grant Morphett b507679630 CPUInfo: Updated the Makefile to use WAF commands 2016-11-15 15:54:30 -02: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
Gustavo Jose de Sousa b251d14778 waf: ardupilotwaf: allow multiple program groups for program
The program_dir defaults to the first group's name. That feature will be useful
for "copter" build command, which will build all frame types.
2016-03-26 15:43:08 -03:00
Gustavo Jose de Sousa 5699bf04d0 waf: rename parameter blddestdir to program_group
It's a good idea to consolidate the idea that all programs belong to a group
that has it's own directory.
2016-02-01 14:08:32 -02:00
Gustavo Jose de Sousa a2d2661765 waf: use methods from bld instead of ardupilotwaf for the remaining 2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa a35c0d48b0 waf: ardupilotwaf: rename program to ap_program
Make the rename so that there is no name clashes when defining it as a taskgen
method.
2016-01-22 20:10:28 -02:00
Gustavo Jose de Sousa ad0f2080c6 waf: reorganize destination of binaries in Tools
It makes more sense for Hello to be an example and for CPUInfo and Replay to be
placed inside a `build/<board>/tools/` directory.
2016-01-15 16:46:41 -02:00
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