Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
8587020d
Commit
8587020d
authored
Mar 24, 2017
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:lib: improve load/dump documentation
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
49239d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
libmockturtle.c
lib/libmockturtle.c
+17
-0
No files found.
lib/libmockturtle.c
View file @
8587020d
...
...
@@ -482,6 +482,12 @@ int trtl_cpu_run_set(struct trtl_dev *trtl, uint32_t mask)
* @param[in] index CPU index
* @param[in] code buffer containing the CPU firmware binary code
* @param[in] length code length
*
* The CPU must be in reset mode in order to be programmed. This is
* done automatically by the driver which will leave the CPU in
* reset mode. The user must clear the reset status in order to run
* the firmware.
*
* @return the number of written byte, on error -1 and errno is
* set appropriately
*/
...
...
@@ -516,6 +522,10 @@ int trtl_cpu_load_application_raw(struct trtl_dev *trtl,
* @param[in] index CPU index
* @param[out] code buffer containing the CPU firmware binary code
* @param[in] length code length
*
* For a reliable dump, the CPU must be in pause. This is done by
* the driver which then will set back the previous situation.
*
* @return the number of written byte, on error -1 and errno is
* set appropriately
*/
...
...
@@ -551,6 +561,10 @@ int trtl_cpu_dump_application_raw(struct trtl_dev *trtl,
* @param[in] trtl device token
* @param[in] index CPU index
* @param[in] path path to the firmware file
*
* After extracting the data from the file, it internally uses
* trtl_cpu_load_application_raw().
*
* @return 0 on success, on error -1 and errno is set appropriately
*/
int
trtl_cpu_load_application_file
(
struct
trtl_dev
*
trtl
,
...
...
@@ -599,6 +613,9 @@ int trtl_cpu_load_application_file(struct trtl_dev *trtl,
* @param[in] trtl device token
* @param[in] index CPU index
* @param[in] path path to the firmware file
*
* It internally uses trtl_cpu_dump_application_raw().
*
* @return 0 on success, on error -1 and errno is set appropriately
*/
int
trtl_cpu_dump_application_file
(
struct
trtl_dev
*
trtl
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment