Skip to content

Commit

Permalink
Move GPIO bus specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Nov 29, 2023
1 parent 3e81eff commit 4330a40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions cpp/buses/gpiobus.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,12 @@ class GPIOBUS : public BUS
virtual bool WaitREQ(bool) = 0;
virtual bool WaitACK(bool) = 0;

virtual void EnableIRQ() = 0;
virtual void EnableIRQ() = 0;
virtual void DisableIRQ() = 0;

// Set GPIO output signal
virtual void PinSetSignal(int, bool) = 0;

// Set GPIO drive strength
virtual void SetSignalDriveStrength(uint32_t) = 0;

mode_e operation_mode = mode_e::TARGET;

private:
Expand Down
4 changes: 3 additions & 1 deletion cpp/buses/gpiobus_raspberry.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ class GPIOBUS_Raspberry : public GPIOBUS
void PinConfig(int, int) override;
void PullConfig(int, int) override;
void PinSetSignal(int, bool) override;
void SetSignalDriveStrength(uint32_t) override;

// Set GPIO drive strength
void SetSignalDriveStrength(uint32_t);

static uint32_t get_dt_ranges(const char *, uint32_t);

Expand Down
4 changes: 0 additions & 4 deletions cpp/buses/in_process_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ class InProcessBus: public GPIOBUS
{
assert(false);
}
void SetSignalDriveStrength(uint32_t) override
{
assert(false);
}

mutex write_locker;

Expand Down

0 comments on commit 4330a40

Please sign in to comment.