-
Notifications
You must be signed in to change notification settings - Fork 0
/
at_spi.h
43 lines (35 loc) · 1.05 KB
/
at_spi.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
39
40
41
42
43
/*
* at_spi.h
*
* Created on: Aug 19, 2019
* Author: junaidkhan
*/
#ifndef AT_SPI_H_
#define AT_SPI_H_
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "inc/hw_ssi.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "driverlib/ssi.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/interrupt.h"
#include "inc/tm4c123gh6pm.h"
//*****************************************************************************
//
// Interface Macros for SPI Com b/w Master & Adesto Flash Memory
//
//*****************************************************************************
#define SSI_DATA 8 // Transfer bits
//*****************************************************************************
//
// Interface Function Declarations for SPI Com b/w Master & Adesto Flash Memory
//
//*****************************************************************************
void SPI_Init(void);
uint8_t TransferByte(uint8_t Byte);
void SSI0IntHandler(void);
#endif /* AT_SPI_H_ */