1. 20 Jan, 2016 1 commit
  2. 27 Oct, 2015 1 commit
  3. 15 Oct, 2015 2 commits
  4. 08 Oct, 2015 2 commits
  5. 02 Oct, 2015 1 commit
  6. 26 Jul, 2015 2 commits
  7. 23 Jul, 2015 2 commits
  8. 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>
  9. 08 Jan, 2015 2 commits
  10. 06 Jan, 2015 7 commits
  11. 18 Nov, 2014 1 commit
    • Alessandro Rubini's avatar
      eeprom: rename "present" to "init" · ab8e3c9c
      Alessandro Rubini authored
      eeprom_present() returned a value nobody used. Rename to eeprom_init()
      instead. Also, save the two parameters so that they are not needed
      in other functions (see later commits).
      Also, turn int8_t to int as function arguments (int is better for the
      This adds 20 bytes to the legacy case, and removes 4 to the sdb case.
      The legacy size is reduced by later commits.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  12. 05 Aug, 2014 1 commit
  13. 12 Feb, 2014 1 commit
  14. 06 Feb, 2014 2 commits
  15. 17 Oct, 2013 1 commit
  16. 11 Oct, 2013 2 commits
  17. 14 May, 2013 1 commit
  18. 09 May, 2013 1 commit
  19. 08 May, 2013 1 commit
    • Alessandro Rubini's avatar
      general: improve sw-uart support (only for expert config). · 992dc8d7
      Alessandro Rubini authored
      This commits affect several files, to be able to support both uart and
      uart_sw at the same time. My aim is sending verbose ppsi diagnostics
      to the uart_sw while retaining the real uart (or vuart) for the
      interactive user and wrpc status gui.
      To this aim, I use weak functions to avoid hairy ifdef around the code.
      Now both hw and sw uarts are initialized, and the missing init just
      does nothing. Also, uart_sw_write_string is always defined, and
      it is an alias of uart_write_string if no uart_sw is built.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  20. 26 Apr, 2013 1 commit
  21. 03 Apr, 2013 2 commits
    • Alessandro Rubini's avatar
      onewire: Kconfig choice between w1 and sockitowm · ad2efece
      Alessandro Rubini authored
      This adds the build choice about whether to use the older sockitowm or
      the new "w1" implementation, which supports all three thermometers
      but is still missing eeprom support (the API is defined, though, see
      This also adds a shell command, called "w1", which rescans the bus and
      tries to read the temperature from all devices. In the example below
      the third device is an eeprom, so it return an error for temperature
         wrc# w1
         W1: 68000801dce56910
         W1: f70000001eda8242
         W1: 5f00000040e50143
         device 0: 68000801dce56910
         temp: 34.7500
         device 1: f70000001eda8242
         temp: 32.5000
         device 2: 5f00000040e50143
         temp: -32768.0000
      The code is properly integrated in wrpc-sw, and the "first" thermometer is
      used to build the MAC address of the device, like it used to be with
      The binary built with w1 is 3kB smaller than what is build with sockitowm.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    • Alessandro Rubini's avatar
      lib: add usleep.c (and call its own init from main) · 3497d157
      Alessandro Rubini authored
      This adds a real usleep implementation. The init function calculates
      the "loops per jiffy" variable, by watching the timer ticks before
      interrupts are enabled by spll_init().  This init takes 40ms.
      Then, the udelay runs the same loop used in calculating lpj, and
      is thus correct (it will be slower because we have interrupts running
      at run time, but this is not a problem).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  22. 26 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      Optionally detect reset and print a stack trace · 7836c39e
      Alessandro Rubini authored
      The new configuation option CONFIG_CHECK_RESET adds a function to dump
      the stack (to the serial port) if a reset is detected. This happens
      when a null pointer is followed or when the program is reloaded
      (spec-sw/tools/spec-cl, for example).  For this reason, the feature is
      disabled by default (actually, spec-cl may clear the RAM first, but it
      currently doesn't do that and the check is triggered).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
  23. 22 Mar, 2013 1 commit
  24. 12 Mar, 2013 1 commit
  25. 14 Feb, 2013 1 commit
  26. 05 Dec, 2012 1 commit