aboutsummaryrefslogtreecommitdiff
path: root/stm-fpgacfg.c
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2021-09-13 11:48:47 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2021-09-13 11:48:47 +0300
commitd1624b391113f777f4aa9d70cc26ff6a9fe27ed2 (patch)
tree9739e21dc0fc1c1b8b93943d14d50092efea7b25 /stm-fpgacfg.c
parent71f6c636d73e218baa2c5f8dc5057f54029132ea (diff)
Function to read data from the main FPGA configuration memory.
Diffstat (limited to 'stm-fpgacfg.c')
-rw-r--r--stm-fpgacfg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm-fpgacfg.c b/stm-fpgacfg.c
index 54342bf..c159f07 100644
--- a/stm-fpgacfg.c
+++ b/stm-fpgacfg.c
@@ -78,6 +78,11 @@ HAL_StatusTypeDef fpgacfg_write_data(uint32_t offset, const uint8_t *buf, const
return n25q128_write_data(&fpgacfg_ctx, offset, buf, len);
}
+HAL_StatusTypeDef fpgacfg_read_data(uint32_t offset, uint8_t *buf, const uint32_t len)
+{
+ return n25q128_read_data(&fpgacfg_ctx, offset, buf, len);
+}
+
void fpgacfg_access_control(enum fpgacfg_access_ctrl access)
{
if (access == ALLOW_ARM) {