src
hcl_gpio.c
Go to the documentation of this file.
1
//==============================================================================
2
//
3
// hcl_gpio.c - Seiko Epson Hardware Control Library
4
//
5
// This layer of indirection is added to allow the sample code to call
6
// generic functions to work on multiple hardware platforms, this is generic
7
// implementation for GPIO function which may be needed for optionally
8
// connecting pins RESET#, SPI Chipselect, DataReady, EXT of the IMU
9
//
10
//
11
// THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
12
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
// NONINFRINGEMENT, SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A
15
// PARTICULAR PURPOSE. IN NO EVENT SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE
16
// OR CLAIM, ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THE
17
// SOFTWARE.
18
//
19
//==============================================================================
20
21
#include <stdint.h>
22
#include <stdio.h>
23
24
#include "
hcl_gpio.h
"
25
#include "
hcl.h
"
26
27
/*****************************************************************************
28
** Function name: gpioInit
29
** Description: Initialize generic GPIO library (if any)
30
** Parameters: None
31
** Return value: OK or NG
32
*****************************************************************************/
33
int
gpioInit
(
void
) {
return
OK
; }
34
35
/*****************************************************************************
36
** Function name: gpioInit
37
** Description: Release generic GPIO interface (if any)
38
** Parameters: None
39
** Return value: OK
40
*****************************************************************************/
41
int
gpioRelease
(
void
) {
return
OK
; }
42
43
/*****************************************************************************
44
** Function name: gpioSet
45
** Description: Generic GPIO pin set to HIGH
46
** Parameters: Pin number
47
** Return value: None
48
*****************************************************************************/
49
void
gpioSet
(__attribute__((unused)) uint8_t pin) {
return
; }
50
51
/*****************************************************************************
52
** Function name: gpioClr
53
** Description: Generic GPIO pin set to LOW
54
** Parameters: Pin number
55
** Return value: None
56
*****************************************************************************/
57
void
gpioClr
(__attribute__((unused)) uint8_t pin) {
return
; }
58
59
/*****************************************************************************
60
** Function name: gpioGetPinLevel
61
** Description: Generic read GPIO pin status
62
** Parameters: Pin number
63
** Return value: 1 = GPIO pin HIGH, 0 = GPIO pin LOW
64
*****************************************************************************/
65
uint8_t
gpioGetPinLevel
(__attribute__((unused)) uint8_t pin) {
return
0; }
hcl_gpio.h
gpioInit
int gpioInit(void)
Definition:
hcl_gpio.c:33
hcl.h
gpioGetPinLevel
uint8_t gpioGetPinLevel(__attribute__((unused)) uint8_t pin)
Definition:
hcl_gpio.c:65
gpioSet
void gpioSet(__attribute__((unused)) uint8_t pin)
Definition:
hcl_gpio.c:49
gpioRelease
int gpioRelease(void)
Definition:
hcl_gpio.c:41
gpioClr
void gpioClr(__attribute__((unused)) uint8_t pin)
Definition:
hcl_gpio.c:57
OK
#define OK
Definition:
hcl.h:29
ess_imu_ros1_uart_driver
Author(s):
autogenerated on Sun Dec 3 2023 03:11:32