Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
5facf345
Commit
5facf345
authored
May 03, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software: Update readflash.py and add gitignore of ei2cdefine.py
Signed-off-by:
Theodor Stana
<
t.stana@cern.ch
>
parent
a19debc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
43 deletions
+1
-43
ei2cdefine.py
software/ei2c/ei2cdefine.py
+0
-43
readflash.py
software/multiboot/readflash.py
+1
-0
No files found.
software/ei2c/ei2cdefine.py
deleted
100644 → 0
View file @
a19debc5
#===============================================================================
# CERN (BE-CO-HT)
# EI2C global definitions file
#===============================================================================
# author: Theodor Stana (t.stana@cern.ch)
#
# date of creation: 2014-03-05
#
# version: 1.0
#
# description:
#
# This module defines some global constants that are used by other scripts in
# the software suite. The constants and their definitions are in the code
# below.
#
#===============================================================================
# GNU LESSER GENERAL PUBLIC LICENSE
#===============================================================================
# This source file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version. This source is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details. You should have
# received a copy of the GNU Lesser General Public License along with this
# source; if not, download it from http://www.gnu.org/licenses/lgpl-2.1.html
#===============================================================================
# last changes:
# 2014-03-05 Theodor Stana File created
#===============================================================================
# TODO: -
#===============================================================================
# Hostname, username and password
HNAME
=
""
USER
=
""
PWD
=
""
# Boolean to tell the ei2c.py module whether to create a dump file for the ELMA
# command replies
DUMP
=
False
software/multiboot/readflash.py
View file @
5facf345
...
...
@@ -138,6 +138,7 @@ if __name__ == "__main__":
dat
=
[]
for
i
in
range
(
sa
,
ea
,
256
):
dat
+=
flash_read
(
i
,
256
)
print
(
"0x
%06
x"
%
i
)
dat
=
''
.
join
(
map
(
chr
,
dat
))
f
=
open
(
"flash.bin"
,
"wb"
)
f
.
write
(
dat
)
...
...
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