sdk_config(7297).h 129 KB

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