Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
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
FMC DEL 1ns 2cha
Commits
bb9540eb
Commit
bb9540eb
authored
Aug 18, 2016
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed position of SPI slave initialization to prevent SS_N line glitch
parent
544ee006
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
FFPG_driver.py
sw/FFPG_driver.py
+1
-1
No files found.
sw/FFPG_driver.py
View file @
bb9540eb
...
...
@@ -129,9 +129,9 @@ def WaitForNotBusy(register, bit, timeOut, tries, message = '', polarity = 1):
###################################################################
def
SpiInit
():
WbWrite
(
'spi_ss'
,
1
)
WbWrite
(
'spi_divider'
,
2
)
# up to 150 MHz of FPGA system clock
WbWrite
(
'spi_ctrl'
,
0x2618
)
WbWrite
(
'spi_ss'
,
1
)
def
SpiRead
(
register
):
WaitForNotBusy
(
'spi_ctrl'
,
8
,
0.001
,
2
,
'SPI read'
)
...
...
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