Skip to content

Commit 131c190

Browse files
committed
Remove unused EDGE PV
1 parent f61bcab commit 131c190

2 files changed

Lines changed: 1 addition & 27 deletions

File tree

devGpioGenericSup/Db/pin.template

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ record(mbbo, "$(P)GPIO$(NCHIP)_L$(LINE)_TYPE")
4343
field(PINI, "YES")
4444
}
4545

46-
record(mbbo, "$(P)GPIO$(NCHIP)_L$(LINE)_EDGE")
47-
{
48-
field(DTYP, "devGpioCfg")
49-
field(DESC, "Edge type for input pins")
50-
field(OUT, "@$(CHIP),$(LINE),edge")
51-
field(VAL, "0")
52-
field(ZRST, "Rising")
53-
field(ZRVL, "0")
54-
field(ONST, "Falling")
55-
field(ONVL, "1")
56-
field(PINI, "YES")
57-
}
58-
5946
record(mbbo, "$(P)GPIO$(NCHIP)_L$(LINE)_DRIVE")
6047
{
6148
field(DTYP, "devGpioCfg")

devGpioGenericSup/src/devGpio.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ enum gpio_type {
6060
GPIO_TYPE_INPUT_LATCHED,
6161
};
6262

63-
enum gpio_edge {
64-
GPIO_EDGE_RISING = 0,
65-
GPIO_EDGE_FALLING,
66-
};
67-
6863
enum gpio_bias {
6964
GPIO_BIAS_NONE = 0,
7065
GPIO_BIAS_PULL_DOWN,
@@ -90,7 +85,6 @@ struct gpio_pin {
9085
int value = VAL_NONE; /* value, set by watch events */
9186
enum gpio_polarity polarity = GPIO_ACTIVE_HIGH;
9287
enum gpio_type type = GPIO_TYPE_INPUT;
93-
enum gpio_edge edge = GPIO_EDGE_RISING;
9488
enum gpio_bias bias = GPIO_BIAS_NONE;
9589
enum gpio_drive drive = GPIO_DRIVE_PUSH_PULL;
9690
uint32_t debounce_us = 0; /* debounce period, us */
@@ -112,7 +106,6 @@ struct gpio_dpvt {
112106
};
113107

114108
enum gpio_cfg_param {
115-
GPIO_CFG_EDGE,
116109
GPIO_CFG_POLARITY,
117110
GPIO_CFG_TYPE,
118111
GPIO_CFG_DRIVE,
@@ -196,7 +189,6 @@ gpio_find_or_add_pin(gpio_chip* chip, int line)
196189
pin.type = GPIO_TYPE_INPUT;
197190
pin.polarity = GPIO_ACTIVE_HIGH;
198191
pin.line = line;
199-
pin.edge = GPIO_EDGE_RISING;
200192
pin.fd = -1;
201193

202194
return line;
@@ -674,9 +666,7 @@ devGpioCfgMbbo_InitRecord(dbCommon* precord)
674666
}
675667

676668
enum gpio_cfg_param p;
677-
if (!strcmp(param, "edge"))
678-
p = GPIO_CFG_EDGE;
679-
else if (!strcmp(param, "polarity"))
669+
if (!strcmp(param, "polarity"))
680670
p = GPIO_CFG_POLARITY;
681671
else if (!strcmp(param, "type"))
682672
p = GPIO_CFG_TYPE;
@@ -707,9 +697,6 @@ devGpioCfgMbbo_WriteRecord(mbboRecord* precord)
707697
auto& p = dpvt->chip->pins[dpvt->pin];
708698

709699
switch (dpvt->param) {
710-
case GPIO_CFG_EDGE:
711-
p.edge = static_cast<gpio_edge>(precord->rval);
712-
break;
713700
case GPIO_CFG_POLARITY:
714701
p.polarity = static_cast<gpio_polarity>(precord->rval);
715702
break;

0 commit comments

Comments
 (0)