15 lines
456 B
C
15 lines
456 B
C
|
|
#ifndef _USR_BSP_GPIO_H_
|
|||
|
|
#define _USR_BSP_GPIO_H_
|
|||
|
|
|
|||
|
|
#include <stdbool.h>
|
|||
|
|
#include <stdint.h>
|
|||
|
|
|
|||
|
|
#define USR_GPIO_OUT_HIGH 1 // <20><><EFBFBD><EFBFBD>GPIO<49><4F><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD>ƽ
|
|||
|
|
#define USR_GPIO_OUT_LOW 0 // <20><><EFBFBD><EFBFBD>GPIO<49><4F><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD>ƽ
|
|||
|
|
|
|||
|
|
int8_t usr_bsp_gpio_init(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32PinIO, uint32_t ui32PinType);
|
|||
|
|
int8_t usr_bsp_gpio_set_output(uint32_t ui32Port, uint8_t ui8Pins, int out_mode);
|
|||
|
|
uint8_t usr_bsp_gpio_get_input(uint32_t ui32Port, uint8_t ui8Pins);
|
|||
|
|
|
|||
|
|
#endif
|