Project definitions exist here.
Definition in file user_config.c.
Go to the source code of this file.
◆ USER_CONFIG_BoardInit()
void USER_CONFIG_BoardInit |
( |
| ) |
|
Configures the board for program usage. Initializes the requisite ports/pins for use as GPIOs. Starts the various clocks, and enables UART via USB connection.
- Return values
-
Definition at line 82 of file user_config.c.
◆ USER_CONFIG_PinClear()
void USER_CONFIG_PinClear |
( |
uint32_t |
port, |
|
|
uint32_t |
pin |
|
) |
| |
Clears a given pin on a port to LOW.
- Parameters
-
port | The port number. |
pin | The pin number. |
- Return values
-
Definition at line 64 of file user_config.c.
◆ USER_CONFIG_PinInit()
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.
- Parameters
-
port | The port number. |
pin | The pin number. |
direction | INPUT or OUTPUT. See the directionIO enum type. |
- Return values
-
Definition at line 44 of file user_config.c.
◆ USER_CONFIG_PinRead()
uint8_t USER_CONFIG_PinRead |
( |
uint32_t |
port, |
|
|
uint32_t |
pin |
|
) |
| |
Reads the voltage on a given pin.
- Parameters
-
port | The port number. |
pin | The pin number. |
- Return values
-
uint32_t | 0 = LOW, 1 = HIGH. |
Definition at line 76 of file user_config.c.
◆ USER_CONFIG_PinSet()
void USER_CONFIG_PinSet |
( |
uint32_t |
port, |
|
|
uint32_t |
pin |
|
) |
| |
Sets a given pin on a port to HIGH.
- Parameters
-
port | The port number. |
pin | The pin number. |
- Return values
-
Definition at line 70 of file user_config.c.