You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
448 B
22 lines
448 B
#include "baseTimer.h"
|
|
#include "Arduino.h"
|
|
#include "types.h"
|
|
|
|
namespace TeensyTimerTool
|
|
{
|
|
|
|
BaseTimer::BaseTimer(TimerGenerator* generator, bool periodic)
|
|
: timerGenerator(generator)
|
|
{
|
|
this->timerGenerator = generator;
|
|
this->timerChannel = nullptr;
|
|
this->isPeriodic = periodic;
|
|
}
|
|
|
|
errorCode BaseTimer::setPrescaler(int psc)
|
|
{
|
|
this->prescaler = psc;
|
|
return errorCode::OK;
|
|
}
|
|
|
|
} |