Open fweiss opened 2 months ago
The intention of subclassing PWMTimer from Timer is to interpret the GPTMTBILR and GPTMTBPR as a single 24-bit value. Although Register is inherited in Timer, if it's left out of the PWMTimer declaration, the compiler then complains with error:
include/timers.h:92:5: error: 'RegisterSpan' does not name a type
RegisterSpan<R.GPTMTBILR, 16, R.GPTMTBPR, 8> pwmInterval;
So there are two puzzles here:
In PWTimer the Register class is used as a base class twice. Getting a compiler warning, but maybe only in env:asm-listing.
The full compiler warning is:
Solution may be: