Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: src/d7a.cpp
- Revision:
- 71:f03727ff0f99
- Parent:
- 70:07b378285c95
- Child:
- 72:f71421d35d0b
diff -r 07b378285c95 -r f03727ff0f99 src/d7a.cpp
--- a/src/d7a.cpp Thu Nov 03 10:56:17 2016 +0000
+++ b/src/d7a.cpp Wed Nov 09 10:49:58 2016 +0000
@@ -9,7 +9,6 @@
#include "d7a_sys.h"
#include "d7a_alp.h"
-#define FIRST_IFT_FILE (108)
bool g_open = false;
bool g_started = false;
@@ -129,7 +128,7 @@
}
-d7a_errors_t d7a_create(const uint8_t file_id, d7a_fs_storage_t prop, d7a_fs_perm_t perm, uint32_t size, uint32_t alloc, d7a_action_t action, alp_rpol_t retry)
+d7a_errors_t d7a_create(const uint8_t file_id, d7a_fs_storage_t prop, d7a_fs_perm_t perm, uint32_t size, uint32_t alloc, d7a_action_t action, const uint8_t interface)
{
FPRINT("\r\n");
@@ -143,7 +142,7 @@
.fid = file_id,
.type = RAM,
.afid = action,
- .ifid = FIRST_IFT_FILE + retry, // The interface files match the retry policies
+ .ifid = interface,
.prop = (uint8_t)prop | ((action)? FS_ACT_EN : 0),
.perm = (uint8_t)perm,
.size = size,
@@ -161,7 +160,7 @@
}
-d7a_errors_t d7a_declare(const uint8_t file_id, d7a_fs_storage_t prop, d7a_fs_perm_t perm, uint32_t length, uint32_t alloc, d7a_action_t action, alp_rpol_t retry)
+d7a_errors_t d7a_declare(const uint8_t file_id, d7a_fs_storage_t prop, d7a_fs_perm_t perm, uint32_t length, uint32_t alloc, d7a_action_t action, const uint8_t interface)
{
FPRINT("\r\n");
@@ -177,7 +176,7 @@
.fid = file_id,
.type = HOST+RAM,
.afid = action,
- .ifid = FIRST_IFT_FILE + retry, // The interface files match the retry policies
+ .ifid = interface,
.prop = (uint8_t)prop | ((action)? FS_ACT_EN : 0),
.perm = (uint8_t)perm,
.size = length,
