diff --git a/DOC/dbase/pigpio.sqlite b/DOC/dbase/pigpio.sqlite index 6ac1161..a26ab8e 100644 Binary files a/DOC/dbase/pigpio.sqlite and b/DOC/dbase/pigpio.sqlite differ diff --git a/DOC/src/defs/pigs.def b/DOC/src/defs/pigs.def index 7c3ef07..f678126 100644 --- a/DOC/src/defs/pigs.def +++ b/DOC/src/defs/pigs.def @@ -2610,7 +2610,7 @@ $ pigs wvas 7 38400 8 2 0 0x41 0x42 WVTAT :: This command returns the id of the waveform currently -being transmitted. +being transmitted. Chained waves are not supported. Returns the waveform id or one of the following special values: diff --git a/pigpio.c b/pigpio.c index 6ef6ce9..4bee29a 100644 --- a/pigpio.c +++ b/pigpio.c @@ -14002,44 +14002,6 @@ int gpioCfgSetInternals(uint32_t cfgVal) return 0; } -int gpioCfgInternals(unsigned cfgWhat, unsigned cfgVal) -{ - int retVal = PI_BAD_CFG_INTERNAL; - - DBG(DBG_USER, "cfgWhat=%u, cfgVal=%d", cfgWhat, cfgVal); - - switch(cfgWhat) - { - case 562484977: - - if (cfgVal) gpioCfg.internals |= PI_CFG_STATS; - else gpioCfg.internals &= (~PI_CFG_STATS); - - DBG(DBG_ALWAYS, "show stats is %u", cfgVal); - - retVal = 0; - - break; - - case 984762879: - - if ((cfgVal >= DBG_ALWAYS) && (cfgVal <= DBG_MAX_LEVEL)) - { - - gpioCfg.dbgLevel = cfgVal; - gpioCfg.internals = (gpioCfg.internals & (~0xF)) | cfgVal; - - DBG(DBG_ALWAYS, "Debug level is %u", cfgVal); - - retVal = 0; - } - - break; - } - - return retVal; -} - /* include any user customisations */ diff --git a/pigpio.h b/pigpio.h index c318515..a24e074 100644 --- a/pigpio.h +++ b/pigpio.h @@ -106,6 +106,15 @@ return error PI_NOT_INITIALISED. If the library is initialised the [*gpioCfg**] functions will return error PI_INITIALISED. +If you intend to rely on signals sent to your application, you should +turn off the internal signal handling as show in this example: +. . +int cfg = gpioCfgGetInternals(); +cfg |= PI_CFG_NOSIGHANDLER; // (1<<10) +gpioCfgSetInternals(cfg); +int status = gpioInitialise(); +. . + TEXT*/ /*OVERVIEW @@ -377,7 +386,6 @@ gpioCfgSocketPort Configure socket port gpioCfgMemAlloc Configure DMA memory allocation mode gpioCfgNetAddr Configure allowed network addresses -gpioCfgInternals Configure misc. internals (DEPRECATED) gpioCfgGetInternals Get internal configuration settings gpioCfgSetInternals Set internal configuration settings @@ -4975,18 +4983,6 @@ numSockAddr: 0-256 (0 means all addresses allowed) D*/ -/*F*/ -int gpioCfgInternals(unsigned cfgWhat, unsigned cfgVal); -/*D -Used to tune internal settings. - -. . -cfgWhat: see source code - cfgVal: see source code -. . -D*/ - - /*F*/ uint32_t gpioCfgGetInternals(void); /*D @@ -5003,6 +4999,7 @@ settings. . . cfgVal: see source code . . + D*/