Example: analyse the subsystems configurations. More...
#include "BBB/pruio.bi"#include "BBB/pruio_boardpins.bi"
Go to the source code of this file.
Macros | |
| #define | OUT_TYPE /* Init ' alternative: Conf */ |
| The type of the output (either Init or Conf). | |
| #define | REG(_R_) /* RIGHT(" " & #_R_, 17) & ": " & HEX(.##_R_, SIZEOF(.##_R_) * 2) */ |
| Output the context of a single register. | |
| #define | DEV(_N_) |
| Output the start of a set. More... | |
| #define | BALL_OUT(OUT_TYPE) |
| Output the CPU ball configuration. More... | |
| #define | GPIO_OUT(OUT_TYPE) |
| Output the configuration of all GPIO subsystems. | |
| #define | TIMER_OUT(OUT_TYPE) |
| Output the configuration of all TIMER subsystems. More... | |
| #define | PWMSS_OUT(OUT_TYPE) |
| Output the configuration of all PWMSS subsystems. | |
| #define | ADC_OUT(OUT_TYPE) |
| Output the configuration of the ADC subsystem. | |
Functions | |
| int | main () |
Variables | |
| VAR | io = NEW PruIo |
| Create a PruIo structure, wakeup subsystems. | |
| VAR | typ = "" |
| Board type. | |
| VAR | pins = "" |
| Array of board specific ball numbers. | |
Example: analyse the subsystems configurations.
This file contains an example on how to use libpruio to read the configurations of the subsystems (initial and corrent). It creates a PruIo structure containing the data and then prints out in a human-readable form. You may 'borrow' some code for debugging purposes in your code. Find a functional description in section analyse.
Licence: GPLv3, Copyright 2014-2023 by Thomas{ doT ]Freiherr[ At ]gmx[ DoT }net
Compile by: fbc -w all analyse.bas
Definition in file analyse.bas.
| #define BALL_OUT | ( | OUT_TYPE | ) |
Output the CPU ball configuration.
Definition at line 35 of file analyse.bas.
| #define DEV | ( | _N_ | ) |
Output the start of a set.
Definition at line 32 of file analyse.bas.
| #define TIMER_OUT | ( | OUT_TYPE | ) |
Output the configuration of all TIMER subsystems.
Definition at line 41 of file analyse.bas.
| int main | ( | ) |
The main function.
Definition at line 85 of file analyse.bas.
