Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
eb0e3bab
Commit
eb0e3bab
authored
Jul 31, 2016
by
Paul Sokolovsky
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
parent
4d22ade1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
17 deletions
+9
-17
examples/unix/machine_bios.py
examples/unix/machine_bios.py
+9
-0
tests/extmod/machine_mem.py
tests/extmod/machine_mem.py
+0
-16
tests/extmod/machine_mem.py.exp
tests/extmod/machine_mem.py.exp
+0
-1
No files found.
examples/unix/machine_bios.py
0 → 100644
View file @
eb0e3bab
# This example shows how to access Video BIOS memory area via machine.mem
# It requires root privilege and x86 legacy harfware (which has mentioned
# Video BIOS at all).
# It is expected to print 0xaa55, which is a signature at the start of
# Video BIOS.
import
umachine
as
machine
print
(
hex
(
machine
.
mem16
[
0xc0000
]))
tests/extmod/machine_mem.py
deleted
100644 → 0
View file @
4d22ade1
# This test requires root privilege, so is usually skipped
# It also assumes x86 legacy hardware (with Video BIOS present).
try
:
import
machine
except
ImportError
:
print
(
"SKIP"
)
import
sys
sys
.
exit
()
try
:
print
(
hex
(
machine
.
mem16
[
0xc0000
]))
except
OSError
:
print
(
"SKIP"
)
import
sys
sys
.
exit
()
tests/extmod/machine_mem.py.exp
deleted
100644 → 0
View file @
4d22ade1
0xaa55
xpstem
@xpstem
mentioned in commit
231fc20c
·
Jan 08, 2024
mentioned in commit
231fc20c
mentioned in commit 231fc20ce0cf776d64d2a0f1ad0ada99cc178552
Toggle commit list
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