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
397fa396
Commit
397fa396
authored
May 10, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:fw: API clarification
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
dc4c03df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
mockturtle-rt.h
software/firmware/lib/mockturtle-rt.h
+10
-6
No files found.
software/firmware/lib/mockturtle-rt.h
View file @
397fa396
...
...
@@ -256,8 +256,8 @@ static inline unsigned int gpio_status(int pin)
}
/**
* Wait n
cycles. This means that the wait can be different on
*
different core with different clock
.
* Wait n
CPU cycles. This means that the absolute wait time can be different
*
on different cores with different clock frequencies
.
* @todo: use Timing Unit, compute it accoring to CPU frequency
* @param[in] n number of cycles to wait
*/
...
...
@@ -554,7 +554,8 @@ static inline void mq_map_in_message(enum trtl_mq_type type,
/**
* Get the current MQ input status
* @param[in] type MQ type to use
* @param[in] mask bitmask to set the bit of interest
* @param[in] mask bitmask to set the bit of interest that corresponds
* to a MQ number
* @return message queues input status bitmask
*/
static
inline
uint32_t
mq_poll_in
(
enum
trtl_mq_type
type
,
uint32_t
mask
)
...
...
@@ -572,7 +573,8 @@ static inline uint32_t mq_poll_in(enum trtl_mq_type type, uint32_t mask)
/**
* Get the current MQ output status
* @param[in] type MQ type to use
* @param[in] mask bitmask to set the bit of interest
* @param[in] mask bitmask to set the bit of interest that corresponds
* to a MQ number
* @return message queues output status bitmask
*/
static
inline
uint32_t
mq_poll_out
(
enum
trtl_mq_type
type
,
uint32_t
mask
)
...
...
@@ -591,7 +593,8 @@ static inline uint32_t mq_poll_out(enum trtl_mq_type type, uint32_t mask)
/**
* Get the current MQ input status
* @param[in] type MQ type to use
* @param[in] mask bitmask to set the bit of interest
* @param[in] mask bitmask to set the bit of interest that corresponds
* to a MQ number
* @param[in] us_timeout timeout in micro-seconds
* @return message queues input status bitmask, 0 on timeout
*/
...
...
@@ -615,7 +618,8 @@ static inline uint32_t mq_poll_in_wait(enum trtl_mq_type type, uint32_t mask,
/**
* Get the current MQ input status
* @param[in] type MQ type to use
* @param[in] mask bitmask to set the bit of interest
* @param[in] mask bitmask to set the bit of interest that corresponds
* to a MQ number
* @param[in] us_timeout timeout in micro-seconds
* @return message queues input status bitmask, 0 on timeout
*/
...
...
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