Skip to content

Commit

Permalink
Fix Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 11, 2023
1 parent 4271f3b commit 0033092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cpp/buses/rpi_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ bool RpiBus::GetREQ() const
return GetSignal(PIN_REQ);
}

void RpiBus::SetREQ(bool ast)
inline void RpiBus::SetREQ(bool ast)
{
SetSignal(PIN_REQ, ast);
}

uint8_t RpiBus::GetDAT()
inline uint8_t RpiBus::GetDAT()
{
return static_cast<uint8_t>(Acquire() >> PIN_DT0);
}
Expand Down
14 changes: 7 additions & 7 deletions cpp/buses/rpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ class RpiBus : public GpioBus
void SetIO(bool ast) override;

bool GetREQ() const override;
inline void SetREQ(bool ast) override;
void SetREQ(bool ast) override;

inline uint8_t GetDAT() override;
inline void SetDAT(uint8_t) override;
uint8_t GetDAT() override;
void SetDAT(uint8_t) override;

bool WaitREQ(bool ast) override
{
Expand Down Expand Up @@ -150,16 +150,16 @@ class RpiBus : public GpioBus

#ifndef NO_IRQ_DISABLE
// Interrupt enabled state
volatile uint32_t irptenb; // NOSONAR volatile needed for register access
volatile uint32_t irptenb;

// Interupt control target CPU
volatile int tintcore; // NOSONAR volatile needed for register access
volatile int tintcore;

// Interupt control
volatile uint32_t tintctl; // NOSONAR volatile needed for register access
volatile uint32_t tintctl;

// GICC priority setting
volatile uint32_t giccpmr; // NOSONAR volatile needed for register access
volatile uint32_t giccpmr;
#endif

// GIC Interrupt distributor register
Expand Down

0 comments on commit 0033092

Please sign in to comment.