You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
602 B
34 lines
602 B
1 year ago
|
#ifndef _msp_SSPIx_H
|
||
|
#define _msp_SSPIx_H
|
||
|
|
||
|
#include "../bsp/bsp_config.h"
|
||
|
#include "../ctask/tick.h"
|
||
|
|
||
|
#include "msp_uart0.h"
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
vU32 n;
|
||
|
vType sh;
|
||
|
unsigned char sal;
|
||
|
vType (*pf_MISO_get)(void);
|
||
|
void (*pf_MOSI_set)(vType x);
|
||
|
void (*pf_SCLK_set)(vType x);
|
||
|
// void (*pf_init)(void);
|
||
|
void (*pf_close)(void);
|
||
|
}TS_sspi;
|
||
|
|
||
|
//extern TS_sspi ts_ssp1;
|
||
|
|
||
|
extern u8 L0_SSPIx_ReadOneByte(TS_sspi *p);
|
||
|
|
||
|
///extern void L1_SSPIxcs_WriteOneByte(TS_sspi *p,unsigned char command);
|
||
|
|
||
|
extern void L0_SSPIx_WriteOneByte(TS_sspi *p,unsigned char command);
|
||
|
|
||
|
|
||
|
|
||
|
#endif////_msp_SPI_sim_H
|
||
|
|
||
|
|