File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -814,18 +814,20 @@ GpioBase* gpioBase(GpioType type) {
814
814
return ptr;
815
815
}
816
816
817
- BasePinPtr gpioRegister (GpioBase& base, unsigned char gpio) {
817
+ BasePinPtr gpioRegister (GpioBase& base, unsigned char gpio,
818
+ espurna::SourceLocation source_location)
819
+ {
818
820
BasePinPtr result;
819
821
820
- if (gpioLock (base, gpio)) {
822
+ if (gpioLock (base, gpio, source_location )) {
821
823
result = base.pin (gpio);
822
824
}
823
825
824
826
return result;
825
827
}
826
828
827
- BasePinPtr gpioRegister (unsigned char gpio) {
828
- return gpioRegister (hardwareGpio (), gpio);
829
+ BasePinPtr gpioRegister (unsigned char gpio, espurna::SourceLocation source_location ) {
830
+ return gpioRegister (hardwareGpio (), gpio, source_location );
829
831
}
830
832
831
833
void gpioSetup () {
Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ GpioBase* gpioBase(GpioType);
55
55
GpioBase& hardwareGpio ();
56
56
void hardwareGpioIgnore (unsigned char gpio);
57
57
58
- BasePinPtr gpioRegister (GpioBase& base, unsigned char gpio);
59
- BasePinPtr gpioRegister (unsigned char gpio);
60
-
61
58
void gpioLockOrigin (espurna::gpio::Origin);
62
59
63
60
void gpioSetup ();
@@ -131,3 +128,8 @@ inline bool gpioLocked(const GpioBase& base, unsigned char gpio) {
131
128
inline bool gpioLocked (unsigned char gpio) {
132
129
return gpioLocked (hardwareGpio (), gpio);
133
130
}
131
+
132
+ BasePinPtr gpioRegister (GpioBase& base, unsigned char gpio,
133
+ espurna::SourceLocation source_location = espurna::make_source_location());
134
+ BasePinPtr gpioRegister (unsigned char gpio,
135
+ espurna::SourceLocation source_location = espurna::make_source_location());
You can’t perform that action at this time.
0 commit comments