mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
1010/fixpower (#1677)
* sleep for g2 and my3 poweron
(cherry picked from commit 3a1af098ed)
* binaries in
---------
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
This commit is contained in:
1 parent
efb6cc368c
commit
61dcc96a2e
6 files changed
+4
-2
No files matched your search
Binary file not shown.
@@ -2298,6 +2298,7 @@ int powerChip(int on, char *mess) {
|
||||
if (on) {
|
||||
LOG(logINFO, ("Powering chip: on\n"));
|
||||
bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK);
|
||||
usleep(50 * 1000); // wait for chip to be ready
|
||||
if (configureChip(mess) == FAIL)
|
||||
return FAIL;
|
||||
} else {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2204,6 +2204,7 @@ int powerChip(int on) {
|
||||
if (on) {
|
||||
LOG(logINFO, ("Powering chip: on\n"));
|
||||
bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK);
|
||||
usleep(50 * 1000); // wait for chip to be ready
|
||||
} else {
|
||||
LOG(logINFO, ("Powering chip: off\n"));
|
||||
bus_w(CONTROL_REG, bus_r(CONTROL_REG) & ~CONTROL_PWR_CHIP_MSK);
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#define APILIB "10.1.0 0x260806"
|
||||
#define APIRECEIVER "10.1.0 0x260806"
|
||||
#define APICTB "10.1.0 0x261109"
|
||||
#define APIGOTTHARD2 "10.1.0 0x261106"
|
||||
#define APIGOTTHARD2 "10.1.0 0x261112"
|
||||
#define APIMOENCH "10.1.0 0x261109"
|
||||
#define APIEIGER "10.1.0 0x261105"
|
||||
#define APIXILINXCTB "10.1.0 0x261106"
|
||||
#define APIJUNGFRAU "10.1.0 0x261109"
|
||||
#define APIMYTHEN3 "10.1.0 0x261106"
|
||||
#define APIMYTHEN3 "10.1.0 0x261112"
|
||||
Reference in new issue
Block a user