RTEMS 7.0-rc1
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/*
12 * Copyright (c) 2014 Taller Technologies.
13 *
14 * @author Boretto Martin (martin.boretto@tallertechnologies.com)
15 * @author Diaz Marcos (marcos.diaz@tallertechnologies.com)
16 * @author Lenarduzzi Federico (federico.lenarduzzi@tallertechnologies.com)
17 * @author Daniel Chicco (daniel.chicco@tallertechnologies.com)
18 *
19 * The license and distribution terms for this file may be
20 * found in the file LICENSE in this distribution or at
21 * http://www.rtems.org/license/LICENSE.
22 */
23
24#ifndef LIBBSP_ARM_LPC176X_IO_H
25#define LIBBSP_ARM_LPC176X_IO_H
26
27#include <assert.h>
28#include <rtems.h>
29#include <bsp/io-defs.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* __cplusplus */
34
42 uint32_t pin,
44);
45
53 const uint32_t pin,
54 const lpc176x_pin_mode mode
55);
56
65 lpc176x_module module,
67);
68
76
85
86#ifdef __cplusplus
87}
88#endif /* __cplusplus */
89
90#endif /* LIBBSP_ARM_LPC176X_IO_H */
This header file provides the interfaces of the Assert Handler.
rtems_status_code lpc176x_module_enable(lpc176x_module module, lpc176x_module_clock clock)
Enables the module power and clock.
Definition: io.c:319
bool lpc176x_module_is_enabled(lpc176x_module module)
Checks if the current module is enabled or not.
Definition: io.c:334
void lpc176x_pin_select(uint32_t pin, lpc176x_pin_function function)
Sets pin to the selected function.
Definition: io.c:62
void lpc176x_pin_set_mode(const uint32_t pin, const lpc176x_pin_mode mode)
Sets pin to the selected mode.
Definition: io.c:76
rtems_status_code lpc176x_module_disable(lpc176x_module module)
Checks if the current module is turned off and disables a module.
Definition: io.c:327
lpc176x_module
lpc176x module representation.
Definition: common-types.h:46
lpc176x_module_clock
Defines all the clock modules.
Definition: common-types.h:80
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
Input/output module definitions.
lpc176x_pin_function
Defines the functions according to the pin.
Definition: io-defs.h:70
lpc176x_pin_mode
Defines the pin modes.
Definition: io-defs.h:83
This header file defines the RTEMS Classic API.