From 5e0688951554359f9c6ce423f2738509f714df41 Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Thu, 25 Jun 2020 23:02:41 -0500 Subject: [PATCH] Remove deprecated gpioCfgInternals API. Fix issue #341. --- DOC/dbase/pigpio.sqlite | Bin 1433600 -> 1433600 bytes DOC/src/defs/pigs.def | 2 +- pigpio.c | 38 -------------------------------------- pigpio.h | 23 ++++++++++------------- 4 files changed, 11 insertions(+), 52 deletions(-) diff --git a/DOC/dbase/pigpio.sqlite b/DOC/dbase/pigpio.sqlite index 6ac1161460adff80dca79168648fec76f71d3a6c..a26ab8e50b2ae5b1a67829e5a808e556115cea5f 100644 GIT binary patch delta 6951 zcmb7Jd3@AGvQPicx%)R4A@?r?5<&=>aFc{&kRYNGW()|(H31S54atxMP!W>2i0eth zPg5ugBQC^Mk-?a>H_4)Sf&+`}vVsg=c*3~4y6XY2egk{F_x^aF$A>TT>#FMN?&|L9 zs-mrbZd?D{jubMyGj*zcc*3aEur(nefwPTCuyxwT^b{%wtUY6F5j*ih^fO~JOOF~q zrG$sFp?qoAbmLe!|B_W=D<83HJfp{q-`ePfWV)E3#HTJnXVkU{(totouvpOOq+}56Yc>vMsb2mpC5hU% zHFfab0zuT2bs|JRHA+3}1Dhxr3@;s(mqFezel*)wO07hTtxAFS%4k7PY?aeSlC;b< ziO_a6eG0!oJsK7epqI^seXSq3p{DeMf|FqvX?~Yb?;Zn#+X9 zM^uIW)!bXKzE{qIuT9p%p3l#w7>EjmW^zr>tk`puWWu+ZhQSd2gJ^~%gOc0pBR!P3 zVc@hexi{VZ32xXB_%>un1fN^+#TO2ZR@|k#bEI5$Q6U2D=6$?EvViQi&SeWaEKg7} z96mc_U)H-qe1wu=FmfrM!ZHHs5DsvT(?1c7nV2v)9= z{gjMkf`?qBB%ehWD5}7QmXp(FG78S9+z8nJq0zy-DtCZ_f4z{(GJM>plnFsMb|{1? z*SPVJ_}q9%Ml-?d*6+a>SoNmM$7Xxn&tNN0zm(fVwquTUxrt1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f#Wft*+PTiw;Z)NFE&d9vSuScAcgC=!)t^;B&bL?DM%lq$D2~j%LSHkT(=anmrL? zH8;j;V_TaOCznKb}~Lg8;h=>ra~)&hUGMg4XC3haquk=`5ys;%Mjg(Uz5Ol zH$BNt2WUUa_*UgQWn9QZWHJRhN+||AUvM6l>!De9mH=`xTBgIfkZB$ZModp*{|rnCjb= 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*/