Blame view

build6/epsilon-master/ion/src/device/regs/pwr.h 370 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  #ifndef REGS_PWR_H
  #define REGS_PWR_H
  
  #include "register.h"
  
  class PWR {
  public:
    class CR : Register32 {
    public:
      REGS_BOOL_FIELD(LPDS, 0);
      REGS_BOOL_FIELD(PPDS, 1);
      REGS_BOOL_FIELD(FPDS, 9);
    };
  
    constexpr PWR() {};
    REGS_REGISTER_AT(CR, 0x00);
  private:
    constexpr uint32_t Base() const {
      return 0x40007000;
    };
  };
  
  constexpr PWR PWR;
  
  #endif