41 #ifndef USER_CONFIG_H_ 42 #define USER_CONFIG_H_ 146 #define USER_CONFIG_CSB_PORT GPIO3_BASE 150 #define USER_CONFIG_TRIGGER_PORT GPIO3_BASE 154 #define USER_CONFIG_SCK_PORT GPIO3_BASE 158 #define USER_CONFIG_MOSI_PORT GPIO3_BASE 162 #define USER_CONFIG_MISO_PORT GPIO3_BASE 166 #define USER_CONFIG_IO2_PORT GPIO3_BASE 170 #define USER_CONFIG_IO3_PORT GPIO3_BASE 177 #define USER_CONFIG_CSB_PIN 6U 178 #define USER_CONFIG_TRIGGER_PIN 2U 180 #define USER_CONFIG_SCK_PIN 7U 182 #define USER_CONFIG_MOSI_PIN 8U 184 #define USER_CONFIG_MISO_PIN 9U 186 #define USER_CONFIG_IO2_PIN 10U 188 #define USER_CONFIG_IO3_PIN 11U
void USER_CONFIG_BoardInit()
Configures the board for program usage. Initializes the requisite ports/pins for use as GPIOs...
directionIO
Enumeration used when initializing pins as inputs or outputs. OUTPUT = 0, INPUT = 1...
void USER_CONFIG_PinSet(uint32_t port, uint32_t pin)
Sets a given pin on a port to HIGH.
void USER_CONFIG_PinClear(uint32_t port, uint32_t pin)
Clears a given pin on a port to LOW.
uint8_t USER_CONFIG_PinRead(uint32_t port, uint32_t pin)
Reads the voltage on a given pin.
void USER_CONFIG_PinInit(uint32_t port, uint32_t pin, enum directionIO direction)
Initializes a given pin as either an input or output. When porting, this function must be redefined...