Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Oct 30, 2024
1 parent 3de14b3 commit a9652ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hal/src/main/native/include/hal/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ extern "C" {
#endif

/**
* Initializes the SPI port. Opens the port if necessary and saves the handle.
* Initializes the SPI port and returns a handle.
*
* If opening the MXP port, also sets up the channel functions appropriately.
* TODO: @thad what does this mean? Is this just DIO 14-17 being reserved for
* SPI?
*
* @param[in] port The number of the port to use. 0-3 for Onboard CS0-CS3, 4
* for MXP
* @param[out] status the error code, or 0 for success
* @param[in] port The port to initialize.
* @param[out] status the error code, or 0 for success.
*/
void HAL_InitializeSPI(HAL_SPIPort port, int32_t* status);

Expand Down

0 comments on commit a9652ef

Please sign in to comment.