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 generic
6 // 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 IMPLIED,
13 // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT,
14 // SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
15 // SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE OR CLAIM, ARISING FROM OR IN CONNECTION
16 // WITH THE SOFTWARE OR THE USE OF THE SOFTWARE.
17 //
18 //==============================================================================
19 
20 #include "hcl.h"
21 #include "hcl_gpio.h"
22 
23 /*****************************************************************************
24 ** Function name: gpioInit
25 ** Description: Initialize generic GPIO library (if any)
26 ** Parameters: None
27 ** Return value: 1=success, 0=fail
28 *****************************************************************************/
29 int gpioInit(void)
30 {
31  return 1; /* success */
32 }
33 
34 
35 /*****************************************************************************
36 ** Function name: gpioInit
37 ** Description: Release generic GPIO interface (if any)
38 ** Parameters: None
39 ** Return value: 1=success, 0=fail
40 *****************************************************************************/
41 int gpioRelease(void)
42 {
43  return 1;
44 }
45 
46 
47 /*****************************************************************************
48 ** Function name: gpioSet
49 ** Description: Generic GPIO pin set to HIGH
50 ** Parameters: Pin number
51 ** Return value: None
52 *****************************************************************************/
53 void gpioSet(uint8_t pin)
54 {
55  return;
56 }
57 
58 
59 /*****************************************************************************
60 ** Function name: gpioClr
61 ** Description: Generic GPIO pin set to LOW
62 ** Parameters: Pin number
63 ** Return value: None
64 *****************************************************************************/
65 void gpioClr(uint8_t pin)
66 {
67  return;
68 }
69 
70 
71 /*****************************************************************************
72 ** Function name: gpioGetPinLevel
73 ** Description: Generic read GPIO pin status
74 ** Parameters: Pin number
75 ** Return value: 1 = GPIO pin HIGH, 0 = GPIO pin LOW
76 *****************************************************************************/
77 uint8_t gpioGetPinLevel(uint8_t pin)
78 {
79  return 0;
80 }
int gpioInit(void)
Definition: hcl_gpio.c:29
void gpioSet(uint8_t pin)
Definition: hcl_gpio.c:53
int gpioRelease(void)
Definition: hcl_gpio.c:41
void gpioClr(uint8_t pin)
Definition: hcl_gpio.c:65
uint8_t gpioGetPinLevel(uint8_t pin)
Definition: hcl_gpio.c:77


epson_g364_imu_driver
Author(s):
autogenerated on Mon Jun 10 2019 13:12:32