sdk_config.h 137 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378
  1. /**
  2. * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. */
  40. #ifndef SDK_CONFIG_H
  41. #define SDK_CONFIG_H
  42. // <<< Use Configuration Wizard in Context Menu >>>\n
  43. #ifdef USE_APP_CONFIG
  44. #include "app_config.h"
  45. #endif
  46. // <h> nRF_Bootloader
  47. //==========================================================
  48. // <h> nrf_bootloader - Bootloader settings
  49. //==========================================================
  50. // <h> Application integrity checks
  51. //==========================================================
  52. // <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 - Skip CRC integrity check of the application when bit 1 (0-indexed) is set in the GPREGRET2 register.
  53. // <i> Only CRC checks can be skipped. For other boot validation types, the GPREGRET2 register is ignored.
  54. #ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2
  55. #define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 1
  56. #endif
  57. // <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET - Skip integrity check of the application when waking up from the System Off state.
  58. // <i> Only CRC checks can be skipped. For other boot validation types, the reset state is ignored.
  59. #ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET
  60. #define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET 1
  61. #endif
  62. // <q> NRF_BL_APP_SIGNATURE_CHECK_REQUIRED - Perform signature check on the app. Requires the signature to be sent in the init packet.
  63. #ifndef NRF_BL_APP_SIGNATURE_CHECK_REQUIRED
  64. #define NRF_BL_APP_SIGNATURE_CHECK_REQUIRED 0
  65. #endif
  66. // <q> NRF_BL_DFU_ALLOW_UPDATE_FROM_APP - Whether to allow the app to receive firmware updates for the bootloader to activate.
  67. // <i> Enable this to allow the app to instruct the bootloader to activate firmware.
  68. // <i> The bootloader will do its own postvalidation.
  69. #ifndef NRF_BL_DFU_ALLOW_UPDATE_FROM_APP
  70. #define NRF_BL_DFU_ALLOW_UPDATE_FROM_APP 0
  71. #endif
  72. // </h>
  73. //==========================================================
  74. // <h> DFU mode enter method
  75. //==========================================================
  76. // <e> NRF_BL_DFU_ENTER_METHOD_BUTTON - Enter DFU mode on button press.
  77. //==========================================================
  78. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON
  79. #define NRF_BL_DFU_ENTER_METHOD_BUTTON 0
  80. #endif
  81. // <o> NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN - Button for entering DFU mode.
  82. // <0=> 0 (P0.0)
  83. // <1=> 1 (P0.1)
  84. // <2=> 2 (P0.2)
  85. // <3=> 3 (P0.3)
  86. // <4=> 4 (P0.4)
  87. // <5=> 5 (P0.5)
  88. // <6=> 6 (P0.6)
  89. // <7=> 7 (P0.7)
  90. // <8=> 8 (P0.8)
  91. // <9=> 9 (P0.9)
  92. // <10=> 10 (P0.10)
  93. // <11=> 11 (P0.11)
  94. // <12=> 12 (P0.12)
  95. // <13=> 13 (P0.13)
  96. // <14=> 14 (P0.14)
  97. // <15=> 15 (P0.15)
  98. // <16=> 16 (P0.16)
  99. // <17=> 17 (P0.17)
  100. // <18=> 18 (P0.18)
  101. // <19=> 19 (P0.19)
  102. // <20=> 20 (P0.20)
  103. // <21=> 21 (P0.21)
  104. // <22=> 22 (P0.22)
  105. // <23=> 23 (P0.23)
  106. // <24=> 24 (P0.24)
  107. // <25=> 25 (P0.25)
  108. // <26=> 26 (P0.26)
  109. // <27=> 27 (P0.27)
  110. // <28=> 28 (P0.28)
  111. // <29=> 29 (P0.29)
  112. // <30=> 30 (P0.30)
  113. // <31=> 31 (P0.31)
  114. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN
  115. #define NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN 16
  116. #endif
  117. // </e>
  118. // <q> NRF_BL_DFU_ENTER_METHOD_PINRESET - Enter DFU mode on pin reset.
  119. #ifndef NRF_BL_DFU_ENTER_METHOD_PINRESET
  120. #define NRF_BL_DFU_ENTER_METHOD_PINRESET 0
  121. #endif
  122. // <q> NRF_BL_DFU_ENTER_METHOD_GPREGRET - Enter DFU mode when bit 0 is set in the NRF_POWER_GPREGRET register.
  123. #ifndef NRF_BL_DFU_ENTER_METHOD_GPREGRET
  124. #define NRF_BL_DFU_ENTER_METHOD_GPREGRET 1
  125. #endif
  126. // <q> NRF_BL_DFU_ENTER_METHOD_BUTTONLESS - Enter DFU mode when the Boolean enter_buttonless_dfu in DFU settings is true.
  127. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTONLESS
  128. #define NRF_BL_DFU_ENTER_METHOD_BUTTONLESS 0
  129. #endif
  130. // </h>
  131. //==========================================================
  132. // <h> DFU timers
  133. //==========================================================
  134. // <o> NRF_BL_DFU_CONTINUATION_TIMEOUT_MS - Timeout in ms when expecting an update immediately. <100-60000000>
  135. // <i> This timeout is used after updating the SoftDevice, when there is
  136. // <i> already a valid application present. The bootloader will enter DFU mode
  137. // <i> for a short time instead of booting the old application to allow the host
  138. // <i> to immediately transfer a new application if it wishes.
  139. #ifndef NRF_BL_DFU_CONTINUATION_TIMEOUT_MS
  140. #define NRF_BL_DFU_CONTINUATION_TIMEOUT_MS 10000
  141. #endif
  142. // <o> NRF_BL_DFU_INACTIVITY_TIMEOUT_MS - Timeout in ms before automatically starting a valid application due to inactivity. <0-60000000>
  143. // <i> If 0, no inactivity timer will be used. Values 1-99 are invalid.
  144. #ifndef NRF_BL_DFU_INACTIVITY_TIMEOUT_MS
  145. #define NRF_BL_DFU_INACTIVITY_TIMEOUT_MS 120000
  146. #endif
  147. // </h>
  148. //==========================================================
  149. // <h> Watchdog timer
  150. //==========================================================
  151. // <o> NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS - Maximum latency of the scheduler in miliseconds
  152. // <i> Maximum latency of the scheduler is compared with
  153. // <i> watchdog counter reload value (CRV). If latency is big
  154. // <i> enough, the watchdog will be fed from internal timer
  155. // <i> handler along with feed from user function. If latency
  156. // <i> is smaller than CRV, the watchdog will not be internally fed once
  157. // <i> it will be externally fed. Maximum latency is mainly affected
  158. // <i> by flash operations.
  159. #ifndef NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS
  160. #define NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS 10000
  161. #endif
  162. // </h>
  163. //==========================================================
  164. // <h> Misc Bootloader settings
  165. //==========================================================
  166. // <q> NRF_BL_DEBUG_PORT_DISABLE - Disable access to the chip via the debug port.
  167. // <i> Disable access to the chip via the debug port.
  168. // <i> This modifies the APPROTECT and DEBUGCTRL registers.
  169. // <i> Enable this option in production code if such
  170. // <i> access should be prohibited. Read about the registers
  171. // <i> for more details.
  172. #ifndef NRF_BL_DEBUG_PORT_DISABLE
  173. #define NRF_BL_DEBUG_PORT_DISABLE 0
  174. #endif
  175. // <o> NRF_BL_FW_COPY_PROGRESS_STORE_STEP - Number of pages copied after which progress in the settings page is updated.
  176. // <i> Progress stored in the settings page allows the bootloader to resume
  177. // <i> copying the new firmware in case of interruption (reset).
  178. // <i> If the value is small, then the resume point is more accurate. However,
  179. // <i> it also impacts negatively on flash wear.
  180. #ifndef NRF_BL_FW_COPY_PROGRESS_STORE_STEP
  181. #define NRF_BL_FW_COPY_PROGRESS_STORE_STEP 8
  182. #endif
  183. // <o> NRF_BL_RESET_DELAY_MS - Time to wait before resetting the bootloader.
  184. // <i> Time (in ms) to wait before resetting the bootloader after DFU has been completed or aborted. This allows more time for e.g. disconnecting the BLE link or writing logs.
  185. #ifndef NRF_BL_RESET_DELAY_MS
  186. #define NRF_BL_RESET_DELAY_MS 0
  187. #endif
  188. // </h>
  189. //==========================================================
  190. // </h>
  191. //==========================================================
  192. // </h>
  193. //==========================================================
  194. // <h> nRF_Crypto
  195. //==========================================================
  196. // <e> NRF_CRYPTO_ENABLED - nrf_crypto - Cryptography library.
  197. //==========================================================
  198. #ifndef NRF_CRYPTO_ENABLED
  199. #define NRF_CRYPTO_ENABLED 1
  200. #endif
  201. // <o> NRF_CRYPTO_ALLOCATOR - Memory allocator
  202. // <i> Choose memory allocator used by nrf_crypto. Default is alloca if possible or nrf_malloc otherwise. If 'User macros' are selected, the user has to create 'nrf_crypto_allocator.h' file that contains NRF_CRYPTO_ALLOC, NRF_CRYPTO_FREE, and NRF_CRYPTO_ALLOC_ON_STACK.
  203. // <0=> Default
  204. // <1=> User macros
  205. // <2=> On stack (alloca)
  206. // <3=> C dynamic memory (malloc)
  207. // <4=> SDK Memory Manager (nrf_malloc)
  208. #ifndef NRF_CRYPTO_ALLOCATOR
  209. #define NRF_CRYPTO_ALLOCATOR 1
  210. #endif
  211. // <e> NRF_CRYPTO_BACKEND_CC310_BL_ENABLED - Enable the ARM Cryptocell CC310 reduced backend.
  212. // <i> The CC310 hardware-accelerated cryptography backend with reduced functionality and footprint (only available on nRF52840).
  213. //==========================================================
  214. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ENABLED
  215. #define NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0
  216. #endif
  217. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310_BL.
  218. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED
  219. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED 0
  220. #endif
  221. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310_BL.
  222. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED
  223. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 1
  224. #endif
  225. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED - CC310_BL SHA-256 hash functionality.
  226. // <i> CC310_BL backend implementation for hardware-accelerated SHA-256.
  227. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED
  228. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED 1
  229. #endif
  230. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED - nrf_cc310_bl buffers to RAM before running hash operation
  231. // <i> Enabling this makes hashing of addresses in FLASH range possible. Size of buffer allocated for hashing is set by NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  232. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED
  233. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED 0
  234. #endif
  235. // <o> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE - nrf_cc310_bl hash outputs digests in little endian
  236. // <i> Makes the nrf_cc310_bl hash functions output digests in little endian format. Only for use in nRF SDK DFU!
  237. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  238. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE 4096
  239. #endif
  240. // <q> NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310 bl.
  241. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  242. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED
  243. #define NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED 1
  244. #endif
  245. // </e>
  246. // <e> NRF_CRYPTO_BACKEND_CC310_ENABLED - Enable the ARM Cryptocell CC310 backend.
  247. // <i> The CC310 hardware-accelerated cryptography backend (only available on nRF52840).
  248. //==========================================================
  249. #ifndef NRF_CRYPTO_BACKEND_CC310_ENABLED
  250. #define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
  251. #endif
  252. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED - Enable the AES CBC mode using CC310.
  253. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED
  254. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED 1
  255. #endif
  256. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED - Enable the AES CTR mode using CC310.
  257. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED
  258. #define NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED 1
  259. #endif
  260. // <q> NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED - Enable the AES ECB mode using CC310.
  261. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED
  262. #define NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED 1
  263. #endif
  264. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED - Enable the AES CBC_MAC mode using CC310.
  265. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED
  266. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED 1
  267. #endif
  268. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED - Enable the AES CMAC mode using CC310.
  269. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED
  270. #define NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED 1
  271. #endif
  272. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED - Enable the AES CCM mode using CC310.
  273. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED
  274. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED 1
  275. #endif
  276. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED - Enable the AES CCM* mode using CC310.
  277. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED
  278. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED 1
  279. #endif
  280. // <q> NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using CC310.
  281. #ifndef NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED
  282. #define NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED 1
  283. #endif
  284. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED - Enable the secp160r1 elliptic curve support using CC310.
  285. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED
  286. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED 1
  287. #endif
  288. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED - Enable the secp160r2 elliptic curve support using CC310.
  289. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED
  290. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED 1
  291. #endif
  292. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED - Enable the secp192r1 elliptic curve support using CC310.
  293. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED
  294. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED 1
  295. #endif
  296. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310.
  297. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED
  298. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED 1
  299. #endif
  300. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310.
  301. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED
  302. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED 1
  303. #endif
  304. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED - Enable the secp384r1 elliptic curve support using CC310.
  305. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED
  306. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED 1
  307. #endif
  308. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED - Enable the secp521r1 elliptic curve support using CC310.
  309. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED
  310. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED 1
  311. #endif
  312. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED - Enable the secp160k1 elliptic curve support using CC310.
  313. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED
  314. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED 1
  315. #endif
  316. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED - Enable the secp192k1 elliptic curve support using CC310.
  317. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED
  318. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED 1
  319. #endif
  320. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED - Enable the secp224k1 elliptic curve support using CC310.
  321. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED
  322. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED 1
  323. #endif
  324. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED - Enable the secp256k1 elliptic curve support using CC310.
  325. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED
  326. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED 1
  327. #endif
  328. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310.
  329. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED
  330. #define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1
  331. #endif
  332. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310.
  333. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED
  334. #define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1
  335. #endif
  336. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED - CC310 SHA-256 hash functionality.
  337. // <i> CC310 backend implementation for hardware-accelerated SHA-256.
  338. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED
  339. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED 1
  340. #endif
  341. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED - CC310 SHA-512 hash functionality
  342. // <i> CC310 backend implementation for SHA-512 (in software).
  343. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED
  344. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED 1
  345. #endif
  346. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED - CC310 HMAC using SHA-256
  347. // <i> CC310 backend implementation for HMAC using hardware-accelerated SHA-256.
  348. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED
  349. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED 1
  350. #endif
  351. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED - CC310 HMAC using SHA-512
  352. // <i> CC310 backend implementation for HMAC using SHA-512 (in software).
  353. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED
  354. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED 1
  355. #endif
  356. // <q> NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED - Enable RNG support using CC310.
  357. #ifndef NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED
  358. #define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 1
  359. #endif
  360. // <q> NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310.
  361. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  362. #ifndef NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED
  363. #define NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED 1
  364. #endif
  365. // </e>
  366. // <e> NRF_CRYPTO_BACKEND_CIFRA_ENABLED - Enable the Cifra backend.
  367. //==========================================================
  368. #ifndef NRF_CRYPTO_BACKEND_CIFRA_ENABLED
  369. #define NRF_CRYPTO_BACKEND_CIFRA_ENABLED 0
  370. #endif
  371. // <q> NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED - Enable the AES EAX mode using Cifra.
  372. #ifndef NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED
  373. #define NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED 1
  374. #endif
  375. // </e>
  376. // <e> NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED - Enable the mbed TLS backend.
  377. //==========================================================
  378. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED
  379. #define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 0
  380. #endif
  381. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED - Enable the AES CBC mode mbed TLS.
  382. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED
  383. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED 1
  384. #endif
  385. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED - Enable the AES CTR mode using mbed TLS.
  386. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED
  387. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED 1
  388. #endif
  389. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED - Enable the AES CFB mode using mbed TLS.
  390. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED
  391. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED 1
  392. #endif
  393. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED - Enable the AES ECB mode using mbed TLS.
  394. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED
  395. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED 1
  396. #endif
  397. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED - Enable the AES CBC MAC mode using mbed TLS.
  398. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED
  399. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED 1
  400. #endif
  401. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED - Enable the AES CMAC mode using mbed TLS.
  402. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED
  403. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED 1
  404. #endif
  405. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED - Enable the AES CCM mode using mbed TLS.
  406. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED
  407. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED 1
  408. #endif
  409. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED - Enable the AES GCM mode using mbed TLS.
  410. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED
  411. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED 1
  412. #endif
  413. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  414. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using MBEDTLS
  415. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED
  416. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED 1
  417. #endif
  418. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  419. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using MBEDTLS
  420. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED
  421. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED 1
  422. #endif
  423. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  424. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using MBEDTLS
  425. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED
  426. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
  427. #endif
  428. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED - Enable secp384r1 (NIST 384-bit) curve
  429. // <i> Enable this setting if you need secp384r1 (NIST 384-bit) support using MBEDTLS
  430. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED
  431. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED 1
  432. #endif
  433. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED - Enable secp521r1 (NIST 521-bit) curve
  434. // <i> Enable this setting if you need secp521r1 (NIST 521-bit) support using MBEDTLS
  435. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED
  436. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED 1
  437. #endif
  438. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED - Enable secp192k1 (Koblitz 192-bit) curve
  439. // <i> Enable this setting if you need secp192k1 (Koblitz 192-bit) support using MBEDTLS
  440. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED
  441. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED 1
  442. #endif
  443. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED - Enable secp224k1 (Koblitz 224-bit) curve
  444. // <i> Enable this setting if you need secp224k1 (Koblitz 224-bit) support using MBEDTLS
  445. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED
  446. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED 1
  447. #endif
  448. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  449. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using MBEDTLS
  450. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED
  451. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED 1
  452. #endif
  453. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED - Enable bp256r1 (Brainpool 256-bit) curve
  454. // <i> Enable this setting if you need bp256r1 (Brainpool 256-bit) support using MBEDTLS
  455. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED
  456. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED 1
  457. #endif
  458. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED - Enable bp384r1 (Brainpool 384-bit) curve
  459. // <i> Enable this setting if you need bp384r1 (Brainpool 384-bit) support using MBEDTLS
  460. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED
  461. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED 1
  462. #endif
  463. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED - Enable bp512r1 (Brainpool 512-bit) curve
  464. // <i> Enable this setting if you need bp512r1 (Brainpool 512-bit) support using MBEDTLS
  465. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED
  466. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED 1
  467. #endif
  468. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED - Enable Curve25519 curve
  469. // <i> Enable this setting if you need Curve25519 support using MBEDTLS
  470. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED
  471. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED 1
  472. #endif
  473. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED - Enable mbed TLS SHA-256 hash functionality.
  474. // <i> mbed TLS backend implementation for SHA-256.
  475. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED
  476. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
  477. #endif
  478. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED - Enable mbed TLS SHA-512 hash functionality.
  479. // <i> mbed TLS backend implementation for SHA-512.
  480. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED
  481. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED 1
  482. #endif
  483. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED - Enable mbed TLS HMAC using SHA-256.
  484. // <i> mbed TLS backend implementation for HMAC using SHA-256.
  485. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED
  486. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED 1
  487. #endif
  488. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED - Enable mbed TLS HMAC using SHA-512.
  489. // <i> mbed TLS backend implementation for HMAC using SHA-512.
  490. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED
  491. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED 1
  492. #endif
  493. // </e>
  494. // <e> NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED - Enable the micro-ecc backend.
  495. //==========================================================
  496. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED
  497. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED 1
  498. #endif
  499. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  500. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using micro-ecc
  501. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED
  502. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED 0
  503. #endif
  504. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  505. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using micro-ecc
  506. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED
  507. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED 0
  508. #endif
  509. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  510. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using micro-ecc
  511. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED
  512. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED 1
  513. #endif
  514. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  515. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using micro-ecc
  516. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED
  517. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED 0
  518. #endif
  519. // </e>
  520. // <e> NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED - Enable the nRF HW RNG backend.
  521. // <i> The nRF HW backend provide access to RNG peripheral in nRF5x devices.
  522. //==========================================================
  523. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED
  524. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 0
  525. #endif
  526. // <q> NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED - Enable mbed TLS CTR-DRBG algorithm.
  527. // <i> Enable mbed TLS CTR-DRBG standardized by NIST (NIST SP 800-90A Rev. 1). The nRF HW RNG is used as an entropy source for seeding.
  528. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED
  529. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
  530. #endif
  531. // </e>
  532. // <e> NRF_CRYPTO_BACKEND_NRF_SW_ENABLED - Enable the legacy nRFx sw for crypto.
  533. // <i> The nRF SW cryptography backend (only used in bootloader context).
  534. //==========================================================
  535. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_ENABLED
  536. #define NRF_CRYPTO_BACKEND_NRF_SW_ENABLED 1
  537. #endif
  538. // <q> NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED - nRF SW hash backend support for SHA-256
  539. // <i> The nRF SW backend provide access to nRF SDK legacy hash implementation of SHA-256.
  540. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED
  541. #define NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED 1
  542. #endif
  543. // </e>
  544. // <e> NRF_CRYPTO_BACKEND_OBERON_ENABLED - Enable the Oberon backend
  545. // <i> The Oberon backend
  546. //==========================================================
  547. #ifndef NRF_CRYPTO_BACKEND_OBERON_ENABLED
  548. #define NRF_CRYPTO_BACKEND_OBERON_ENABLED 0
  549. #endif
  550. // <q> NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using Oberon.
  551. #ifndef NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED
  552. #define NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED 0
  553. #endif
  554. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED - Enable secp256r1 curve
  555. // <i> Enable this setting if you need secp256r1 curve support using Oberon library
  556. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED
  557. #define NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED 1
  558. #endif
  559. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED - Enable Curve25519 ECDH
  560. // <i> Enable this setting if you need Curve25519 ECDH support using Oberon library
  561. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED
  562. #define NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED 0
  563. #endif
  564. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED - Enable Ed25519 signature scheme
  565. // <i> Enable this setting if you need Ed25519 support using Oberon library
  566. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED
  567. #define NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED 0
  568. #endif
  569. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED - Oberon SHA-256 hash functionality
  570. // <i> Oberon backend implementation for SHA-256.
  571. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED
  572. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED 1
  573. #endif
  574. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED - Oberon SHA-512 hash functionality
  575. // <i> Oberon backend implementation for SHA-512.
  576. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED
  577. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED 0
  578. #endif
  579. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED - Oberon HMAC using SHA-256
  580. // <i> Oberon backend implementation for HMAC using SHA-256.
  581. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED
  582. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED 0
  583. #endif
  584. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED - Oberon HMAC using SHA-512
  585. // <i> Oberon backend implementation for HMAC using SHA-512.
  586. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED
  587. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED 0
  588. #endif
  589. // </e>
  590. // <e> NRF_CRYPTO_BACKEND_OPTIGA_ENABLED - Enable the nrf_crypto Optiga Trust X backend.
  591. // <i> Enables the nrf_crypto backend for Optiga Trust X devices.
  592. //==========================================================
  593. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ENABLED
  594. #define NRF_CRYPTO_BACKEND_OPTIGA_ENABLED 0
  595. #endif
  596. // <q> NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED - Optiga backend support for RNG
  597. // <i> The Optiga backend provide external chip RNG.
  598. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED
  599. #define NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED 0
  600. #endif
  601. // <q> NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED - Optiga backend support for ECC secp256r1
  602. // <i> The Optiga backend provide external chip ECC using secp256r1.
  603. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED
  604. #define NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED 1
  605. #endif
  606. // </e>
  607. // <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data
  608. // <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0.
  609. #ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED
  610. #define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0
  611. #endif
  612. // </e>
  613. // <h> nrf_crypto_rng - RNG Configuration
  614. //==========================================================
  615. // <q> NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED - Use static memory buffers for context and temporary init buffer.
  616. // <i> Always recommended when using the nRF HW RNG as the context and temporary buffers are small. Consider disabling if using the CC310 RNG in a RAM constrained application. In this case, memory must be provided to nrf_crypto_rng_init, or it can be allocated internally provided that NRF_CRYPTO_ALLOCATOR does not allocate memory on the stack.
  617. #ifndef NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED
  618. #define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED 1
  619. #endif
  620. // <q> NRF_CRYPTO_RNG_AUTO_INIT_ENABLED - Initialize the RNG module automatically when nrf_crypto is initialized.
  621. // <i> Automatic initialization is only supported with static or internally allocated context and temporary memory.
  622. #ifndef NRF_CRYPTO_RNG_AUTO_INIT_ENABLED
  623. #define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED 1
  624. #endif
  625. // </h>
  626. //==========================================================
  627. // </h>
  628. //==========================================================
  629. // <h> nRF_DFU
  630. //==========================================================
  631. // <h> DFU security - nrf_dfu_validation - DFU validation
  632. //==========================================================
  633. // <q> NRF_DFU_APP_ACCEPT_SAME_VERSION - Whether to accept application upgrades with the same version as the current application.
  634. // <i> This applies to application updates, and possibly to SoftDevice updates.
  635. // <i> Bootloader upgrades always require higher versions. SoftDevice upgrades
  636. // <i> look at the sd_req field independently of this config.
  637. // <i> Disabling this protects against replay attacks wearing out the flash of the device.
  638. // <i> This config only has an effect when NRF_DFU_APP_DOWNGRADE_PREVENTION is enabled.
  639. #ifndef NRF_DFU_APP_ACCEPT_SAME_VERSION
  640. #define NRF_DFU_APP_ACCEPT_SAME_VERSION 1
  641. #endif
  642. // <q> NRF_DFU_APP_DOWNGRADE_PREVENTION - Check the firmware version and SoftDevice requirements of application (and SoftDevice) updates.
  643. // <i> Whether to check the incoming version against the version of the existing app and/or
  644. // <i> the incoming SoftDevice requirements against the existing SoftDevice.
  645. // <i> This applies to application updates, and possibly to SoftDevice updates.
  646. // <i> Disabling this causes the checks to always ignore the incoming firmware version and
  647. // <i> to ignore the SoftDevice requirements if the first requirement is 0.
  648. // <i> This does not apply the bootloader updates. If the bootloader depends on the SoftDevice
  649. // <i> e.g. for BLE transport, this does not apply to SoftDevice updates.
  650. // <i> See @ref lib_bootloader_dfu_validation for more information.
  651. // <i> When signed updates are required, version checking should always be enabled.
  652. #ifndef NRF_DFU_APP_DOWNGRADE_PREVENTION
  653. #define NRF_DFU_APP_DOWNGRADE_PREVENTION 1
  654. #endif
  655. // <q> NRF_DFU_EXTERNAL_APP_VERSIONING - Require versioning for external applications.
  656. // <i> This configuration is only used if NRF_DFU_SUPPORTS_EXTERNAL_APP is set to 1.
  657. // <i> Setting this will require that any FW images using the FW upgrade type
  658. // <i> DFU_FW_TYPE_EXTERNAL_APPLICATION must follow a monotonic versioning scheme
  659. // <i> where the FW version of an upgrade must always be larger than the previously stored
  660. // <i> FW version.
  661. #ifndef NRF_DFU_EXTERNAL_APP_VERSIONING
  662. #define NRF_DFU_EXTERNAL_APP_VERSIONING 1
  663. #endif
  664. // <q> NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES - Accept only dual-bank application updates.
  665. // <i> If not enabled then if there is not enough space to perform dual-bank update
  666. // <i> application is deleted and single-bank update is performed. In case it is considered
  667. // <i> security concern user can prefer to discard update request rather than overwrite
  668. // <i> current application.
  669. #ifndef NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES
  670. #define NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES 0
  671. #endif
  672. // <o> NRF_DFU_HW_VERSION - Device hardware version.
  673. // <i> This is used to determine if given update is targeting the device.
  674. // <i> It is checked against the hw_version value in the init packet
  675. #ifndef NRF_DFU_HW_VERSION
  676. #define NRF_DFU_HW_VERSION 52
  677. #endif
  678. // <q> NRF_DFU_REQUIRE_SIGNED_APP_UPDATE - Require a valid signature to update the application or SoftDevice.
  679. #ifndef NRF_DFU_REQUIRE_SIGNED_APP_UPDATE
  680. #define NRF_DFU_REQUIRE_SIGNED_APP_UPDATE 1
  681. #endif
  682. // <q> NRF_DFU_SINGLE_BANK_APP_UPDATES - Place the application and the SoftDevice directly where they are supposed to be.
  683. // <i> Note that this creates security concerns when signing and version checks
  684. // <i> are enabled. An attacker will be able to delete (but not replace)
  685. // <i> the current app or SoftDevice without knowing the signature key.
  686. #ifndef NRF_DFU_SINGLE_BANK_APP_UPDATES
  687. #define NRF_DFU_SINGLE_BANK_APP_UPDATES 0
  688. #endif
  689. // </h>
  690. //==========================================================
  691. // <q> NRF_DFU_SETTINGS_COMPATIBILITY_MODE - nrf_dfu_settings - DFU Settings
  692. #ifndef NRF_DFU_SETTINGS_COMPATIBILITY_MODE
  693. #define NRF_DFU_SETTINGS_COMPATIBILITY_MODE 1
  694. #endif
  695. // <h> nrf_dfu - Device Firmware Upgrade
  696. //==========================================================
  697. // <h> DFU transport
  698. //==========================================================
  699. // <e> NRF_DFU_TRANSPORT_ANT - ANT transport settings
  700. //==========================================================
  701. #ifndef NRF_DFU_TRANSPORT_ANT
  702. #define NRF_DFU_TRANSPORT_ANT 0
  703. #endif
  704. // <o> NRF_DFU_ANT_MTU - MTU size used for firmware bursts.
  705. // <i> Sets the maximum burst size used for DFU write commands.
  706. #ifndef NRF_DFU_ANT_MTU
  707. #define NRF_DFU_ANT_MTU 1024
  708. #endif
  709. // <h> ANT DFU buffers
  710. //==========================================================
  711. // <e> NRF_DFU_ANT_BUFFERS_OVERRIDE
  712. // <i> Check this option to override the default number of buffers.
  713. //==========================================================
  714. #ifndef NRF_DFU_ANT_BUFFERS_OVERRIDE
  715. #define NRF_DFU_ANT_BUFFERS_OVERRIDE 0
  716. #endif
  717. // <o> NRF_DFU_ANT_BUFFERS - Number of buffers in the ANT transport.
  718. // <i> Number of buffers to store incoming data while it is being written to flash.
  719. // <i> Reduce this value to save RAM. If this value is too low, the DFU process will fail.
  720. #ifndef NRF_DFU_ANT_BUFFERS
  721. #define NRF_DFU_ANT_BUFFERS 8
  722. #endif
  723. // </e>
  724. // </h>
  725. //==========================================================
  726. // <h> ANT DFU Channel Configuration
  727. //==========================================================
  728. // <o> NRF_DFU_ANT_RF_FREQ - DFU RF channel.
  729. #ifndef NRF_DFU_ANT_RF_FREQ
  730. #define NRF_DFU_ANT_RF_FREQ 66
  731. #endif
  732. // <o> NRF_DFU_ANT_DEV_TYPE - Device type field to use for DFU channel id.
  733. #ifndef NRF_DFU_ANT_DEV_TYPE
  734. #define NRF_DFU_ANT_DEV_TYPE 10
  735. #endif
  736. // <o> NRF_DFU_ANT_CHANNEL_PERIOD - Channel period of DFU ANT channel.
  737. #ifndef NRF_DFU_ANT_CHANNEL_PERIOD
  738. #define NRF_DFU_ANT_CHANNEL_PERIOD 2048
  739. #endif
  740. // </h>
  741. //==========================================================
  742. // </e>
  743. // <e> NRF_DFU_TRANSPORT_BLE - BLE transport settings
  744. //==========================================================
  745. #ifndef NRF_DFU_TRANSPORT_BLE
  746. #define NRF_DFU_TRANSPORT_BLE 1
  747. #endif
  748. // <q> NRF_DFU_BLE_SKIP_SD_INIT - Skip the SoftDevice and interrupt vector table initialization.
  749. #ifndef NRF_DFU_BLE_SKIP_SD_INIT
  750. #define NRF_DFU_BLE_SKIP_SD_INIT 0
  751. #endif
  752. // <s> NRF_DFU_BLE_ADV_NAME - Default advertising name.
  753. #ifndef NRF_DFU_BLE_ADV_NAME
  754. #define NRF_DFU_BLE_ADV_NAME "DfuTarg"
  755. #endif
  756. // <o> NRF_DFU_BLE_ADV_INTERVAL - Advertising interval (in units of 0.625 ms)
  757. #ifndef NRF_DFU_BLE_ADV_INTERVAL
  758. #define NRF_DFU_BLE_ADV_INTERVAL 40
  759. #endif
  760. // <h> BLE DFU security
  761. //==========================================================
  762. // <q> NRF_DFU_BLE_REQUIRES_BONDS - Require bond with peer.
  763. #ifndef NRF_DFU_BLE_REQUIRES_BONDS
  764. #define NRF_DFU_BLE_REQUIRES_BONDS 0
  765. #endif
  766. // </h>
  767. //==========================================================
  768. // <h> BLE DFU connection
  769. //==========================================================
  770. // <o> NRF_DFU_BLE_MIN_CONN_INTERVAL - Minimum connection interval (units).
  771. // <i> Minimum GAP connection interval, in 1.25 ms units.
  772. #ifndef NRF_DFU_BLE_MIN_CONN_INTERVAL
  773. #define NRF_DFU_BLE_MIN_CONN_INTERVAL 12
  774. #endif
  775. // <o> NRF_DFU_BLE_MAX_CONN_INTERVAL - Maximum connection interval (units).
  776. // <i> Maximum GAP connection interval, in 1.25 ms units.
  777. #ifndef NRF_DFU_BLE_MAX_CONN_INTERVAL
  778. #define NRF_DFU_BLE_MAX_CONN_INTERVAL 12
  779. #endif
  780. // <o> NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS - Supervision timeout (ms).
  781. // <i> GAP connection supervision timeout, in milliseconds.
  782. #ifndef NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS
  783. #define NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS 6000
  784. #endif
  785. // </h>
  786. //==========================================================
  787. // <h> BLE DFU buffers
  788. //==========================================================
  789. // <e> NRF_DFU_BLE_BUFFERS_OVERRIDE
  790. // <i> Check this option to override the default number of buffers.
  791. //==========================================================
  792. #ifndef NRF_DFU_BLE_BUFFERS_OVERRIDE
  793. #define NRF_DFU_BLE_BUFFERS_OVERRIDE 0
  794. #endif
  795. // <o> NRF_DFU_BLE_BUFFERS - Number of buffers in the BLE transport.
  796. // <i> Number of buffers to store incoming data while it is being written to flash.
  797. // <i> Reduce this value to save RAM. If this value is too low, the DFU process will fail.
  798. #ifndef NRF_DFU_BLE_BUFFERS
  799. #define NRF_DFU_BLE_BUFFERS 8
  800. #endif
  801. // </e>
  802. // </h>
  803. //==========================================================
  804. // </e>
  805. // </h>
  806. //==========================================================
  807. // <h> DFU protocol
  808. //==========================================================
  809. // <q> NRF_DFU_PROTOCOL_FW_VERSION_MSG - Firmware version message support.
  810. // <i> Firmware version message support.
  811. // <i> If disabled, firmware version requests will return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED.
  812. #ifndef NRF_DFU_PROTOCOL_FW_VERSION_MSG
  813. #define NRF_DFU_PROTOCOL_FW_VERSION_MSG 1
  814. #endif
  815. // <q> NRF_DFU_PROTOCOL_REDUCED - Reduced protocol opcode selection.
  816. // <i> Only support a minimal set of opcodes; return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED
  817. // <i> for unsupported opcodes. The supported opcodes are:NRF_DFU_OP_OBJECT_CREATE,
  818. // <i> NRF_DFU_OP_OBJECT_EXECUTE, NRF_DFU_OP_OBJECT_SELECT, NRF_DFU_OP_OBJECT_WRITE,
  819. // <i> NRF_DFU_OP_CRC_GET, NRF_DFU_OP_RECEIPT_NOTIF_SET, and NRF_DFU_OP_ABORT.
  820. // <i> This reduced feature set is used by the BLE transport to reduce flash usage.
  821. #ifndef NRF_DFU_PROTOCOL_REDUCED
  822. #define NRF_DFU_PROTOCOL_REDUCED 1
  823. #endif
  824. // <q> NRF_DFU_PROTOCOL_VERSION_MSG - Protocol version message support.
  825. // <i> Protocol version message support.
  826. // <i> If disabled, protocol version requests will return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED.
  827. #ifndef NRF_DFU_PROTOCOL_VERSION_MSG
  828. #define NRF_DFU_PROTOCOL_VERSION_MSG 1
  829. #endif
  830. // </h>
  831. //==========================================================
  832. // <h> Misc DFU settings
  833. //==========================================================
  834. // <o> NRF_DFU_APP_DATA_AREA_SIZE - The size (in bytes) of the flash area reserved for application data.
  835. // <i> This area is found at the end of the application area, next to the start of
  836. // <i> the bootloader. This area will not be erased by the bootloader during a
  837. // <i> firmware upgrade. The size must be a multiple of the flash page size.
  838. #ifndef NRF_DFU_APP_DATA_AREA_SIZE
  839. #define NRF_DFU_APP_DATA_AREA_SIZE 32768
  840. #endif
  841. // <q> NRF_DFU_IN_APP - Specifies that this code is in the app, not the bootloader, so some settings are off-limits.
  842. // <i> Enable this to disable writing to areas of the settings that are protected
  843. // <i> by the bootlader. If this is not enabled in the app, certain settings write
  844. // <i> operations will cause HardFaults or will be ignored. Enabling this option
  845. // <i> also causes postvalidation to be disabled since this is meant to be done
  846. // <i> in the bootloader. NRF_BL_DFU_ALLOW_UPDATE_FROM_APP must be enabled in the bootloader.
  847. #ifndef NRF_DFU_IN_APP
  848. #define NRF_DFU_IN_APP 0
  849. #endif
  850. // <q> NRF_DFU_SAVE_PROGRESS_IN_FLASH - Save DFU progress in flash.
  851. // <i> Save DFU progress to flash so that it can be resumed if interrupted, instead of being restarted.
  852. // <i> Keep this setting disabled to maximize transfer speed and minimize flash wear.
  853. // <i> The init packet is always saved in flash, regardless of this setting.
  854. #ifndef NRF_DFU_SAVE_PROGRESS_IN_FLASH
  855. #define NRF_DFU_SAVE_PROGRESS_IN_FLASH 0
  856. #endif
  857. // <q> NRF_DFU_SUPPORTS_EXTERNAL_APP - [Experimental] Support for external app.
  858. // <i> External apps are apps that will not be activated. They can
  859. // <i> e.g. be apps to be sent to a third party. External app updates
  860. // <i> are verified upon reception, but will remain in bank 1, and
  861. // <i> will never be booted. An external app will be overwritten if
  862. // <i> a new DFU procedure is performed. Note: This functionality is
  863. // <i> experimental and not yet used in any examples.
  864. #ifndef NRF_DFU_SUPPORTS_EXTERNAL_APP
  865. #define NRF_DFU_SUPPORTS_EXTERNAL_APP 0
  866. #endif
  867. // </h>
  868. //==========================================================
  869. // </h>
  870. //==========================================================
  871. // </h>
  872. //==========================================================
  873. // <h> nRF_Libraries
  874. //==========================================================
  875. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  876. //==========================================================
  877. #ifndef APP_SCHEDULER_ENABLED
  878. #define APP_SCHEDULER_ENABLED 1
  879. #endif
  880. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  881. #ifndef APP_SCHEDULER_WITH_PAUSE
  882. #define APP_SCHEDULER_WITH_PAUSE 0
  883. #endif
  884. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  885. #ifndef APP_SCHEDULER_WITH_PROFILER
  886. #define APP_SCHEDULER_WITH_PROFILER 0
  887. #endif
  888. // </e>
  889. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  890. #ifndef CRC32_ENABLED
  891. #define CRC32_ENABLED 1
  892. #endif
  893. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  894. //==========================================================
  895. #ifndef MEM_MANAGER_ENABLED
  896. #define MEM_MANAGER_ENABLED 1
  897. #endif
  898. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  899. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  900. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  901. #endif
  902. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  903. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  904. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  905. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  906. #endif
  907. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  908. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  909. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  910. #endif
  911. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  912. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  913. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  914. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  915. #endif
  916. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  917. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  918. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  919. #endif
  920. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  921. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  922. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  923. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  924. #endif
  925. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  926. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  927. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  928. #endif
  929. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  930. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  931. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  932. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  933. #endif
  934. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  935. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  936. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  937. #endif
  938. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  939. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  940. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  941. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  942. #endif
  943. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  944. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  945. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  946. #endif
  947. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  948. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  949. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  950. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  951. #endif
  952. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  953. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  954. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  955. #endif
  956. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  957. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  958. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  959. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  960. #endif
  961. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  962. //==========================================================
  963. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  964. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  965. #endif
  966. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  967. // <0=> Off
  968. // <1=> Error
  969. // <2=> Warning
  970. // <3=> Info
  971. // <4=> Debug
  972. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  973. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  974. #endif
  975. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  976. // <0=> Default
  977. // <1=> Black
  978. // <2=> Red
  979. // <3=> Green
  980. // <4=> Yellow
  981. // <5=> Blue
  982. // <6=> Magenta
  983. // <7=> Cyan
  984. // <8=> White
  985. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  986. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  987. #endif
  988. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  989. // <0=> Default
  990. // <1=> Black
  991. // <2=> Red
  992. // <3=> Green
  993. // <4=> Yellow
  994. // <5=> Blue
  995. // <6=> Magenta
  996. // <7=> Cyan
  997. // <8=> White
  998. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  999. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  1000. #endif
  1001. // </e>
  1002. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  1003. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  1004. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  1005. #endif
  1006. // </e>
  1007. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  1008. //==========================================================
  1009. #ifndef NRF_BALLOC_ENABLED
  1010. #define NRF_BALLOC_ENABLED 1
  1011. #endif
  1012. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  1013. //==========================================================
  1014. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  1015. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  1016. #endif
  1017. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  1018. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  1019. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  1020. #endif
  1021. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  1022. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  1023. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  1024. #endif
  1025. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  1026. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  1027. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  1028. #endif
  1029. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  1030. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  1031. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  1032. #endif
  1033. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  1034. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  1035. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  1036. #endif
  1037. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  1038. #ifndef NRF_BALLOC_CLI_CMDS
  1039. #define NRF_BALLOC_CLI_CMDS 0
  1040. #endif
  1041. // </e>
  1042. // </e>
  1043. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  1044. //==========================================================
  1045. #ifndef NRF_FSTORAGE_ENABLED
  1046. #define NRF_FSTORAGE_ENABLED 1
  1047. #endif
  1048. // <h> nrf_fstorage - Common settings
  1049. // <i> Common settings to all fstorage implementations
  1050. //==========================================================
  1051. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  1052. // <i> If selected, use ASSERT to validate user input.
  1053. // <i> This effectively removes user input validation in production code.
  1054. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  1055. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  1056. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 1
  1057. #endif
  1058. // </h>
  1059. //==========================================================
  1060. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  1061. // <i> Configuration options for the fstorage implementation using the SoftDevice
  1062. //==========================================================
  1063. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  1064. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  1065. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  1066. #define NRF_FSTORAGE_SD_QUEUE_SIZE 16
  1067. #endif
  1068. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  1069. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  1070. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  1071. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  1072. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  1073. #endif
  1074. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  1075. // <i> This value must be a multiple of four.
  1076. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  1077. // <i> This value is bound by the maximum number of bytes that can be written to flash in a single call to @ref sd_flash_write.
  1078. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  1079. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  1080. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 20
  1081. #endif
  1082. // </h>
  1083. //==========================================================
  1084. // </e>
  1085. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  1086. #ifndef NRF_MEMOBJ_ENABLED
  1087. #define NRF_MEMOBJ_ENABLED 1
  1088. #endif
  1089. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  1090. //==========================================================
  1091. #ifndef NRF_QUEUE_ENABLED
  1092. #define NRF_QUEUE_ENABLED 0
  1093. #endif
  1094. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  1095. #ifndef NRF_QUEUE_CLI_CMDS
  1096. #define NRF_QUEUE_CLI_CMDS 0
  1097. #endif
  1098. // </e>
  1099. // <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
  1100. #ifndef NRF_SECTION_ITER_ENABLED
  1101. #define NRF_SECTION_ITER_ENABLED 1
  1102. #endif
  1103. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  1104. #ifndef NRF_STRERROR_ENABLED
  1105. #define NRF_STRERROR_ENABLED 1
  1106. #endif
  1107. // <h> nrf_fprintf - fprintf function.
  1108. //==========================================================
  1109. // <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module.
  1110. #ifndef NRF_FPRINTF_ENABLED
  1111. #define NRF_FPRINTF_ENABLED 1
  1112. #endif
  1113. // <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR.
  1114. #ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
  1115. #define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
  1116. #endif
  1117. // <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting.
  1118. #ifndef NRF_FPRINTF_DOUBLE_ENABLED
  1119. #define NRF_FPRINTF_DOUBLE_ENABLED 0
  1120. #endif
  1121. // </h>
  1122. //==========================================================
  1123. // </h>
  1124. //==========================================================
  1125. // <h> nRF_Log
  1126. //==========================================================
  1127. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  1128. //==========================================================
  1129. #ifndef NRF_LOG_ENABLED
  1130. #define NRF_LOG_ENABLED 0
  1131. #endif
  1132. // <h> Log message pool - Configuration of log message pool
  1133. //==========================================================
  1134. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  1135. // <i> If a small value is set, then performance of logs processing
  1136. // <i> is degraded because data is fragmented. Bigger value impacts
  1137. // <i> RAM memory utilization. The size is set to fit a message with
  1138. // <i> a timestamp and up to 2 arguments in a single memory object.
  1139. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  1140. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  1141. #endif
  1142. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  1143. // <i> If a small value is set, then it may lead to a deadlock
  1144. // <i> in certain cases if backend has high latency and holds
  1145. // <i> multiple messages for long time. Bigger value impacts
  1146. // <i> RAM memory usage.
  1147. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  1148. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  1149. #endif
  1150. // </h>
  1151. //==========================================================
  1152. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  1153. // <i> If set then oldest logs are overwritten. Otherwise a
  1154. // <i> marker is injected informing about overflow.
  1155. #ifndef NRF_LOG_ALLOW_OVERFLOW
  1156. #define NRF_LOG_ALLOW_OVERFLOW 1
  1157. #endif
  1158. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  1159. // <i> Must be power of 2 and multiple of 4.
  1160. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  1161. // <128=> 128
  1162. // <256=> 256
  1163. // <512=> 512
  1164. // <1024=> 1024
  1165. // <2048=> 2048
  1166. // <4096=> 4096
  1167. // <8192=> 8192
  1168. // <16384=> 16384
  1169. #ifndef NRF_LOG_BUFSIZE
  1170. #define NRF_LOG_BUFSIZE 1024
  1171. #endif
  1172. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  1173. #ifndef NRF_LOG_CLI_CMDS
  1174. #define NRF_LOG_CLI_CMDS 0
  1175. #endif
  1176. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  1177. // <0=> Off
  1178. // <1=> Error
  1179. // <2=> Warning
  1180. // <3=> Info
  1181. // <4=> Debug
  1182. #ifndef NRF_LOG_DEFAULT_LEVEL
  1183. #define NRF_LOG_DEFAULT_LEVEL 3
  1184. #endif
  1185. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  1186. // <i> Log data is buffered and can be processed in idle.
  1187. #ifndef NRF_LOG_DEFERRED
  1188. #define NRF_LOG_DEFERRED 1
  1189. #endif
  1190. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  1191. #ifndef NRF_LOG_FILTERS_ENABLED
  1192. #define NRF_LOG_FILTERS_ENABLED 0
  1193. #endif
  1194. // <q> NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED - Enable use of critical region for non deffered mode when flushing logs.
  1195. // <i> When enabled NRF_LOG_FLUSH is called from critical section when non deffered mode is used.
  1196. // <i> Log output will never be corrupted as access to the log backend is exclusive
  1197. // <i> but system will spend significant amount of time in critical section
  1198. #ifndef NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED
  1199. #define NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED 0
  1200. #endif
  1201. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1202. // <16=> 16
  1203. // <32=> 32
  1204. // <64=> 64
  1205. // <128=> 128
  1206. // <256=> 256
  1207. // <512=> 512
  1208. // <1024=> 1024
  1209. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1210. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1211. #endif
  1212. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1213. // <16=> 16
  1214. // <32=> 32
  1215. // <64=> 64
  1216. // <128=> 128
  1217. // <256=> 256
  1218. // <512=> 512
  1219. // <1024=> 1024
  1220. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1221. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1222. #endif
  1223. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  1224. //==========================================================
  1225. #ifndef NRF_LOG_USES_COLORS
  1226. #define NRF_LOG_USES_COLORS 0
  1227. #endif
  1228. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  1229. // <0=> Default
  1230. // <1=> Black
  1231. // <2=> Red
  1232. // <3=> Green
  1233. // <4=> Yellow
  1234. // <5=> Blue
  1235. // <6=> Magenta
  1236. // <7=> Cyan
  1237. // <8=> White
  1238. #ifndef NRF_LOG_COLOR_DEFAULT
  1239. #define NRF_LOG_COLOR_DEFAULT 0
  1240. #endif
  1241. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  1242. // <0=> Default
  1243. // <1=> Black
  1244. // <2=> Red
  1245. // <3=> Green
  1246. // <4=> Yellow
  1247. // <5=> Blue
  1248. // <6=> Magenta
  1249. // <7=> Cyan
  1250. // <8=> White
  1251. #ifndef NRF_LOG_ERROR_COLOR
  1252. #define NRF_LOG_ERROR_COLOR 2
  1253. #endif
  1254. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  1255. // <0=> Default
  1256. // <1=> Black
  1257. // <2=> Red
  1258. // <3=> Green
  1259. // <4=> Yellow
  1260. // <5=> Blue
  1261. // <6=> Magenta
  1262. // <7=> Cyan
  1263. // <8=> White
  1264. #ifndef NRF_LOG_WARNING_COLOR
  1265. #define NRF_LOG_WARNING_COLOR 4
  1266. #endif
  1267. // </e>
  1268. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  1269. // <i> Function for getting the timestamp is provided by the user
  1270. //==========================================================
  1271. #ifndef NRF_LOG_USES_TIMESTAMP
  1272. #define NRF_LOG_USES_TIMESTAMP 0
  1273. #endif
  1274. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  1275. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  1276. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  1277. #endif
  1278. // </e>
  1279. // <h> nrf_log module configuration
  1280. //==========================================================
  1281. // <h> nrf_log in nRF_Core
  1282. //==========================================================
  1283. // <e> NRF_MPU_LIB_CONFIG_LOG_ENABLED - Enables logging in the module.
  1284. //==========================================================
  1285. #ifndef NRF_MPU_LIB_CONFIG_LOG_ENABLED
  1286. #define NRF_MPU_LIB_CONFIG_LOG_ENABLED 0
  1287. #endif
  1288. // <o> NRF_MPU_LIB_CONFIG_LOG_LEVEL - Default Severity level
  1289. // <0=> Off
  1290. // <1=> Error
  1291. // <2=> Warning
  1292. // <3=> Info
  1293. // <4=> Debug
  1294. #ifndef NRF_MPU_LIB_CONFIG_LOG_LEVEL
  1295. #define NRF_MPU_LIB_CONFIG_LOG_LEVEL 3
  1296. #endif
  1297. // <o> NRF_MPU_LIB_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1298. // <0=> Default
  1299. // <1=> Black
  1300. // <2=> Red
  1301. // <3=> Green
  1302. // <4=> Yellow
  1303. // <5=> Blue
  1304. // <6=> Magenta
  1305. // <7=> Cyan
  1306. // <8=> White
  1307. #ifndef NRF_MPU_LIB_CONFIG_INFO_COLOR
  1308. #define NRF_MPU_LIB_CONFIG_INFO_COLOR 0
  1309. #endif
  1310. // <o> NRF_MPU_LIB_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1311. // <0=> Default
  1312. // <1=> Black
  1313. // <2=> Red
  1314. // <3=> Green
  1315. // <4=> Yellow
  1316. // <5=> Blue
  1317. // <6=> Magenta
  1318. // <7=> Cyan
  1319. // <8=> White
  1320. #ifndef NRF_MPU_LIB_CONFIG_DEBUG_COLOR
  1321. #define NRF_MPU_LIB_CONFIG_DEBUG_COLOR 0
  1322. #endif
  1323. // </e>
  1324. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  1325. //==========================================================
  1326. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  1327. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  1328. #endif
  1329. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  1330. // <0=> Off
  1331. // <1=> Error
  1332. // <2=> Warning
  1333. // <3=> Info
  1334. // <4=> Debug
  1335. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  1336. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  1337. #endif
  1338. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1339. // <0=> Default
  1340. // <1=> Black
  1341. // <2=> Red
  1342. // <3=> Green
  1343. // <4=> Yellow
  1344. // <5=> Blue
  1345. // <6=> Magenta
  1346. // <7=> Cyan
  1347. // <8=> White
  1348. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  1349. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  1350. #endif
  1351. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1352. // <0=> Default
  1353. // <1=> Black
  1354. // <2=> Red
  1355. // <3=> Green
  1356. // <4=> Yellow
  1357. // <5=> Blue
  1358. // <6=> Magenta
  1359. // <7=> Cyan
  1360. // <8=> White
  1361. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  1362. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  1363. #endif
  1364. // </e>
  1365. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  1366. //==========================================================
  1367. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  1368. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  1369. #endif
  1370. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  1371. // <0=> Off
  1372. // <1=> Error
  1373. // <2=> Warning
  1374. // <3=> Info
  1375. // <4=> Debug
  1376. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  1377. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  1378. #endif
  1379. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1380. // <0=> Default
  1381. // <1=> Black
  1382. // <2=> Red
  1383. // <3=> Green
  1384. // <4=> Yellow
  1385. // <5=> Blue
  1386. // <6=> Magenta
  1387. // <7=> Cyan
  1388. // <8=> White
  1389. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  1390. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  1391. #endif
  1392. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1393. // <0=> Default
  1394. // <1=> Black
  1395. // <2=> Red
  1396. // <3=> Green
  1397. // <4=> Yellow
  1398. // <5=> Blue
  1399. // <6=> Magenta
  1400. // <7=> Cyan
  1401. // <8=> White
  1402. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  1403. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  1404. #endif
  1405. // </e>
  1406. // </h>
  1407. //==========================================================
  1408. // <h> nrf_log in nRF_Drivers
  1409. //==========================================================
  1410. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1411. //==========================================================
  1412. #ifndef CLOCK_CONFIG_LOG_ENABLED
  1413. #define CLOCK_CONFIG_LOG_ENABLED 0
  1414. #endif
  1415. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  1416. // <0=> Off
  1417. // <1=> Error
  1418. // <2=> Warning
  1419. // <3=> Info
  1420. // <4=> Debug
  1421. #ifndef CLOCK_CONFIG_LOG_LEVEL
  1422. #define CLOCK_CONFIG_LOG_LEVEL 3
  1423. #endif
  1424. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1425. // <0=> Default
  1426. // <1=> Black
  1427. // <2=> Red
  1428. // <3=> Green
  1429. // <4=> Yellow
  1430. // <5=> Blue
  1431. // <6=> Magenta
  1432. // <7=> Cyan
  1433. // <8=> White
  1434. #ifndef CLOCK_CONFIG_INFO_COLOR
  1435. #define CLOCK_CONFIG_INFO_COLOR 0
  1436. #endif
  1437. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1438. // <0=> Default
  1439. // <1=> Black
  1440. // <2=> Red
  1441. // <3=> Green
  1442. // <4=> Yellow
  1443. // <5=> Blue
  1444. // <6=> Magenta
  1445. // <7=> Cyan
  1446. // <8=> White
  1447. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  1448. #define CLOCK_CONFIG_DEBUG_COLOR 0
  1449. #endif
  1450. // </e>
  1451. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1452. //==========================================================
  1453. #ifndef COMP_CONFIG_LOG_ENABLED
  1454. #define COMP_CONFIG_LOG_ENABLED 0
  1455. #endif
  1456. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  1457. // <0=> Off
  1458. // <1=> Error
  1459. // <2=> Warning
  1460. // <3=> Info
  1461. // <4=> Debug
  1462. #ifndef COMP_CONFIG_LOG_LEVEL
  1463. #define COMP_CONFIG_LOG_LEVEL 3
  1464. #endif
  1465. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1466. // <0=> Default
  1467. // <1=> Black
  1468. // <2=> Red
  1469. // <3=> Green
  1470. // <4=> Yellow
  1471. // <5=> Blue
  1472. // <6=> Magenta
  1473. // <7=> Cyan
  1474. // <8=> White
  1475. #ifndef COMP_CONFIG_INFO_COLOR
  1476. #define COMP_CONFIG_INFO_COLOR 0
  1477. #endif
  1478. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1479. // <0=> Default
  1480. // <1=> Black
  1481. // <2=> Red
  1482. // <3=> Green
  1483. // <4=> Yellow
  1484. // <5=> Blue
  1485. // <6=> Magenta
  1486. // <7=> Cyan
  1487. // <8=> White
  1488. #ifndef COMP_CONFIG_DEBUG_COLOR
  1489. #define COMP_CONFIG_DEBUG_COLOR 0
  1490. #endif
  1491. // </e>
  1492. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1493. //==========================================================
  1494. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  1495. #define GPIOTE_CONFIG_LOG_ENABLED 0
  1496. #endif
  1497. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  1498. // <0=> Off
  1499. // <1=> Error
  1500. // <2=> Warning
  1501. // <3=> Info
  1502. // <4=> Debug
  1503. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  1504. #define GPIOTE_CONFIG_LOG_LEVEL 3
  1505. #endif
  1506. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1507. // <0=> Default
  1508. // <1=> Black
  1509. // <2=> Red
  1510. // <3=> Green
  1511. // <4=> Yellow
  1512. // <5=> Blue
  1513. // <6=> Magenta
  1514. // <7=> Cyan
  1515. // <8=> White
  1516. #ifndef GPIOTE_CONFIG_INFO_COLOR
  1517. #define GPIOTE_CONFIG_INFO_COLOR 0
  1518. #endif
  1519. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1520. // <0=> Default
  1521. // <1=> Black
  1522. // <2=> Red
  1523. // <3=> Green
  1524. // <4=> Yellow
  1525. // <5=> Blue
  1526. // <6=> Magenta
  1527. // <7=> Cyan
  1528. // <8=> White
  1529. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  1530. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  1531. #endif
  1532. // </e>
  1533. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1534. //==========================================================
  1535. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  1536. #define LPCOMP_CONFIG_LOG_ENABLED 0
  1537. #endif
  1538. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  1539. // <0=> Off
  1540. // <1=> Error
  1541. // <2=> Warning
  1542. // <3=> Info
  1543. // <4=> Debug
  1544. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  1545. #define LPCOMP_CONFIG_LOG_LEVEL 3
  1546. #endif
  1547. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1548. // <0=> Default
  1549. // <1=> Black
  1550. // <2=> Red
  1551. // <3=> Green
  1552. // <4=> Yellow
  1553. // <5=> Blue
  1554. // <6=> Magenta
  1555. // <7=> Cyan
  1556. // <8=> White
  1557. #ifndef LPCOMP_CONFIG_INFO_COLOR
  1558. #define LPCOMP_CONFIG_INFO_COLOR 0
  1559. #endif
  1560. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1561. // <0=> Default
  1562. // <1=> Black
  1563. // <2=> Red
  1564. // <3=> Green
  1565. // <4=> Yellow
  1566. // <5=> Blue
  1567. // <6=> Magenta
  1568. // <7=> Cyan
  1569. // <8=> White
  1570. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  1571. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  1572. #endif
  1573. // </e>
  1574. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  1575. //==========================================================
  1576. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  1577. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  1578. #endif
  1579. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  1580. // <0=> Off
  1581. // <1=> Error
  1582. // <2=> Warning
  1583. // <3=> Info
  1584. // <4=> Debug
  1585. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  1586. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  1587. #endif
  1588. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1589. // <0=> Default
  1590. // <1=> Black
  1591. // <2=> Red
  1592. // <3=> Green
  1593. // <4=> Yellow
  1594. // <5=> Blue
  1595. // <6=> Magenta
  1596. // <7=> Cyan
  1597. // <8=> White
  1598. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  1599. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  1600. #endif
  1601. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1602. // <0=> Default
  1603. // <1=> Black
  1604. // <2=> Red
  1605. // <3=> Green
  1606. // <4=> Yellow
  1607. // <5=> Blue
  1608. // <6=> Magenta
  1609. // <7=> Cyan
  1610. // <8=> White
  1611. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  1612. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  1613. #endif
  1614. // </e>
  1615. // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  1616. //==========================================================
  1617. #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
  1618. #define NRFX_USBD_CONFIG_LOG_ENABLED 0
  1619. #endif
  1620. // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level
  1621. // <0=> Off
  1622. // <1=> Error
  1623. // <2=> Warning
  1624. // <3=> Info
  1625. // <4=> Debug
  1626. #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
  1627. #define NRFX_USBD_CONFIG_LOG_LEVEL 3
  1628. #endif
  1629. // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1630. // <0=> Default
  1631. // <1=> Black
  1632. // <2=> Red
  1633. // <3=> Green
  1634. // <4=> Yellow
  1635. // <5=> Blue
  1636. // <6=> Magenta
  1637. // <7=> Cyan
  1638. // <8=> White
  1639. #ifndef NRFX_USBD_CONFIG_INFO_COLOR
  1640. #define NRFX_USBD_CONFIG_INFO_COLOR 0
  1641. #endif
  1642. // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1643. // <0=> Default
  1644. // <1=> Black
  1645. // <2=> Red
  1646. // <3=> Green
  1647. // <4=> Yellow
  1648. // <5=> Blue
  1649. // <6=> Magenta
  1650. // <7=> Cyan
  1651. // <8=> White
  1652. #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR
  1653. #define NRFX_USBD_CONFIG_DEBUG_COLOR 0
  1654. #endif
  1655. // </e>
  1656. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1657. //==========================================================
  1658. #ifndef PDM_CONFIG_LOG_ENABLED
  1659. #define PDM_CONFIG_LOG_ENABLED 0
  1660. #endif
  1661. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  1662. // <0=> Off
  1663. // <1=> Error
  1664. // <2=> Warning
  1665. // <3=> Info
  1666. // <4=> Debug
  1667. #ifndef PDM_CONFIG_LOG_LEVEL
  1668. #define PDM_CONFIG_LOG_LEVEL 3
  1669. #endif
  1670. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1671. // <0=> Default
  1672. // <1=> Black
  1673. // <2=> Red
  1674. // <3=> Green
  1675. // <4=> Yellow
  1676. // <5=> Blue
  1677. // <6=> Magenta
  1678. // <7=> Cyan
  1679. // <8=> White
  1680. #ifndef PDM_CONFIG_INFO_COLOR
  1681. #define PDM_CONFIG_INFO_COLOR 0
  1682. #endif
  1683. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1684. // <0=> Default
  1685. // <1=> Black
  1686. // <2=> Red
  1687. // <3=> Green
  1688. // <4=> Yellow
  1689. // <5=> Blue
  1690. // <6=> Magenta
  1691. // <7=> Cyan
  1692. // <8=> White
  1693. #ifndef PDM_CONFIG_DEBUG_COLOR
  1694. #define PDM_CONFIG_DEBUG_COLOR 0
  1695. #endif
  1696. // </e>
  1697. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1698. //==========================================================
  1699. #ifndef PPI_CONFIG_LOG_ENABLED
  1700. #define PPI_CONFIG_LOG_ENABLED 0
  1701. #endif
  1702. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  1703. // <0=> Off
  1704. // <1=> Error
  1705. // <2=> Warning
  1706. // <3=> Info
  1707. // <4=> Debug
  1708. #ifndef PPI_CONFIG_LOG_LEVEL
  1709. #define PPI_CONFIG_LOG_LEVEL 3
  1710. #endif
  1711. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1712. // <0=> Default
  1713. // <1=> Black
  1714. // <2=> Red
  1715. // <3=> Green
  1716. // <4=> Yellow
  1717. // <5=> Blue
  1718. // <6=> Magenta
  1719. // <7=> Cyan
  1720. // <8=> White
  1721. #ifndef PPI_CONFIG_INFO_COLOR
  1722. #define PPI_CONFIG_INFO_COLOR 0
  1723. #endif
  1724. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1725. // <0=> Default
  1726. // <1=> Black
  1727. // <2=> Red
  1728. // <3=> Green
  1729. // <4=> Yellow
  1730. // <5=> Blue
  1731. // <6=> Magenta
  1732. // <7=> Cyan
  1733. // <8=> White
  1734. #ifndef PPI_CONFIG_DEBUG_COLOR
  1735. #define PPI_CONFIG_DEBUG_COLOR 0
  1736. #endif
  1737. // </e>
  1738. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1739. //==========================================================
  1740. #ifndef PWM_CONFIG_LOG_ENABLED
  1741. #define PWM_CONFIG_LOG_ENABLED 0
  1742. #endif
  1743. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  1744. // <0=> Off
  1745. // <1=> Error
  1746. // <2=> Warning
  1747. // <3=> Info
  1748. // <4=> Debug
  1749. #ifndef PWM_CONFIG_LOG_LEVEL
  1750. #define PWM_CONFIG_LOG_LEVEL 3
  1751. #endif
  1752. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1753. // <0=> Default
  1754. // <1=> Black
  1755. // <2=> Red
  1756. // <3=> Green
  1757. // <4=> Yellow
  1758. // <5=> Blue
  1759. // <6=> Magenta
  1760. // <7=> Cyan
  1761. // <8=> White
  1762. #ifndef PWM_CONFIG_INFO_COLOR
  1763. #define PWM_CONFIG_INFO_COLOR 0
  1764. #endif
  1765. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1766. // <0=> Default
  1767. // <1=> Black
  1768. // <2=> Red
  1769. // <3=> Green
  1770. // <4=> Yellow
  1771. // <5=> Blue
  1772. // <6=> Magenta
  1773. // <7=> Cyan
  1774. // <8=> White
  1775. #ifndef PWM_CONFIG_DEBUG_COLOR
  1776. #define PWM_CONFIG_DEBUG_COLOR 0
  1777. #endif
  1778. // </e>
  1779. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1780. //==========================================================
  1781. #ifndef QDEC_CONFIG_LOG_ENABLED
  1782. #define QDEC_CONFIG_LOG_ENABLED 0
  1783. #endif
  1784. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  1785. // <0=> Off
  1786. // <1=> Error
  1787. // <2=> Warning
  1788. // <3=> Info
  1789. // <4=> Debug
  1790. #ifndef QDEC_CONFIG_LOG_LEVEL
  1791. #define QDEC_CONFIG_LOG_LEVEL 3
  1792. #endif
  1793. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1794. // <0=> Default
  1795. // <1=> Black
  1796. // <2=> Red
  1797. // <3=> Green
  1798. // <4=> Yellow
  1799. // <5=> Blue
  1800. // <6=> Magenta
  1801. // <7=> Cyan
  1802. // <8=> White
  1803. #ifndef QDEC_CONFIG_INFO_COLOR
  1804. #define QDEC_CONFIG_INFO_COLOR 0
  1805. #endif
  1806. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1807. // <0=> Default
  1808. // <1=> Black
  1809. // <2=> Red
  1810. // <3=> Green
  1811. // <4=> Yellow
  1812. // <5=> Blue
  1813. // <6=> Magenta
  1814. // <7=> Cyan
  1815. // <8=> White
  1816. #ifndef QDEC_CONFIG_DEBUG_COLOR
  1817. #define QDEC_CONFIG_DEBUG_COLOR 0
  1818. #endif
  1819. // </e>
  1820. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  1821. //==========================================================
  1822. #ifndef RNG_CONFIG_LOG_ENABLED
  1823. #define RNG_CONFIG_LOG_ENABLED 0
  1824. #endif
  1825. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  1826. // <0=> Off
  1827. // <1=> Error
  1828. // <2=> Warning
  1829. // <3=> Info
  1830. // <4=> Debug
  1831. #ifndef RNG_CONFIG_LOG_LEVEL
  1832. #define RNG_CONFIG_LOG_LEVEL 3
  1833. #endif
  1834. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1835. // <0=> Default
  1836. // <1=> Black
  1837. // <2=> Red
  1838. // <3=> Green
  1839. // <4=> Yellow
  1840. // <5=> Blue
  1841. // <6=> Magenta
  1842. // <7=> Cyan
  1843. // <8=> White
  1844. #ifndef RNG_CONFIG_INFO_COLOR
  1845. #define RNG_CONFIG_INFO_COLOR 0
  1846. #endif
  1847. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1848. // <0=> Default
  1849. // <1=> Black
  1850. // <2=> Red
  1851. // <3=> Green
  1852. // <4=> Yellow
  1853. // <5=> Blue
  1854. // <6=> Magenta
  1855. // <7=> Cyan
  1856. // <8=> White
  1857. #ifndef RNG_CONFIG_DEBUG_COLOR
  1858. #define RNG_CONFIG_DEBUG_COLOR 0
  1859. #endif
  1860. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  1861. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  1862. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  1863. #endif
  1864. // </e>
  1865. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1866. //==========================================================
  1867. #ifndef RTC_CONFIG_LOG_ENABLED
  1868. #define RTC_CONFIG_LOG_ENABLED 0
  1869. #endif
  1870. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  1871. // <0=> Off
  1872. // <1=> Error
  1873. // <2=> Warning
  1874. // <3=> Info
  1875. // <4=> Debug
  1876. #ifndef RTC_CONFIG_LOG_LEVEL
  1877. #define RTC_CONFIG_LOG_LEVEL 3
  1878. #endif
  1879. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1880. // <0=> Default
  1881. // <1=> Black
  1882. // <2=> Red
  1883. // <3=> Green
  1884. // <4=> Yellow
  1885. // <5=> Blue
  1886. // <6=> Magenta
  1887. // <7=> Cyan
  1888. // <8=> White
  1889. #ifndef RTC_CONFIG_INFO_COLOR
  1890. #define RTC_CONFIG_INFO_COLOR 0
  1891. #endif
  1892. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1893. // <0=> Default
  1894. // <1=> Black
  1895. // <2=> Red
  1896. // <3=> Green
  1897. // <4=> Yellow
  1898. // <5=> Blue
  1899. // <6=> Magenta
  1900. // <7=> Cyan
  1901. // <8=> White
  1902. #ifndef RTC_CONFIG_DEBUG_COLOR
  1903. #define RTC_CONFIG_DEBUG_COLOR 0
  1904. #endif
  1905. // </e>
  1906. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1907. //==========================================================
  1908. #ifndef SAADC_CONFIG_LOG_ENABLED
  1909. #define SAADC_CONFIG_LOG_ENABLED 0
  1910. #endif
  1911. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  1912. // <0=> Off
  1913. // <1=> Error
  1914. // <2=> Warning
  1915. // <3=> Info
  1916. // <4=> Debug
  1917. #ifndef SAADC_CONFIG_LOG_LEVEL
  1918. #define SAADC_CONFIG_LOG_LEVEL 3
  1919. #endif
  1920. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1921. // <0=> Default
  1922. // <1=> Black
  1923. // <2=> Red
  1924. // <3=> Green
  1925. // <4=> Yellow
  1926. // <5=> Blue
  1927. // <6=> Magenta
  1928. // <7=> Cyan
  1929. // <8=> White
  1930. #ifndef SAADC_CONFIG_INFO_COLOR
  1931. #define SAADC_CONFIG_INFO_COLOR 0
  1932. #endif
  1933. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1934. // <0=> Default
  1935. // <1=> Black
  1936. // <2=> Red
  1937. // <3=> Green
  1938. // <4=> Yellow
  1939. // <5=> Blue
  1940. // <6=> Magenta
  1941. // <7=> Cyan
  1942. // <8=> White
  1943. #ifndef SAADC_CONFIG_DEBUG_COLOR
  1944. #define SAADC_CONFIG_DEBUG_COLOR 0
  1945. #endif
  1946. // </e>
  1947. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  1948. //==========================================================
  1949. #ifndef SPIS_CONFIG_LOG_ENABLED
  1950. #define SPIS_CONFIG_LOG_ENABLED 0
  1951. #endif
  1952. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  1953. // <0=> Off
  1954. // <1=> Error
  1955. // <2=> Warning
  1956. // <3=> Info
  1957. // <4=> Debug
  1958. #ifndef SPIS_CONFIG_LOG_LEVEL
  1959. #define SPIS_CONFIG_LOG_LEVEL 3
  1960. #endif
  1961. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1962. // <0=> Default
  1963. // <1=> Black
  1964. // <2=> Red
  1965. // <3=> Green
  1966. // <4=> Yellow
  1967. // <5=> Blue
  1968. // <6=> Magenta
  1969. // <7=> Cyan
  1970. // <8=> White
  1971. #ifndef SPIS_CONFIG_INFO_COLOR
  1972. #define SPIS_CONFIG_INFO_COLOR 0
  1973. #endif
  1974. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1975. // <0=> Default
  1976. // <1=> Black
  1977. // <2=> Red
  1978. // <3=> Green
  1979. // <4=> Yellow
  1980. // <5=> Blue
  1981. // <6=> Magenta
  1982. // <7=> Cyan
  1983. // <8=> White
  1984. #ifndef SPIS_CONFIG_DEBUG_COLOR
  1985. #define SPIS_CONFIG_DEBUG_COLOR 0
  1986. #endif
  1987. // </e>
  1988. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1989. //==========================================================
  1990. #ifndef SPI_CONFIG_LOG_ENABLED
  1991. #define SPI_CONFIG_LOG_ENABLED 0
  1992. #endif
  1993. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  1994. // <0=> Off
  1995. // <1=> Error
  1996. // <2=> Warning
  1997. // <3=> Info
  1998. // <4=> Debug
  1999. #ifndef SPI_CONFIG_LOG_LEVEL
  2000. #define SPI_CONFIG_LOG_LEVEL 3
  2001. #endif
  2002. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2003. // <0=> Default
  2004. // <1=> Black
  2005. // <2=> Red
  2006. // <3=> Green
  2007. // <4=> Yellow
  2008. // <5=> Blue
  2009. // <6=> Magenta
  2010. // <7=> Cyan
  2011. // <8=> White
  2012. #ifndef SPI_CONFIG_INFO_COLOR
  2013. #define SPI_CONFIG_INFO_COLOR 0
  2014. #endif
  2015. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2016. // <0=> Default
  2017. // <1=> Black
  2018. // <2=> Red
  2019. // <3=> Green
  2020. // <4=> Yellow
  2021. // <5=> Blue
  2022. // <6=> Magenta
  2023. // <7=> Cyan
  2024. // <8=> White
  2025. #ifndef SPI_CONFIG_DEBUG_COLOR
  2026. #define SPI_CONFIG_DEBUG_COLOR 0
  2027. #endif
  2028. // </e>
  2029. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2030. //==========================================================
  2031. #ifndef TIMER_CONFIG_LOG_ENABLED
  2032. #define TIMER_CONFIG_LOG_ENABLED 0
  2033. #endif
  2034. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2035. // <0=> Off
  2036. // <1=> Error
  2037. // <2=> Warning
  2038. // <3=> Info
  2039. // <4=> Debug
  2040. #ifndef TIMER_CONFIG_LOG_LEVEL
  2041. #define TIMER_CONFIG_LOG_LEVEL 3
  2042. #endif
  2043. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2044. // <0=> Default
  2045. // <1=> Black
  2046. // <2=> Red
  2047. // <3=> Green
  2048. // <4=> Yellow
  2049. // <5=> Blue
  2050. // <6=> Magenta
  2051. // <7=> Cyan
  2052. // <8=> White
  2053. #ifndef TIMER_CONFIG_INFO_COLOR
  2054. #define TIMER_CONFIG_INFO_COLOR 0
  2055. #endif
  2056. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2057. // <0=> Default
  2058. // <1=> Black
  2059. // <2=> Red
  2060. // <3=> Green
  2061. // <4=> Yellow
  2062. // <5=> Blue
  2063. // <6=> Magenta
  2064. // <7=> Cyan
  2065. // <8=> White
  2066. #ifndef TIMER_CONFIG_DEBUG_COLOR
  2067. #define TIMER_CONFIG_DEBUG_COLOR 0
  2068. #endif
  2069. // </e>
  2070. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2071. //==========================================================
  2072. #ifndef TWIS_CONFIG_LOG_ENABLED
  2073. #define TWIS_CONFIG_LOG_ENABLED 0
  2074. #endif
  2075. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  2076. // <0=> Off
  2077. // <1=> Error
  2078. // <2=> Warning
  2079. // <3=> Info
  2080. // <4=> Debug
  2081. #ifndef TWIS_CONFIG_LOG_LEVEL
  2082. #define TWIS_CONFIG_LOG_LEVEL 3
  2083. #endif
  2084. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2085. // <0=> Default
  2086. // <1=> Black
  2087. // <2=> Red
  2088. // <3=> Green
  2089. // <4=> Yellow
  2090. // <5=> Blue
  2091. // <6=> Magenta
  2092. // <7=> Cyan
  2093. // <8=> White
  2094. #ifndef TWIS_CONFIG_INFO_COLOR
  2095. #define TWIS_CONFIG_INFO_COLOR 0
  2096. #endif
  2097. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2098. // <0=> Default
  2099. // <1=> Black
  2100. // <2=> Red
  2101. // <3=> Green
  2102. // <4=> Yellow
  2103. // <5=> Blue
  2104. // <6=> Magenta
  2105. // <7=> Cyan
  2106. // <8=> White
  2107. #ifndef TWIS_CONFIG_DEBUG_COLOR
  2108. #define TWIS_CONFIG_DEBUG_COLOR 0
  2109. #endif
  2110. // </e>
  2111. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2112. //==========================================================
  2113. #ifndef TWI_CONFIG_LOG_ENABLED
  2114. #define TWI_CONFIG_LOG_ENABLED 0
  2115. #endif
  2116. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  2117. // <0=> Off
  2118. // <1=> Error
  2119. // <2=> Warning
  2120. // <3=> Info
  2121. // <4=> Debug
  2122. #ifndef TWI_CONFIG_LOG_LEVEL
  2123. #define TWI_CONFIG_LOG_LEVEL 3
  2124. #endif
  2125. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2126. // <0=> Default
  2127. // <1=> Black
  2128. // <2=> Red
  2129. // <3=> Green
  2130. // <4=> Yellow
  2131. // <5=> Blue
  2132. // <6=> Magenta
  2133. // <7=> Cyan
  2134. // <8=> White
  2135. #ifndef TWI_CONFIG_INFO_COLOR
  2136. #define TWI_CONFIG_INFO_COLOR 0
  2137. #endif
  2138. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2139. // <0=> Default
  2140. // <1=> Black
  2141. // <2=> Red
  2142. // <3=> Green
  2143. // <4=> Yellow
  2144. // <5=> Blue
  2145. // <6=> Magenta
  2146. // <7=> Cyan
  2147. // <8=> White
  2148. #ifndef TWI_CONFIG_DEBUG_COLOR
  2149. #define TWI_CONFIG_DEBUG_COLOR 0
  2150. #endif
  2151. // </e>
  2152. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2153. //==========================================================
  2154. #ifndef UART_CONFIG_LOG_ENABLED
  2155. #define UART_CONFIG_LOG_ENABLED 0
  2156. #endif
  2157. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  2158. // <0=> Off
  2159. // <1=> Error
  2160. // <2=> Warning
  2161. // <3=> Info
  2162. // <4=> Debug
  2163. #ifndef UART_CONFIG_LOG_LEVEL
  2164. #define UART_CONFIG_LOG_LEVEL 3
  2165. #endif
  2166. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2167. // <0=> Default
  2168. // <1=> Black
  2169. // <2=> Red
  2170. // <3=> Green
  2171. // <4=> Yellow
  2172. // <5=> Blue
  2173. // <6=> Magenta
  2174. // <7=> Cyan
  2175. // <8=> White
  2176. #ifndef UART_CONFIG_INFO_COLOR
  2177. #define UART_CONFIG_INFO_COLOR 0
  2178. #endif
  2179. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2180. // <0=> Default
  2181. // <1=> Black
  2182. // <2=> Red
  2183. // <3=> Green
  2184. // <4=> Yellow
  2185. // <5=> Blue
  2186. // <6=> Magenta
  2187. // <7=> Cyan
  2188. // <8=> White
  2189. #ifndef UART_CONFIG_DEBUG_COLOR
  2190. #define UART_CONFIG_DEBUG_COLOR 0
  2191. #endif
  2192. // </e>
  2193. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  2194. //==========================================================
  2195. #ifndef USBD_CONFIG_LOG_ENABLED
  2196. #define USBD_CONFIG_LOG_ENABLED 0
  2197. #endif
  2198. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  2199. // <0=> Off
  2200. // <1=> Error
  2201. // <2=> Warning
  2202. // <3=> Info
  2203. // <4=> Debug
  2204. #ifndef USBD_CONFIG_LOG_LEVEL
  2205. #define USBD_CONFIG_LOG_LEVEL 3
  2206. #endif
  2207. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2208. // <0=> Default
  2209. // <1=> Black
  2210. // <2=> Red
  2211. // <3=> Green
  2212. // <4=> Yellow
  2213. // <5=> Blue
  2214. // <6=> Magenta
  2215. // <7=> Cyan
  2216. // <8=> White
  2217. #ifndef USBD_CONFIG_INFO_COLOR
  2218. #define USBD_CONFIG_INFO_COLOR 0
  2219. #endif
  2220. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2221. // <0=> Default
  2222. // <1=> Black
  2223. // <2=> Red
  2224. // <3=> Green
  2225. // <4=> Yellow
  2226. // <5=> Blue
  2227. // <6=> Magenta
  2228. // <7=> Cyan
  2229. // <8=> White
  2230. #ifndef USBD_CONFIG_DEBUG_COLOR
  2231. #define USBD_CONFIG_DEBUG_COLOR 0
  2232. #endif
  2233. // </e>
  2234. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2235. //==========================================================
  2236. #ifndef WDT_CONFIG_LOG_ENABLED
  2237. #define WDT_CONFIG_LOG_ENABLED 0
  2238. #endif
  2239. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  2240. // <0=> Off
  2241. // <1=> Error
  2242. // <2=> Warning
  2243. // <3=> Info
  2244. // <4=> Debug
  2245. #ifndef WDT_CONFIG_LOG_LEVEL
  2246. #define WDT_CONFIG_LOG_LEVEL 3
  2247. #endif
  2248. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2249. // <0=> Default
  2250. // <1=> Black
  2251. // <2=> Red
  2252. // <3=> Green
  2253. // <4=> Yellow
  2254. // <5=> Blue
  2255. // <6=> Magenta
  2256. // <7=> Cyan
  2257. // <8=> White
  2258. #ifndef WDT_CONFIG_INFO_COLOR
  2259. #define WDT_CONFIG_INFO_COLOR 0
  2260. #endif
  2261. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2262. // <0=> Default
  2263. // <1=> Black
  2264. // <2=> Red
  2265. // <3=> Green
  2266. // <4=> Yellow
  2267. // <5=> Blue
  2268. // <6=> Magenta
  2269. // <7=> Cyan
  2270. // <8=> White
  2271. #ifndef WDT_CONFIG_DEBUG_COLOR
  2272. #define WDT_CONFIG_DEBUG_COLOR 0
  2273. #endif
  2274. // </e>
  2275. // </h>
  2276. //==========================================================
  2277. // <h> nrf_log in nRF_Libraries
  2278. //==========================================================
  2279. // <e> APP_BUTTON_CONFIG_LOG_ENABLED - Enables logging in the module.
  2280. //==========================================================
  2281. #ifndef APP_BUTTON_CONFIG_LOG_ENABLED
  2282. #define APP_BUTTON_CONFIG_LOG_ENABLED 0
  2283. #endif
  2284. // <o> APP_BUTTON_CONFIG_LOG_LEVEL - Default Severity level
  2285. // <0=> Off
  2286. // <1=> Error
  2287. // <2=> Warning
  2288. // <3=> Info
  2289. // <4=> Debug
  2290. #ifndef APP_BUTTON_CONFIG_LOG_LEVEL
  2291. #define APP_BUTTON_CONFIG_LOG_LEVEL 3
  2292. #endif
  2293. // <o> APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2294. // <i> If module generates a lot of logs, initial log level can
  2295. // <i> be decreased to prevent flooding. Severity level can be
  2296. // <i> increased on instance basis.
  2297. // <0=> Off
  2298. // <1=> Error
  2299. // <2=> Warning
  2300. // <3=> Info
  2301. // <4=> Debug
  2302. #ifndef APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL
  2303. #define APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL 3
  2304. #endif
  2305. // <o> APP_BUTTON_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2306. // <0=> Default
  2307. // <1=> Black
  2308. // <2=> Red
  2309. // <3=> Green
  2310. // <4=> Yellow
  2311. // <5=> Blue
  2312. // <6=> Magenta
  2313. // <7=> Cyan
  2314. // <8=> White
  2315. #ifndef APP_BUTTON_CONFIG_INFO_COLOR
  2316. #define APP_BUTTON_CONFIG_INFO_COLOR 0
  2317. #endif
  2318. // <o> APP_BUTTON_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2319. // <0=> Default
  2320. // <1=> Black
  2321. // <2=> Red
  2322. // <3=> Green
  2323. // <4=> Yellow
  2324. // <5=> Blue
  2325. // <6=> Magenta
  2326. // <7=> Cyan
  2327. // <8=> White
  2328. #ifndef APP_BUTTON_CONFIG_DEBUG_COLOR
  2329. #define APP_BUTTON_CONFIG_DEBUG_COLOR 0
  2330. #endif
  2331. // </e>
  2332. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2333. //==========================================================
  2334. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  2335. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  2336. #endif
  2337. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2338. // <0=> Off
  2339. // <1=> Error
  2340. // <2=> Warning
  2341. // <3=> Info
  2342. // <4=> Debug
  2343. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  2344. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  2345. #endif
  2346. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2347. // <i> If module generates a lot of logs, initial log level can
  2348. // <i> be decreased to prevent flooding. Severity level can be
  2349. // <i> increased on instance basis.
  2350. // <0=> Off
  2351. // <1=> Error
  2352. // <2=> Warning
  2353. // <3=> Info
  2354. // <4=> Debug
  2355. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  2356. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  2357. #endif
  2358. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2359. // <0=> Default
  2360. // <1=> Black
  2361. // <2=> Red
  2362. // <3=> Green
  2363. // <4=> Yellow
  2364. // <5=> Blue
  2365. // <6=> Magenta
  2366. // <7=> Cyan
  2367. // <8=> White
  2368. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  2369. #define APP_TIMER_CONFIG_INFO_COLOR 0
  2370. #endif
  2371. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2372. // <0=> Default
  2373. // <1=> Black
  2374. // <2=> Red
  2375. // <3=> Green
  2376. // <4=> Yellow
  2377. // <5=> Blue
  2378. // <6=> Magenta
  2379. // <7=> Cyan
  2380. // <8=> White
  2381. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  2382. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  2383. #endif
  2384. // </e>
  2385. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2386. //==========================================================
  2387. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  2388. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  2389. #endif
  2390. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  2391. // <0=> Off
  2392. // <1=> Error
  2393. // <2=> Warning
  2394. // <3=> Info
  2395. // <4=> Debug
  2396. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  2397. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  2398. #endif
  2399. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2400. // <0=> Default
  2401. // <1=> Black
  2402. // <2=> Red
  2403. // <3=> Green
  2404. // <4=> Yellow
  2405. // <5=> Blue
  2406. // <6=> Magenta
  2407. // <7=> Cyan
  2408. // <8=> White
  2409. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  2410. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  2411. #endif
  2412. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2413. // <0=> Default
  2414. // <1=> Black
  2415. // <2=> Red
  2416. // <3=> Green
  2417. // <4=> Yellow
  2418. // <5=> Blue
  2419. // <6=> Magenta
  2420. // <7=> Cyan
  2421. // <8=> White
  2422. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  2423. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  2424. #endif
  2425. // </e>
  2426. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  2427. //==========================================================
  2428. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  2429. #define APP_USBD_CONFIG_LOG_ENABLED 0
  2430. #endif
  2431. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  2432. // <0=> Off
  2433. // <1=> Error
  2434. // <2=> Warning
  2435. // <3=> Info
  2436. // <4=> Debug
  2437. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  2438. #define APP_USBD_CONFIG_LOG_LEVEL 3
  2439. #endif
  2440. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2441. // <0=> Default
  2442. // <1=> Black
  2443. // <2=> Red
  2444. // <3=> Green
  2445. // <4=> Yellow
  2446. // <5=> Blue
  2447. // <6=> Magenta
  2448. // <7=> Cyan
  2449. // <8=> White
  2450. #ifndef APP_USBD_CONFIG_INFO_COLOR
  2451. #define APP_USBD_CONFIG_INFO_COLOR 0
  2452. #endif
  2453. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2454. // <0=> Default
  2455. // <1=> Black
  2456. // <2=> Red
  2457. // <3=> Green
  2458. // <4=> Yellow
  2459. // <5=> Blue
  2460. // <6=> Magenta
  2461. // <7=> Cyan
  2462. // <8=> White
  2463. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  2464. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  2465. #endif
  2466. // </e>
  2467. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  2468. //==========================================================
  2469. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  2470. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  2471. #endif
  2472. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  2473. // <0=> Off
  2474. // <1=> Error
  2475. // <2=> Warning
  2476. // <3=> Info
  2477. // <4=> Debug
  2478. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  2479. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  2480. #endif
  2481. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2482. // <0=> Default
  2483. // <1=> Black
  2484. // <2=> Red
  2485. // <3=> Green
  2486. // <4=> Yellow
  2487. // <5=> Blue
  2488. // <6=> Magenta
  2489. // <7=> Cyan
  2490. // <8=> White
  2491. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  2492. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  2493. #endif
  2494. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2495. // <0=> Default
  2496. // <1=> Black
  2497. // <2=> Red
  2498. // <3=> Green
  2499. // <4=> Yellow
  2500. // <5=> Blue
  2501. // <6=> Magenta
  2502. // <7=> Cyan
  2503. // <8=> White
  2504. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  2505. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  2506. #endif
  2507. // </e>
  2508. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2509. //==========================================================
  2510. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  2511. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  2512. #endif
  2513. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  2514. // <0=> Off
  2515. // <1=> Error
  2516. // <2=> Warning
  2517. // <3=> Info
  2518. // <4=> Debug
  2519. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  2520. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  2521. #endif
  2522. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2523. // <0=> Default
  2524. // <1=> Black
  2525. // <2=> Red
  2526. // <3=> Green
  2527. // <4=> Yellow
  2528. // <5=> Blue
  2529. // <6=> Magenta
  2530. // <7=> Cyan
  2531. // <8=> White
  2532. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  2533. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  2534. #endif
  2535. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2536. // <0=> Default
  2537. // <1=> Black
  2538. // <2=> Red
  2539. // <3=> Green
  2540. // <4=> Yellow
  2541. // <5=> Blue
  2542. // <6=> Magenta
  2543. // <7=> Cyan
  2544. // <8=> White
  2545. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  2546. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  2547. #endif
  2548. // </e>
  2549. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2550. //==========================================================
  2551. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  2552. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  2553. #endif
  2554. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  2555. // <0=> Off
  2556. // <1=> Error
  2557. // <2=> Warning
  2558. // <3=> Info
  2559. // <4=> Debug
  2560. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  2561. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  2562. #endif
  2563. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2564. // <0=> Default
  2565. // <1=> Black
  2566. // <2=> Red
  2567. // <3=> Green
  2568. // <4=> Yellow
  2569. // <5=> Blue
  2570. // <6=> Magenta
  2571. // <7=> Cyan
  2572. // <8=> White
  2573. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  2574. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  2575. #endif
  2576. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2577. // <0=> Default
  2578. // <1=> Black
  2579. // <2=> Red
  2580. // <3=> Green
  2581. // <4=> Yellow
  2582. // <5=> Blue
  2583. // <6=> Magenta
  2584. // <7=> Cyan
  2585. // <8=> White
  2586. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  2587. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  2588. #endif
  2589. // </e>
  2590. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  2591. //==========================================================
  2592. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  2593. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  2594. #endif
  2595. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  2596. // <0=> Off
  2597. // <1=> Error
  2598. // <2=> Warning
  2599. // <3=> Info
  2600. // <4=> Debug
  2601. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  2602. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  2603. #endif
  2604. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2605. // <0=> Off
  2606. // <1=> Error
  2607. // <2=> Warning
  2608. // <3=> Info
  2609. // <4=> Debug
  2610. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  2611. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2612. #endif
  2613. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2614. // <0=> Default
  2615. // <1=> Black
  2616. // <2=> Red
  2617. // <3=> Green
  2618. // <4=> Yellow
  2619. // <5=> Blue
  2620. // <6=> Magenta
  2621. // <7=> Cyan
  2622. // <8=> White
  2623. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  2624. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  2625. #endif
  2626. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2627. // <0=> Default
  2628. // <1=> Black
  2629. // <2=> Red
  2630. // <3=> Green
  2631. // <4=> Yellow
  2632. // <5=> Blue
  2633. // <6=> Magenta
  2634. // <7=> Cyan
  2635. // <8=> White
  2636. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  2637. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  2638. #endif
  2639. // </e>
  2640. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2641. //==========================================================
  2642. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  2643. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  2644. #endif
  2645. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  2646. // <0=> Off
  2647. // <1=> Error
  2648. // <2=> Warning
  2649. // <3=> Info
  2650. // <4=> Debug
  2651. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  2652. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  2653. #endif
  2654. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2655. // <i> If module generates a lot of logs, initial log level can
  2656. // <i> be decreased to prevent flooding. Severity level can be
  2657. // <i> increased on instance basis.
  2658. // <0=> Off
  2659. // <1=> Error
  2660. // <2=> Warning
  2661. // <3=> Info
  2662. // <4=> Debug
  2663. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  2664. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  2665. #endif
  2666. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2667. // <0=> Default
  2668. // <1=> Black
  2669. // <2=> Red
  2670. // <3=> Green
  2671. // <4=> Yellow
  2672. // <5=> Blue
  2673. // <6=> Magenta
  2674. // <7=> Cyan
  2675. // <8=> White
  2676. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  2677. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  2678. #endif
  2679. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2680. // <0=> Default
  2681. // <1=> Black
  2682. // <2=> Red
  2683. // <3=> Green
  2684. // <4=> Yellow
  2685. // <5=> Blue
  2686. // <6=> Magenta
  2687. // <7=> Cyan
  2688. // <8=> White
  2689. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  2690. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  2691. #endif
  2692. // </e>
  2693. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  2694. //==========================================================
  2695. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  2696. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  2697. #endif
  2698. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  2699. // <0=> Off
  2700. // <1=> Error
  2701. // <2=> Warning
  2702. // <3=> Info
  2703. // <4=> Debug
  2704. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  2705. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  2706. #endif
  2707. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2708. // <0=> Off
  2709. // <1=> Error
  2710. // <2=> Warning
  2711. // <3=> Info
  2712. // <4=> Debug
  2713. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  2714. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2715. #endif
  2716. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2717. // <0=> Default
  2718. // <1=> Black
  2719. // <2=> Red
  2720. // <3=> Green
  2721. // <4=> Yellow
  2722. // <5=> Blue
  2723. // <6=> Magenta
  2724. // <7=> Cyan
  2725. // <8=> White
  2726. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  2727. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  2728. #endif
  2729. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2730. // <0=> Default
  2731. // <1=> Black
  2732. // <2=> Red
  2733. // <3=> Green
  2734. // <4=> Yellow
  2735. // <5=> Blue
  2736. // <6=> Magenta
  2737. // <7=> Cyan
  2738. // <8=> White
  2739. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  2740. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  2741. #endif
  2742. // </e>
  2743. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2744. //==========================================================
  2745. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  2746. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  2747. #endif
  2748. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  2749. // <0=> Off
  2750. // <1=> Error
  2751. // <2=> Warning
  2752. // <3=> Info
  2753. // <4=> Debug
  2754. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  2755. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  2756. #endif
  2757. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2758. // <0=> Off
  2759. // <1=> Error
  2760. // <2=> Warning
  2761. // <3=> Info
  2762. // <4=> Debug
  2763. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  2764. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2765. #endif
  2766. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2767. // <0=> Default
  2768. // <1=> Black
  2769. // <2=> Red
  2770. // <3=> Green
  2771. // <4=> Yellow
  2772. // <5=> Blue
  2773. // <6=> Magenta
  2774. // <7=> Cyan
  2775. // <8=> White
  2776. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  2777. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  2778. #endif
  2779. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2780. // <0=> Default
  2781. // <1=> Black
  2782. // <2=> Red
  2783. // <3=> Green
  2784. // <4=> Yellow
  2785. // <5=> Blue
  2786. // <6=> Magenta
  2787. // <7=> Cyan
  2788. // <8=> White
  2789. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  2790. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  2791. #endif
  2792. // </e>
  2793. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2794. //==========================================================
  2795. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  2796. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  2797. #endif
  2798. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  2799. // <0=> Off
  2800. // <1=> Error
  2801. // <2=> Warning
  2802. // <3=> Info
  2803. // <4=> Debug
  2804. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  2805. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  2806. #endif
  2807. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2808. // <0=> Off
  2809. // <1=> Error
  2810. // <2=> Warning
  2811. // <3=> Info
  2812. // <4=> Debug
  2813. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  2814. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2815. #endif
  2816. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2817. // <0=> Default
  2818. // <1=> Black
  2819. // <2=> Red
  2820. // <3=> Green
  2821. // <4=> Yellow
  2822. // <5=> Blue
  2823. // <6=> Magenta
  2824. // <7=> Cyan
  2825. // <8=> White
  2826. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  2827. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  2828. #endif
  2829. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2830. // <0=> Default
  2831. // <1=> Black
  2832. // <2=> Red
  2833. // <3=> Green
  2834. // <4=> Yellow
  2835. // <5=> Blue
  2836. // <6=> Magenta
  2837. // <7=> Cyan
  2838. // <8=> White
  2839. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  2840. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  2841. #endif
  2842. // </e>
  2843. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2844. //==========================================================
  2845. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  2846. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  2847. #endif
  2848. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  2849. // <0=> Off
  2850. // <1=> Error
  2851. // <2=> Warning
  2852. // <3=> Info
  2853. // <4=> Debug
  2854. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  2855. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  2856. #endif
  2857. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2858. // <0=> Default
  2859. // <1=> Black
  2860. // <2=> Red
  2861. // <3=> Green
  2862. // <4=> Yellow
  2863. // <5=> Blue
  2864. // <6=> Magenta
  2865. // <7=> Cyan
  2866. // <8=> White
  2867. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  2868. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  2869. #endif
  2870. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2871. // <0=> Default
  2872. // <1=> Black
  2873. // <2=> Red
  2874. // <3=> Green
  2875. // <4=> Yellow
  2876. // <5=> Blue
  2877. // <6=> Magenta
  2878. // <7=> Cyan
  2879. // <8=> White
  2880. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  2881. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  2882. #endif
  2883. // </e>
  2884. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  2885. //==========================================================
  2886. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  2887. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  2888. #endif
  2889. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  2890. // <0=> Off
  2891. // <1=> Error
  2892. // <2=> Warning
  2893. // <3=> Info
  2894. // <4=> Debug
  2895. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  2896. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  2897. #endif
  2898. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2899. // <0=> Default
  2900. // <1=> Black
  2901. // <2=> Red
  2902. // <3=> Green
  2903. // <4=> Yellow
  2904. // <5=> Blue
  2905. // <6=> Magenta
  2906. // <7=> Cyan
  2907. // <8=> White
  2908. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  2909. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  2910. #endif
  2911. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2912. // <0=> Default
  2913. // <1=> Black
  2914. // <2=> Red
  2915. // <3=> Green
  2916. // <4=> Yellow
  2917. // <5=> Blue
  2918. // <6=> Magenta
  2919. // <7=> Cyan
  2920. // <8=> White
  2921. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  2922. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  2923. #endif
  2924. // </e>
  2925. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2926. //==========================================================
  2927. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  2928. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  2929. #endif
  2930. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  2931. // <0=> Off
  2932. // <1=> Error
  2933. // <2=> Warning
  2934. // <3=> Info
  2935. // <4=> Debug
  2936. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  2937. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  2938. #endif
  2939. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2940. // <0=> Default
  2941. // <1=> Black
  2942. // <2=> Red
  2943. // <3=> Green
  2944. // <4=> Yellow
  2945. // <5=> Blue
  2946. // <6=> Magenta
  2947. // <7=> Cyan
  2948. // <8=> White
  2949. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  2950. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  2951. #endif
  2952. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2953. // <0=> Default
  2954. // <1=> Black
  2955. // <2=> Red
  2956. // <3=> Green
  2957. // <4=> Yellow
  2958. // <5=> Blue
  2959. // <6=> Magenta
  2960. // <7=> Cyan
  2961. // <8=> White
  2962. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  2963. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  2964. #endif
  2965. // </e>
  2966. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  2967. //==========================================================
  2968. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  2969. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  2970. #endif
  2971. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  2972. // <0=> Off
  2973. // <1=> Error
  2974. // <2=> Warning
  2975. // <3=> Info
  2976. // <4=> Debug
  2977. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  2978. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  2979. #endif
  2980. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2981. // <0=> Default
  2982. // <1=> Black
  2983. // <2=> Red
  2984. // <3=> Green
  2985. // <4=> Yellow
  2986. // <5=> Blue
  2987. // <6=> Magenta
  2988. // <7=> Cyan
  2989. // <8=> White
  2990. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  2991. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  2992. #endif
  2993. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2994. // <0=> Default
  2995. // <1=> Black
  2996. // <2=> Red
  2997. // <3=> Green
  2998. // <4=> Yellow
  2999. // <5=> Blue
  3000. // <6=> Magenta
  3001. // <7=> Cyan
  3002. // <8=> White
  3003. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  3004. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  3005. #endif
  3006. // </e>
  3007. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  3008. //==========================================================
  3009. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  3010. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  3011. #endif
  3012. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  3013. // <0=> Off
  3014. // <1=> Error
  3015. // <2=> Warning
  3016. // <3=> Info
  3017. // <4=> Debug
  3018. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  3019. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  3020. #endif
  3021. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3022. // <0=> Default
  3023. // <1=> Black
  3024. // <2=> Red
  3025. // <3=> Green
  3026. // <4=> Yellow
  3027. // <5=> Blue
  3028. // <6=> Magenta
  3029. // <7=> Cyan
  3030. // <8=> White
  3031. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  3032. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  3033. #endif
  3034. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3035. // <0=> Default
  3036. // <1=> Black
  3037. // <2=> Red
  3038. // <3=> Green
  3039. // <4=> Yellow
  3040. // <5=> Blue
  3041. // <6=> Magenta
  3042. // <7=> Cyan
  3043. // <8=> White
  3044. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  3045. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  3046. #endif
  3047. // </e>
  3048. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3049. //==========================================================
  3050. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  3051. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  3052. #endif
  3053. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  3054. // <0=> Off
  3055. // <1=> Error
  3056. // <2=> Warning
  3057. // <3=> Info
  3058. // <4=> Debug
  3059. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  3060. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  3061. #endif
  3062. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3063. // <0=> Default
  3064. // <1=> Black
  3065. // <2=> Red
  3066. // <3=> Green
  3067. // <4=> Yellow
  3068. // <5=> Blue
  3069. // <6=> Magenta
  3070. // <7=> Cyan
  3071. // <8=> White
  3072. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  3073. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  3074. #endif
  3075. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3076. // <0=> Default
  3077. // <1=> Black
  3078. // <2=> Red
  3079. // <3=> Green
  3080. // <4=> Yellow
  3081. // <5=> Blue
  3082. // <6=> Magenta
  3083. // <7=> Cyan
  3084. // <8=> White
  3085. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  3086. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  3087. #endif
  3088. // </e>
  3089. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3090. //==========================================================
  3091. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  3092. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  3093. #endif
  3094. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  3095. // <0=> Off
  3096. // <1=> Error
  3097. // <2=> Warning
  3098. // <3=> Info
  3099. // <4=> Debug
  3100. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  3101. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  3102. #endif
  3103. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3104. // <0=> Off
  3105. // <1=> Error
  3106. // <2=> Warning
  3107. // <3=> Info
  3108. // <4=> Debug
  3109. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  3110. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3111. #endif
  3112. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3113. // <0=> Default
  3114. // <1=> Black
  3115. // <2=> Red
  3116. // <3=> Green
  3117. // <4=> Yellow
  3118. // <5=> Blue
  3119. // <6=> Magenta
  3120. // <7=> Cyan
  3121. // <8=> White
  3122. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  3123. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  3124. #endif
  3125. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3126. // <0=> Default
  3127. // <1=> Black
  3128. // <2=> Red
  3129. // <3=> Green
  3130. // <4=> Yellow
  3131. // <5=> Blue
  3132. // <6=> Magenta
  3133. // <7=> Cyan
  3134. // <8=> White
  3135. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  3136. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  3137. #endif
  3138. // </e>
  3139. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  3140. //==========================================================
  3141. #ifndef NRF_SDH_ANT_LOG_ENABLED
  3142. #define NRF_SDH_ANT_LOG_ENABLED 0
  3143. #endif
  3144. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  3145. // <0=> Off
  3146. // <1=> Error
  3147. // <2=> Warning
  3148. // <3=> Info
  3149. // <4=> Debug
  3150. #ifndef NRF_SDH_ANT_LOG_LEVEL
  3151. #define NRF_SDH_ANT_LOG_LEVEL 3
  3152. #endif
  3153. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  3154. // <0=> Default
  3155. // <1=> Black
  3156. // <2=> Red
  3157. // <3=> Green
  3158. // <4=> Yellow
  3159. // <5=> Blue
  3160. // <6=> Magenta
  3161. // <7=> Cyan
  3162. // <8=> White
  3163. #ifndef NRF_SDH_ANT_INFO_COLOR
  3164. #define NRF_SDH_ANT_INFO_COLOR 0
  3165. #endif
  3166. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  3167. // <0=> Default
  3168. // <1=> Black
  3169. // <2=> Red
  3170. // <3=> Green
  3171. // <4=> Yellow
  3172. // <5=> Blue
  3173. // <6=> Magenta
  3174. // <7=> Cyan
  3175. // <8=> White
  3176. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  3177. #define NRF_SDH_ANT_DEBUG_COLOR 0
  3178. #endif
  3179. // </e>
  3180. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  3181. //==========================================================
  3182. #ifndef NRF_SDH_BLE_LOG_ENABLED
  3183. #define NRF_SDH_BLE_LOG_ENABLED 1
  3184. #endif
  3185. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  3186. // <0=> Off
  3187. // <1=> Error
  3188. // <2=> Warning
  3189. // <3=> Info
  3190. // <4=> Debug
  3191. #ifndef NRF_SDH_BLE_LOG_LEVEL
  3192. #define NRF_SDH_BLE_LOG_LEVEL 3
  3193. #endif
  3194. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  3195. // <0=> Default
  3196. // <1=> Black
  3197. // <2=> Red
  3198. // <3=> Green
  3199. // <4=> Yellow
  3200. // <5=> Blue
  3201. // <6=> Magenta
  3202. // <7=> Cyan
  3203. // <8=> White
  3204. #ifndef NRF_SDH_BLE_INFO_COLOR
  3205. #define NRF_SDH_BLE_INFO_COLOR 0
  3206. #endif
  3207. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  3208. // <0=> Default
  3209. // <1=> Black
  3210. // <2=> Red
  3211. // <3=> Green
  3212. // <4=> Yellow
  3213. // <5=> Blue
  3214. // <6=> Magenta
  3215. // <7=> Cyan
  3216. // <8=> White
  3217. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  3218. #define NRF_SDH_BLE_DEBUG_COLOR 0
  3219. #endif
  3220. // </e>
  3221. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  3222. //==========================================================
  3223. #ifndef NRF_SDH_LOG_ENABLED
  3224. #define NRF_SDH_LOG_ENABLED 1
  3225. #endif
  3226. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  3227. // <0=> Off
  3228. // <1=> Error
  3229. // <2=> Warning
  3230. // <3=> Info
  3231. // <4=> Debug
  3232. #ifndef NRF_SDH_LOG_LEVEL
  3233. #define NRF_SDH_LOG_LEVEL 3
  3234. #endif
  3235. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  3236. // <0=> Default
  3237. // <1=> Black
  3238. // <2=> Red
  3239. // <3=> Green
  3240. // <4=> Yellow
  3241. // <5=> Blue
  3242. // <6=> Magenta
  3243. // <7=> Cyan
  3244. // <8=> White
  3245. #ifndef NRF_SDH_INFO_COLOR
  3246. #define NRF_SDH_INFO_COLOR 0
  3247. #endif
  3248. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  3249. // <0=> Default
  3250. // <1=> Black
  3251. // <2=> Red
  3252. // <3=> Green
  3253. // <4=> Yellow
  3254. // <5=> Blue
  3255. // <6=> Magenta
  3256. // <7=> Cyan
  3257. // <8=> White
  3258. #ifndef NRF_SDH_DEBUG_COLOR
  3259. #define NRF_SDH_DEBUG_COLOR 0
  3260. #endif
  3261. // </e>
  3262. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  3263. //==========================================================
  3264. #ifndef NRF_SDH_SOC_LOG_ENABLED
  3265. #define NRF_SDH_SOC_LOG_ENABLED 1
  3266. #endif
  3267. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  3268. // <0=> Off
  3269. // <1=> Error
  3270. // <2=> Warning
  3271. // <3=> Info
  3272. // <4=> Debug
  3273. #ifndef NRF_SDH_SOC_LOG_LEVEL
  3274. #define NRF_SDH_SOC_LOG_LEVEL 3
  3275. #endif
  3276. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  3277. // <0=> Default
  3278. // <1=> Black
  3279. // <2=> Red
  3280. // <3=> Green
  3281. // <4=> Yellow
  3282. // <5=> Blue
  3283. // <6=> Magenta
  3284. // <7=> Cyan
  3285. // <8=> White
  3286. #ifndef NRF_SDH_SOC_INFO_COLOR
  3287. #define NRF_SDH_SOC_INFO_COLOR 0
  3288. #endif
  3289. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  3290. // <0=> Default
  3291. // <1=> Black
  3292. // <2=> Red
  3293. // <3=> Green
  3294. // <4=> Yellow
  3295. // <5=> Blue
  3296. // <6=> Magenta
  3297. // <7=> Cyan
  3298. // <8=> White
  3299. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  3300. #define NRF_SDH_SOC_DEBUG_COLOR 0
  3301. #endif
  3302. // </e>
  3303. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  3304. //==========================================================
  3305. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  3306. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  3307. #endif
  3308. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  3309. // <0=> Off
  3310. // <1=> Error
  3311. // <2=> Warning
  3312. // <3=> Info
  3313. // <4=> Debug
  3314. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  3315. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  3316. #endif
  3317. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3318. // <0=> Default
  3319. // <1=> Black
  3320. // <2=> Red
  3321. // <3=> Green
  3322. // <4=> Yellow
  3323. // <5=> Blue
  3324. // <6=> Magenta
  3325. // <7=> Cyan
  3326. // <8=> White
  3327. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  3328. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  3329. #endif
  3330. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3331. // <0=> Default
  3332. // <1=> Black
  3333. // <2=> Red
  3334. // <3=> Green
  3335. // <4=> Yellow
  3336. // <5=> Blue
  3337. // <6=> Magenta
  3338. // <7=> Cyan
  3339. // <8=> White
  3340. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  3341. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  3342. #endif
  3343. // </e>
  3344. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  3345. //==========================================================
  3346. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  3347. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  3348. #endif
  3349. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  3350. // <0=> Off
  3351. // <1=> Error
  3352. // <2=> Warning
  3353. // <3=> Info
  3354. // <4=> Debug
  3355. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  3356. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  3357. #endif
  3358. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3359. // <0=> Default
  3360. // <1=> Black
  3361. // <2=> Red
  3362. // <3=> Green
  3363. // <4=> Yellow
  3364. // <5=> Blue
  3365. // <6=> Magenta
  3366. // <7=> Cyan
  3367. // <8=> White
  3368. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  3369. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  3370. #endif
  3371. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3372. // <0=> Default
  3373. // <1=> Black
  3374. // <2=> Red
  3375. // <3=> Green
  3376. // <4=> Yellow
  3377. // <5=> Blue
  3378. // <6=> Magenta
  3379. // <7=> Cyan
  3380. // <8=> White
  3381. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  3382. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  3383. #endif
  3384. // </e>
  3385. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  3386. //==========================================================
  3387. #ifndef PM_LOG_ENABLED
  3388. #define PM_LOG_ENABLED 1
  3389. #endif
  3390. // <o> PM_LOG_LEVEL - Default Severity level
  3391. // <0=> Off
  3392. // <1=> Error
  3393. // <2=> Warning
  3394. // <3=> Info
  3395. // <4=> Debug
  3396. #ifndef PM_LOG_LEVEL
  3397. #define PM_LOG_LEVEL 3
  3398. #endif
  3399. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  3400. // <0=> Default
  3401. // <1=> Black
  3402. // <2=> Red
  3403. // <3=> Green
  3404. // <4=> Yellow
  3405. // <5=> Blue
  3406. // <6=> Magenta
  3407. // <7=> Cyan
  3408. // <8=> White
  3409. #ifndef PM_LOG_INFO_COLOR
  3410. #define PM_LOG_INFO_COLOR 0
  3411. #endif
  3412. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  3413. // <0=> Default
  3414. // <1=> Black
  3415. // <2=> Red
  3416. // <3=> Green
  3417. // <4=> Yellow
  3418. // <5=> Blue
  3419. // <6=> Magenta
  3420. // <7=> Cyan
  3421. // <8=> White
  3422. #ifndef PM_LOG_DEBUG_COLOR
  3423. #define PM_LOG_DEBUG_COLOR 0
  3424. #endif
  3425. // </e>
  3426. // </h>
  3427. //==========================================================
  3428. // <h> nrf_log in nRF_Serialization
  3429. //==========================================================
  3430. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3431. //==========================================================
  3432. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  3433. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  3434. #endif
  3435. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  3436. // <0=> Off
  3437. // <1=> Error
  3438. // <2=> Warning
  3439. // <3=> Info
  3440. // <4=> Debug
  3441. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  3442. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  3443. #endif
  3444. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3445. // <0=> Default
  3446. // <1=> Black
  3447. // <2=> Red
  3448. // <3=> Green
  3449. // <4=> Yellow
  3450. // <5=> Blue
  3451. // <6=> Magenta
  3452. // <7=> Cyan
  3453. // <8=> White
  3454. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  3455. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  3456. #endif
  3457. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3458. // <0=> Default
  3459. // <1=> Black
  3460. // <2=> Red
  3461. // <3=> Green
  3462. // <4=> Yellow
  3463. // <5=> Blue
  3464. // <6=> Magenta
  3465. // <7=> Cyan
  3466. // <8=> White
  3467. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  3468. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  3469. #endif
  3470. // </e>
  3471. // </h>
  3472. //==========================================================
  3473. // </h>
  3474. //==========================================================
  3475. // </e>
  3476. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  3477. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  3478. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  3479. #endif
  3480. // </h>
  3481. //==========================================================
  3482. // <h> nRF_SoftDevice
  3483. //==========================================================
  3484. // <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
  3485. //==========================================================
  3486. #ifndef NRF_SDH_BLE_ENABLED
  3487. #define NRF_SDH_BLE_ENABLED 1
  3488. #endif
  3489. // <h> BLE Stack configuration - Stack configuration parameters
  3490. // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
  3491. // <i> Other libraries might depend on these values; keep them up-to-date even if you are not explicitely calling @ref nrf_sdh_ble_default_cfg_set.
  3492. //==========================================================
  3493. // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
  3494. // <i> Requested BLE GAP data length to be negotiated.
  3495. #ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
  3496. #define NRF_SDH_BLE_GAP_DATA_LENGTH 27
  3497. #endif
  3498. // <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
  3499. #ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
  3500. #define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
  3501. #endif
  3502. // <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
  3503. #ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
  3504. #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
  3505. #endif
  3506. // <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
  3507. // <i> Maximum number of total concurrent connections using the default configuration.
  3508. #ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
  3509. #define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
  3510. #endif
  3511. // <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
  3512. // <i> The time set aside for this connection on every connection interval in 1.25 ms units.
  3513. #ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
  3514. #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
  3515. #endif
  3516. // <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
  3517. #ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
  3518. #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
  3519. #endif
  3520. // <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
  3521. #ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
  3522. #define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1408
  3523. #endif
  3524. // <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
  3525. #ifndef NRF_SDH_BLE_VS_UUID_COUNT
  3526. #define NRF_SDH_BLE_VS_UUID_COUNT 1
  3527. #endif
  3528. // <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
  3529. #ifndef NRF_SDH_BLE_SERVICE_CHANGED
  3530. #define NRF_SDH_BLE_SERVICE_CHANGED 1
  3531. #endif
  3532. // </h>
  3533. //==========================================================
  3534. // <h> BLE Observers - Observers and priority levels
  3535. //==========================================================
  3536. // <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
  3537. // <i> This setting configures the number of priority levels available for BLE event handlers.
  3538. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3539. #ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
  3540. #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
  3541. #endif
  3542. // <h> BLE Observers priorities - Invididual priorities
  3543. //==========================================================
  3544. // <o> BLE_ADV_BLE_OBSERVER_PRIO
  3545. // <i> Priority with which BLE events are dispatched to the Advertising module.
  3546. #ifndef BLE_ADV_BLE_OBSERVER_PRIO
  3547. #define BLE_ADV_BLE_OBSERVER_PRIO 1
  3548. #endif
  3549. // <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
  3550. // <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
  3551. #ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
  3552. #define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
  3553. #endif
  3554. // <o> BLE_ANS_C_BLE_OBSERVER_PRIO
  3555. // <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
  3556. #ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
  3557. #define BLE_ANS_C_BLE_OBSERVER_PRIO 2
  3558. #endif
  3559. // <o> BLE_BAS_BLE_OBSERVER_PRIO
  3560. // <i> Priority with which BLE events are dispatched to the Battery Service.
  3561. #ifndef BLE_BAS_BLE_OBSERVER_PRIO
  3562. #define BLE_BAS_BLE_OBSERVER_PRIO 2
  3563. #endif
  3564. // <o> BLE_BAS_C_BLE_OBSERVER_PRIO
  3565. // <i> Priority with which BLE events are dispatched to the Battery Service Client.
  3566. #ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
  3567. #define BLE_BAS_C_BLE_OBSERVER_PRIO 2
  3568. #endif
  3569. // <o> BLE_BPS_BLE_OBSERVER_PRIO
  3570. // <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
  3571. #ifndef BLE_BPS_BLE_OBSERVER_PRIO
  3572. #define BLE_BPS_BLE_OBSERVER_PRIO 2
  3573. #endif
  3574. // <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  3575. // <i> Priority with which BLE events are dispatched to the Connection parameters module.
  3576. #ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  3577. #define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
  3578. #endif
  3579. // <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
  3580. // <i> Priority with which BLE events are dispatched to the Connection State module.
  3581. #ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
  3582. #define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
  3583. #endif
  3584. // <o> BLE_CSCS_BLE_OBSERVER_PRIO
  3585. // <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
  3586. #ifndef BLE_CSCS_BLE_OBSERVER_PRIO
  3587. #define BLE_CSCS_BLE_OBSERVER_PRIO 2
  3588. #endif
  3589. // <o> BLE_CTS_C_BLE_OBSERVER_PRIO
  3590. // <i> Priority with which BLE events are dispatched to the Current Time Service Client.
  3591. #ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
  3592. #define BLE_CTS_C_BLE_OBSERVER_PRIO 2
  3593. #endif
  3594. // <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
  3595. // <i> Priority with which BLE events are dispatched to the Database Discovery module.
  3596. #ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
  3597. #define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
  3598. #endif
  3599. // <o> BLE_DFU_BLE_OBSERVER_PRIO
  3600. // <i> Priority with which BLE events are dispatched to the DFU Service.
  3601. #ifndef BLE_DFU_BLE_OBSERVER_PRIO
  3602. #define BLE_DFU_BLE_OBSERVER_PRIO 2
  3603. #endif
  3604. // <o> BLE_DIS_C_BLE_OBSERVER_PRIO
  3605. // <i> Priority with which BLE events are dispatched to the Device Information Client.
  3606. #ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
  3607. #define BLE_DIS_C_BLE_OBSERVER_PRIO 2
  3608. #endif
  3609. // <o> BLE_GLS_BLE_OBSERVER_PRIO
  3610. // <i> Priority with which BLE events are dispatched to the Glucose Service.
  3611. #ifndef BLE_GLS_BLE_OBSERVER_PRIO
  3612. #define BLE_GLS_BLE_OBSERVER_PRIO 2
  3613. #endif
  3614. // <o> BLE_HIDS_BLE_OBSERVER_PRIO
  3615. // <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
  3616. #ifndef BLE_HIDS_BLE_OBSERVER_PRIO
  3617. #define BLE_HIDS_BLE_OBSERVER_PRIO 2
  3618. #endif
  3619. // <o> BLE_HRS_BLE_OBSERVER_PRIO
  3620. // <i> Priority with which BLE events are dispatched to the Heart Rate Service.
  3621. #ifndef BLE_HRS_BLE_OBSERVER_PRIO
  3622. #define BLE_HRS_BLE_OBSERVER_PRIO 2
  3623. #endif
  3624. // <o> BLE_HRS_C_BLE_OBSERVER_PRIO
  3625. // <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
  3626. #ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
  3627. #define BLE_HRS_C_BLE_OBSERVER_PRIO 2
  3628. #endif
  3629. // <o> BLE_HTS_BLE_OBSERVER_PRIO
  3630. // <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
  3631. #ifndef BLE_HTS_BLE_OBSERVER_PRIO
  3632. #define BLE_HTS_BLE_OBSERVER_PRIO 2
  3633. #endif
  3634. // <o> BLE_IAS_BLE_OBSERVER_PRIO
  3635. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
  3636. #ifndef BLE_IAS_BLE_OBSERVER_PRIO
  3637. #define BLE_IAS_BLE_OBSERVER_PRIO 2
  3638. #endif
  3639. // <o> BLE_IAS_C_BLE_OBSERVER_PRIO
  3640. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
  3641. #ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
  3642. #define BLE_IAS_C_BLE_OBSERVER_PRIO 2
  3643. #endif
  3644. // <o> BLE_LBS_BLE_OBSERVER_PRIO
  3645. // <i> Priority with which BLE events are dispatched to the LED Button Service.
  3646. #ifndef BLE_LBS_BLE_OBSERVER_PRIO
  3647. #define BLE_LBS_BLE_OBSERVER_PRIO 2
  3648. #endif
  3649. // <o> BLE_LBS_C_BLE_OBSERVER_PRIO
  3650. // <i> Priority with which BLE events are dispatched to the LED Button Service Client.
  3651. #ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
  3652. #define BLE_LBS_C_BLE_OBSERVER_PRIO 2
  3653. #endif
  3654. // <o> BLE_LLS_BLE_OBSERVER_PRIO
  3655. // <i> Priority with which BLE events are dispatched to the Link Loss Service.
  3656. #ifndef BLE_LLS_BLE_OBSERVER_PRIO
  3657. #define BLE_LLS_BLE_OBSERVER_PRIO 2
  3658. #endif
  3659. // <o> BLE_LNS_BLE_OBSERVER_PRIO
  3660. // <i> Priority with which BLE events are dispatched to the Location Navigation Service.
  3661. #ifndef BLE_LNS_BLE_OBSERVER_PRIO
  3662. #define BLE_LNS_BLE_OBSERVER_PRIO 2
  3663. #endif
  3664. // <o> BLE_NUS_BLE_OBSERVER_PRIO
  3665. // <i> Priority with which BLE events are dispatched to the UART Service.
  3666. #ifndef BLE_NUS_BLE_OBSERVER_PRIO
  3667. #define BLE_NUS_BLE_OBSERVER_PRIO 2
  3668. #endif
  3669. // <o> BLE_NUS_C_BLE_OBSERVER_PRIO
  3670. // <i> Priority with which BLE events are dispatched to the UART Central Service.
  3671. #ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
  3672. #define BLE_NUS_C_BLE_OBSERVER_PRIO 2
  3673. #endif
  3674. // <o> BLE_OTS_BLE_OBSERVER_PRIO
  3675. // <i> Priority with which BLE events are dispatched to the Object transfer service.
  3676. #ifndef BLE_OTS_BLE_OBSERVER_PRIO
  3677. #define BLE_OTS_BLE_OBSERVER_PRIO 2
  3678. #endif
  3679. // <o> BLE_OTS_C_BLE_OBSERVER_PRIO
  3680. // <i> Priority with which BLE events are dispatched to the Object transfer service client.
  3681. #ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
  3682. #define BLE_OTS_C_BLE_OBSERVER_PRIO 2
  3683. #endif
  3684. // <o> BLE_RSCS_BLE_OBSERVER_PRIO
  3685. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
  3686. #ifndef BLE_RSCS_BLE_OBSERVER_PRIO
  3687. #define BLE_RSCS_BLE_OBSERVER_PRIO 2
  3688. #endif
  3689. // <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
  3690. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
  3691. #ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
  3692. #define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
  3693. #endif
  3694. // <o> BLE_TPS_BLE_OBSERVER_PRIO
  3695. // <i> Priority with which BLE events are dispatched to the TX Power Service.
  3696. #ifndef BLE_TPS_BLE_OBSERVER_PRIO
  3697. #define BLE_TPS_BLE_OBSERVER_PRIO 2
  3698. #endif
  3699. // <o> BSP_BTN_BLE_OBSERVER_PRIO
  3700. // <i> Priority with which BLE events are dispatched to the Button Control module.
  3701. #ifndef BSP_BTN_BLE_OBSERVER_PRIO
  3702. #define BSP_BTN_BLE_OBSERVER_PRIO 1
  3703. #endif
  3704. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3705. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3706. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3707. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3708. #endif
  3709. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3710. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3711. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3712. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3713. #endif
  3714. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3715. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3716. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3717. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3718. #endif
  3719. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3720. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3721. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3722. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3723. #endif
  3724. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3725. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3726. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3727. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3728. #endif
  3729. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3730. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3731. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3732. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3733. #endif
  3734. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3735. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3736. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3737. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3738. #endif
  3739. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3740. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3741. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3742. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3743. #endif
  3744. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3745. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3746. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3747. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3748. #endif
  3749. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3750. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3751. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3752. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3753. #endif
  3754. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3755. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3756. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3757. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3758. #endif
  3759. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3760. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3761. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3762. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3763. #endif
  3764. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3765. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3766. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3767. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3768. #endif
  3769. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3770. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3771. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3772. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3773. #endif
  3774. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3775. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3776. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3777. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3778. #endif
  3779. // <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
  3780. // <i> Priority with which BLE events are dispatched to the Bond Management Service.
  3781. #ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
  3782. #define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
  3783. #endif
  3784. // <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  3785. // <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
  3786. #ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  3787. #define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
  3788. #endif
  3789. // <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
  3790. // <i> Priority with which BLE events are dispatched to the Eddystone module.
  3791. #ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
  3792. #define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
  3793. #endif
  3794. // <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  3795. // <i> Priority with which BLE events are dispatched to the GATT Service Client.
  3796. #ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  3797. #define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
  3798. #endif
  3799. // <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
  3800. // <i> Priority with which BLE events are dispatched to the GATT module.
  3801. #ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
  3802. #define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
  3803. #endif
  3804. // <o> NRF_BLE_GQ_BLE_OBSERVER_PRIO
  3805. // <i> Priority with which BLE events are dispatched to the GATT Queue module.
  3806. #ifndef NRF_BLE_GQ_BLE_OBSERVER_PRIO
  3807. #define NRF_BLE_GQ_BLE_OBSERVER_PRIO 1
  3808. #endif
  3809. // <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
  3810. // <i> Priority with which BLE events are dispatched to the Queued writes module.
  3811. #ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
  3812. #define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
  3813. #endif
  3814. // <o> NRF_BLE_SCAN_OBSERVER_PRIO
  3815. // <i> Priority for dispatching the BLE events to the Scanning Module.
  3816. #ifndef NRF_BLE_SCAN_OBSERVER_PRIO
  3817. #define NRF_BLE_SCAN_OBSERVER_PRIO 1
  3818. #endif
  3819. // <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
  3820. #ifndef PM_BLE_OBSERVER_PRIO
  3821. #define PM_BLE_OBSERVER_PRIO 1
  3822. #endif
  3823. // </h>
  3824. //==========================================================
  3825. // </h>
  3826. //==========================================================
  3827. // </e>
  3828. // <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
  3829. //==========================================================
  3830. #ifndef NRF_SDH_ENABLED
  3831. #define NRF_SDH_ENABLED 1
  3832. #endif
  3833. // <h> Dispatch model
  3834. // <i> This setting configures how Stack events are dispatched to the application.
  3835. //==========================================================
  3836. // <o> NRF_SDH_DISPATCH_MODEL
  3837. // <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
  3838. // <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
  3839. // <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
  3840. // <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
  3841. // <1=> NRF_SDH_DISPATCH_MODEL_APPSH
  3842. // <2=> NRF_SDH_DISPATCH_MODEL_POLLING
  3843. #ifndef NRF_SDH_DISPATCH_MODEL
  3844. #define NRF_SDH_DISPATCH_MODEL 0
  3845. #endif
  3846. // </h>
  3847. //==========================================================
  3848. // <h> Clock - SoftDevice clock configuration
  3849. //==========================================================
  3850. // <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
  3851. // <0=> NRF_CLOCK_LF_SRC_RC
  3852. // <1=> NRF_CLOCK_LF_SRC_XTAL
  3853. // <2=> NRF_CLOCK_LF_SRC_SYNTH
  3854. #ifndef NRF_SDH_CLOCK_LF_SRC
  3855. #define NRF_SDH_CLOCK_LF_SRC 0
  3856. #endif
  3857. // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
  3858. #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
  3859. #define NRF_SDH_CLOCK_LF_RC_CTIV 16
  3860. #endif
  3861. // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
  3862. // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
  3863. // <i> if the temperature has not changed.
  3864. #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
  3865. #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
  3866. #endif
  3867. // <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
  3868. // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
  3869. // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
  3870. // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
  3871. // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
  3872. // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
  3873. // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
  3874. // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
  3875. // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
  3876. // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
  3877. // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
  3878. // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
  3879. // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
  3880. #ifndef NRF_SDH_CLOCK_LF_ACCURACY
  3881. #define NRF_SDH_CLOCK_LF_ACCURACY 1
  3882. #endif
  3883. // </h>
  3884. //==========================================================
  3885. // <h> SDH Observers - Observers and priority levels
  3886. //==========================================================
  3887. // <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
  3888. // <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
  3889. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3890. #ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
  3891. #define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
  3892. #endif
  3893. // <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
  3894. // <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
  3895. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3896. #ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
  3897. #define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
  3898. #endif
  3899. // <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
  3900. // <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
  3901. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3902. #ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
  3903. #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
  3904. #endif
  3905. // <h> State Observers priorities - Invididual priorities
  3906. //==========================================================
  3907. // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
  3908. // <i> Priority with which state events are dispatched to the Clock driver.
  3909. #ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
  3910. #define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
  3911. #endif
  3912. // <o> POWER_CONFIG_STATE_OBSERVER_PRIO
  3913. // <i> Priority with which state events are dispatched to the Power driver.
  3914. #ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
  3915. #define POWER_CONFIG_STATE_OBSERVER_PRIO 0
  3916. #endif
  3917. // <o> RNG_CONFIG_STATE_OBSERVER_PRIO
  3918. // <i> Priority with which state events are dispatched to this module.
  3919. #ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
  3920. #define RNG_CONFIG_STATE_OBSERVER_PRIO 0
  3921. #endif
  3922. // </h>
  3923. //==========================================================
  3924. // <h> Stack Event Observers priorities - Invididual priorities
  3925. //==========================================================
  3926. // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
  3927. // <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
  3928. // <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
  3929. // <i> Zero is the highest priority.
  3930. #ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
  3931. #define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
  3932. #endif
  3933. // <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
  3934. // <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
  3935. // <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
  3936. // <i> Zero is the highest priority.
  3937. #ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
  3938. #define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
  3939. #endif
  3940. // <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
  3941. // <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
  3942. // <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
  3943. // <i> Zero is the highest priority.
  3944. #ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
  3945. #define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
  3946. #endif
  3947. // </h>
  3948. //==========================================================
  3949. // </h>
  3950. //==========================================================
  3951. // </e>
  3952. // <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
  3953. //==========================================================
  3954. #ifndef NRF_SDH_SOC_ENABLED
  3955. #define NRF_SDH_SOC_ENABLED 1
  3956. #endif
  3957. // <h> SoC Observers - Observers and priority levels
  3958. //==========================================================
  3959. // <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
  3960. // <i> This setting configures the number of priority levels available for the SoC event handlers.
  3961. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3962. #ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
  3963. #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
  3964. #endif
  3965. // <h> SoC Observers priorities - Invididual priorities
  3966. //==========================================================
  3967. // <o> BLE_DFU_SOC_OBSERVER_PRIO
  3968. // <i> Priority with which BLE events are dispatched to the DFU Service.
  3969. #ifndef BLE_DFU_SOC_OBSERVER_PRIO
  3970. #define BLE_DFU_SOC_OBSERVER_PRIO 1
  3971. #endif
  3972. // <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
  3973. // <i> Priority with which SoC events are dispatched to the Clock driver.
  3974. #ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
  3975. #define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
  3976. #endif
  3977. // <o> POWER_CONFIG_SOC_OBSERVER_PRIO
  3978. // <i> Priority with which SoC events are dispatched to the Power driver.
  3979. #ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
  3980. #define POWER_CONFIG_SOC_OBSERVER_PRIO 0
  3981. #endif
  3982. // </h>
  3983. //==========================================================
  3984. // </h>
  3985. //==========================================================
  3986. // </e>
  3987. // </h>
  3988. //==========================================================
  3989. // <<< end of configuration section >>>
  3990. #endif //SDK_CONFIG_H