HCoop
/
clinton
/
Smoothieware.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b1c862c4ec1346a2b17222990423ef319c923fc4
[clinton/Smoothieware.git]
/
src
/
libs
/
spi_hal.h
1
#ifndef _SPI_HAL_H
2
#define _SPI_HAL_H
3
4
#include
"lpc17xx_ssp.h"
5
6
#ifdef __LPC17XX__
7
#include <PinNames.h>
8
typedef
struct
{
9
uint8_t
port
;
10
uint8_t
pin
;
11
}
Pin_t
;
12
13
typedef
LPC_SSP_TypeDef SPI_REG
;
14
typedef
LPC_GPDMACH_TypeDef DMA_REG
;
15
16
#define N_SPI_INTERRUPT_ROUTINES 2
17
#endif
18
19
#endif
/* _SPI_HAL_H */