15 lines
427 B
C
15 lines
427 B
C
|
|
#ifndef _BSPGPIO_H_
|
|||
|
|
#define _BSPGPIO_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 BspGPIOInit(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32PinIO, uint32_t ui32PinType);
|
|||
|
|
int8_t BspGPIOSetOutput(uint32_t ui32Port, uint8_t ui8Pins, int out_mode);
|
|||
|
|
uint8_t BspGPIOGetIutput(uint32_t ui32Port, uint8_t ui8Pins);
|
|||
|
|
|
|||
|
|
#endif
|