BeRTOS
Data Structures | Typedefs | Functions
stepper_avr.h File Reference

Low-level stepper timer module for AVR (inplementation). More...

#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <drv/stepper.h>

Go to the source code of this file.

Data Structures

struct  TimerCounter
 Timer contex structure. More...

Typedefs

typedef void(* irq_t )(void)
 IRQ callback function type definition.

Functions

void stepper_tc_irq_enable (struct TimerCounter *timer)
 Enable interrupt for timer counter compare event.
void stepper_tc_irq_disable (struct TimerCounter *timer)
 Disable interrupt for timer counter compare event.
void stepper_tc_setDelay (struct TimerCounter *timer, stepper_time_t delay)
 Set delay for next interrupt compare event.
void stepper_tc_resetTimer (struct TimerCounter *timer)
 Set delay for next interrupt compare event.
void FAST_FUNC stepper_tc_doPulse (struct TimerCounter *timer)
 Programm timer counter to generate a pulse on select TIO output.
void FAST_FUNC stepper_tc_skipPulse (struct TimerCounter *timer)
 Programm timer counter to not generate a pulse on select TIO output.
void stepper_tc_setup (int index, stepper_isr_t callback, struct Stepper *motor)
 Timer couter setup.
void stepper_tc_init (void)
 Timer counter init.

Detailed Description

Low-level stepper timer module for AVR (inplementation).

Author:
Daniele Basile <asterix@develer.com>

Definition in file stepper_avr.h.


Function Documentation

void stepper_tc_setup ( int  index,
stepper_isr_t  callback,
struct Stepper motor 
)

Timer couter setup.

This function apply to select timer couter all needed settings. Every settings are stored in stepper_timers[].

Timer couter setup.

Timer couter setup.

This function apply to select timer couter all needed settings. Every settings are stored in stepper_timers[].

Definition at line 332 of file stepper_at91.c.