![]() |
RTEMS 6.1
|
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. | |
| void | lpc176x_pin_set_mode (const uint32_t pin, const lpc176x_pin_mode mode) |
| Sets pin to the selected mode. | |
| rtems_status_code | lpc176x_module_enable (const lpc176x_module module, lpc176x_module_clock clock) |
| Enables the module power and clock. | |
| rtems_status_code | lpc176x_module_disable (const lpc176x_module module) |
| Checks if the current module is turned off and disables a module. | |
| bool | lpc176x_module_is_enabled (const lpc176x_module module) |
| Checks if the current module is enabled or not. | |
Input/output module methods.
|
inline |
Checks if the current module is turned off and disables a module.
| module | Represents the module to be disabled. |
|
inline |
Enables the module power and clock.
| module | Represents the module to be enabled. |
| clock | Represents the clock to set for this module. |
| bool lpc176x_module_is_enabled | ( | lpc176x_module | module | ) |
Checks if the current module is enabled or not.
| module | Represents the module to be checked. |
|
inline |
Sets pin to the selected function.
| pin | The pin to set. |
| function | Defines the function to set. |
| void lpc176x_pin_set_mode | ( | const uint32_t | pin, |
| const lpc176x_pin_mode | mode | ||
| ) |
Sets pin to the selected mode.
| pin | The pin to set. |
| mode | Defines the mode to set. |