Line data Source code
1 : #pragma once 2 : 3 : #include <rusefi_hw_enums.h> 4 : 5 : class PinRepository { 6 : public: 7 : /** 8 : * Class constructors are a great way to have simple initialization sequence 9 : */ 10 : PinRepository(); 11 33 : const char* & getBrainUsedPin(size_t idx) { 12 : /*if (idx >= getBrainPinTotalNum()) 13 : return NULL;*/ 14 33 : return PIN_USED[idx]; 15 : } 16 : 17 : const char *PIN_USED[BRAIN_PIN_TOTAL_PINS]; 18 : 19 : }; 20 : 21 : /** 22 : * See also efiSetPadUnused 23 : */ 24 : void brain_pin_markUnused(Gpio brainPin); 25 : int brainPin_to_index(Gpio brainPin);