summaryrefslogtreecommitdiff
path: root/drivers/eeprom
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-02-18 17:08:27 +1100
committerGitHub <noreply@github.com>2024-02-18 17:08:27 +1100
commit2d1aed78a67b3d2b002cc739ef087963b05b76b8 (patch)
treeea681d02e547332cffa6b7aec6c16ef37ad70ee3 /drivers/eeprom
parent6810aaf0130113e267e20fb506d874cc858f5f67 (diff)
Update GPIO macro usages in core (#23093)
Diffstat (limited to 'drivers/eeprom')
-rw-r--r--drivers/eeprom/eeprom_i2c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/eeprom/eeprom_i2c.c b/drivers/eeprom/eeprom_i2c.c
index a74a010415..0d3d5ccbe5 100644
--- a/drivers/eeprom/eeprom_i2c.c
+++ b/drivers/eeprom/eeprom_i2c.c
@@ -57,8 +57,8 @@ void eeprom_driver_init(void) {
i2c_init();
#if defined(EXTERNAL_EEPROM_WP_PIN)
/* We are setting the WP pin to high in a way that requires at least two bit-flips to change back to 0 */
- writePin(EXTERNAL_EEPROM_WP_PIN, 1);
- setPinInputHigh(EXTERNAL_EEPROM_WP_PIN);
+ gpio_write_pin(EXTERNAL_EEPROM_WP_PIN, 1);
+ gpio_set_pin_input_high(EXTERNAL_EEPROM_WP_PIN);
#endif
}
@@ -100,8 +100,8 @@ void eeprom_write_block(const void *buf, void *addr, size_t len) {
uintptr_t target_addr = (uintptr_t)addr;
#if defined(EXTERNAL_EEPROM_WP_PIN)
- setPinOutput(EXTERNAL_EEPROM_WP_PIN);
- writePin(EXTERNAL_EEPROM_WP_PIN, 0);
+ gpio_set_pin_output(EXTERNAL_EEPROM_WP_PIN);
+ gpio_write_pin(EXTERNAL_EEPROM_WP_PIN, 0);
#endif
while (len > 0) {
@@ -134,7 +134,7 @@ void eeprom_write_block(const void *buf, void *addr, size_t len) {
#if defined(EXTERNAL_EEPROM_WP_PIN)
/* We are setting the WP pin to high in a way that requires at least two bit-flips to change back to 0 */
- writePin(EXTERNAL_EEPROM_WP_PIN, 1);
- setPinInputHigh(EXTERNAL_EEPROM_WP_PIN);
+ gpio_write_pin(EXTERNAL_EEPROM_WP_PIN, 1);
+ gpio_set_pin_input_high(EXTERNAL_EEPROM_WP_PIN);
#endif
}