Merge pull request #456 from berndporr/develop

gpioCfgSetInternals now returns PI_INITIALISED after gpioInitialise
This commit is contained in:
Guy McSwain 2021-04-15 10:21:55 -05:00 committed by GitHub
commit dcb2fbe1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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