![]() |
Speeduino
|
#include "pinMapping.h"#include "../../board_definition.h"#include "../../preprocessor.h"#include "../../unit_testing.h"Functions | |
| uint8_t | pinTranslate (uint8_t rawPin) |
| Translate between the pin list that appears in TS and the actual pin numbers. | |
| uint8_t | pinTranslateAnalog (uint8_t rawPin) |
| Translate a pin number (0 - 22) to the relevant Ax (analog) pin reference. | |
| static pinNumbers_t | getV02ShieldMapping (void) |
| TESTABLE_STATIC pinNumbers_t | getDefaultPinMapping (void) |
| static pinNumbers_t | getV03ShieldMapping (void) |
| static pinNumbers_t | getV04ShieldMapping (void) |
| static pinNumbers_t | getMiataNB2Mapping (void) |
| static pinNumbers_t | getMiataNA18Mapping (void) |
| static pinNumbers_t | getMiataNA16Mapping (void) |
| static pinNumbers_t | getTurtanasPcbPinMapping (void) |
| static pinNumbers_t | getDazV6V01Mapping (void) |
| static pinNumbers_t | getNO2CMapping (void) |
| static pinNumbers_t | getUA4CMapping (void) |
| static pinNumbers_t | getBlitzboxBL49spMapping (void) |
| pinNumbers_t | getPinMapping (uint8_t boardID) |
| Get the pin numbers for the relevant board, based on the boardID. | |
|
static |

|
static |

| TESTABLE_STATIC pinNumbers_t getDefaultPinMapping | ( | void | ) |


|
static |

|
static |

|
static |

|
static |

| pinNumbers_t getPinMapping | ( | uint8_t | boardID | ) |
Get the pin numbers for the relevant board, based on the boardID.
The boardID is set in the tuning SW and is used to allow the same firmware to be used across different hardware configurations with different pin layouts.


|
static |

|
static |

|
static |

|
static |

|
static |

Translate between the pin list that appears in TS and the actual pin numbers.
For the digital IO, this will simply return the same number as the rawPin value as those are mapped directly. For analog pins, it will translate them into the correct internal pin number.
| rawPin | High level pin number |
