JoachimSchurig / CppGPIO

C++14 GPIO library for embedded systems on Linux
99 stars 27 forks source link

fix peripherals_base for pi 4 #10

Closed paulh002 closed 2 years ago

paulh002 commented 2 years ago

Use bcm_host_get_peripheral_address() to get base address for peripheral to support raspberry pi 4

JoachimSchurig commented 2 years ago

thanks for the PR - I took a slightly different approach, to keep backward compatibility