This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Hoernchen gerrit-no-reply at lists.osmocom.orgHoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/26395 )
Change subject: sim slots: omit interrupt disabling for status polling
......................................................................
sim slots: omit interrupt disabling for status polling
Doesn't matter here, we don't care if we get interrupted.
Change-Id: I8f32ad446438ef7776cc8a4aac1946f1a39a8ceb
---
M sysmoOCTSIM/ncn8025.c
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/95/26395/1
diff --git a/sysmoOCTSIM/ncn8025.c b/sysmoOCTSIM/ncn8025.c
index 74d3b39..bcce2ad 100644
--- a/sysmoOCTSIM/ncn8025.c
+++ b/sysmoOCTSIM/ncn8025.c
@@ -98,7 +98,10 @@
bool ncn8025_interrupt_level(uint8_t slot)
{
uint8_t pin = slot2int_pin(slot);
- return gpio_get_pin_level(pin);
+ enum gpio_port port = ((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin));
+ uint32_t dir_tmp = hri_port_read_DIR_reg(PORT, port);
+
+ return (bool)(hri_port_read_IN_reg(PORT, port) & ~dir_tmp);
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/26395
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I8f32ad446438ef7776cc8a4aac1946f1a39a8ceb
Gerrit-Change-Number: 26395
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211127/4545ec40/attachment.htm>