-
Notifications
You must be signed in to change notification settings - Fork 1
/
SPI_Helper.h
38 lines (32 loc) · 1.04 KB
/
SPI_Helper.h
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
27
28
29
30
31
32
33
34
35
36
37
38
//*****************************************************************************
// Filename: SPI_Helper.h
// Author: Derek Chopp
// Last Update: 3/25/14
//
// Description: Header file for SPI helper code
//
// TODO:
// same as SPI_Helper.c
//
//*****************************************************************************
#ifndef SPI_HELPER_H_
#define SPI_HELPER_H_
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/ssi.h"
//*****************************************************************************
// Define Constants
//*****************************************************************************
#define SPI_CLOCK 8000000
//*****************************************************************************
// Function Prototypes
//*****************************************************************************
void SPI_Init();
void SPI_Send(uint8_t data);
void SPI_Wait();
#endif /* SPI_HELPER_H_ */