Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid two PpsInp records are set at the same time #161

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions evgMrmApp/Db/evgMrm.db
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,24 @@ record(mbbo, "$(P)PpsInp-Sel") {
field(FFVL, "0x2000")
field(UNSV, "INVALID")
field(IVOA, "Don't drive outputs")
field(FLNK, "$(P)PpsInp-MbbiDir_")
field(FLNK, "$(P)PpsInp-CO_")
info(autosaveFields_pass0, "VAL")
}

record(calcout, "$(P)PpsInp-CO_") {
field(ASG, "private")
field(INPA, "$(P)PpsInp-Sel NPP")
field(CALC, "A")
field(OOPT, "When Non-zero")
field(DOPT, "Use OCAL")
field(OCAL, "0") # when PpsInp-Sel is not 0, set other PpsInp to 0
field(OUT , "$(P)PpsInp-DFO_ PP")
}
record(dfanout, "$(P)PpsInp-DFO_"){
field(SELM, "All")
field(OUTA, "$(P)PpsInp1-Sel PP")
#field(OUTB, "$(P)PpsInp2-Sel PP")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could that be removed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #164 adds more PpsInp source, if that is merged, this dfanout becomes necessary

field(FLNK, "$(P)PpsInp-MbbiDir_")
}
#
# Each bit of the PpsInp-MbbiDir record is used to toggle the external input
# interrupt of the corresponding external input.
Expand Down Expand Up @@ -188,10 +202,24 @@ record(mbbo, "$(P)PpsInp1-Sel") {
field(FFSV, "INVALID")
field(UNSV, "INVALID")
field(IVOA, "Don't drive outputs")
field(FLNK, "$(P)PpsInp1-MbbiDir_")
field(FLNK, "$(P)PpsInp1-CO_")
info(autosaveFields_pass0, "VAL")
}

record(calcout, "$(P)PpsInp1-CO_") {
field(ASG, "private")
field(INPA, "$(P)PpsInp1-Sel NPP")
field(CALC, "A")
field(OOPT, "When Non-zero")
field(DOPT, "Use OCAL")
field(OCAL, "0") # when PpsInp-Sel is not 0, set other PpsInp to 0
field(OUT , "$(P)PpsInp1-DFO_ PP")
}
record(dfanout, "$(P)PpsInp1-DFO_"){
field(SELM, "All")
field(OUTA, "$(P)PpsInp-Sel PP")
#field(OUTB, "$(P)PpsInp2-Sel PP")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

field(FLNK, "$(P)PpsInp1-MbbiDir_")
}
#
# Each bit of the PpsInp-MbbiDir record is used to toggle the external input
# interrupt of the corresponding external input.
Expand Down