summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@iss-tomyspiel-l>2011-06-16 15:15:24 +0200
committerroot <root@iss-tomyspiel-l>2011-06-16 15:15:24 +0200
commit7155e6c0dceb0b860bec6c0e428450137cad39a0 (patch)
treef0d89aff975708d4f0796d3b4d3d4049d1a55add
parent1aafef50177b850efda576259cb78d2df7d03259 (diff)
downloadpcitool-7155e6c0dceb0b860bec6c0e428450137cad39a0.tar.gz
pcitool-7155e6c0dceb0b860bec6c0e428450137cad39a0.tar.bz2
pcitool-7155e6c0dceb0b860bec6c0e428450137cad39a0.tar.xz
pcitool-7155e6c0dceb0b860bec6c0e428450137cad39a0.zip
New reset routine
-rw-r--r--ipecamera/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipecamera/image.c b/ipecamera/image.c
index 4d55069..0dc51fc 100644
--- a/ipecamera/image.c
+++ b/ipecamera/image.c
@@ -19,7 +19,7 @@
#define IPECAMERA_SLEEP_TIME 250000
#define IPECAMERA_MAX_LINES 1088
#define IPECAMERA_DEFAULT_BUFFER_SIZE 10
-#define IPECAMERA_EXPECTED_STATUS 0x0849FFFF
+#define IPECAMERA_EXPECTED_STATUS 0x08409FFFF
//#define IPECAMERA_EXPECTED_STATUS 0x0049FFFF
#define IPECAMERA_MAX_CHANNELS 16
@@ -206,7 +206,7 @@ int ipecamera_reset(pcilib_context_t *vctx) {
status = ctx->status_reg;
// Set Reset bit to CMOSIS
- err = pcilib_write_register_by_id(pcilib, control, 5);
+ err = pcilib_write_register_by_id(pcilib, control, 0x1e4);
if (err) {
pcilib_error("Error setting CMOSIS reset bit");
return err;
@@ -214,7 +214,7 @@ int ipecamera_reset(pcilib_context_t *vctx) {
usleep(IPECAMERA_SLEEP_TIME);
// Remove Reset bit to CMOSIS
- err = pcilib_write_register_by_id(pcilib, control, 1);
+ err = pcilib_write_register_by_id(pcilib, control, 0x1e1);
if (err) {
pcilib_error("Error reseting CMOSIS reset bit");
return err;