comparison Small_CPU/Inc/spi.h @ 38:5f11787b4f42

include in ostc4 repository
author heinrichsweikamp
date Sat, 28 Apr 2018 11:52:34 +0200
parents
children 22a1094545f3
comparison
equal deleted inserted replaced
37:ccc45c0e1ea2 38:5f11787b4f42
1 /**
2 ******************************************************************************
3 * @file spi.h
4 * @author heinrichs weikamp gmbh
5 * @version V0.0.1
6 * @date 16-Sept-2014
7 * @brief Header file for spi control
8 ******************************************************************************
9 * @attention
10 *
11 * <h2><center>&copy; COPYRIGHT(c) 2014 heinrichs weikamp</center></h2>
12 *
13 ******************************************************************************
14 */
15
16 /* Define to prevent recursive inclusion -------------------------------------*/
17 #ifndef SPI_H
18 #define SPI_H
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /* Includes ------------------------------------------------------------------*/
25 #include "stm32f4xx_hal.h"
26
27 extern SPI_HandleTypeDef hspi1;
28
29 void MX_SPI1_Init(void);
30 //void SPI_Start_single_TxRx_with_Master_and_Stop_ChipSelectControl(void);
31 void SPI_Start_single_TxRx_with_Master(void);
32 void SPI_synchronize_with_Master(void);
33 void MX_SPI_DeInit(void);
34
35 /* button adjust */
36 void MX_SPI3_Init(void);
37 void MX_SPI3_DeInit(void);
38 uint8_t SPI3_ButtonAdjust(uint8_t *arrayInput, uint8_t *arrayOutput);
39
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif /* SPI_H */
44
45 /**
46 * @}
47 */
48
49 /**
50 * @}
51 */
52
53 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/