gr55xx_hal_msio_ex.h
Go to the documentation of this file.
1
51
/* Define to prevent recursive inclusion -------------------------------------*/
52
#ifndef __GR55xx_HAL_MSIO_EX_H__
53
#define __GR55xx_HAL_MSIO_EX_H__
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
59
/* Includes ------------------------------------------------------------------*/
60
#include "
gr55xx_hal_def.h
"
61
#include "
gr55xx_ll_msio.h
"
62
63
/* Exported types ------------------------------------------------------------*/
64
70
/* Exported constants --------------------------------------------------------*/
78
#define MSIO_MUX_0 LL_MSIO_MUX_0
79
#define MSIO_MUX_1 LL_MSIO_MUX_1
80
#define MSIO_MUX_2 LL_MSIO_MUX_2
81
#define MSIO_MUX_3 LL_MSIO_MUX_3
82
#define MSIO_MUX_4 LL_MSIO_MUX_4
83
#define MSIO_MUX_5 LL_MSIO_MUX_5
84
#define MSIO_MUX_6 LL_MSIO_MUX_6
85
#define MSIO_MUX_7 LL_MSIO_MUX_7
92
#if defined (GR551xx)
93
/*---------------------------------- GR551xx ------------------------------*/
94
99
#define MSIO_PIN_MUX_GPIO MSIO_MUX_7
106
#define MSIO_PIN0_MUX_PWM0_A MSIO_MUX_0
107
#define MSIO_PIN0_MUX_UART0_TX MSIO_MUX_1
108
#define MSIO_PIN0_MUX_UART1_TX MSIO_MUX_2
109
#define MSIO_PIN0_MUX_I2C0_SCL MSIO_MUX_3
110
#define MSIO_PIN0_MUX_I2C1_SCL MSIO_MUX_4
116
#define MSIO_PIN1_MUX_PWM0_B MSIO_MUX_0
117
#define MSIO_PIN1_MUX_UART0_RX MSIO_MUX_1
118
#define MSIO_PIN1_MUX_UART1_RX MSIO_MUX_2
119
#define MSIO_PIN1_MUX_I2C0_SDA MSIO_MUX_3
120
#define MSIO_PIN1_MUX_I2C1_SDA MSIO_MUX_4
126
#define MSIO_PIN2_MUX_PWM0_C MSIO_MUX_0
132
#define MSIO_PIN3_MUX_PWM1_A MSIO_MUX_0
133
#define MSIO_PIN3_MUX_UART0_RTS MSIO_MUX_1
134
#define MSIO_PIN3_MUX_UART1_RTS MSIO_MUX_2
135
#define MSIO_PIN3_MUX_I2C0_SCL MSIO_MUX_3
136
#define MSIO_PIN3_MUX_I2C1_SCL MSIO_MUX_4
142
#define MSIO_PIN4_MUX_PWM1_B MSIO_MUX_0
143
#define MSIO_PIN4_MUX_UART0_CTS MSIO_MUX_1
144
#define MSIO_PIN4_MUX_UART1_CTS MSIO_MUX_2
145
#define MSIO_PIN4_MUX_I2C0_SDA MSIO_MUX_3
146
#define MSIO_PIN4_MUX_I2C1_SDA MSIO_MUX_4
154
#define IS_MSIO_MUX(__MUX__) (((__MUX__) <= MSIO_MUX_7))
155
156
/*------------------------------------------------------------------------------------------*/
157
#endif
/* GR551xx */
158
165
#ifdef __cplusplus
166
}
167
#endif
168
169
#endif
/* __GR55xx_HAL_MSIO_EX_H__ */
170
gr55xx_ll_msio.h
Header file containing functions prototypes of MSIO LL library.
gr55xx_hal_def.h
This file contains HAL common definitions, enumeration, macros and structures definitions.