RTEMS  5.1
io.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2014 Taller Technologies.
11  *
12  * @author Boretto Martin (martin.boretto@tallertechnologies.com)
13  * @author Diaz Marcos (marcos.diaz@tallertechnologies.com)
14  * @author Lenarduzzi Federico (federico.lenarduzzi@tallertechnologies.com)
15  * @author Daniel Chicco (daniel.chicco@tallertechnologies.com)
16  *
17  * The license and distribution terms for this file may be
18  * found in the file LICENSE in this distribution or at
19  * http://www.rtems.org/license/LICENSE.
20  */
21 
22 #ifndef LIBBSP_ARM_LPC176X_IO_H
23 #define LIBBSP_ARM_LPC176X_IO_H
24 
25 #include <assert.h>
26 #include <rtems.h>
27 #include <bsp/io-defs.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32 
40  uint32_t pin,
41  lpc176x_pin_function function
42 );
43 
51  const uint32_t pin,
52  const lpc176x_pin_mode mode
53 );
54 
63  lpc176x_module module,
65 );
66 
74 
83 
84 #ifdef __cplusplus
85 }
86 #endif /* __cplusplus */
87 
88 #endif /* LIBBSP_ARM_LPC176X_IO_H */
bool lpc176x_module_is_enabled(lpc176x_module module)
Checks if the current module is enabled or not.
Definition: io.c:332
void lpc176x_pin_select(uint32_t pin, lpc176x_pin_function function)
Sets pin to the selected function.
Definition: io.c:60
Input/output module definitions.
Information for the Assert Handler.
rtems_status_code
Classic API Status.
Definition: status.h:43
void lpc176x_pin_set_mode(const uint32_t pin, const lpc176x_pin_mode mode)
Sets pin to the selected mode.
Definition: io.c:74
lpc176x_pin_function
Defines the functions according to the pin.
Definition: io-defs.h:68
rtems_status_code lpc176x_module_disable(lpc176x_module module)
Checks if the current module is turned off and disables a module.
Definition: io.c:325
lpc176x_module
lpc176x module representation.
Definition: common-types.h:44
lpc176x_module_clock
Defines all the clock modules.
Definition: common-types.h:78
rtems_status_code lpc176x_module_enable(lpc176x_module module, lpc176x_module_clock clock)
Enables the module power and clock.
Definition: io.c:317
lpc176x_pin_mode
Defines the pin modes.
Definition: io-defs.h:81