Commit graph

7 commits

Author SHA1 Message Date
Sebastian Kuzminsky
6c6d5a65d4 Merge remote-tracking branch 'origin/v3.3'
* origin/v3.3:
  read-hmid: report unknown pins better
  hm2_print_pin_file(): use find_module_name() instead of searching the list
  rename pin_find_module_name() to find_module_name()
  include gtag number of unknown gtags in pin list
  remove dead code
  7i96: fixup pins per connector
  don't segfault on unknown ethernet boards
  fix a typo in a comment
  fix SSR pin names
  fix sserial channel number in readhmid pin list
  rename the "Transformer" GTAG to "SSR", to match the linuxcnc hm2 driver
  7i96: make the connector list match the ioport list
  capitalize Ethernet consistently in --help message
  fix addr argument for ethernet boards in --help message
  consistent capitalization and punctuation in --help output
  fix formatting of --help output
  release 3.3.0~pre0+dfsg-0
  release mesaflash 3.2.1
  debian/changelog: new version
  pci_analog_write: include unistd.h, which declares usleep()
  sserial_module: declare sserial_write(), used by pci_analog_write
  pci_encoder_read: include unistd.h, for usleep()
  serial_boards: add some missing declarations
  spi_boards: include unistd.h
  spi_boards: include ctype.h
  add missing return value in spi_boards_init()
  spi_boards: include eeprom.h
  eeprom_local: include pci/pci.h
  hostmot2: add some missing function declarations
  pci_boards: move pci_read() and pci_write() to before the first use in the file
  pci_boards: include sys/time.h
  anyio: include missing serial_boards.h
  include bitfile.h in eeprom.c, for print_bitfile_header()
  function declarations shouldn't be marked inline
2020-04-23 12:40:29 -06:00
Damian Wrobel
803a569576 Fix compilation errors
Fixes the following compilation errors:
examples/pci_encoder_read.c:33:19: error: unknown type name ‘useconds_t’; did you mean ‘suseconds_t’?
   33 | extern int usleep(useconds_t usec); // static global access variable conflicts with POSIX function in unistd.h
      |                   ^~~~~~~~~~
      |                   suseconds_t
examples/pci_encoder_read.c: In function ‘main’:
examples/pci_encoder_read.c:171:9: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
  171 |         usleep(delay*1000);             // wait delay ms
      |         ^~~~~~

examples/pci_encoder_read.c:40:23: error: ‘access’ redeclared as different kind of symbol
   40 | static board_access_t access;
      |                       ^~~~~~
In file included from examples/pci_encoder_read.c:29:
/usr/include/unistd.h:287:12: note: previous declaration of ‘access’ was here
  287 | extern int access (const char *__name, int __type) __THROW __nonnull ((1));
      |            ^~~~~~

examples/pci_analog_write.c:33:19: error: unknown type name ‘useconds_t’; did you mean ‘suseconds_t’?
   33 | extern int usleep(useconds_t usec); // static global access variable conflicts with POSIX function in unistd.h
      |                   ^~~~~~~~~~
      |                   suseconds_t

examples/pci_analog_write.c:40:23: error: ‘access’ redeclared as different kind of symbol
   40 | static board_access_t access;
      |                       ^~~~~~
In file included from examples/pci_analog_write.c:29:
/usr/include/unistd.h:287:12: note: previous declaration of ‘access’ was here
  287 | extern int access (const char *__name, int __type) __THROW __nonnull ((1));
      |            ^~~~~~

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-04-20 16:32:22 +02:00
Sebastian Kuzminsky
9f2bb5e0fa Merge branch 'v3.2' into v3.3
Conflicts:
	debian/changelog
	eeprom_local.c
	pci_boards.c
2017-06-27 10:33:37 -06:00
Sebastian Kuzminsky
b40248b68e pci_analog_write: include unistd.h, which declares usleep()
Also rename the variable "access" to "board_access" to avoid collission
with the access() function declared by unistd.h .
2017-06-25 20:48:36 -06:00
joe
2e616010c3 fixup implicit function declaration warnings 2015-10-06 18:25:40 -07:00
Michael Geszkiewicz
3106d0df2b anyio: refactor: unification of functions arguments in hostmot2 access interface
factor out common board structure initialisations to function

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2015-03-09 01:01:03 +01:00
Michael Geszkiewicz
d29c36a809 sserial: add support for 7i77 analog sserial remote, add also example program for it
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2014-09-19 12:47:11 +02:00