I am trying to compile Christopher Schirner's PPMEncoder (Arduino library) for my new SparkFun SAMD21 Mini Breakout board.
My Arduino IDE version is v 1.8.19 and my OS is Win 10.
installed the Arduino SAMD Boards (32-bits ARM Cortex-M0+) in the Boards Manager v 1.8.12
copied the Additional Boards Manager URL in the text box
installed SparkFun SAMD Boards in the Boards Manager v 1.8.2
Interestingly enough, I have two possibilties for the choice of the board:
(1) Sparkfun SAMD (32-bits ARM Cortex-M0+) Boards / SparkFun SAMD21 Mini Breakout
or
(2) Sparkfun SAMD (32-bits ARM Cortex-M0+) Boards (in sketchbook) / SparkFun SAMD21 Mini Breakout
If I choose board (1) the compiler does not recognise the register names TCNT1, OCR1A, etc...
if I choose board (2) the compiler cannot find the sam.h file
Those sound like internal registers of one of the AVR chips. You're not using one of those chips. Maybe Christopher Schirner's PPMEncoder (Arduino library), whatever that is, is not compatible with SAMD21 chips?