Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
PyPCC
Commits
e808b7f6
Commit
e808b7f6
authored
3 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
HBAT PPS sync
parent
1d816c47
No related branches found
No related tags found
No related merge requests found
Pipeline
#24888
passed
3 years ago
Stage: image
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/RECVTR_HB.yaml
+2
-2
2 additions, 2 deletions
config/RECVTR_HB.yaml
i2cserv/hba1.py
+3
-2
3 additions, 2 deletions
i2cserv/hba1.py
with
5 additions
and
4 deletions
config/RECVTR_HB.yaml
+
2
−
2
View file @
e808b7f6
...
@@ -16,7 +16,7 @@ drivers:
...
@@ -16,7 +16,7 @@ drivers:
type
:
hba1
#Special driver to manage HBAT1s.
type
:
hba1
#Special driver to manage HBAT1s.
parent
:
I2C_RCU
parent
:
I2C_RCU
devreg
:
[
0x40.0x10
]
#I2C broadcast register
devreg
:
[
0x40.0x10
]
#I2C broadcast register
parameters
:
[
15
]
#PPS GPIO pin
parameters
:
[
24
]
#PPS GPIO pin
-
name
:
I2Cbb1
-
name
:
I2Cbb1
type
:
i2cbitbang1
#I2C bitbang via GPIO expander
type
:
i2cbitbang1
#I2C bitbang via GPIO expander
devreg
:
[
IO3.GPIO2
,
IO3.GPIO2
,
IO3.CONF2
]
devreg
:
[
IO3.GPIO2
,
IO3.GPIO2
,
IO3.CONF2
]
...
@@ -486,7 +486,7 @@ variables:
...
@@ -486,7 +486,7 @@ variables:
dim
:
3072
dim
:
3072
dim2
:
[
32
,
96
]
dim2
:
[
32
,
96
]
mask
:
ANT_mask
mask
:
ANT_mask
wait
:
100
#ms
wait
:
PPS
#1500 #ms neads to readback after send, which is after next PPS
-
name
:
[
HBAT_LED_on
,
HBAT_PWR_on
,
HBAT_PWR_LNA_on
]
-
name
:
[
HBAT_LED_on
,
HBAT_PWR_on
,
HBAT_PWR_LNA_on
]
description
:
HBA frontend control
description
:
HBA frontend control
...
...
This diff is collapsed.
Click to expand it.
i2cserv/hba1.py
+
3
−
2
View file @
e808b7f6
...
@@ -30,11 +30,12 @@ class hba1(hwdev):
...
@@ -30,11 +30,12 @@ class hba1(hwdev):
self
.
conf
[
'
parentcls
'
].
SetGetVarValueMask
(
var1
,
data
,
mask
,
getalso
=
False
)
self
.
conf
[
'
parentcls
'
].
SetGetVarValueMask
(
var1
,
data
,
mask
,
getalso
=
False
)
#Wait for PPS if required else wait a bit
#Wait for PPS if required else wait a bit
if
var1
.
get
(
'
wait
'
)
==
"
PPS
"
:
if
var1
.
get
(
'
wait
'
)
==
"
PPS
"
:
# logging.info("HBA wait PPS")
channel
=
GPIO
.
wait_for_edge
(
self
.
pin
,
GPIO
.
RISING
,
timeout
=
1500
)
channel
=
GPIO
.
wait_for_edge
(
self
.
pin
,
GPIO
.
RISING
,
timeout
=
1500
)
self
.
conf
[
'
parentcls
'
].
i2csetget
(
self
.
addr
,[
self
.
reg
])
self
.
conf
[
'
parentcls
'
].
i2csetget
(
self
.
addr
,[
self
.
reg
])
if
channel
is
None
:
if
channel
is
None
:
logging
.
info
(
"
PPS not received!
"
);
logging
.
warning
(
"
PPS not received!
"
);
sleep
(
0.6
)
sleep
(
1.0
)
# return False;
# return False;
elif
var1
.
get
(
'
wait
'
):
elif
var1
.
get
(
'
wait
'
):
logging
.
debug
(
"
Wait %i ms
"
,
var1
.
get
(
'
wait
'
))
logging
.
debug
(
"
Wait %i ms
"
,
var1
.
get
(
'
wait
'
))
...
...
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