hardware.h 473 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * hardware.h
 *
 * Created: 2/17/2018 10:28:57 PM
 *  Author: Jake
 */ 


#ifndef HARDWARE_H_
#define HARDWARE_H_

#include "pin.h"
#include "ringbuffer.h"
#include "uartport.h"
#include "spiport.h"

pin_t stlb;

ringbuffer_t up1_rbrx;
ringbuffer_t up1_rbtx;
ringbuffer_t up2_rbrx;
ringbuffer_t up2_rbtx;

uartport_t up1;
uartport_t up2;

Jake Read's avatar
Jake Read committed
27
28
29
30
31
32
33
34
35
spiport_t spi_encoder;

pin_t en_gate;
pin_t m_pwm;
pin_t dc_cal;
pin_t m_gain;
pin_t fault;
pin_t octw;

36
#endif /* HARDWARE_H_ */