1. 28 Sep, 2020 3 commits
  2. 21 Sep, 2020 1 commit
  3. 17 Sep, 2020 1 commit
  4. 15 Sep, 2020 1 commit
  5. 11 Sep, 2020 1 commit
    • Jan Leupold's avatar
      lib/cobalt: Wrap __open_2/__open64_2 to support _FORTIFY_SOURCE · 89f00a2e
      Jan Leupold authored
      __open_2() and __open64_2() from glibc add runtime precondition tests for the
      'oflag' parameter to the functionality of open()/open64(). They may be used when
      the macro _FORTIFY_SOURCE is defined when compiling the application code. Added
      these wrappers to cover those cases.
      
      If Xenomai itself is not compiled with FORTIFY_SOURCE then the function
      declarations for __open_2() and __open64_2() are not available.
      __STD(__open_2(...)) will not link in this case (would be a very special
      use case anyway?).
      Signed-off-by: default avatarJan Leupold <leupold@rsi-elektrotechnik.de>
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      89f00a2e
  6. 04 Sep, 2020 1 commit
  7. 19 Aug, 2020 1 commit
  8. 12 Aug, 2020 1 commit
    • chensong's avatar
      testsuite: App of gpio loopback/react benchmark · 0bcfce8f
      chensong authored
      This a tool to benchmark the latency of GPIO driver,
      it's able to run 2 kinds of benchmark test:
      
      1, loopback mode
      1) apply 2 gpio pins by calling service in gpio RTDM driver
         like gpio-bcm2835 and gpio-core.c, one is as output,
         the other is as interrupt
      2) call write_rt to send a pulse from output
      3) call read_rt to get timestamps recorded in driver (inner loop)
      4) also record timespace in user space(outer_loop)
         outer_loop is inner_loop plus overhead of event wakeup
      5) ftrace enable/disable
      
      2, react mode
      1) apply 2 gpio pins by calling service in gpio RTDM driver
         like gpio-bcm2835 and gpio-core.c, one is as ourput,
         the other is as interrupt
      2) call read_rt to wait for a pulse from latency box
      3) call write_rt to send a signal back to latency box
         as a reaction
      4) latency box calculates the diff and makes the histogram
      
      e.g.:
      1) react mode:
         gpiobench -o 20 -i 21 -c pinctrl-bcm2835 -m 1 -l 1000
      2) loopback mode:
         gpiobench -o 20 -i 21 -c pinctrl-bcm2835 -m 0 -l 1000 -h 100 -b 50
      
      CC: Jan Kiszka <jan.kiszka@siemens.com>
      CC: Greg Gallagher <greg@embeddedgreg.com>
      Signed-off-by: default avatarchensong <chensong@tj.kylinos.cn>
      [Jan: fixed time delta calculation and output for 32-bit targets]
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      0bcfce8f
  9. 02 Jun, 2020 1 commit
  10. 24 Apr, 2020 2 commits
  11. 19 Apr, 2020 1 commit
  12. 14 Apr, 2020 1 commit
  13. 06 Apr, 2020 1 commit
  14. 02 Mar, 2020 1 commit
  15. 20 Feb, 2020 1 commit
  16. 19 Feb, 2020 1 commit
  17. 17 Feb, 2020 1 commit
  18. 10 Feb, 2020 2 commits
  19. 04 Feb, 2020 1 commit
  20. 03 Feb, 2020 1 commit
  21. 31 Jan, 2020 10 commits
  22. 22 Jan, 2020 1 commit
  23. 21 Jan, 2020 1 commit
  24. 16 Jan, 2020 2 commits
  25. 14 Jan, 2020 2 commits
    • Laurentiu-Cristian Duca's avatar
      extending spitest with SPI_RTIOC_TRANSFER_N ioctl · c745fa22
      Laurentiu-Cristian Duca authored
      The ioctl_n user parameter must be set to non-zero value
      in order to perform ioctl(SPI_RTIOC_TRANSFER_N, TRANSFER_SIZE);
      if ioctl_n is 0 or undefined then the test performs ioctl(SPI_RTIOC_TRANSFER).
      Default SPI clock speed is set to 40MHz instead of 60MHz
      because bbb am335x realtime SPI driver has its maximum set to this value.
      Signed-off-by: default avatarLaurentiu-Cristian Duca <laurentiu.duca@gmail.com>
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      c745fa22
    • Laurentiu-Cristian Duca's avatar
      am335x (beaglebone black) omap4 spi real-time driver. · 3d8d59f9
      Laurentiu-Cristian Duca authored
      spi-omap2-mcspi-rt.c:
      I/O handling is lifted from  omap2/4 mcspi linux driver.
      The code follows the model in spi-bcm2835.c.
      The theoretical maximum spi frequency of am335x omap4 is 48MHz,
      and the driver practical maximum frequency is limited to 40MHz.
      The omap4 maximum fifo queue size is 64 bytes,
      but when the transfer implies both sending and receiving
      it is limited to 32, so, in the driver things are kept simple:
      max 32 for tx and max 32 for rx.
      When the driver must transfer N bytes
      then ((int)(N/32))*32 bytes are transfered with fifo queue size 32
      and (N mod 32) bytes are transfered with fifo queue size (N mod 32);
      between fifo setup, the slave chip select line is kept active
      by using the FORCE bit in the channel configuration register.
      Signed-off-by: default avatarLaurentiu-Cristian Duca <laurentiu.duca@gmail.com>
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      3d8d59f9