Revision 426ce07c

View differences:

modules/PowerManagement_1-2/module.c
717 717
            },
718 718
            /* VL53L0X_HistogramMeasurementData_t */
719 719
            {
720
                /* HistogramData */ 0,
720
                /* HistogramData */ {0},
721 721
                /* HistogramType */ 0,
722 722
                /* FirstBin */ 0,
723 723
                /* BufferSize */ 0,
......
774 774
        /* I²C address */ VL53L0X_LLD_I2C_ADDR,
775 775
        /* COMM TYPE*/ 1,
776 776
        /* COMM SPEED*/ 1,
777
    },
777
    }
778 778
};
779 779

  
780 780
VL53L0XDriver moduleLldProximity2 = {
......
879 879
        /* I²C address */ VL53L0X_LLD_I2C_ADDR,
880 880
        /* COMM TYPE*/ 1,
881 881
        /* COMM SPEED*/ 1,
882
    },
882
    }
883 883
};
884 884

  
885 885

  
......
1745 1745
          // interrupt edge register IE2.2 with falling edge (from HIGH to LOW) == 00100000 on adress 64h
1746 1746
          status |= pcal6524_lld_write_reg(mux1, PCAL6524_LLD_CMD_INTERRUPTEDGE_P2A, 0x20, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1747 1747

  
1748

  
1749 1748
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity1;
1750 1749
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT1;
1751 1750
          //set GPIO extender
......
1760 1759
          // interrupt edge register IE2.1 with falling edge (from HIGH to LOW) == 00001000 on adress 64h
1761 1760
          status |= pcal6524_lld_write_reg(mux1, PCAL6524_LLD_CMD_INTERRUPTEDGE_P2A, 0x8, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1762 1761

  
1763

  
1764

  
1765 1762
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity1;
1766 1763
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT1;
1767 1764
          //set GPIO extender
......
1793 1790
          status |= pcal6524_lld_write_reg(mux1, PCAL6524_LLD_CMD_INTERRUPTEDGE_P1B, 0x80, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1794 1791

  
1795 1792

  
1796

  
1797 1793
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity1;
1798 1794
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT1;
1799 1795
          //set GPIO extender
......
1914 1910
          status |= pcal6524_lld_write_reg(mux2, PCAL6524_LLD_CMD_INTERRUPTEDGE_P2A, 0x80, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1915 1911

  
1916 1912

  
1917

  
1918 1913
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity2;
1919 1914
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT2;
1920 1915
          //set GPIO extender
......
1945 1940
          status |= pcal6524_lld_write_reg(mux2, PCAL6524_LLD_CMD_INTERRUPTEDGE_P2A, 0x8, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1946 1941

  
1947 1942

  
1948

  
1949 1943
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity2;
1950 1944
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT2;
1951 1945
          //set GPIO extender
......
1977 1971
          status |= pcal6524_lld_write_reg(mux2, PCAL6524_LLD_CMD_INTERRUPTEDGE_P1B, 0x80, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
1978 1972

  
1979 1973

  
1980

  
1981 1974
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity2;
1982 1975
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT2;
1983 1976
          //set GPIO extender
......
2009 2002
          status |= pcal6524_lld_write_reg(mux2, PCAL6524_LLD_CMD_INTERRUPTEDGE_P1B, 0x8, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
2010 2003

  
2011 2004

  
2012

  
2013 2005
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity2;
2014 2006
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT2;
2015 2007
          //set GPIO extender
......
2025 2017
          // interrupt edge register IE1.4 with falling edge (from HIGH to LOW) == 00 00 00 10 on adress 63h
2026 2018
          status |= pcal6524_lld_write_reg(mux2, PCAL6524_LLD_CMD_INTERRUPTEDGE_P1B, 0x2, ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->timeout);
2027 2019

  
2020

  
2028 2021
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->vl53d = &moduleLldProximity2;
2029 2022
          ((ut_vl53l0xdata_t*)moduleUtAlldVl53l0x.data)->evtflags = MODULE_OS_IOEVENTFLAGS_IRINT2;
2030 2023
          //set GPIO extender
periphery-lld/AMiRo-LLD
1
Subproject commit 7021191ecfc8747358c1ea4b331b95ceb8908716
1
Subproject commit 6ebebd4d7aa9aa16a2322c41de61d41fd62140d4

Also available in: Unified diff