Sample SPI drivers for a number of the Adesto Technologies flash devices.
Functions
user_config.c File Reference

Detailed Description

Project definitions exist here.

Definition in file user_config.c.

#include "user_config.h"

Go to the source code of this file.

Functions

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. More...
 
void USER_CONFIG_PinClear (uint32_t port, uint32_t pin)
 Clears a given pin on a port to LOW. More...
 
void USER_CONFIG_PinSet (uint32_t port, uint32_t pin)
 Sets a given pin on a port to HIGH. More...
 
uint8_t USER_CONFIG_PinRead (uint32_t port, uint32_t pin)
 Reads the voltage on a given pin. More...
 
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. More...
 

Function Documentation

◆ 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
void

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
portThe port number.
pinThe pin number.
Return values
void

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
portThe port number.
pinThe pin number.
directionINPUT or OUTPUT. See the directionIO enum type.
Return values
void

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
portThe port number.
pinThe pin number.
Return values
uint32_t0 = 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
portThe port number.
pinThe pin number.
Return values
void

Definition at line 70 of file user_config.c.