Currently the library works in SystemCoreClock/4 scale. So if you want a 1 second period, use period=SystemCoreClock / 4;
First draft at PWM driver. Needs testing, then merging into GRBL.