Common source code for the helper tools dts_custom.bas and dts_universal.bas. More...
#include "../pruio/pruio_pins.bi"
Go to the source code of this file.
Macros | |
#define | PMUX_NAME /* "pruio-" */ |
The name of the pinmux folders in /sys/devices/ocp.* (must match the definition in pruio.bas). | |
#define | ALL_START |
The start of the source file. More... | |
#define | ENTRY_EXCL(_T_) /* !"\n """ & _T_ & """," */ |
An entry line for the exclusive-use = section. | |
#define | ALL_END |
The end of the source file (pinmux setting). More... | |
#define | FRAG0_START |
The start of fragment0 in the source file (pinmux settings). More... | |
#define | FRAG0_END |
The end of fragment0 in the source file (pinmux settings). More... | |
#define | FRAG1_START |
The start of fragment1 in the source file (pinmux_helper). More... | |
#define | FRAG1_END |
The end of fragment1 in the source file (pinmux_helper). More... | |
#define | GPIO_DEF |
The default settings for the GPIO modes. More... | |
#define | PIN_DEL(_A_) /* FOR i AS LONG = 0 TO UBOUND(_A_) : M(_A_(i)) = "" : NEXT */ |
Macro to delete the pin configuration for a pin set array. | |
Typedefs | |
typedef UBYTE | uint8 |
Type alias. | |
Enumerations | |
enum | { NP = &b001000, PU = &b010000, PD = &b000000, RX = &b100000, _O_ = NP, _I_ = RX + PD, I_O = RX + NP, IOD = RX + NP, TMRi = _I_, TMRo = _O_, CAPi = _I_, CAPo = _O_, QEPi = _I_, QEPo = _O_, PWMi = _I_, PWMo = _O_ } |
Enumerators for pin modes. More... | |
Functions | |
FUNCTION_AS_STRING | f0custom (BYVAL_AS_UBYTE I) |
Create lines for fragment0 for all settings of a pin. More... | |
FUNCTION_AS_STRING | f0entry (BYVAL_AS_UBYTE I) |
Create lines for fragment0 for all settings of a pin. More... | |
FUNCTION_AS_STRING | f1entry (BYVAL_AS_UBYTE I) |
Create lines for fragment1 for all settings of a pin. More... | |
FUNCTION_CDECL_AS_ZSTRING_PTR | nameBall (BYVAL_AS_UBYTE Ball) |
Get header pin connected to CPU ball. More... | |
Variables | |
STRING | M [109+1] |
The array to be filled with modus settings for all pins. | |
Common source code for the helper tools dts_custom.bas and dts_universal.bas.
This file contains common source code used by the device tree overlay helper tools dts_custom.bas and dts_universal.bas. Do not edit (experts only).
Licence: GPLv3
Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net
Definition in file pruiotools.bas.
#define ALL_END |
The end of the source file (pinmux setting).
Definition at line 44 of file pruiotools.bas.
#define ALL_START |
The start of the source file.
Definition at line 23 of file pruiotools.bas.
#define FRAG0_END |
The end of fragment0 in the source file (pinmux settings).
Definition at line 63 of file pruiotools.bas.
#define FRAG0_START |
The start of fragment0 in the source file (pinmux settings).
Definition at line 55 of file pruiotools.bas.
#define FRAG1_END |
The end of fragment1 in the source file (pinmux_helper).
Definition at line 75 of file pruiotools.bas.
#define FRAG1_START |
The start of fragment1 in the source file (pinmux_helper).
Definition at line 69 of file pruiotools.bas.
#define GPIO_DEF |
The default settings for the GPIO modes.
Definition at line 103 of file pruiotools.bas.
anonymous enum |
Enumerators for pin modes.
Definition at line 81 of file pruiotools.bas.
FUNCTION_AS_STRING f0custom | ( | BYVAL_AS_UBYTE | I | ) |
Create lines for fragment0 for all settings of a pin.
I | The index (ball number) of the pin in global array M. |
FIXME
Definition at line 125 of file pruiotools.bas.
FUNCTION_AS_STRING f0entry | ( | BYVAL_AS_UBYTE | I | ) |
Create lines for fragment0 for all settings of a pin.
I | The index (ball number) of the pin in global array M. |
FIXME
Definition at line 146 of file pruiotools.bas.
FUNCTION_AS_STRING f1entry | ( | BYVAL_AS_UBYTE | I | ) |
Create lines for fragment1 for all settings of a pin.
I | The index (ball number) of the pin in global array M. |
FIXME
Definition at line 177 of file pruiotools.bas.
FUNCTION_CDECL_AS_ZSTRING_PTR nameBall | ( | BYVAL_AS_UBYTE | Ball | ) |
Get header pin connected to CPU ball.
Ball | The CPU ball number. |
This function creates a text description of the header pin connected to a CPU ball. The returned string is owned by this function and must not be freed.
When the CPU ball is not connected to a header pin, this function returns 0 (zero).
Definition at line 216 of file pruiotools.bas.