1. 18 Oct, 2018 1 commit
  2. 27 Jun, 2018 2 commits
  3. 26 Feb, 2018 6 commits
    • Federico Vaga's avatar
      kernel: reset last trigger on new acquisition · 9120066f
      Federico Vaga authored
      This prevent to get confused about the value of this register.
      Whenever the user starts a new acquisition we reset the
      last triggered register. This guarantee that the value shown comes
      from the last acquisition
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      9120066f
    • Federico Vaga's avatar
      doc: port to Shpinx · c05f4525
      Federico Vaga authored
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      c05f4525
    • Federico Vaga's avatar
      remove lib and libtools · 856497c1
      Federico Vaga authored
      The driver's users are supposed to use the generic `adc-lib`
      library from OHWR.
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      856497c1
    • Federico Vaga's avatar
      kernel: enable software trigger by default · e3fc1b13
      Federico Vaga authored
      Enabling the software trigger by default it does not cause any harm and
      it simplifies the code and the interface. The user is free to disable it
      using the `source` attribute from sysfs.
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      e3fc1b13
    • Federico Vaga's avatar
      kernel: gateware v5 updates · e3700a3a
      Federico Vaga authored
      The gateware version 5 does not have anymore the selection
      between internal or external trigger. Instead, there is the
      possibility to have more that one trigger source enabled.
      
      Internals:
      - the acquisition metadata now provides a whiterabbit timestamp
        and information about the trigger source that started the acquisition
      
      Registers change:
      - one register to enable/disable all trigger sources
      - one register to set the polarity on all the triggers
      - threshould/hysteresis for each channel
      - delay on the following triggers: ext, channel[1; 4]
      
      Sysfs changes
      - add attributes to configure threshould
      - trigger "enable" will restore the last known enable status
      e3700a3a
    • Federico Vaga's avatar
      kernel: do a proper reset of the FMC mezzanine · 32ef6bfc
      Federico Vaga authored
      In gateware version 5 the logic of the FMC reset bit change from active low
      to active high: "reset: {1: reset, 0 unreset}".
      
      Here with this patch we do a complete reset cycle of the FMC mezzanine.
      The sleeping time between reset and unreset is huge but we do not care much,
      this is just the initialization.
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      32ef6bfc
  4. 14 Feb, 2018 4 commits
  5. 13 Feb, 2018 4 commits
  6. 09 Feb, 2018 1 commit
  7. 29 Jan, 2018 3 commits
  8. 21 Dec, 2017 1 commit
  9. 29 Nov, 2017 1 commit
  10. 28 Nov, 2017 3 commits
  11. 07 Apr, 2017 3 commits
  12. 22 Feb, 2017 1 commit
  13. 21 Feb, 2017 2 commits
  14. 07 Dec, 2016 3 commits
  15. 21 Sep, 2016 2 commits
  16. 17 Jul, 2016 1 commit
  17. 13 Jul, 2016 2 commits
    • Federico Vaga's avatar
      lib: cast token pointer to the final data strucutre · 415a814e
      Federico Vaga authored
      this will fix g++ warnings and will not affect the gcc and C logic even
      if `(void *)` is perfectly legal in C
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      415a814e
    • Federico Vaga's avatar
      lib: when compiling with g++ ingore string warning · 1cb96634
      Federico Vaga authored
      This is a C library that it can be used by C++ programs as well.
      So the library header will be included in some C++ program and g++
      will rise warnings like this:
      
      ------
      fmcadc-lib.h: In function 'int fmcadc_mshot_buf_max_size_get(fmcadc_dev*, int*)':
      fmcadc-lib.h:202:74: warning: deprecated conversion from string constant to 'char*'
      [-Wwrite-strings]
               return fmcadc_get_param(dev, "cset0/max-sample-mshot", NULL, value);
      ------
      
      This patch will suppress all these warning because what we are doing is
      correct. The message says that it's deprecated; probably at some point
      in time it will not be supported at all and we will see errors instead
      of warnings. This patch is suppressing only the warnings.
      
      For the time being we prefer this solution instead of casting strings
      to `(char *)` because it's ugly and unclear from C point of view.
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      Signed-off-by: Juan David González Cobas's avatarJuan David Gonzalez Cobas <dcobas@cern.ch>
      1cb96634