Add atomic bit ops, fix bug in timers, add some PWM imll