RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
lpc176x
include
bsp
io.h
Go to the documentation of this file.
1
8
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
39
void
lpc176x_pin_select
(
40
uint32_t pin,
41
lpc176x_pin_function
function
42
);
43
50
void
lpc176x_pin_set_mode
(
51
const
uint32_t pin,
52
const
lpc176x_pin_mode
mode
53
);
54
62
rtems_status_code
lpc176x_module_enable
(
63
lpc176x_module
module,
64
lpc176x_module_clock
clock
65
);
66
73
rtems_status_code
lpc176x_module_disable
(
lpc176x_module
module );
74
82
bool
lpc176x_module_is_enabled
(
lpc176x_module
module );
83
84
#ifdef __cplusplus
85
}
86
#endif
/* __cplusplus */
87
88
#endif
/* LIBBSP_ARM_LPC176X_IO_H */
assert.h
This header file provides the interfaces of the Assert Handler.
lpc176x_module_enable
rtems_status_code lpc176x_module_enable(lpc176x_module module, lpc176x_module_clock clock)
Enables the module power and clock.
Definition
io.c:317
lpc176x_module_is_enabled
bool lpc176x_module_is_enabled(lpc176x_module module)
Checks if the current module is enabled or not.
Definition
io.c:332
lpc176x_pin_select
void lpc176x_pin_select(uint32_t pin, lpc176x_pin_function function)
Sets pin to the selected function.
Definition
io.c:60
lpc176x_pin_set_mode
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_module_disable
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
lpc176x module representation.
Definition
common-types.h:44
lpc176x_module_clock
lpc176x_module_clock
Defines all the clock modules.
Definition
common-types.h:78
rtems_status_code
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition
status.h:85
io-defs.h
Input/output module definitions.
lpc176x_pin_function
lpc176x_pin_function
Defines the functions according to the pin.
Definition
io-defs.h:68
lpc176x_pin_mode
lpc176x_pin_mode
Defines the pin modes.
Definition
io-defs.h:81
rtems.h
This header file defines the RTEMS Classic API.
Generated by
1.18.0