RTEMS  5.1
Functions
io.c File Reference

Input/output module methods. More...

#include <rtems/status-checks.h>
#include <bsp.h>
#include <bsp/io.h>
#include <bsp/start.h>
#include <bsp/system-clocks.h>

Functions

void lpc176x_pin_select (const uint32_t pin, const lpc176x_pin_function function)
 Sets pin to the selected function. More...
 
void lpc176x_pin_set_mode (const uint32_t pin, const lpc176x_pin_mode mode)
 Sets pin to the selected mode. More...
 
rtems_status_code lpc176x_module_enable (const lpc176x_module module, lpc176x_module_clock clock)
 Enables the module power and clock. More...
 
rtems_status_code lpc176x_module_disable (const lpc176x_module module)
 Checks if the current module is turned off and disables a module. More...
 
bool lpc176x_module_is_enabled (const lpc176x_module module)
 Checks if the current module is enabled or not. More...
 

Detailed Description

Input/output module methods.

Function Documentation

◆ lpc176x_module_disable()

rtems_status_code lpc176x_module_disable ( lpc176x_module  module)
inline

Checks if the current module is turned off and disables a module.

Parameters
moduleRepresents the module to be disabled.
Returns
RTEMS_SUCCESFULL if the module was disabled succesfully.

◆ lpc176x_module_enable()

rtems_status_code lpc176x_module_enable ( lpc176x_module  module,
lpc176x_module_clock  clock 
)
inline

Enables the module power and clock.

Parameters
moduleRepresents the module to be enabled.
clockRepresents the clock to set for this module.
Returns
RTEMS_SUCCESFULL if the module was enabled succesfully.

◆ lpc176x_module_is_enabled()

bool lpc176x_module_is_enabled ( lpc176x_module  module)

Checks if the current module is enabled or not.

Parameters
moduleRepresents the module to be checked.
Returns
TRUE if the module is enabled. FALSE otherwise.

◆ lpc176x_pin_select()

void lpc176x_pin_select ( uint32_t  pin,
lpc176x_pin_function  function 
)
inline

Sets pin to the selected function.

Parameters
pinThe pin to set.
functionDefines the function to set.

◆ lpc176x_pin_set_mode()

void lpc176x_pin_set_mode ( const uint32_t  pin,
const lpc176x_pin_mode  mode 
)

Sets pin to the selected mode.

Parameters
pinThe pin to set.
modeDefines the mode to set.