EDF - OnePIC MCU  v1.1.0
source/8bit/OnePIC_8bit_timer.c File Reference

contains all timer related tasks such as: More...

#include "OnePIC_timer.h"
#include <stdint.h>
#include "Compiler.h"
#include "OnePIC_int.h"
Include dependency graph for OnePIC_8bit_timer.c:

Go to the source code of this file.

Functions

void EDF_TMR_ClockSourceSelect (TMR_MODULE_ID index, EDF_TMR_CLOCK_SOURCE source)
 selects whether or not the source will be internal or external
void EDF_TMR_StopInIdleDisable (TMR_MODULE_ID index)
 disables the timer source
void EDF_TMR_GateDisable (TMR_MODULE_ID index)
 disables the timer's gate if used
void EDF_TMR_PrescalerSet (TMR_MODULE_ID index, EDF_TMR_PRESCALE prescaler)
 sets the prescaler for the timer
void EDF_TMR_Start (TMR_MODULE_ID index)
 starts te timer
void EDF_TMR_Stop (TMR_MODULE_ID index)
 stops the timer
void EDF_TMR_CounterSet (TMR_MODULE_ID index, uint16_t value)
 loads the respective period register (PR) register

Detailed Description

contains all timer related tasks such as:

  • Turning ON/OFF the timer
  • Setting prescaler
  • Loading PR register (rollover limit)

Definition in file OnePIC_8bit_timer.c.