Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
da29907a
Commit
da29907a
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Update TODO list + cosmetic changes to clock_systimer.c
parent
8d43a6bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TODO
+9
-25
9 additions, 25 deletions
TODO
sched/clock/clock_systimer.c
+5
-3
5 additions, 3 deletions
sched/clock/clock_systimer.c
with
14 additions
and
28 deletions
TODO
+
9
−
25
View file @
da29907a
...
...
@@ -22,7 +22,7 @@ nuttx/
(6) Graphics subystem (graphics/)
(1) Pascal add-on (pcode/)
(1) Documentation (Documentation/)
(
3
) Build system / Toolchains
(
2
) Build system / Toolchains
(3) Linux/Cywgin simulation (arch/sim)
(4) ARM (arch/arm/)
(1) ARM/C5471 (arch/arm/src/c5471/)
...
...
@@ -1239,6 +1239,12 @@ o Pascal Add-On (pcode/)
Status: Open
Priority: Medium
Title: PDBG
Description: Move the the pascal p-code debugger into the NuttX apps/ tree
where it can be used from the NSH command line.
Status: Open
Priority: Low
o Documentation (Documentation/)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
@@ -1261,29 +1267,6 @@ o Build system
Status: Open
Priority: Low -- unless some dependency-related build issues is discovered.
Title: SETENV.H
Description: Logic in most setenv.sh files can create the following problem
on many platforms:
$ . ./setenv.sh
basename: invalid option -- 'b'
Try `basename --help' for more information.
The problem is that $0 is the current running shell which may include
a dash in front:
$ echo $0
-bash
But often is just /bin/bash (and the problem does not occur. The fix
is:
-if [ "$(basename $0)" = "setenv.sh" ]; then
+if [ "$_" = "$0" ] ; then
Status: Open
Priority: Low. Use of setenv.sh is optional and most platforms do not have
this problem. Scripts will be fixed one-at-a-time as is appropriate.
Title: MAKE EXPORT LIMITATIONS
Description: The top-level Makefile 'export' target that will bundle up all of the
NuttX libraries, header files, and the startup object into an export-able
...
...
@@ -1320,7 +1303,8 @@ o Linux/Cywgin simulation (arch/sim)
Status: Open
Priority: Low, unless there is a need for developing a higher fidelity simulation
I have been thinking about how to implement simulated interrupts in
the simulation. I think a solution would work like this.
the simulation. I think a solution would work like this:
http://www.nuttx.org/doku.php?id=wiki:nxinternal:simulator
Title: ROUND-ROBIN SCHEDULING IN THE SIMULATOR
Description: Since the simulation is not pre-emptible, you can't use round-robin
...
...
This diff is collapsed.
Click to expand it.
sched/clock/clock_systimer.c
+
5
−
3
View file @
da29907a
...
...
@@ -53,7 +53,7 @@
#undef clock_systimer
#undef clock_systimer64
/****************************************************************************
* Private Data
****************************************************************************/
...
...
@@ -99,12 +99,13 @@ uint32_t clock_systimer(void)
/* Return the current system time truncated to 32-bits */
return
(
uint32_t
)(
g_system_timer
&
0x00000000ffffffff
);
#else
/* Return the current system time */
return
g_system_timer
;
#endif
#endif
#endif
}
...
...
@@ -134,7 +135,7 @@ uint64_t clock_systimer64(void)
(
void
)
up_timer_gettime
(
&
ts
);
/* Convert to a 64-
then 32-
bit value */
/* Convert to a 64-bit value */
return
MSEC2TICK
(
1000
*
(
uint64_t
)
ts
.
tv_sec
+
(
uint64_t
)
ts
.
tv_nsec
/
1000000
);
...
...
@@ -142,6 +143,7 @@ uint64_t clock_systimer64(void)
/* Return the current system time */
return
g_system_timer
;
#endif
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment