mirror of https://github.com/joan2937/pigpio
Changed spelling
This commit is contained in:
parent
1aa4cca8a6
commit
e835006196
5
pigpio.c
5
pigpio.c
|
@ -8477,6 +8477,11 @@ int gpioInitialise(void)
|
|||
return status;
|
||||
}
|
||||
|
||||
int gpioInitialize(void)
|
||||
{
|
||||
return gpioInitialise;
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
|
|
29
pigpio.h
29
pigpio.h
|
@ -909,6 +909,35 @@ typedef void *(gpioThreadFunc_t) (void *);
|
|||
|
||||
#define PI_EVENT_BSC 31
|
||||
|
||||
/*F*/
|
||||
int gpioInitialize(void);
|
||||
/*D
|
||||
Initializes the library.
|
||||
|
||||
Returns the pigpio version number if OK, otherwise PI_INIT_FAILED.
|
||||
|
||||
gpioInitialize must be called before using the other library functions
|
||||
with the following exceptions:
|
||||
|
||||
. .
|
||||
[*gpioCfg**]
|
||||
[*gpioVersion*]
|
||||
[*gpioHardwareRevision*]
|
||||
. .
|
||||
|
||||
...
|
||||
if (gpioInitialize() < 0)
|
||||
{
|
||||
// pigpio initialization failed.
|
||||
}
|
||||
else
|
||||
{
|
||||
// pigpio initialized okay.
|
||||
}
|
||||
...
|
||||
D*/
|
||||
|
||||
|
||||
/*F*/
|
||||
int gpioInitialise(void);
|
||||
/*D
|
||||
|
|
Loading…
Reference in New Issue