pic32_c.h | raw changeset files shortlog |
1.1 --- a/pic32_c.h Sun Oct 21 19:16:10 2018 +0200 1.2 +++ b/pic32_c.h Sun Oct 21 23:25:55 2018 +0200 1.3 @@ -79,6 +79,11 @@ 1.4 return OCBASE + reg + (unit - OCMIN) * OCSTEP; 1.5 } 1.6 1.7 +static inline uint32_t PM_REG(int port, uint32_t reg) 1.8 +{ 1.9 + return PMBASE + reg + (port - PMMIN) * PMSTEP; 1.10 +} 1.11 + 1.12 static inline uint32_t TIMER_REG(int timer, uint32_t reg) 1.13 { 1.14 return TIMERBASE + reg + (timer - TIMERMIN) * TIMERSTEP;