Remove deprecated gpioCfgInternals API. Fix issue #341.
authorGuy McSwain <guy.mcswain@gmail.com>
Fri, 26 Jun 2020 04:02:41 +0000 (23:02 -0500)
committerGuy McSwain <guy.mcswain@gmail.com>
Sat, 27 Jun 2020 12:25:45 +0000 (07:25 -0500)
DOC/dbase/pigpio.sqlite
DOC/src/defs/pigs.def
pigpio.c
pigpio.h

index 6ac1161460adff80dca79168648fec76f71d3a6c..a26ab8e50b2ae5b1a67829e5a808e556115cea5f 100644 (file)
Binary files a/DOC/dbase/pigpio.sqlite and b/DOC/dbase/pigpio.sqlite differ
index 7c3ef07edb593355f18eabf1b148340074eede4c..f678126db4ce03a6fce18db065d3257cc38d260a 100644 (file)
@@ -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:
index 6ef6ce9b21a435e2bb698303c84ea55076a45517..4bee29a6c2fbd2bb10dc2a5b6822fb93808e96a5 100644 (file)
--- 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 */
 
index c3185155599e5200507569fbf5660c1db619a5e6..a24e074ffd445577fd8f78dc18a004d5f23a7df8 100644 (file)
--- 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*/