1. 09 May, 2013 2 commits
  2. 08 May, 2013 10 commits
  3. 06 May, 2013 8 commits
  4. 03 May, 2013 1 commit
    • Cesar Prados's avatar
      Makefile: change to support gmake-3.82 · 152111a8
      Cesar Prados authored
      Split a rule into two rules, to make make happy.
      
      In previous versions of make it was acceptable to list one or more
      explicit targets followed by one or more pattern targets in the same
      rule and it worked "as expected". However, this was not documented as
      acceptable and if you listed any explicit targets AFTER the pattern
      targets, the entire rule would be mis-parsed. This release removes
      this ability completely: make will generate an error message if you
      mix explicit and pattern targets in the same rule. You must split
      these rules into two rules: one for the pattern and one for the
      explicit targets. The Linux kernel source has already been modified in
      this way (in newer kernels).
      152111a8
  5. 26 Apr, 2013 6 commits
  6. 24 Apr, 2013 1 commit
  7. 23 Apr, 2013 1 commit
  8. 09 Apr, 2013 1 commit
  9. 04 Apr, 2013 2 commits
  10. 03 Apr, 2013 8 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
      include/w1.h
      
      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
      read-out.
      
         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
      sockitowm.
      
      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>
      ad2efece
    • Alessandro Rubini's avatar
      w1: files for new onewire implementation (not built) · bab55a8a
      Alessandro Rubini authored
      This adds the files for an alternative to sockitowm. I called it "w1"
      like in the Linux kernel, because "onewire" was already in use as file
      name in this project.
      
      The bus scanning code was a fun project of mine a few years ago, the
      rest is what I did for my own crappy operating system in the last few
      days.  This commit adds the files as modified to build in wrpc-sw, since
      I have no "official" Bathos files yet to diff against.
      
      This commit doesn't change the build, only adds the file, so actual
      changes to existing code is all part of the next (smaller) commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      bab55a8a
    • Alessandro Rubini's avatar
      tools: add wrpc-uart-sw.c · d796977e
      Alessandro Rubini authored
      This is the host part of the software-only uart. The lm32 part is
      selected at compile time (CONFIG_UART_SW).
      
      The tool, when run, opens one or more pty pairs, and reports to stdout
      which is the name of the slave descriptor. You can then run
      "minicom -p /dev/pts/XXX" or other commands, to access the software uart.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      d796977e
    • Alessandro Rubini's avatar
      tools/Makefile: link with -lutil · 80789ee6
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      80789ee6
    • Alessandro Rubini's avatar
      dev: introduce uart-sw · fd3f8864
      Alessandro Rubini authored
      This introduces dev/uart-sw as an alternative to dev/uart . The
      software-only thing is a pair of circular buffers that can be driven
      by tools/wrpc-uart-sw .
      
      The software uart can be enabled by Kconfig (and is disabled by
      default).  The code size is the same as the uart, but it "wastes" 306
      bytes of data space.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      fd3f8864
    • Alessandro Rubini's avatar
      shell: added "sleep" command (not built by default) · bccfebd2
      Alessandro Rubini authored
      This adds "sleep" that is used to verify the usleep function.
      It is not build by default nor by a Kconfig option, because it is
      not expected to be generally useful.
      
      To build, add "CONFIG_CMD_SLEEP=y" to the command line of make.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      bccfebd2
    • 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>
      3497d157
    • Alessandro Rubini's avatar
      lib/ptp-noposix-wrappers.c: copied from ptp-noposix · b445f5ca
      Alessandro Rubini authored
      This is a copy of ptp-noposix/libposix/freestanding-wrapper.c, moved
      into this project because it actually is only used here. The Makefile
      now builds this one.
      
      This move is needed in order to remove this faulty usleep and provide a
      better one, while keeping the other fake functions called by ptp-noposix
      code.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      b445f5ca