You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CCS-COMM_BOARD/DSP28335/CPUTimers.h

46 lines
740 B
C

/*
* CPUTimers.h
*
* Author: Aleksey Gerasimenko
* gerasimenko.aleksey.n@gmail.com
*/
#include "F28335/DSP28x_Project.h"
#include "DSP28335/CPUBase.h"
#ifndef DSP28335_CPUTIMERS_H_
#define DSP28335_CPUTIMERS_H_
namespace DSP28335
{
struct CPUTimersSetup
{
float frequency;
float period;
CPUTimersSetup():
frequency(150.0),
period(1000.0)
{}
};//end CPUTimersSetup
class CPUTimers: public DSP28335::CPUBase
{
public:
CPUTIMER_VARS& CPUTimer;
public:
CPUTimers(CPUTIMER_VARS& CPUTimer);
void setup(const CPUTimersSetup& setup);
public:
void start();
void interrupt_ack();
//
};//end class CPUTimers
} /* namespace DSP28335 */
#endif /* DSP28335_CPUTIMERS_H_ */