trying to reduce confusion x2
This commit is contained in:
parent
b7b09e2b84
commit
1d629df884
|
@ -59,6 +59,7 @@ int brainPin_to_index(brain_pin_e brainPin);
|
|||
unsigned int getBrainPinOnchipNum(void);
|
||||
unsigned int getBrainPinTotalNum(void);
|
||||
const char *hwPortname(brain_pin_e brainPin);
|
||||
// the main usage for human-readable board-specific pin reference is convenience of error messages in case of pin conflict.
|
||||
const char * getBoardSpecificPinName(brain_pin_e brainPin);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Binary file not shown.
|
@ -182,14 +182,18 @@ public class PinoutLogic {
|
|||
}
|
||||
|
||||
public void registerBoardSpecificPinNames(VariableRegistry registry, ReaderState state) throws IOException {
|
||||
StringBuilder header = new StringBuilder("//DO NOT EDIT MANUALLY, let automation work hard.\n\n");
|
||||
for (File yamlFile : boardYamlFiles) {
|
||||
header.append("// auto-generated by PinoutLogic.java based on " + yamlFile + "\n");
|
||||
readMetaInfo(yamlFile);
|
||||
}
|
||||
registerPins(globalList, registry, state);
|
||||
|
||||
try (FileWriter getTsNameByIdFile = new FileWriter(PinoutLogic.CONFIG_BOARDS + boardName + PinoutLogic.CONNECTORS + File.separator + "generated_ts_name_by_pin.cpp")) {
|
||||
getTsNameByIdFile.append("// auto-generated by PinoutLogic.java. DO NOT EDIT MANUALLY, let automation work hard.\n\n");
|
||||
getTsNameByIdFile.append(header);
|
||||
|
||||
getTsNameByIdFile.append("#include \"pch.h\"\n\n");
|
||||
getTsNameByIdFile.append("// see comments at declaration in pin_repository.h\n");
|
||||
getTsNameByIdFile.append("const char * getBoardSpecificPinName(brain_pin_e brainPin) {\n");
|
||||
getTsNameByIdFile.append("\tswitch(brainPin) {\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue