mppt/Hardware/inc/gpio.h

56 lines
1.2 KiB
C
Raw Normal View History

2024-07-11 06:58:55 +00:00
/*
* gpio.h
*
* Created on: 2024<EFBFBD><EFBFBD>7<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>
* Author: psx
*/
#ifndef HARDWARE_INC_GPIO_H_
#define HARDWARE_INC_GPIO_H_
#include "debug.h"
/* <20><><EFBFBD><EFBFBD>̫<EFBFBD><CCAB><EFBFBD>ܰ嵼ͨmos */
2024-07-13 02:12:30 +00:00
/* <20>͵<EFBFBD>ƽmos<6F>ܵ<EFBFBD>ͨ */
2024-07-11 06:58:55 +00:00
/* G_FFMOS_CON1 --> PA15 */
#define G_FFMOS_CON1_GPIO GPIOA
#define G_FFMOS_CON1_PIN GPIO_Pin_15
/* G_FFMOS_CON2 --> PB3 */
#define G_FFMOS_CON2_GPIO GPIOB
#define G_FFMOS_CON2_PIN GPIO_Pin_3
void G_FFMOS_CON_Init(void);
/* <20><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE> */
/* RUN_LED --> PA8 */
#define RUN_LED_GPIO GPIOA
#define RUN_LED_PIN GPIO_Pin_8
void RUN_LED_Init(void);
/* <20><><EFBFBD>Ź<EFBFBD> */
/* WDI_INPUT --> PC13 */
/* Ӳ<><D3B2><EFBFBD>°汾<C2B0><E6B1BE>Ϊ WDI_INPUT --> PA11 */
#define WDI_INPUT_GPIO GPIOA
#define WDI_INPUT_PIN GPIO_Pin_11
void WDI_INPUT_Init(void);
/* <20><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
/* BEEP --> PA12 */
#define BEEP_GPIO GPIOA
#define BEEP_PIN GPIO_Pin_12
void BEEP_Init(void);
/* <20><><EFBFBD>Ʒŵ<C6B7><C5B5><EFBFBD><EFBFBD><EFBFBD> */
2024-07-13 02:12:30 +00:00
/* <20>͵<EFBFBD>ƽ<EFBFBD>ر<EFBFBD> */
2024-07-11 06:58:55 +00:00
/* POW_OUT_CON --> PB8 */
#define POW_OUT_CON_GPIO GPIOB
#define POW_OUT_CON_PIN GPIO_Pin_8
void POW_OUT_CON_Init(void);
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
/* DSG_PROT --> PB2 */
/* <20>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD>ʱΪ<CAB1>͵<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϴ<D0B6><CFB4><EFBFBD> */
#define DSG_PROT_GPIO GPIOB
#define DSG_PROT_PIN GPIO_Pin_2
void DSG_PROT_Init(void);
#endif /* HARDWARE_INC_GPIO_H_ */