Project

General

Profile

Revision 1251

View differences:

hardware_encoders.c
1
#include "hardware_encoders.h"
1
#include "hardware_dynamos.h"
2 2

  
3 3
volatile int16_t count_l=0, count_r=0;
4 4

  
......
12 12
	EIMSK = _BV(INT4) | _BV(INT5);
13 13
  sei();
14 14
  
15
  //enable the 5V switching regulator to power the encoders
15
  //enable the 5V switching regulator to power the dynamos
16 16
  DDRB |= _BV(PB4);
17 17
  PORTB &= ~_BV(PB4);
18 18

  
19 19
}
20 20

  
21
void encoders_reset (void)
21
void dynamos_reset (void)
22 22
{
23 23
  SYNC
24 24
  {
......
48 48
}
49 49

  
50 50

  
51
void encoders_read (int16_t *left, int16_t *right)
51
void dynamos_read (int16_t *left, int16_t *right)
52 52
{
53 53
  SYNC
54 54
  {

Also available in: Unified diff