LCOV - code coverage report
Current view: top level - firmware/hw_layer - plain_pin_repository.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2024-12-19 02:33:10 Functions: 1 1 100.0 %

          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);

Generated by: LCOV version 1.14