Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

io.cc 397B

123456789101112131415
  1. #include "io.h"
  2. #include "Hardware.h"
  3. #include <cstdio>
  4. void IOWR( uint32_t base, uint32_t REG_CONFIG_OFFSET, uint32_t value ) {
  5. auto hardware = Hardware::getInstance();
  6. hardware->write( base, REG_CONFIG_OFFSET, value );
  7. }
  8. uint32_t IORD( uint32_t base, uint32_t REG_CONFIG_OFFSET ) {
  9. auto hardware = Hardware::getInstance();
  10. return hardware->read( base, REG_CONFIG_OFFSET );
  11. }