aboutsummaryrefslogtreecommitdiff
path: root/hal_io_fmc.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-09-13 20:20:55 -0400
committerRob Austein <sra@hactrn.net>2017-09-13 20:20:55 -0400
commit410e0cf1d22c67585f0a5346e62f60aa4e90fe05 (patch)
tree4650beec709d2128e6a03a5b09645e295c7a2797 /hal_io_fmc.c
parent5522df4f68bfa66b9b4446fdfb92783694586f70 (diff)
Preliminary support for parallel core RSA CRT.
Diffstat (limited to 'hal_io_fmc.c')
-rw-r--r--hal_io_fmc.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/hal_io_fmc.c b/hal_io_fmc.c
index 5ac73c4..0d49f1e 100644
--- a/hal_io_fmc.c
+++ b/hal_io_fmc.c
@@ -47,10 +47,6 @@
static int debug = 0;
static int inited = 0;
-#ifndef FMC_IO_TIMEOUT
-#define FMC_IO_TIMEOUT 100000000
-#endif
-
static inline hal_error_t init(void)
{
if (!inited) {
@@ -136,33 +132,6 @@ hal_error_t hal_io_read(const hal_core_t *core, hal_addr_t offset, uint8_t *buf,
return HAL_OK;
}
-hal_error_t hal_io_wait(const hal_core_t *core, uint8_t status, int *count)
-{
- hal_error_t err;
- uint8_t buf[4];
- int i;
-
- if (count && *count == -1)
- *count = FMC_IO_TIMEOUT;
-
- for (i = 1; ; ++i) {
-
- if (count && (*count > 0) && (i >= *count))
- return HAL_ERROR_IO_TIMEOUT;
-
- hal_task_yield();
-
- if ((err = hal_io_read(core, ADDR_STATUS, buf, sizeof(buf))) != HAL_OK)
- return err;
-
- if ((buf[3] & status) != 0) {
- if (count)
- *count = i;
- return HAL_OK;
- }
- }
-}
-
/*
* Local variables:
* indent-tabs-mode: nil