#include "pwm.h" //16bit Pwm16b::Pwm16b( volatile unsigned char *timerControlRegisterA, volatile unsigned char *timerControlRegisterB, volatile uint16_t *compareRegisterA, volatile uint16_t *compareRegisterB, volatile uint16_t *inputCaptureRegister, const uint8_t speed, const bool enableA, const bool enableB) { _timerControlRegisterA = timerControlRegisterA; _compareRegisterA = compareRegisterA; _compareRegisterB = compareRegisterB; _enableA =enableA; _enableB =enableB; *_timerControlRegisterA = 0x00; *timerControlRegisterB = 0x00; *inputCaptureRegister = 0xFFFF; *timerControlRegisterB |= (1<