Sfoglia il codice sorgente

Merge branch 'develop'

pull/44/head
Thiti Yamsung 8 anni fa
parent
commit
475ec98d8f
2 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. +11
    -0
      wiringPi/wiringSerial.c
  2. +1
    -0
      wiringPi/wiringSerial.h

+ 11
- 0
wiringPi/wiringSerial.c Vedi File

@@ -159,6 +159,17 @@ void serialPuts (const int fd, const char *s)
}

/*
* serialPuts:
* Send binarys to serial port
*********************************************************************************
*/

void serialPutBin (const int fd, const char *bin, unsigned int size)
{
write (fd, bin, size) ;
}

/*
* serialPrintf:
* Printf over Serial
*********************************************************************************


+ 1
- 0
wiringPi/wiringSerial.h Vedi File

@@ -29,6 +29,7 @@ extern void serialClose (const int fd) ;
extern void serialFlush (const int fd) ;
extern void serialPutchar (const int fd, const unsigned char c) ;
extern void serialPuts (const int fd, const char *s) ;
extern void serialPutBin (const int fd, const char *bin, unsigned int size) ;
extern void serialPrintf (const int fd, const char *message, ...) ;
extern int serialDataAvail (const int fd) ;
extern int serialGetchar (const int fd) ;


Caricamento…
Annulla
Salva