Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Miosix Host
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Avionics
Software Development
Miosix Host
Commits
5b09ee53
Commit
5b09ee53
authored
1 year ago
by
Alberto Nidasio
Browse files
Options
Downloads
Patches
Plain Diff
Updated interface to Miosix 2.7
parent
ed8a4d8c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
kernel/kernel.cpp
+4
-2
4 additions, 2 deletions
kernel/kernel.cpp
kernel/kernel.h
+4
-2
4 additions, 2 deletions
kernel/kernel.h
with
8 additions
and
4 deletions
kernel/kernel.cpp
+
4
−
2
View file @
5b09ee53
...
...
@@ -51,7 +51,7 @@ void startKernel() {}
bool
isKernelRunning
()
{
return
true
;
}
long
long
getTi
ck
()
{
return
time
(
NULL
);
}
long
long
getTi
me
()
{
return
time
(
NULL
);
}
Thread
*
Thread
::
create
(
void
*
(
*
startfunc
)(
void
*
),
unsigned
int
stacksize
,
Priority
priority
,
void
*
argv
,
unsigned
short
options
)
...
...
@@ -71,7 +71,9 @@ bool Thread::testTerminate() { return true; }
void
Thread
::
sleep
(
unsigned
int
ms
)
{}
void
Thread
::
sleepUntil
(
long
long
absoluteTime
)
{}
void
Thread
::
nanoSleep
(
unsigned
int
ns
)
{}
void
Thread
::
nanoSleepUntil
(
long
long
absoluteTime
)
{}
Thread
*
Thread
::
getCurrentThread
()
{
return
new
Thread
();
}
...
...
This diff is collapsed.
Click to expand it.
kernel/kernel.h
+
4
−
2
View file @
5b09ee53
...
...
@@ -87,7 +87,7 @@ void startKernel();
bool
isKernelRunning
();
long
long
getTi
ck
();
long
long
getTi
me
();
class
Thread
{
...
...
@@ -112,7 +112,9 @@ public:
static
void
sleep
(
unsigned
int
ms
);
static
void
sleepUntil
(
long
long
absoluteTime
);
static
void
nanoSleep
(
unsigned
int
ns
);
static
void
nanoSleepUntil
(
long
long
absoluteTime
);
static
Thread
*
getCurrentThread
();
...
...
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