Multi Half-Bridge
4.0.0
Library of Infineon's Multi Half-Bridge IC controllers family
tle94112-platf-mtb.hpp
Go to the documentation of this file.
1
9
#ifndef TLE94112_PLATF_MTB_HPP_
10
#define TLE94112_PLATF_MTB_HPP_
11
21
#if !defined (KIT_SPI_MASTER_MOSI) || !defined (KIT_SPI_MASTER_MISO) || \
22
!defined (KIT_SPI_MASTER_SCLK) || !defined (KIT_SPI_MASTER_SS)
23
24
#if defined (CYBSP_SPI_MOSI) && defined (CYBSP_SPI_MISO) || \
25
defined (CYBSP_SPI_CLK) && defined (CYBSP_SPI_CS)
26
#define KIT_SPI_MASTER_MOSI (CYBSP_SPI_MOSI)
27
#define KIT_SPI_MASTER_MISO (CYBSP_SPI_MISO)
28
#define KIT_SPI_MASTER_SCLK (CYBSP_SPI_CLK)
29
#define KIT_SPI_MASTER_SS (CYBSP_SPI_CS)
30
#elif defined (TARGET_CY8CPROTO_063_BLE)
31
#define KIT_SPI_MASTER_MOSI (P9_0)
32
#define KIT_SPI_MASTER_MISO (P9_1)
33
#define KIT_SPI_MASTER_SCLK (P9_2)
34
#define KIT_SPI_MASTER_SS (P9_3)
35
#elif defined (TARGET_CY8CPROTO_062S3_4343W)
36
#define KIT_SPI_MASTER_MOSI (P5_0)
37
#define KIT_SPI_MASTER_MISO (P5_1)
38
#define KIT_SPI_MASTER_SCLK (P11_2)
39
#define KIT_SPI_MASTER_SS (P11_3)
40
#elif defined (TARGET_CY8CPROTO_062_4343W)
41
#define KIT_SPI_MASTER_MOSI (P6_0)
42
#define KIT_SPI_MASTER_MISO (P6_1)
43
#define KIT_SPI_MASTER_SCLK (P6_2)
44
#define KIT_SPI_MASTER_SS (P6_3)
45
#else
46
#error Unsupported kit. Define pins for SPI master.
47
#endif
48
49
#endif
50
54
#define TLE94112_PIN_CS1 KIT_SPI_MASTER_SS
55
61
#ifndef TLE94112_PIN_CS2
62
#define TLE94112_PIN_CS2 (P5_6)
63
#endif
68
#ifndef TLE94112_PIN_EN
69
#define TLE94112_PIN_EN (P5_7)
70
#endif
74
#endif
src
framework
modustoolbox
wrapper
tle94112-platf-mtb.hpp
Generated by
1.9.1