1. 23 Feb, 2017 2 commits
  2. 16 Feb, 2017 1 commit
  3. 10 Jun, 2016 2 commits
  4. 18 May, 2016 1 commit
  5. 04 Apr, 2016 4 commits
    • Alessandro Rubini's avatar
      general: use an ELF section for tasks · d9d20c8b
      Alessandro Rubini authored
      This allows several functions to be static in the files where they
      are defined. See temperature.c for an example.
      But mainly, the idea is allowing ease addition of features (likely
      Kconfig'd ones) for specific WR users, without any modification to the
      main function and other generic code.  This will happen soon for snmp,
      for example.
      We may push this a little further, by moving all shell stuff into
      shell.c, the ptp task within ppsi itself, and so on. But now my time
      is over.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    • Alessandro Rubini's avatar
      temperature: add a temperature framework · e2e7d59a
      Alessandro Rubini authored
      This commit adds data structures, methods and a process to manage
      temperature.  Currently the only temperature being read is the onewire
      thermometer, so there is no difference with what we had before.
      The cost is 1.1 kB in binary size.
      Well, there is a difference: only the stat engine was reading
      temperature, while now the thermometer is read continuously (every 15
      seconds, or another Kconfig-urable interval).  This takes quite some
      CPU time (18.5ms per polling loop, but allows any user to read
      temperature (using the API we now provide) without re-reading the
      onewire bus.
      The real aim of this is monitoring a board-specific set of sensors,
      as implemented and show in the next commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    • Alessandro Rubini's avatar
      vlan: add one VLAN in Kconfig as an option · a444be3e
      Alessandro Rubini authored
      WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit
      Unfortunately this commit makes the internal communication between
      minic and lan asymmetric: on receive the tag is discarded (and the
      longer header falls into the payload) while on transmit it must be
      provided by lan.c.
      The reason is that on receive we can trim 4 bytes from the payload,
      but on send we can't add 4 bytes without a memmove.  The functions
      receive pointers to two different header structures, so hopefully
      user errors will be signalled by the compiler.
      Still, users interact with net.c, which hides vlan completely from
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    • Alessandro Rubini's avatar
      trivial: remove unused man_phase · 0887cbbe
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  6. 16 Feb, 2016 7 commits
  7. 15 Feb, 2016 2 commits
  8. 20 Jan, 2016 4 commits
  9. 27 Oct, 2015 1 commit
  10. 15 Oct, 2015 2 commits
  11. 08 Oct, 2015 2 commits
  12. 02 Oct, 2015 1 commit
  13. 26 Jul, 2015 2 commits
  14. 23 Jul, 2015 2 commits
  15. 30 Jun, 2015 1 commit
    • Adam Wujek's avatar
      wrs_main: check for stack overflow and detect reset · da3da2d9
      Adam Wujek authored
      Add checking stack overflow and detecting reset to wrs. Code common for wrpc
      and wrs is placed in system_checks.c and .h. Work is based on following
      commits in wrc_main.c:
      1704a668 main: check for stack overflow
      7836c39e Optionally detect reset and print a stack trace
      --update Kconfig to have a possibility to select CHECK_RESET also for switch,
        not only for node as before
      --and _endram to ram-wrs.ld
      When "stack overflow" occurs then message is printed once every second.
      When reset occours then LM32 will print stack trace and reset once more.
      NOTE: I couldn't get spll to work after reset, for sure problem is in
            ad9516 init function, but not only there.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
  16. 08 Jan, 2015 2 commits
  17. 06 Jan, 2015 4 commits