mirror of https://github.com/joan2937/pigpio
Merge pull request #456 from berndporr/develop
gpioCfgSetInternals now returns PI_INITIALISED after gpioInitialise
This commit is contained in:
commit
dcb2fbe1f2
1
pigpio.c
1
pigpio.c
|
@ -14023,6 +14023,7 @@ uint32_t gpioCfgGetInternals(void)
|
|||
|
||||
int gpioCfgSetInternals(uint32_t cfgVal)
|
||||
{
|
||||
if (libInitialised) return PI_INITIALISED;
|
||||
gpioCfg.internals = cfgVal;
|
||||
gpioCfg.dbgLevel = cfgVal & 0xF;
|
||||
gpioCfg.alertFreq = (cfgVal>>4) & 0xF;
|
||||
|
|
|
@ -592,8 +592,8 @@ user_gpio: 0-31.
|
|||
range: 25-40000.
|
||||
. .
|
||||
|
||||
Returns 0 if OK, otherwise PI_BAD_USER_GPIO, PI_BAD_DUTYRANGE,
|
||||
or PI_NOT_PERMITTED.
|
||||
Returns the actual range for the current gpio frequency if OK,
|
||||
otherwise PI_BAD_USER_GPIO, PI_BAD_DUTYRANGE, or PI_NOT_PERMITTED.
|
||||
|
||||
Notes
|
||||
|
||||
|
|
Loading…
Reference in New Issue