sdk_config.h 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264
  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 100000
  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 10289152 // 38400
  1000. //#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920 // 115200
  1001. //#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 2576384 // 9600
  1002. #endif
  1003. // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1004. // <0=> 0 (highest)
  1005. // <1=> 1
  1006. // <2=> 2
  1007. // <3=> 3
  1008. // <4=> 4
  1009. // <5=> 5
  1010. // <6=> 6
  1011. // <7=> 7
  1012. #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
  1013. #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1014. #endif
  1015. // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1016. //==========================================================
  1017. #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
  1018. #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
  1019. #endif
  1020. // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
  1021. // <0=> Off
  1022. // <1=> Error
  1023. // <2=> Warning
  1024. // <3=> Info
  1025. // <4=> Debug
  1026. #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
  1027. #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
  1028. #endif
  1029. // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1030. // <0=> Default
  1031. // <1=> Black
  1032. // <2=> Red
  1033. // <3=> Green
  1034. // <4=> Yellow
  1035. // <5=> Blue
  1036. // <6=> Magenta
  1037. // <7=> Cyan
  1038. // <8=> White
  1039. #ifndef NRFX_UARTE_CONFIG_INFO_COLOR
  1040. #define NRFX_UARTE_CONFIG_INFO_COLOR 0
  1041. #endif
  1042. // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1043. // <0=> Default
  1044. // <1=> Black
  1045. // <2=> Red
  1046. // <3=> Green
  1047. // <4=> Yellow
  1048. // <5=> Blue
  1049. // <6=> Magenta
  1050. // <7=> Cyan
  1051. // <8=> White
  1052. #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
  1053. #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
  1054. #endif
  1055. // </e>
  1056. // </e>
  1057. // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
  1058. //==========================================================
  1059. #ifndef NRFX_UART_ENABLED
  1060. #define NRFX_UART_ENABLED 1
  1061. #endif
  1062. // <o> NRFX_UART0_ENABLED - Enable UART0 instance
  1063. #ifndef NRFX_UART0_ENABLED
  1064. #define NRFX_UART0_ENABLED 0
  1065. #endif
  1066. // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  1067. // <0=> Disabled
  1068. // <1=> Enabled
  1069. #ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
  1070. #define NRFX_UART_DEFAULT_CONFIG_HWFC 0
  1071. #endif
  1072. // <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
  1073. // <0=> Excluded
  1074. // <14=> Included
  1075. #ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
  1076. #define NRFX_UART_DEFAULT_CONFIG_PARITY 0
  1077. #endif
  1078. // <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  1079. // <323584=> 1200 baud
  1080. // <643072=> 2400 baud
  1081. // <1290240=> 4800 baud
  1082. // <2576384=> 9600 baud
  1083. // <3866624=> 14400 baud
  1084. // <5152768=> 19200 baud
  1085. // <7729152=> 28800 baud
  1086. // <8388608=> 31250 baud
  1087. // <10309632=> 38400 baud
  1088. // <15007744=> 56000 baud
  1089. // <15462400=> 57600 baud
  1090. // <20615168=> 76800 baud
  1091. // <30924800=> 115200 baud
  1092. // <61845504=> 230400 baud
  1093. // <67108864=> 250000 baud
  1094. // <123695104=> 460800 baud
  1095. // <247386112=> 921600 baud
  1096. // <268435456=> 1000000 baud
  1097. #ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
  1098. #define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
  1099. #endif
  1100. // <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1101. // <0=> 0 (highest)
  1102. // <1=> 1
  1103. // <2=> 2
  1104. // <3=> 3
  1105. // <4=> 4
  1106. // <5=> 5
  1107. // <6=> 6
  1108. // <7=> 7
  1109. #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
  1110. #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1111. #endif
  1112. // <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  1113. //==========================================================
  1114. #ifndef NRFX_UART_CONFIG_LOG_ENABLED
  1115. #define NRFX_UART_CONFIG_LOG_ENABLED 0
  1116. #endif
  1117. // <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
  1118. // <0=> Off
  1119. // <1=> Error
  1120. // <2=> Warning
  1121. // <3=> Info
  1122. // <4=> Debug
  1123. #ifndef NRFX_UART_CONFIG_LOG_LEVEL
  1124. #define NRFX_UART_CONFIG_LOG_LEVEL 3
  1125. #endif
  1126. // <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1127. // <0=> Default
  1128. // <1=> Black
  1129. // <2=> Red
  1130. // <3=> Green
  1131. // <4=> Yellow
  1132. // <5=> Blue
  1133. // <6=> Magenta
  1134. // <7=> Cyan
  1135. // <8=> White
  1136. #ifndef NRFX_UART_CONFIG_INFO_COLOR
  1137. #define NRFX_UART_CONFIG_INFO_COLOR 0
  1138. #endif
  1139. // <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1140. // <0=> Default
  1141. // <1=> Black
  1142. // <2=> Red
  1143. // <3=> Green
  1144. // <4=> Yellow
  1145. // <5=> Blue
  1146. // <6=> Magenta
  1147. // <7=> Cyan
  1148. // <8=> White
  1149. #ifndef NRFX_UART_CONFIG_DEBUG_COLOR
  1150. #define NRFX_UART_CONFIG_DEBUG_COLOR 0
  1151. #endif
  1152. // </e>
  1153. // </e>
  1154. // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
  1155. //==========================================================
  1156. #ifndef UART_ENABLED
  1157. #define UART_ENABLED 1
  1158. #endif
  1159. // <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  1160. // <0=> Disabled
  1161. // <1=> Enabled
  1162. #ifndef UART_DEFAULT_CONFIG_HWFC
  1163. #define UART_DEFAULT_CONFIG_HWFC 0
  1164. #endif
  1165. // <o> UART_DEFAULT_CONFIG_PARITY - Parity
  1166. // <0=> Excluded
  1167. // <14=> Included
  1168. #ifndef UART_DEFAULT_CONFIG_PARITY
  1169. #define UART_DEFAULT_CONFIG_PARITY 0
  1170. #endif
  1171. // <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  1172. // <323584=> 1200 baud
  1173. // <643072=> 2400 baud
  1174. // <1290240=> 4800 baud
  1175. // <2576384=> 9600 baud
  1176. // <3862528=> 14400 baud
  1177. // <5152768=> 19200 baud
  1178. // <7716864=> 28800 baud
  1179. // <10289152=> 38400 baud
  1180. // <15400960=> 57600 baud
  1181. // <20615168=> 76800 baud
  1182. // <30801920=> 115200 baud
  1183. // <61865984=> 230400 baud
  1184. // <67108864=> 250000 baud
  1185. // <121634816=> 460800 baud
  1186. // <251658240=> 921600 baud
  1187. // <268435456=> 1000000 baud
  1188. #ifndef UART_DEFAULT_CONFIG_BAUDRATE
  1189. #define UART_DEFAULT_CONFIG_BAUDRATE 10289152 // 38400 bps
  1190. //#define UART_DEFAULT_CONFIG_BAUDRATE 30801920 // 115200 bps
  1191. #endif
  1192. // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1193. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  1194. // <0=> 0 (highest)
  1195. // <1=> 1
  1196. // <2=> 2
  1197. // <3=> 3
  1198. // <4=> 4
  1199. // <5=> 5
  1200. // <6=> 6
  1201. // <7=> 7
  1202. #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
  1203. #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1204. #endif
  1205. // <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA
  1206. #ifndef UART_EASY_DMA_SUPPORT
  1207. #define UART_EASY_DMA_SUPPORT 1
  1208. #endif
  1209. // <q> UART_LEGACY_SUPPORT - Driver supporting Legacy mode
  1210. #ifndef UART_LEGACY_SUPPORT
  1211. #define UART_LEGACY_SUPPORT 0
  1212. #endif
  1213. // <e> UART0_ENABLED - Enable UART0 instance
  1214. //==========================================================
  1215. #ifndef UART0_ENABLED
  1216. #define UART0_ENABLED 1
  1217. #endif
  1218. // <q> UART0_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA
  1219. #ifndef UART0_CONFIG_USE_EASY_DMA
  1220. #define UART0_CONFIG_USE_EASY_DMA 1
  1221. #endif
  1222. // </e>
  1223. // </e>
  1224. // </h>
  1225. //==========================================================
  1226. // <h> nRF_Libraries
  1227. //==========================================================
  1228. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  1229. //==========================================================
  1230. #ifndef APP_SCHEDULER_ENABLED
  1231. #define APP_SCHEDULER_ENABLED 1
  1232. #endif
  1233. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  1234. #ifndef APP_SCHEDULER_WITH_PAUSE
  1235. #define APP_SCHEDULER_WITH_PAUSE 0
  1236. #endif
  1237. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  1238. #ifndef APP_SCHEDULER_WITH_PROFILER
  1239. #define APP_SCHEDULER_WITH_PROFILER 0
  1240. #endif
  1241. // </e>
  1242. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  1243. #ifndef CRC32_ENABLED
  1244. #define CRC32_ENABLED 1
  1245. #endif
  1246. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  1247. //==========================================================
  1248. #ifndef MEM_MANAGER_ENABLED
  1249. #define MEM_MANAGER_ENABLED 1
  1250. #endif
  1251. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  1252. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  1253. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  1254. #endif
  1255. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  1256. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  1257. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  1258. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  1259. #endif
  1260. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  1261. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  1262. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  1263. #endif
  1264. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  1265. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  1266. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  1267. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  1268. #endif
  1269. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  1270. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  1271. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  1272. #endif
  1273. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  1274. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  1275. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  1276. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  1277. #endif
  1278. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  1279. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  1280. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  1281. #endif
  1282. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  1283. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  1284. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  1285. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  1286. #endif
  1287. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  1288. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  1289. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  1290. #endif
  1291. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  1292. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  1293. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  1294. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  1295. #endif
  1296. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  1297. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  1298. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  1299. #endif
  1300. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  1301. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  1302. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  1303. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  1304. #endif
  1305. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  1306. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  1307. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  1308. #endif
  1309. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  1310. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  1311. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  1312. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  1313. #endif
  1314. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  1315. //==========================================================
  1316. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  1317. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  1318. #endif
  1319. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  1320. // <0=> Off
  1321. // <1=> Error
  1322. // <2=> Warning
  1323. // <3=> Info
  1324. // <4=> Debug
  1325. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  1326. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  1327. #endif
  1328. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1329. // <0=> Default
  1330. // <1=> Black
  1331. // <2=> Red
  1332. // <3=> Green
  1333. // <4=> Yellow
  1334. // <5=> Blue
  1335. // <6=> Magenta
  1336. // <7=> Cyan
  1337. // <8=> White
  1338. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  1339. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  1340. #endif
  1341. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1342. // <0=> Default
  1343. // <1=> Black
  1344. // <2=> Red
  1345. // <3=> Green
  1346. // <4=> Yellow
  1347. // <5=> Blue
  1348. // <6=> Magenta
  1349. // <7=> Cyan
  1350. // <8=> White
  1351. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  1352. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  1353. #endif
  1354. // </e>
  1355. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  1356. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  1357. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  1358. #endif
  1359. // </e>
  1360. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  1361. //==========================================================
  1362. #ifndef NRF_BALLOC_ENABLED
  1363. #define NRF_BALLOC_ENABLED 1
  1364. #endif
  1365. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  1366. //==========================================================
  1367. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  1368. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  1369. #endif
  1370. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  1371. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  1372. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  1373. #endif
  1374. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  1375. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  1376. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  1377. #endif
  1378. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  1379. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  1380. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  1381. #endif
  1382. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  1383. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  1384. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  1385. #endif
  1386. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  1387. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  1388. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  1389. #endif
  1390. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  1391. #ifndef NRF_BALLOC_CLI_CMDS
  1392. #define NRF_BALLOC_CLI_CMDS 0
  1393. #endif
  1394. // </e>
  1395. // </e>
  1396. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  1397. //==========================================================
  1398. #ifndef NRF_FSTORAGE_ENABLED
  1399. #define NRF_FSTORAGE_ENABLED 1
  1400. #endif
  1401. // <h> nrf_fstorage - Common settings
  1402. // <i> Common settings to all fstorage implementations
  1403. //==========================================================
  1404. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  1405. // <i> If selected, use ASSERT to validate user input.
  1406. // <i> This effectively removes user input validation in production code.
  1407. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  1408. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  1409. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 1
  1410. #endif
  1411. // </h>
  1412. //==========================================================
  1413. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  1414. // <i> Configuration options for the fstorage implementation using the SoftDevice
  1415. //==========================================================
  1416. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  1417. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  1418. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  1419. #define NRF_FSTORAGE_SD_QUEUE_SIZE 16
  1420. #endif
  1421. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  1422. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  1423. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  1424. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  1425. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  1426. #endif
  1427. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  1428. // <i> This value must be a multiple of four.
  1429. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  1430. // <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.
  1431. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  1432. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  1433. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 20
  1434. #endif
  1435. // </h>
  1436. //==========================================================
  1437. // </e>
  1438. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  1439. #ifndef NRF_MEMOBJ_ENABLED
  1440. #define NRF_MEMOBJ_ENABLED 1
  1441. #endif
  1442. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  1443. //==========================================================
  1444. #ifndef NRF_QUEUE_ENABLED
  1445. #define NRF_QUEUE_ENABLED 0
  1446. #endif
  1447. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  1448. #ifndef NRF_QUEUE_CLI_CMDS
  1449. #define NRF_QUEUE_CLI_CMDS 0
  1450. #endif
  1451. // </e>
  1452. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  1453. #ifndef NRF_STRERROR_ENABLED
  1454. #define NRF_STRERROR_ENABLED 1
  1455. #endif
  1456. // <q> SLIP_ENABLED - slip - SLIP encoding and decoding
  1457. #ifndef SLIP_ENABLED
  1458. #define SLIP_ENABLED 1
  1459. #endif
  1460. // <h> nrf_fprintf - fprintf function.
  1461. //==========================================================
  1462. // <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module.
  1463. #ifndef NRF_FPRINTF_ENABLED
  1464. #define NRF_FPRINTF_ENABLED 1
  1465. #endif
  1466. // <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR.
  1467. #ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
  1468. #define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
  1469. #endif
  1470. // <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting.
  1471. #ifndef NRF_FPRINTF_DOUBLE_ENABLED
  1472. #define NRF_FPRINTF_DOUBLE_ENABLED 0
  1473. #endif
  1474. // </h>
  1475. //==========================================================
  1476. // </h>
  1477. //==========================================================
  1478. // <h> nRF_Log
  1479. //==========================================================
  1480. // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
  1481. //==========================================================
  1482. #ifndef NRF_LOG_BACKEND_RTT_ENABLED
  1483. #define NRF_LOG_BACKEND_RTT_ENABLED 1
  1484. #endif
  1485. // <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  1486. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  1487. // <i> if buffer is smaller then strings will often be fragmented.
  1488. // <i> It is recommended to use size which will fit typical log and only the
  1489. // <i> longer one will be fragmented.
  1490. #ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
  1491. #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
  1492. #endif
  1493. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT
  1494. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
  1495. #define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
  1496. #endif
  1497. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries.
  1498. // <i> If RTT fails to accept any new data after retries
  1499. // <i> module assumes that host is not active and on next
  1500. // <i> request it will perform only one write attempt.
  1501. // <i> On successful writing, module assumes that host is active
  1502. // <i> and scheme with retry is applied again.
  1503. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
  1504. #define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
  1505. #endif
  1506. // </e>
  1507. // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
  1508. //==========================================================
  1509. #ifndef NRF_LOG_BACKEND_UART_ENABLED
  1510. #define NRF_LOG_BACKEND_UART_ENABLED 0
  1511. #endif
  1512. // <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin
  1513. #ifndef NRF_LOG_BACKEND_UART_TX_PIN
  1514. #define NRF_LOG_BACKEND_UART_TX_PIN 6
  1515. #endif
  1516. // <o> NRF_LOG_BACKEND_UART_BAUDRATE - Default Baudrate
  1517. // <323584=> 1200 baud
  1518. // <643072=> 2400 baud
  1519. // <1290240=> 4800 baud
  1520. // <2576384=> 9600 baud
  1521. // <3862528=> 14400 baud
  1522. // <5152768=> 19200 baud
  1523. // <7716864=> 28800 baud
  1524. // <10289152=> 38400 baud
  1525. // <15400960=> 57600 baud
  1526. // <20615168=> 76800 baud
  1527. // <30801920=> 115200 baud
  1528. // <61865984=> 230400 baud
  1529. // <67108864=> 250000 baud
  1530. // <121634816=> 460800 baud
  1531. // <251658240=> 921600 baud
  1532. // <268435456=> 1000000 baud
  1533. #ifndef NRF_LOG_BACKEND_UART_BAUDRATE
  1534. #define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
  1535. #endif
  1536. // <o> NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  1537. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  1538. // <i> if buffer is smaller then strings will often be fragmented.
  1539. // <i> It is recommended to use size which will fit typical log and only the
  1540. // <i> longer one will be fragmented.
  1541. #ifndef NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
  1542. #define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
  1543. #endif
  1544. // </e>
  1545. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  1546. //==========================================================
  1547. #ifndef NRF_LOG_ENABLED
  1548. #define NRF_LOG_ENABLED 1
  1549. #endif
  1550. // <h> Log message pool - Configuration of log message pool
  1551. //==========================================================
  1552. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  1553. // <i> If a small value is set, then performance of logs processing
  1554. // <i> is degraded because data is fragmented. Bigger value impacts
  1555. // <i> RAM memory utilization. The size is set to fit a message with
  1556. // <i> a timestamp and up to 2 arguments in a single memory object.
  1557. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  1558. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  1559. #endif
  1560. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  1561. // <i> If a small value is set, then it may lead to a deadlock
  1562. // <i> in certain cases if backend has high latency and holds
  1563. // <i> multiple messages for long time. Bigger value impacts
  1564. // <i> RAM memory usage.
  1565. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  1566. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  1567. #endif
  1568. // </h>
  1569. //==========================================================
  1570. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  1571. // <i> If set then oldest logs are overwritten. Otherwise a
  1572. // <i> marker is injected informing about overflow.
  1573. #ifndef NRF_LOG_ALLOW_OVERFLOW
  1574. #define NRF_LOG_ALLOW_OVERFLOW 1
  1575. #endif
  1576. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  1577. // <i> Must be power of 2 and multiple of 4.
  1578. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  1579. // <128=> 128
  1580. // <256=> 256
  1581. // <512=> 512
  1582. // <1024=> 1024
  1583. // <2048=> 2048
  1584. // <4096=> 4096
  1585. // <8192=> 8192
  1586. // <16384=> 16384
  1587. #ifndef NRF_LOG_BUFSIZE
  1588. #define NRF_LOG_BUFSIZE 4096
  1589. #endif
  1590. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  1591. #ifndef NRF_LOG_CLI_CMDS
  1592. #define NRF_LOG_CLI_CMDS 0
  1593. #endif
  1594. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  1595. // <0=> Off
  1596. // <1=> Error
  1597. // <2=> Warning
  1598. // <3=> Info
  1599. // <4=> Debug
  1600. #ifndef NRF_LOG_DEFAULT_LEVEL
  1601. #define NRF_LOG_DEFAULT_LEVEL 4
  1602. #endif
  1603. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  1604. // <i> Log data is buffered and can be processed in idle.
  1605. #ifndef NRF_LOG_DEFERRED
  1606. #define NRF_LOG_DEFERRED 1
  1607. #endif
  1608. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  1609. #ifndef NRF_LOG_FILTERS_ENABLED
  1610. #define NRF_LOG_FILTERS_ENABLED 0
  1611. #endif
  1612. // <q> NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED - Enable use of critical region for non deffered mode when flushing logs.
  1613. // <i> When enabled NRF_LOG_FLUSH is called from critical section when non deffered mode is used.
  1614. // <i> Log output will never be corrupted as access to the log backend is exclusive
  1615. // <i> but system will spend significant amount of time in critical section
  1616. #ifndef NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED
  1617. #define NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED 0
  1618. #endif
  1619. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1620. // <16=> 16
  1621. // <32=> 32
  1622. // <64=> 64
  1623. // <128=> 128
  1624. // <256=> 256
  1625. // <512=> 512
  1626. // <1024=> 1024
  1627. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1628. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1629. #endif
  1630. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1631. // <16=> 16
  1632. // <32=> 32
  1633. // <64=> 64
  1634. // <128=> 128
  1635. // <256=> 256
  1636. // <512=> 512
  1637. // <1024=> 1024
  1638. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1639. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1640. #endif
  1641. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  1642. //==========================================================
  1643. #ifndef NRF_LOG_USES_COLORS
  1644. #define NRF_LOG_USES_COLORS 0
  1645. #endif
  1646. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  1647. // <0=> Default
  1648. // <1=> Black
  1649. // <2=> Red
  1650. // <3=> Green
  1651. // <4=> Yellow
  1652. // <5=> Blue
  1653. // <6=> Magenta
  1654. // <7=> Cyan
  1655. // <8=> White
  1656. #ifndef NRF_LOG_COLOR_DEFAULT
  1657. #define NRF_LOG_COLOR_DEFAULT 0
  1658. #endif
  1659. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  1660. // <0=> Default
  1661. // <1=> Black
  1662. // <2=> Red
  1663. // <3=> Green
  1664. // <4=> Yellow
  1665. // <5=> Blue
  1666. // <6=> Magenta
  1667. // <7=> Cyan
  1668. // <8=> White
  1669. #ifndef NRF_LOG_ERROR_COLOR
  1670. #define NRF_LOG_ERROR_COLOR 2
  1671. #endif
  1672. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  1673. // <0=> Default
  1674. // <1=> Black
  1675. // <2=> Red
  1676. // <3=> Green
  1677. // <4=> Yellow
  1678. // <5=> Blue
  1679. // <6=> Magenta
  1680. // <7=> Cyan
  1681. // <8=> White
  1682. #ifndef NRF_LOG_WARNING_COLOR
  1683. #define NRF_LOG_WARNING_COLOR 4
  1684. #endif
  1685. // </e>
  1686. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  1687. // <i> Function for getting the timestamp is provided by the user
  1688. //==========================================================
  1689. #ifndef NRF_LOG_USES_TIMESTAMP
  1690. #define NRF_LOG_USES_TIMESTAMP 0
  1691. #endif
  1692. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  1693. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  1694. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  1695. #endif
  1696. // </e>
  1697. // <h> nrf_log module configuration
  1698. //==========================================================
  1699. // <h> nrf_log in nRF_Core
  1700. //==========================================================
  1701. // <e> NRF_MPU_LIB_CONFIG_LOG_ENABLED - Enables logging in the module.
  1702. //==========================================================
  1703. #ifndef NRF_MPU_LIB_CONFIG_LOG_ENABLED
  1704. #define NRF_MPU_LIB_CONFIG_LOG_ENABLED 0
  1705. #endif
  1706. // <o> NRF_MPU_LIB_CONFIG_LOG_LEVEL - Default Severity level
  1707. // <0=> Off
  1708. // <1=> Error
  1709. // <2=> Warning
  1710. // <3=> Info
  1711. // <4=> Debug
  1712. #ifndef NRF_MPU_LIB_CONFIG_LOG_LEVEL
  1713. #define NRF_MPU_LIB_CONFIG_LOG_LEVEL 3
  1714. #endif
  1715. // <o> NRF_MPU_LIB_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1716. // <0=> Default
  1717. // <1=> Black
  1718. // <2=> Red
  1719. // <3=> Green
  1720. // <4=> Yellow
  1721. // <5=> Blue
  1722. // <6=> Magenta
  1723. // <7=> Cyan
  1724. // <8=> White
  1725. #ifndef NRF_MPU_LIB_CONFIG_INFO_COLOR
  1726. #define NRF_MPU_LIB_CONFIG_INFO_COLOR 0
  1727. #endif
  1728. // <o> NRF_MPU_LIB_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1729. // <0=> Default
  1730. // <1=> Black
  1731. // <2=> Red
  1732. // <3=> Green
  1733. // <4=> Yellow
  1734. // <5=> Blue
  1735. // <6=> Magenta
  1736. // <7=> Cyan
  1737. // <8=> White
  1738. #ifndef NRF_MPU_LIB_CONFIG_DEBUG_COLOR
  1739. #define NRF_MPU_LIB_CONFIG_DEBUG_COLOR 0
  1740. #endif
  1741. // </e>
  1742. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  1743. //==========================================================
  1744. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  1745. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  1746. #endif
  1747. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  1748. // <0=> Off
  1749. // <1=> Error
  1750. // <2=> Warning
  1751. // <3=> Info
  1752. // <4=> Debug
  1753. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  1754. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  1755. #endif
  1756. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1757. // <0=> Default
  1758. // <1=> Black
  1759. // <2=> Red
  1760. // <3=> Green
  1761. // <4=> Yellow
  1762. // <5=> Blue
  1763. // <6=> Magenta
  1764. // <7=> Cyan
  1765. // <8=> White
  1766. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  1767. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  1768. #endif
  1769. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1770. // <0=> Default
  1771. // <1=> Black
  1772. // <2=> Red
  1773. // <3=> Green
  1774. // <4=> Yellow
  1775. // <5=> Blue
  1776. // <6=> Magenta
  1777. // <7=> Cyan
  1778. // <8=> White
  1779. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  1780. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  1781. #endif
  1782. // </e>
  1783. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  1784. //==========================================================
  1785. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  1786. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  1787. #endif
  1788. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  1789. // <0=> Off
  1790. // <1=> Error
  1791. // <2=> Warning
  1792. // <3=> Info
  1793. // <4=> Debug
  1794. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  1795. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  1796. #endif
  1797. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1798. // <0=> Default
  1799. // <1=> Black
  1800. // <2=> Red
  1801. // <3=> Green
  1802. // <4=> Yellow
  1803. // <5=> Blue
  1804. // <6=> Magenta
  1805. // <7=> Cyan
  1806. // <8=> White
  1807. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  1808. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  1809. #endif
  1810. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1811. // <0=> Default
  1812. // <1=> Black
  1813. // <2=> Red
  1814. // <3=> Green
  1815. // <4=> Yellow
  1816. // <5=> Blue
  1817. // <6=> Magenta
  1818. // <7=> Cyan
  1819. // <8=> White
  1820. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  1821. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  1822. #endif
  1823. // </e>
  1824. // </h>
  1825. //==========================================================
  1826. // <h> nrf_log in nRF_Drivers
  1827. //==========================================================
  1828. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1829. //==========================================================
  1830. #ifndef CLOCK_CONFIG_LOG_ENABLED
  1831. #define CLOCK_CONFIG_LOG_ENABLED 0
  1832. #endif
  1833. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  1834. // <0=> Off
  1835. // <1=> Error
  1836. // <2=> Warning
  1837. // <3=> Info
  1838. // <4=> Debug
  1839. #ifndef CLOCK_CONFIG_LOG_LEVEL
  1840. #define CLOCK_CONFIG_LOG_LEVEL 3
  1841. #endif
  1842. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1843. // <0=> Default
  1844. // <1=> Black
  1845. // <2=> Red
  1846. // <3=> Green
  1847. // <4=> Yellow
  1848. // <5=> Blue
  1849. // <6=> Magenta
  1850. // <7=> Cyan
  1851. // <8=> White
  1852. #ifndef CLOCK_CONFIG_INFO_COLOR
  1853. #define CLOCK_CONFIG_INFO_COLOR 0
  1854. #endif
  1855. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1856. // <0=> Default
  1857. // <1=> Black
  1858. // <2=> Red
  1859. // <3=> Green
  1860. // <4=> Yellow
  1861. // <5=> Blue
  1862. // <6=> Magenta
  1863. // <7=> Cyan
  1864. // <8=> White
  1865. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  1866. #define CLOCK_CONFIG_DEBUG_COLOR 0
  1867. #endif
  1868. // </e>
  1869. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1870. //==========================================================
  1871. #ifndef COMP_CONFIG_LOG_ENABLED
  1872. #define COMP_CONFIG_LOG_ENABLED 0
  1873. #endif
  1874. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  1875. // <0=> Off
  1876. // <1=> Error
  1877. // <2=> Warning
  1878. // <3=> Info
  1879. // <4=> Debug
  1880. #ifndef COMP_CONFIG_LOG_LEVEL
  1881. #define COMP_CONFIG_LOG_LEVEL 3
  1882. #endif
  1883. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1884. // <0=> Default
  1885. // <1=> Black
  1886. // <2=> Red
  1887. // <3=> Green
  1888. // <4=> Yellow
  1889. // <5=> Blue
  1890. // <6=> Magenta
  1891. // <7=> Cyan
  1892. // <8=> White
  1893. #ifndef COMP_CONFIG_INFO_COLOR
  1894. #define COMP_CONFIG_INFO_COLOR 0
  1895. #endif
  1896. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1897. // <0=> Default
  1898. // <1=> Black
  1899. // <2=> Red
  1900. // <3=> Green
  1901. // <4=> Yellow
  1902. // <5=> Blue
  1903. // <6=> Magenta
  1904. // <7=> Cyan
  1905. // <8=> White
  1906. #ifndef COMP_CONFIG_DEBUG_COLOR
  1907. #define COMP_CONFIG_DEBUG_COLOR 0
  1908. #endif
  1909. // </e>
  1910. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1911. //==========================================================
  1912. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  1913. #define GPIOTE_CONFIG_LOG_ENABLED 0
  1914. #endif
  1915. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  1916. // <0=> Off
  1917. // <1=> Error
  1918. // <2=> Warning
  1919. // <3=> Info
  1920. // <4=> Debug
  1921. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  1922. #define GPIOTE_CONFIG_LOG_LEVEL 3
  1923. #endif
  1924. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1925. // <0=> Default
  1926. // <1=> Black
  1927. // <2=> Red
  1928. // <3=> Green
  1929. // <4=> Yellow
  1930. // <5=> Blue
  1931. // <6=> Magenta
  1932. // <7=> Cyan
  1933. // <8=> White
  1934. #ifndef GPIOTE_CONFIG_INFO_COLOR
  1935. #define GPIOTE_CONFIG_INFO_COLOR 0
  1936. #endif
  1937. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1938. // <0=> Default
  1939. // <1=> Black
  1940. // <2=> Red
  1941. // <3=> Green
  1942. // <4=> Yellow
  1943. // <5=> Blue
  1944. // <6=> Magenta
  1945. // <7=> Cyan
  1946. // <8=> White
  1947. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  1948. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  1949. #endif
  1950. // </e>
  1951. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1952. //==========================================================
  1953. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  1954. #define LPCOMP_CONFIG_LOG_ENABLED 0
  1955. #endif
  1956. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  1957. // <0=> Off
  1958. // <1=> Error
  1959. // <2=> Warning
  1960. // <3=> Info
  1961. // <4=> Debug
  1962. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  1963. #define LPCOMP_CONFIG_LOG_LEVEL 3
  1964. #endif
  1965. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1966. // <0=> Default
  1967. // <1=> Black
  1968. // <2=> Red
  1969. // <3=> Green
  1970. // <4=> Yellow
  1971. // <5=> Blue
  1972. // <6=> Magenta
  1973. // <7=> Cyan
  1974. // <8=> White
  1975. #ifndef LPCOMP_CONFIG_INFO_COLOR
  1976. #define LPCOMP_CONFIG_INFO_COLOR 0
  1977. #endif
  1978. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1979. // <0=> Default
  1980. // <1=> Black
  1981. // <2=> Red
  1982. // <3=> Green
  1983. // <4=> Yellow
  1984. // <5=> Blue
  1985. // <6=> Magenta
  1986. // <7=> Cyan
  1987. // <8=> White
  1988. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  1989. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  1990. #endif
  1991. // </e>
  1992. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  1993. //==========================================================
  1994. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  1995. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  1996. #endif
  1997. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  1998. // <0=> Off
  1999. // <1=> Error
  2000. // <2=> Warning
  2001. // <3=> Info
  2002. // <4=> Debug
  2003. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  2004. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  2005. #endif
  2006. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2007. // <0=> Default
  2008. // <1=> Black
  2009. // <2=> Red
  2010. // <3=> Green
  2011. // <4=> Yellow
  2012. // <5=> Blue
  2013. // <6=> Magenta
  2014. // <7=> Cyan
  2015. // <8=> White
  2016. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  2017. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  2018. #endif
  2019. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2020. // <0=> Default
  2021. // <1=> Black
  2022. // <2=> Red
  2023. // <3=> Green
  2024. // <4=> Yellow
  2025. // <5=> Blue
  2026. // <6=> Magenta
  2027. // <7=> Cyan
  2028. // <8=> White
  2029. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  2030. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  2031. #endif
  2032. // </e>
  2033. // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  2034. //==========================================================
  2035. #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
  2036. #define NRFX_USBD_CONFIG_LOG_ENABLED 0
  2037. #endif
  2038. // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level
  2039. // <0=> Off
  2040. // <1=> Error
  2041. // <2=> Warning
  2042. // <3=> Info
  2043. // <4=> Debug
  2044. #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
  2045. #define NRFX_USBD_CONFIG_LOG_LEVEL 3
  2046. #endif
  2047. // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2048. // <0=> Default
  2049. // <1=> Black
  2050. // <2=> Red
  2051. // <3=> Green
  2052. // <4=> Yellow
  2053. // <5=> Blue
  2054. // <6=> Magenta
  2055. // <7=> Cyan
  2056. // <8=> White
  2057. #ifndef NRFX_USBD_CONFIG_INFO_COLOR
  2058. #define NRFX_USBD_CONFIG_INFO_COLOR 0
  2059. #endif
  2060. // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2061. // <0=> Default
  2062. // <1=> Black
  2063. // <2=> Red
  2064. // <3=> Green
  2065. // <4=> Yellow
  2066. // <5=> Blue
  2067. // <6=> Magenta
  2068. // <7=> Cyan
  2069. // <8=> White
  2070. #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR
  2071. #define NRFX_USBD_CONFIG_DEBUG_COLOR 0
  2072. #endif
  2073. // </e>
  2074. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2075. //==========================================================
  2076. #ifndef PDM_CONFIG_LOG_ENABLED
  2077. #define PDM_CONFIG_LOG_ENABLED 0
  2078. #endif
  2079. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  2080. // <0=> Off
  2081. // <1=> Error
  2082. // <2=> Warning
  2083. // <3=> Info
  2084. // <4=> Debug
  2085. #ifndef PDM_CONFIG_LOG_LEVEL
  2086. #define PDM_CONFIG_LOG_LEVEL 3
  2087. #endif
  2088. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2089. // <0=> Default
  2090. // <1=> Black
  2091. // <2=> Red
  2092. // <3=> Green
  2093. // <4=> Yellow
  2094. // <5=> Blue
  2095. // <6=> Magenta
  2096. // <7=> Cyan
  2097. // <8=> White
  2098. #ifndef PDM_CONFIG_INFO_COLOR
  2099. #define PDM_CONFIG_INFO_COLOR 0
  2100. #endif
  2101. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2102. // <0=> Default
  2103. // <1=> Black
  2104. // <2=> Red
  2105. // <3=> Green
  2106. // <4=> Yellow
  2107. // <5=> Blue
  2108. // <6=> Magenta
  2109. // <7=> Cyan
  2110. // <8=> White
  2111. #ifndef PDM_CONFIG_DEBUG_COLOR
  2112. #define PDM_CONFIG_DEBUG_COLOR 0
  2113. #endif
  2114. // </e>
  2115. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2116. //==========================================================
  2117. #ifndef PPI_CONFIG_LOG_ENABLED
  2118. #define PPI_CONFIG_LOG_ENABLED 0
  2119. #endif
  2120. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  2121. // <0=> Off
  2122. // <1=> Error
  2123. // <2=> Warning
  2124. // <3=> Info
  2125. // <4=> Debug
  2126. #ifndef PPI_CONFIG_LOG_LEVEL
  2127. #define PPI_CONFIG_LOG_LEVEL 3
  2128. #endif
  2129. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2130. // <0=> Default
  2131. // <1=> Black
  2132. // <2=> Red
  2133. // <3=> Green
  2134. // <4=> Yellow
  2135. // <5=> Blue
  2136. // <6=> Magenta
  2137. // <7=> Cyan
  2138. // <8=> White
  2139. #ifndef PPI_CONFIG_INFO_COLOR
  2140. #define PPI_CONFIG_INFO_COLOR 0
  2141. #endif
  2142. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2143. // <0=> Default
  2144. // <1=> Black
  2145. // <2=> Red
  2146. // <3=> Green
  2147. // <4=> Yellow
  2148. // <5=> Blue
  2149. // <6=> Magenta
  2150. // <7=> Cyan
  2151. // <8=> White
  2152. #ifndef PPI_CONFIG_DEBUG_COLOR
  2153. #define PPI_CONFIG_DEBUG_COLOR 0
  2154. #endif
  2155. // </e>
  2156. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2157. //==========================================================
  2158. #ifndef PWM_CONFIG_LOG_ENABLED
  2159. #define PWM_CONFIG_LOG_ENABLED 0
  2160. #endif
  2161. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  2162. // <0=> Off
  2163. // <1=> Error
  2164. // <2=> Warning
  2165. // <3=> Info
  2166. // <4=> Debug
  2167. #ifndef PWM_CONFIG_LOG_LEVEL
  2168. #define PWM_CONFIG_LOG_LEVEL 3
  2169. #endif
  2170. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2171. // <0=> Default
  2172. // <1=> Black
  2173. // <2=> Red
  2174. // <3=> Green
  2175. // <4=> Yellow
  2176. // <5=> Blue
  2177. // <6=> Magenta
  2178. // <7=> Cyan
  2179. // <8=> White
  2180. #ifndef PWM_CONFIG_INFO_COLOR
  2181. #define PWM_CONFIG_INFO_COLOR 0
  2182. #endif
  2183. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2184. // <0=> Default
  2185. // <1=> Black
  2186. // <2=> Red
  2187. // <3=> Green
  2188. // <4=> Yellow
  2189. // <5=> Blue
  2190. // <6=> Magenta
  2191. // <7=> Cyan
  2192. // <8=> White
  2193. #ifndef PWM_CONFIG_DEBUG_COLOR
  2194. #define PWM_CONFIG_DEBUG_COLOR 0
  2195. #endif
  2196. // </e>
  2197. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2198. //==========================================================
  2199. #ifndef QDEC_CONFIG_LOG_ENABLED
  2200. #define QDEC_CONFIG_LOG_ENABLED 0
  2201. #endif
  2202. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  2203. // <0=> Off
  2204. // <1=> Error
  2205. // <2=> Warning
  2206. // <3=> Info
  2207. // <4=> Debug
  2208. #ifndef QDEC_CONFIG_LOG_LEVEL
  2209. #define QDEC_CONFIG_LOG_LEVEL 3
  2210. #endif
  2211. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2212. // <0=> Default
  2213. // <1=> Black
  2214. // <2=> Red
  2215. // <3=> Green
  2216. // <4=> Yellow
  2217. // <5=> Blue
  2218. // <6=> Magenta
  2219. // <7=> Cyan
  2220. // <8=> White
  2221. #ifndef QDEC_CONFIG_INFO_COLOR
  2222. #define QDEC_CONFIG_INFO_COLOR 0
  2223. #endif
  2224. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2225. // <0=> Default
  2226. // <1=> Black
  2227. // <2=> Red
  2228. // <3=> Green
  2229. // <4=> Yellow
  2230. // <5=> Blue
  2231. // <6=> Magenta
  2232. // <7=> Cyan
  2233. // <8=> White
  2234. #ifndef QDEC_CONFIG_DEBUG_COLOR
  2235. #define QDEC_CONFIG_DEBUG_COLOR 0
  2236. #endif
  2237. // </e>
  2238. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  2239. //==========================================================
  2240. #ifndef RNG_CONFIG_LOG_ENABLED
  2241. #define RNG_CONFIG_LOG_ENABLED 0
  2242. #endif
  2243. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  2244. // <0=> Off
  2245. // <1=> Error
  2246. // <2=> Warning
  2247. // <3=> Info
  2248. // <4=> Debug
  2249. #ifndef RNG_CONFIG_LOG_LEVEL
  2250. #define RNG_CONFIG_LOG_LEVEL 3
  2251. #endif
  2252. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2253. // <0=> Default
  2254. // <1=> Black
  2255. // <2=> Red
  2256. // <3=> Green
  2257. // <4=> Yellow
  2258. // <5=> Blue
  2259. // <6=> Magenta
  2260. // <7=> Cyan
  2261. // <8=> White
  2262. #ifndef RNG_CONFIG_INFO_COLOR
  2263. #define RNG_CONFIG_INFO_COLOR 0
  2264. #endif
  2265. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2266. // <0=> Default
  2267. // <1=> Black
  2268. // <2=> Red
  2269. // <3=> Green
  2270. // <4=> Yellow
  2271. // <5=> Blue
  2272. // <6=> Magenta
  2273. // <7=> Cyan
  2274. // <8=> White
  2275. #ifndef RNG_CONFIG_DEBUG_COLOR
  2276. #define RNG_CONFIG_DEBUG_COLOR 0
  2277. #endif
  2278. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  2279. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  2280. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  2281. #endif
  2282. // </e>
  2283. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2284. //==========================================================
  2285. #ifndef RTC_CONFIG_LOG_ENABLED
  2286. #define RTC_CONFIG_LOG_ENABLED 0
  2287. #endif
  2288. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  2289. // <0=> Off
  2290. // <1=> Error
  2291. // <2=> Warning
  2292. // <3=> Info
  2293. // <4=> Debug
  2294. #ifndef RTC_CONFIG_LOG_LEVEL
  2295. #define RTC_CONFIG_LOG_LEVEL 3
  2296. #endif
  2297. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2298. // <0=> Default
  2299. // <1=> Black
  2300. // <2=> Red
  2301. // <3=> Green
  2302. // <4=> Yellow
  2303. // <5=> Blue
  2304. // <6=> Magenta
  2305. // <7=> Cyan
  2306. // <8=> White
  2307. #ifndef RTC_CONFIG_INFO_COLOR
  2308. #define RTC_CONFIG_INFO_COLOR 0
  2309. #endif
  2310. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2311. // <0=> Default
  2312. // <1=> Black
  2313. // <2=> Red
  2314. // <3=> Green
  2315. // <4=> Yellow
  2316. // <5=> Blue
  2317. // <6=> Magenta
  2318. // <7=> Cyan
  2319. // <8=> White
  2320. #ifndef RTC_CONFIG_DEBUG_COLOR
  2321. #define RTC_CONFIG_DEBUG_COLOR 0
  2322. #endif
  2323. // </e>
  2324. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2325. //==========================================================
  2326. #ifndef SAADC_CONFIG_LOG_ENABLED
  2327. #define SAADC_CONFIG_LOG_ENABLED 0
  2328. #endif
  2329. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  2330. // <0=> Off
  2331. // <1=> Error
  2332. // <2=> Warning
  2333. // <3=> Info
  2334. // <4=> Debug
  2335. #ifndef SAADC_CONFIG_LOG_LEVEL
  2336. #define SAADC_CONFIG_LOG_LEVEL 3
  2337. #endif
  2338. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2339. // <0=> Default
  2340. // <1=> Black
  2341. // <2=> Red
  2342. // <3=> Green
  2343. // <4=> Yellow
  2344. // <5=> Blue
  2345. // <6=> Magenta
  2346. // <7=> Cyan
  2347. // <8=> White
  2348. #ifndef SAADC_CONFIG_INFO_COLOR
  2349. #define SAADC_CONFIG_INFO_COLOR 0
  2350. #endif
  2351. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2352. // <0=> Default
  2353. // <1=> Black
  2354. // <2=> Red
  2355. // <3=> Green
  2356. // <4=> Yellow
  2357. // <5=> Blue
  2358. // <6=> Magenta
  2359. // <7=> Cyan
  2360. // <8=> White
  2361. #ifndef SAADC_CONFIG_DEBUG_COLOR
  2362. #define SAADC_CONFIG_DEBUG_COLOR 0
  2363. #endif
  2364. // </e>
  2365. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2366. //==========================================================
  2367. #ifndef SPIS_CONFIG_LOG_ENABLED
  2368. #define SPIS_CONFIG_LOG_ENABLED 0
  2369. #endif
  2370. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  2371. // <0=> Off
  2372. // <1=> Error
  2373. // <2=> Warning
  2374. // <3=> Info
  2375. // <4=> Debug
  2376. #ifndef SPIS_CONFIG_LOG_LEVEL
  2377. #define SPIS_CONFIG_LOG_LEVEL 3
  2378. #endif
  2379. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2380. // <0=> Default
  2381. // <1=> Black
  2382. // <2=> Red
  2383. // <3=> Green
  2384. // <4=> Yellow
  2385. // <5=> Blue
  2386. // <6=> Magenta
  2387. // <7=> Cyan
  2388. // <8=> White
  2389. #ifndef SPIS_CONFIG_INFO_COLOR
  2390. #define SPIS_CONFIG_INFO_COLOR 0
  2391. #endif
  2392. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2393. // <0=> Default
  2394. // <1=> Black
  2395. // <2=> Red
  2396. // <3=> Green
  2397. // <4=> Yellow
  2398. // <5=> Blue
  2399. // <6=> Magenta
  2400. // <7=> Cyan
  2401. // <8=> White
  2402. #ifndef SPIS_CONFIG_DEBUG_COLOR
  2403. #define SPIS_CONFIG_DEBUG_COLOR 0
  2404. #endif
  2405. // </e>
  2406. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2407. //==========================================================
  2408. #ifndef SPI_CONFIG_LOG_ENABLED
  2409. #define SPI_CONFIG_LOG_ENABLED 0
  2410. #endif
  2411. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  2412. // <0=> Off
  2413. // <1=> Error
  2414. // <2=> Warning
  2415. // <3=> Info
  2416. // <4=> Debug
  2417. #ifndef SPI_CONFIG_LOG_LEVEL
  2418. #define SPI_CONFIG_LOG_LEVEL 3
  2419. #endif
  2420. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2421. // <0=> Default
  2422. // <1=> Black
  2423. // <2=> Red
  2424. // <3=> Green
  2425. // <4=> Yellow
  2426. // <5=> Blue
  2427. // <6=> Magenta
  2428. // <7=> Cyan
  2429. // <8=> White
  2430. #ifndef SPI_CONFIG_INFO_COLOR
  2431. #define SPI_CONFIG_INFO_COLOR 0
  2432. #endif
  2433. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2434. // <0=> Default
  2435. // <1=> Black
  2436. // <2=> Red
  2437. // <3=> Green
  2438. // <4=> Yellow
  2439. // <5=> Blue
  2440. // <6=> Magenta
  2441. // <7=> Cyan
  2442. // <8=> White
  2443. #ifndef SPI_CONFIG_DEBUG_COLOR
  2444. #define SPI_CONFIG_DEBUG_COLOR 0
  2445. #endif
  2446. // </e>
  2447. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2448. //==========================================================
  2449. #ifndef TIMER_CONFIG_LOG_ENABLED
  2450. #define TIMER_CONFIG_LOG_ENABLED 0
  2451. #endif
  2452. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2453. // <0=> Off
  2454. // <1=> Error
  2455. // <2=> Warning
  2456. // <3=> Info
  2457. // <4=> Debug
  2458. #ifndef TIMER_CONFIG_LOG_LEVEL
  2459. #define TIMER_CONFIG_LOG_LEVEL 3
  2460. #endif
  2461. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2462. // <0=> Default
  2463. // <1=> Black
  2464. // <2=> Red
  2465. // <3=> Green
  2466. // <4=> Yellow
  2467. // <5=> Blue
  2468. // <6=> Magenta
  2469. // <7=> Cyan
  2470. // <8=> White
  2471. #ifndef TIMER_CONFIG_INFO_COLOR
  2472. #define TIMER_CONFIG_INFO_COLOR 0
  2473. #endif
  2474. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2475. // <0=> Default
  2476. // <1=> Black
  2477. // <2=> Red
  2478. // <3=> Green
  2479. // <4=> Yellow
  2480. // <5=> Blue
  2481. // <6=> Magenta
  2482. // <7=> Cyan
  2483. // <8=> White
  2484. #ifndef TIMER_CONFIG_DEBUG_COLOR
  2485. #define TIMER_CONFIG_DEBUG_COLOR 0
  2486. #endif
  2487. // </e>
  2488. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2489. //==========================================================
  2490. #ifndef TWIS_CONFIG_LOG_ENABLED
  2491. #define TWIS_CONFIG_LOG_ENABLED 0
  2492. #endif
  2493. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  2494. // <0=> Off
  2495. // <1=> Error
  2496. // <2=> Warning
  2497. // <3=> Info
  2498. // <4=> Debug
  2499. #ifndef TWIS_CONFIG_LOG_LEVEL
  2500. #define TWIS_CONFIG_LOG_LEVEL 3
  2501. #endif
  2502. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2503. // <0=> Default
  2504. // <1=> Black
  2505. // <2=> Red
  2506. // <3=> Green
  2507. // <4=> Yellow
  2508. // <5=> Blue
  2509. // <6=> Magenta
  2510. // <7=> Cyan
  2511. // <8=> White
  2512. #ifndef TWIS_CONFIG_INFO_COLOR
  2513. #define TWIS_CONFIG_INFO_COLOR 0
  2514. #endif
  2515. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2516. // <0=> Default
  2517. // <1=> Black
  2518. // <2=> Red
  2519. // <3=> Green
  2520. // <4=> Yellow
  2521. // <5=> Blue
  2522. // <6=> Magenta
  2523. // <7=> Cyan
  2524. // <8=> White
  2525. #ifndef TWIS_CONFIG_DEBUG_COLOR
  2526. #define TWIS_CONFIG_DEBUG_COLOR 0
  2527. #endif
  2528. // </e>
  2529. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2530. //==========================================================
  2531. #ifndef TWI_CONFIG_LOG_ENABLED
  2532. #define TWI_CONFIG_LOG_ENABLED 0
  2533. #endif
  2534. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  2535. // <0=> Off
  2536. // <1=> Error
  2537. // <2=> Warning
  2538. // <3=> Info
  2539. // <4=> Debug
  2540. #ifndef TWI_CONFIG_LOG_LEVEL
  2541. #define TWI_CONFIG_LOG_LEVEL 3
  2542. #endif
  2543. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2544. // <0=> Default
  2545. // <1=> Black
  2546. // <2=> Red
  2547. // <3=> Green
  2548. // <4=> Yellow
  2549. // <5=> Blue
  2550. // <6=> Magenta
  2551. // <7=> Cyan
  2552. // <8=> White
  2553. #ifndef TWI_CONFIG_INFO_COLOR
  2554. #define TWI_CONFIG_INFO_COLOR 0
  2555. #endif
  2556. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2557. // <0=> Default
  2558. // <1=> Black
  2559. // <2=> Red
  2560. // <3=> Green
  2561. // <4=> Yellow
  2562. // <5=> Blue
  2563. // <6=> Magenta
  2564. // <7=> Cyan
  2565. // <8=> White
  2566. #ifndef TWI_CONFIG_DEBUG_COLOR
  2567. #define TWI_CONFIG_DEBUG_COLOR 0
  2568. #endif
  2569. // </e>
  2570. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2571. //==========================================================
  2572. #ifndef UART_CONFIG_LOG_ENABLED
  2573. #define UART_CONFIG_LOG_ENABLED 0
  2574. #endif
  2575. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  2576. // <0=> Off
  2577. // <1=> Error
  2578. // <2=> Warning
  2579. // <3=> Info
  2580. // <4=> Debug
  2581. #ifndef UART_CONFIG_LOG_LEVEL
  2582. #define UART_CONFIG_LOG_LEVEL 3
  2583. #endif
  2584. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2585. // <0=> Default
  2586. // <1=> Black
  2587. // <2=> Red
  2588. // <3=> Green
  2589. // <4=> Yellow
  2590. // <5=> Blue
  2591. // <6=> Magenta
  2592. // <7=> Cyan
  2593. // <8=> White
  2594. #ifndef UART_CONFIG_INFO_COLOR
  2595. #define UART_CONFIG_INFO_COLOR 0
  2596. #endif
  2597. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2598. // <0=> Default
  2599. // <1=> Black
  2600. // <2=> Red
  2601. // <3=> Green
  2602. // <4=> Yellow
  2603. // <5=> Blue
  2604. // <6=> Magenta
  2605. // <7=> Cyan
  2606. // <8=> White
  2607. #ifndef UART_CONFIG_DEBUG_COLOR
  2608. #define UART_CONFIG_DEBUG_COLOR 0
  2609. #endif
  2610. // </e>
  2611. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  2612. //==========================================================
  2613. #ifndef USBD_CONFIG_LOG_ENABLED
  2614. #define USBD_CONFIG_LOG_ENABLED 0
  2615. #endif
  2616. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  2617. // <0=> Off
  2618. // <1=> Error
  2619. // <2=> Warning
  2620. // <3=> Info
  2621. // <4=> Debug
  2622. #ifndef USBD_CONFIG_LOG_LEVEL
  2623. #define USBD_CONFIG_LOG_LEVEL 3
  2624. #endif
  2625. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2626. // <0=> Default
  2627. // <1=> Black
  2628. // <2=> Red
  2629. // <3=> Green
  2630. // <4=> Yellow
  2631. // <5=> Blue
  2632. // <6=> Magenta
  2633. // <7=> Cyan
  2634. // <8=> White
  2635. #ifndef USBD_CONFIG_INFO_COLOR
  2636. #define USBD_CONFIG_INFO_COLOR 0
  2637. #endif
  2638. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2639. // <0=> Default
  2640. // <1=> Black
  2641. // <2=> Red
  2642. // <3=> Green
  2643. // <4=> Yellow
  2644. // <5=> Blue
  2645. // <6=> Magenta
  2646. // <7=> Cyan
  2647. // <8=> White
  2648. #ifndef USBD_CONFIG_DEBUG_COLOR
  2649. #define USBD_CONFIG_DEBUG_COLOR 0
  2650. #endif
  2651. // </e>
  2652. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2653. //==========================================================
  2654. #ifndef WDT_CONFIG_LOG_ENABLED
  2655. #define WDT_CONFIG_LOG_ENABLED 0
  2656. #endif
  2657. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  2658. // <0=> Off
  2659. // <1=> Error
  2660. // <2=> Warning
  2661. // <3=> Info
  2662. // <4=> Debug
  2663. #ifndef WDT_CONFIG_LOG_LEVEL
  2664. #define WDT_CONFIG_LOG_LEVEL 3
  2665. #endif
  2666. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2667. // <0=> Default
  2668. // <1=> Black
  2669. // <2=> Red
  2670. // <3=> Green
  2671. // <4=> Yellow
  2672. // <5=> Blue
  2673. // <6=> Magenta
  2674. // <7=> Cyan
  2675. // <8=> White
  2676. #ifndef WDT_CONFIG_INFO_COLOR
  2677. #define WDT_CONFIG_INFO_COLOR 0
  2678. #endif
  2679. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2680. // <0=> Default
  2681. // <1=> Black
  2682. // <2=> Red
  2683. // <3=> Green
  2684. // <4=> Yellow
  2685. // <5=> Blue
  2686. // <6=> Magenta
  2687. // <7=> Cyan
  2688. // <8=> White
  2689. #ifndef WDT_CONFIG_DEBUG_COLOR
  2690. #define WDT_CONFIG_DEBUG_COLOR 0
  2691. #endif
  2692. // </e>
  2693. // </h>
  2694. //==========================================================
  2695. // <h> nrf_log in nRF_Libraries
  2696. //==========================================================
  2697. // <e> APP_BUTTON_CONFIG_LOG_ENABLED - Enables logging in the module.
  2698. //==========================================================
  2699. #ifndef APP_BUTTON_CONFIG_LOG_ENABLED
  2700. #define APP_BUTTON_CONFIG_LOG_ENABLED 0
  2701. #endif
  2702. // <o> APP_BUTTON_CONFIG_LOG_LEVEL - Default Severity level
  2703. // <0=> Off
  2704. // <1=> Error
  2705. // <2=> Warning
  2706. // <3=> Info
  2707. // <4=> Debug
  2708. #ifndef APP_BUTTON_CONFIG_LOG_LEVEL
  2709. #define APP_BUTTON_CONFIG_LOG_LEVEL 3
  2710. #endif
  2711. // <o> APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2712. // <i> If module generates a lot of logs, initial log level can
  2713. // <i> be decreased to prevent flooding. Severity level can be
  2714. // <i> increased on instance basis.
  2715. // <0=> Off
  2716. // <1=> Error
  2717. // <2=> Warning
  2718. // <3=> Info
  2719. // <4=> Debug
  2720. #ifndef APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL
  2721. #define APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL 3
  2722. #endif
  2723. // <o> APP_BUTTON_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2724. // <0=> Default
  2725. // <1=> Black
  2726. // <2=> Red
  2727. // <3=> Green
  2728. // <4=> Yellow
  2729. // <5=> Blue
  2730. // <6=> Magenta
  2731. // <7=> Cyan
  2732. // <8=> White
  2733. #ifndef APP_BUTTON_CONFIG_INFO_COLOR
  2734. #define APP_BUTTON_CONFIG_INFO_COLOR 0
  2735. #endif
  2736. // <o> APP_BUTTON_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2737. // <0=> Default
  2738. // <1=> Black
  2739. // <2=> Red
  2740. // <3=> Green
  2741. // <4=> Yellow
  2742. // <5=> Blue
  2743. // <6=> Magenta
  2744. // <7=> Cyan
  2745. // <8=> White
  2746. #ifndef APP_BUTTON_CONFIG_DEBUG_COLOR
  2747. #define APP_BUTTON_CONFIG_DEBUG_COLOR 0
  2748. #endif
  2749. // </e>
  2750. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2751. //==========================================================
  2752. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  2753. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  2754. #endif
  2755. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2756. // <0=> Off
  2757. // <1=> Error
  2758. // <2=> Warning
  2759. // <3=> Info
  2760. // <4=> Debug
  2761. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  2762. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  2763. #endif
  2764. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2765. // <i> If module generates a lot of logs, initial log level can
  2766. // <i> be decreased to prevent flooding. Severity level can be
  2767. // <i> increased on instance basis.
  2768. // <0=> Off
  2769. // <1=> Error
  2770. // <2=> Warning
  2771. // <3=> Info
  2772. // <4=> Debug
  2773. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  2774. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  2775. #endif
  2776. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2777. // <0=> Default
  2778. // <1=> Black
  2779. // <2=> Red
  2780. // <3=> Green
  2781. // <4=> Yellow
  2782. // <5=> Blue
  2783. // <6=> Magenta
  2784. // <7=> Cyan
  2785. // <8=> White
  2786. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  2787. #define APP_TIMER_CONFIG_INFO_COLOR 0
  2788. #endif
  2789. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2790. // <0=> Default
  2791. // <1=> Black
  2792. // <2=> Red
  2793. // <3=> Green
  2794. // <4=> Yellow
  2795. // <5=> Blue
  2796. // <6=> Magenta
  2797. // <7=> Cyan
  2798. // <8=> White
  2799. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  2800. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  2801. #endif
  2802. // </e>
  2803. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2804. //==========================================================
  2805. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  2806. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  2807. #endif
  2808. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  2809. // <0=> Off
  2810. // <1=> Error
  2811. // <2=> Warning
  2812. // <3=> Info
  2813. // <4=> Debug
  2814. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  2815. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  2816. #endif
  2817. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2818. // <0=> Default
  2819. // <1=> Black
  2820. // <2=> Red
  2821. // <3=> Green
  2822. // <4=> Yellow
  2823. // <5=> Blue
  2824. // <6=> Magenta
  2825. // <7=> Cyan
  2826. // <8=> White
  2827. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  2828. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  2829. #endif
  2830. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2831. // <0=> Default
  2832. // <1=> Black
  2833. // <2=> Red
  2834. // <3=> Green
  2835. // <4=> Yellow
  2836. // <5=> Blue
  2837. // <6=> Magenta
  2838. // <7=> Cyan
  2839. // <8=> White
  2840. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  2841. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  2842. #endif
  2843. // </e>
  2844. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  2845. //==========================================================
  2846. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  2847. #define APP_USBD_CONFIG_LOG_ENABLED 0
  2848. #endif
  2849. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  2850. // <0=> Off
  2851. // <1=> Error
  2852. // <2=> Warning
  2853. // <3=> Info
  2854. // <4=> Debug
  2855. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  2856. #define APP_USBD_CONFIG_LOG_LEVEL 3
  2857. #endif
  2858. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2859. // <0=> Default
  2860. // <1=> Black
  2861. // <2=> Red
  2862. // <3=> Green
  2863. // <4=> Yellow
  2864. // <5=> Blue
  2865. // <6=> Magenta
  2866. // <7=> Cyan
  2867. // <8=> White
  2868. #ifndef APP_USBD_CONFIG_INFO_COLOR
  2869. #define APP_USBD_CONFIG_INFO_COLOR 0
  2870. #endif
  2871. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2872. // <0=> Default
  2873. // <1=> Black
  2874. // <2=> Red
  2875. // <3=> Green
  2876. // <4=> Yellow
  2877. // <5=> Blue
  2878. // <6=> Magenta
  2879. // <7=> Cyan
  2880. // <8=> White
  2881. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  2882. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  2883. #endif
  2884. // </e>
  2885. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  2886. //==========================================================
  2887. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  2888. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  2889. #endif
  2890. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  2891. // <0=> Off
  2892. // <1=> Error
  2893. // <2=> Warning
  2894. // <3=> Info
  2895. // <4=> Debug
  2896. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  2897. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  2898. #endif
  2899. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2900. // <0=> Default
  2901. // <1=> Black
  2902. // <2=> Red
  2903. // <3=> Green
  2904. // <4=> Yellow
  2905. // <5=> Blue
  2906. // <6=> Magenta
  2907. // <7=> Cyan
  2908. // <8=> White
  2909. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  2910. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  2911. #endif
  2912. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2913. // <0=> Default
  2914. // <1=> Black
  2915. // <2=> Red
  2916. // <3=> Green
  2917. // <4=> Yellow
  2918. // <5=> Blue
  2919. // <6=> Magenta
  2920. // <7=> Cyan
  2921. // <8=> White
  2922. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  2923. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  2924. #endif
  2925. // </e>
  2926. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2927. //==========================================================
  2928. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  2929. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  2930. #endif
  2931. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  2932. // <0=> Off
  2933. // <1=> Error
  2934. // <2=> Warning
  2935. // <3=> Info
  2936. // <4=> Debug
  2937. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  2938. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  2939. #endif
  2940. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2941. // <0=> Default
  2942. // <1=> Black
  2943. // <2=> Red
  2944. // <3=> Green
  2945. // <4=> Yellow
  2946. // <5=> Blue
  2947. // <6=> Magenta
  2948. // <7=> Cyan
  2949. // <8=> White
  2950. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  2951. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  2952. #endif
  2953. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2954. // <0=> Default
  2955. // <1=> Black
  2956. // <2=> Red
  2957. // <3=> Green
  2958. // <4=> Yellow
  2959. // <5=> Blue
  2960. // <6=> Magenta
  2961. // <7=> Cyan
  2962. // <8=> White
  2963. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  2964. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  2965. #endif
  2966. // </e>
  2967. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2968. //==========================================================
  2969. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  2970. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  2971. #endif
  2972. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  2973. // <0=> Off
  2974. // <1=> Error
  2975. // <2=> Warning
  2976. // <3=> Info
  2977. // <4=> Debug
  2978. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  2979. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  2980. #endif
  2981. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2982. // <0=> Default
  2983. // <1=> Black
  2984. // <2=> Red
  2985. // <3=> Green
  2986. // <4=> Yellow
  2987. // <5=> Blue
  2988. // <6=> Magenta
  2989. // <7=> Cyan
  2990. // <8=> White
  2991. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  2992. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  2993. #endif
  2994. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2995. // <0=> Default
  2996. // <1=> Black
  2997. // <2=> Red
  2998. // <3=> Green
  2999. // <4=> Yellow
  3000. // <5=> Blue
  3001. // <6=> Magenta
  3002. // <7=> Cyan
  3003. // <8=> White
  3004. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  3005. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  3006. #endif
  3007. // </e>
  3008. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  3009. //==========================================================
  3010. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  3011. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  3012. #endif
  3013. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  3014. // <0=> Off
  3015. // <1=> Error
  3016. // <2=> Warning
  3017. // <3=> Info
  3018. // <4=> Debug
  3019. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  3020. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  3021. #endif
  3022. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3023. // <0=> Off
  3024. // <1=> Error
  3025. // <2=> Warning
  3026. // <3=> Info
  3027. // <4=> Debug
  3028. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  3029. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3030. #endif
  3031. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3032. // <0=> Default
  3033. // <1=> Black
  3034. // <2=> Red
  3035. // <3=> Green
  3036. // <4=> Yellow
  3037. // <5=> Blue
  3038. // <6=> Magenta
  3039. // <7=> Cyan
  3040. // <8=> White
  3041. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  3042. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  3043. #endif
  3044. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3045. // <0=> Default
  3046. // <1=> Black
  3047. // <2=> Red
  3048. // <3=> Green
  3049. // <4=> Yellow
  3050. // <5=> Blue
  3051. // <6=> Magenta
  3052. // <7=> Cyan
  3053. // <8=> White
  3054. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  3055. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  3056. #endif
  3057. // </e>
  3058. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  3059. //==========================================================
  3060. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  3061. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  3062. #endif
  3063. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  3064. // <0=> Off
  3065. // <1=> Error
  3066. // <2=> Warning
  3067. // <3=> Info
  3068. // <4=> Debug
  3069. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  3070. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  3071. #endif
  3072. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  3073. // <i> If module generates a lot of logs, initial log level can
  3074. // <i> be decreased to prevent flooding. Severity level can be
  3075. // <i> increased on instance basis.
  3076. // <0=> Off
  3077. // <1=> Error
  3078. // <2=> Warning
  3079. // <3=> Info
  3080. // <4=> Debug
  3081. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  3082. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  3083. #endif
  3084. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3085. // <0=> Default
  3086. // <1=> Black
  3087. // <2=> Red
  3088. // <3=> Green
  3089. // <4=> Yellow
  3090. // <5=> Blue
  3091. // <6=> Magenta
  3092. // <7=> Cyan
  3093. // <8=> White
  3094. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  3095. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  3096. #endif
  3097. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3098. // <0=> Default
  3099. // <1=> Black
  3100. // <2=> Red
  3101. // <3=> Green
  3102. // <4=> Yellow
  3103. // <5=> Blue
  3104. // <6=> Magenta
  3105. // <7=> Cyan
  3106. // <8=> White
  3107. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  3108. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  3109. #endif
  3110. // </e>
  3111. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  3112. //==========================================================
  3113. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  3114. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  3115. #endif
  3116. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  3117. // <0=> Off
  3118. // <1=> Error
  3119. // <2=> Warning
  3120. // <3=> Info
  3121. // <4=> Debug
  3122. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  3123. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  3124. #endif
  3125. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3126. // <0=> Off
  3127. // <1=> Error
  3128. // <2=> Warning
  3129. // <3=> Info
  3130. // <4=> Debug
  3131. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  3132. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3133. #endif
  3134. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3135. // <0=> Default
  3136. // <1=> Black
  3137. // <2=> Red
  3138. // <3=> Green
  3139. // <4=> Yellow
  3140. // <5=> Blue
  3141. // <6=> Magenta
  3142. // <7=> Cyan
  3143. // <8=> White
  3144. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  3145. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  3146. #endif
  3147. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3148. // <0=> Default
  3149. // <1=> Black
  3150. // <2=> Red
  3151. // <3=> Green
  3152. // <4=> Yellow
  3153. // <5=> Blue
  3154. // <6=> Magenta
  3155. // <7=> Cyan
  3156. // <8=> White
  3157. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  3158. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  3159. #endif
  3160. // </e>
  3161. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  3162. //==========================================================
  3163. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  3164. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  3165. #endif
  3166. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  3167. // <0=> Off
  3168. // <1=> Error
  3169. // <2=> Warning
  3170. // <3=> Info
  3171. // <4=> Debug
  3172. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  3173. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  3174. #endif
  3175. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3176. // <0=> Off
  3177. // <1=> Error
  3178. // <2=> Warning
  3179. // <3=> Info
  3180. // <4=> Debug
  3181. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  3182. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3183. #endif
  3184. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3185. // <0=> Default
  3186. // <1=> Black
  3187. // <2=> Red
  3188. // <3=> Green
  3189. // <4=> Yellow
  3190. // <5=> Blue
  3191. // <6=> Magenta
  3192. // <7=> Cyan
  3193. // <8=> White
  3194. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  3195. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  3196. #endif
  3197. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3198. // <0=> Default
  3199. // <1=> Black
  3200. // <2=> Red
  3201. // <3=> Green
  3202. // <4=> Yellow
  3203. // <5=> Blue
  3204. // <6=> Magenta
  3205. // <7=> Cyan
  3206. // <8=> White
  3207. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  3208. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  3209. #endif
  3210. // </e>
  3211. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  3212. //==========================================================
  3213. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  3214. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  3215. #endif
  3216. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  3217. // <0=> Off
  3218. // <1=> Error
  3219. // <2=> Warning
  3220. // <3=> Info
  3221. // <4=> Debug
  3222. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  3223. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  3224. #endif
  3225. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3226. // <0=> Off
  3227. // <1=> Error
  3228. // <2=> Warning
  3229. // <3=> Info
  3230. // <4=> Debug
  3231. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  3232. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3233. #endif
  3234. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3235. // <0=> Default
  3236. // <1=> Black
  3237. // <2=> Red
  3238. // <3=> Green
  3239. // <4=> Yellow
  3240. // <5=> Blue
  3241. // <6=> Magenta
  3242. // <7=> Cyan
  3243. // <8=> White
  3244. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  3245. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  3246. #endif
  3247. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3248. // <0=> Default
  3249. // <1=> Black
  3250. // <2=> Red
  3251. // <3=> Green
  3252. // <4=> Yellow
  3253. // <5=> Blue
  3254. // <6=> Magenta
  3255. // <7=> Cyan
  3256. // <8=> White
  3257. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  3258. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  3259. #endif
  3260. // </e>
  3261. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  3262. //==========================================================
  3263. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  3264. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  3265. #endif
  3266. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  3267. // <0=> Off
  3268. // <1=> Error
  3269. // <2=> Warning
  3270. // <3=> Info
  3271. // <4=> Debug
  3272. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  3273. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  3274. #endif
  3275. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3276. // <0=> Default
  3277. // <1=> Black
  3278. // <2=> Red
  3279. // <3=> Green
  3280. // <4=> Yellow
  3281. // <5=> Blue
  3282. // <6=> Magenta
  3283. // <7=> Cyan
  3284. // <8=> White
  3285. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  3286. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  3287. #endif
  3288. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3289. // <0=> Default
  3290. // <1=> Black
  3291. // <2=> Red
  3292. // <3=> Green
  3293. // <4=> Yellow
  3294. // <5=> Blue
  3295. // <6=> Magenta
  3296. // <7=> Cyan
  3297. // <8=> White
  3298. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  3299. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  3300. #endif
  3301. // </e>
  3302. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3303. //==========================================================
  3304. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  3305. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  3306. #endif
  3307. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  3308. // <0=> Off
  3309. // <1=> Error
  3310. // <2=> Warning
  3311. // <3=> Info
  3312. // <4=> Debug
  3313. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  3314. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  3315. #endif
  3316. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3317. // <0=> Default
  3318. // <1=> Black
  3319. // <2=> Red
  3320. // <3=> Green
  3321. // <4=> Yellow
  3322. // <5=> Blue
  3323. // <6=> Magenta
  3324. // <7=> Cyan
  3325. // <8=> White
  3326. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  3327. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  3328. #endif
  3329. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3330. // <0=> Default
  3331. // <1=> Black
  3332. // <2=> Red
  3333. // <3=> Green
  3334. // <4=> Yellow
  3335. // <5=> Blue
  3336. // <6=> Magenta
  3337. // <7=> Cyan
  3338. // <8=> White
  3339. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  3340. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  3341. #endif
  3342. // </e>
  3343. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  3344. //==========================================================
  3345. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  3346. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  3347. #endif
  3348. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  3349. // <0=> Off
  3350. // <1=> Error
  3351. // <2=> Warning
  3352. // <3=> Info
  3353. // <4=> Debug
  3354. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  3355. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  3356. #endif
  3357. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3358. // <0=> Default
  3359. // <1=> Black
  3360. // <2=> Red
  3361. // <3=> Green
  3362. // <4=> Yellow
  3363. // <5=> Blue
  3364. // <6=> Magenta
  3365. // <7=> Cyan
  3366. // <8=> White
  3367. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  3368. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  3369. #endif
  3370. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3371. // <0=> Default
  3372. // <1=> Black
  3373. // <2=> Red
  3374. // <3=> Green
  3375. // <4=> Yellow
  3376. // <5=> Blue
  3377. // <6=> Magenta
  3378. // <7=> Cyan
  3379. // <8=> White
  3380. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  3381. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  3382. #endif
  3383. // </e>
  3384. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3385. //==========================================================
  3386. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  3387. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  3388. #endif
  3389. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  3390. // <0=> Off
  3391. // <1=> Error
  3392. // <2=> Warning
  3393. // <3=> Info
  3394. // <4=> Debug
  3395. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  3396. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  3397. #endif
  3398. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3399. // <0=> Default
  3400. // <1=> Black
  3401. // <2=> Red
  3402. // <3=> Green
  3403. // <4=> Yellow
  3404. // <5=> Blue
  3405. // <6=> Magenta
  3406. // <7=> Cyan
  3407. // <8=> White
  3408. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  3409. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  3410. #endif
  3411. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3412. // <0=> Default
  3413. // <1=> Black
  3414. // <2=> Red
  3415. // <3=> Green
  3416. // <4=> Yellow
  3417. // <5=> Blue
  3418. // <6=> Magenta
  3419. // <7=> Cyan
  3420. // <8=> White
  3421. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  3422. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  3423. #endif
  3424. // </e>
  3425. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  3426. //==========================================================
  3427. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  3428. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  3429. #endif
  3430. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  3431. // <0=> Off
  3432. // <1=> Error
  3433. // <2=> Warning
  3434. // <3=> Info
  3435. // <4=> Debug
  3436. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  3437. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  3438. #endif
  3439. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3440. // <0=> Default
  3441. // <1=> Black
  3442. // <2=> Red
  3443. // <3=> Green
  3444. // <4=> Yellow
  3445. // <5=> Blue
  3446. // <6=> Magenta
  3447. // <7=> Cyan
  3448. // <8=> White
  3449. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  3450. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  3451. #endif
  3452. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3453. // <0=> Default
  3454. // <1=> Black
  3455. // <2=> Red
  3456. // <3=> Green
  3457. // <4=> Yellow
  3458. // <5=> Blue
  3459. // <6=> Magenta
  3460. // <7=> Cyan
  3461. // <8=> White
  3462. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  3463. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  3464. #endif
  3465. // </e>
  3466. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3467. //==========================================================
  3468. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  3469. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  3470. #endif
  3471. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  3472. // <0=> Off
  3473. // <1=> Error
  3474. // <2=> Warning
  3475. // <3=> Info
  3476. // <4=> Debug
  3477. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  3478. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  3479. #endif
  3480. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3481. // <0=> Default
  3482. // <1=> Black
  3483. // <2=> Red
  3484. // <3=> Green
  3485. // <4=> Yellow
  3486. // <5=> Blue
  3487. // <6=> Magenta
  3488. // <7=> Cyan
  3489. // <8=> White
  3490. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  3491. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  3492. #endif
  3493. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3494. // <0=> Default
  3495. // <1=> Black
  3496. // <2=> Red
  3497. // <3=> Green
  3498. // <4=> Yellow
  3499. // <5=> Blue
  3500. // <6=> Magenta
  3501. // <7=> Cyan
  3502. // <8=> White
  3503. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  3504. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  3505. #endif
  3506. // </e>
  3507. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3508. //==========================================================
  3509. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  3510. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  3511. #endif
  3512. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  3513. // <0=> Off
  3514. // <1=> Error
  3515. // <2=> Warning
  3516. // <3=> Info
  3517. // <4=> Debug
  3518. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  3519. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  3520. #endif
  3521. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3522. // <0=> Off
  3523. // <1=> Error
  3524. // <2=> Warning
  3525. // <3=> Info
  3526. // <4=> Debug
  3527. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  3528. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3529. #endif
  3530. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3531. // <0=> Default
  3532. // <1=> Black
  3533. // <2=> Red
  3534. // <3=> Green
  3535. // <4=> Yellow
  3536. // <5=> Blue
  3537. // <6=> Magenta
  3538. // <7=> Cyan
  3539. // <8=> White
  3540. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  3541. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  3542. #endif
  3543. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3544. // <0=> Default
  3545. // <1=> Black
  3546. // <2=> Red
  3547. // <3=> Green
  3548. // <4=> Yellow
  3549. // <5=> Blue
  3550. // <6=> Magenta
  3551. // <7=> Cyan
  3552. // <8=> White
  3553. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  3554. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  3555. #endif
  3556. // </e>
  3557. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  3558. //==========================================================
  3559. #ifndef NRF_SDH_ANT_LOG_ENABLED
  3560. #define NRF_SDH_ANT_LOG_ENABLED 0
  3561. #endif
  3562. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  3563. // <0=> Off
  3564. // <1=> Error
  3565. // <2=> Warning
  3566. // <3=> Info
  3567. // <4=> Debug
  3568. #ifndef NRF_SDH_ANT_LOG_LEVEL
  3569. #define NRF_SDH_ANT_LOG_LEVEL 3
  3570. #endif
  3571. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  3572. // <0=> Default
  3573. // <1=> Black
  3574. // <2=> Red
  3575. // <3=> Green
  3576. // <4=> Yellow
  3577. // <5=> Blue
  3578. // <6=> Magenta
  3579. // <7=> Cyan
  3580. // <8=> White
  3581. #ifndef NRF_SDH_ANT_INFO_COLOR
  3582. #define NRF_SDH_ANT_INFO_COLOR 0
  3583. #endif
  3584. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  3585. // <0=> Default
  3586. // <1=> Black
  3587. // <2=> Red
  3588. // <3=> Green
  3589. // <4=> Yellow
  3590. // <5=> Blue
  3591. // <6=> Magenta
  3592. // <7=> Cyan
  3593. // <8=> White
  3594. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  3595. #define NRF_SDH_ANT_DEBUG_COLOR 0
  3596. #endif
  3597. // </e>
  3598. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  3599. //==========================================================
  3600. #ifndef NRF_SDH_BLE_LOG_ENABLED
  3601. #define NRF_SDH_BLE_LOG_ENABLED 0
  3602. #endif
  3603. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  3604. // <0=> Off
  3605. // <1=> Error
  3606. // <2=> Warning
  3607. // <3=> Info
  3608. // <4=> Debug
  3609. #ifndef NRF_SDH_BLE_LOG_LEVEL
  3610. #define NRF_SDH_BLE_LOG_LEVEL 3
  3611. #endif
  3612. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  3613. // <0=> Default
  3614. // <1=> Black
  3615. // <2=> Red
  3616. // <3=> Green
  3617. // <4=> Yellow
  3618. // <5=> Blue
  3619. // <6=> Magenta
  3620. // <7=> Cyan
  3621. // <8=> White
  3622. #ifndef NRF_SDH_BLE_INFO_COLOR
  3623. #define NRF_SDH_BLE_INFO_COLOR 0
  3624. #endif
  3625. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  3626. // <0=> Default
  3627. // <1=> Black
  3628. // <2=> Red
  3629. // <3=> Green
  3630. // <4=> Yellow
  3631. // <5=> Blue
  3632. // <6=> Magenta
  3633. // <7=> Cyan
  3634. // <8=> White
  3635. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  3636. #define NRF_SDH_BLE_DEBUG_COLOR 0
  3637. #endif
  3638. // </e>
  3639. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  3640. //==========================================================
  3641. #ifndef NRF_SDH_LOG_ENABLED
  3642. #define NRF_SDH_LOG_ENABLED 0
  3643. #endif
  3644. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  3645. // <0=> Off
  3646. // <1=> Error
  3647. // <2=> Warning
  3648. // <3=> Info
  3649. // <4=> Debug
  3650. #ifndef NRF_SDH_LOG_LEVEL
  3651. #define NRF_SDH_LOG_LEVEL 3
  3652. #endif
  3653. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  3654. // <0=> Default
  3655. // <1=> Black
  3656. // <2=> Red
  3657. // <3=> Green
  3658. // <4=> Yellow
  3659. // <5=> Blue
  3660. // <6=> Magenta
  3661. // <7=> Cyan
  3662. // <8=> White
  3663. #ifndef NRF_SDH_INFO_COLOR
  3664. #define NRF_SDH_INFO_COLOR 0
  3665. #endif
  3666. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  3667. // <0=> Default
  3668. // <1=> Black
  3669. // <2=> Red
  3670. // <3=> Green
  3671. // <4=> Yellow
  3672. // <5=> Blue
  3673. // <6=> Magenta
  3674. // <7=> Cyan
  3675. // <8=> White
  3676. #ifndef NRF_SDH_DEBUG_COLOR
  3677. #define NRF_SDH_DEBUG_COLOR 0
  3678. #endif
  3679. // </e>
  3680. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  3681. //==========================================================
  3682. #ifndef NRF_SDH_SOC_LOG_ENABLED
  3683. #define NRF_SDH_SOC_LOG_ENABLED 0
  3684. #endif
  3685. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  3686. // <0=> Off
  3687. // <1=> Error
  3688. // <2=> Warning
  3689. // <3=> Info
  3690. // <4=> Debug
  3691. #ifndef NRF_SDH_SOC_LOG_LEVEL
  3692. #define NRF_SDH_SOC_LOG_LEVEL 3
  3693. #endif
  3694. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  3695. // <0=> Default
  3696. // <1=> Black
  3697. // <2=> Red
  3698. // <3=> Green
  3699. // <4=> Yellow
  3700. // <5=> Blue
  3701. // <6=> Magenta
  3702. // <7=> Cyan
  3703. // <8=> White
  3704. #ifndef NRF_SDH_SOC_INFO_COLOR
  3705. #define NRF_SDH_SOC_INFO_COLOR 0
  3706. #endif
  3707. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  3708. // <0=> Default
  3709. // <1=> Black
  3710. // <2=> Red
  3711. // <3=> Green
  3712. // <4=> Yellow
  3713. // <5=> Blue
  3714. // <6=> Magenta
  3715. // <7=> Cyan
  3716. // <8=> White
  3717. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  3718. #define NRF_SDH_SOC_DEBUG_COLOR 0
  3719. #endif
  3720. // </e>
  3721. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  3722. //==========================================================
  3723. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  3724. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  3725. #endif
  3726. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  3727. // <0=> Off
  3728. // <1=> Error
  3729. // <2=> Warning
  3730. // <3=> Info
  3731. // <4=> Debug
  3732. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  3733. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  3734. #endif
  3735. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3736. // <0=> Default
  3737. // <1=> Black
  3738. // <2=> Red
  3739. // <3=> Green
  3740. // <4=> Yellow
  3741. // <5=> Blue
  3742. // <6=> Magenta
  3743. // <7=> Cyan
  3744. // <8=> White
  3745. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  3746. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  3747. #endif
  3748. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3749. // <0=> Default
  3750. // <1=> Black
  3751. // <2=> Red
  3752. // <3=> Green
  3753. // <4=> Yellow
  3754. // <5=> Blue
  3755. // <6=> Magenta
  3756. // <7=> Cyan
  3757. // <8=> White
  3758. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  3759. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  3760. #endif
  3761. // </e>
  3762. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  3763. //==========================================================
  3764. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  3765. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  3766. #endif
  3767. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  3768. // <0=> Off
  3769. // <1=> Error
  3770. // <2=> Warning
  3771. // <3=> Info
  3772. // <4=> Debug
  3773. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  3774. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  3775. #endif
  3776. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3777. // <0=> Default
  3778. // <1=> Black
  3779. // <2=> Red
  3780. // <3=> Green
  3781. // <4=> Yellow
  3782. // <5=> Blue
  3783. // <6=> Magenta
  3784. // <7=> Cyan
  3785. // <8=> White
  3786. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  3787. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  3788. #endif
  3789. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3790. // <0=> Default
  3791. // <1=> Black
  3792. // <2=> Red
  3793. // <3=> Green
  3794. // <4=> Yellow
  3795. // <5=> Blue
  3796. // <6=> Magenta
  3797. // <7=> Cyan
  3798. // <8=> White
  3799. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  3800. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  3801. #endif
  3802. // </e>
  3803. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  3804. //==========================================================
  3805. #ifndef PM_LOG_ENABLED
  3806. #define PM_LOG_ENABLED 1
  3807. #endif
  3808. // <o> PM_LOG_LEVEL - Default Severity level
  3809. // <0=> Off
  3810. // <1=> Error
  3811. // <2=> Warning
  3812. // <3=> Info
  3813. // <4=> Debug
  3814. #ifndef PM_LOG_LEVEL
  3815. #define PM_LOG_LEVEL 3
  3816. #endif
  3817. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  3818. // <0=> Default
  3819. // <1=> Black
  3820. // <2=> Red
  3821. // <3=> Green
  3822. // <4=> Yellow
  3823. // <5=> Blue
  3824. // <6=> Magenta
  3825. // <7=> Cyan
  3826. // <8=> White
  3827. #ifndef PM_LOG_INFO_COLOR
  3828. #define PM_LOG_INFO_COLOR 0
  3829. #endif
  3830. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  3831. // <0=> Default
  3832. // <1=> Black
  3833. // <2=> Red
  3834. // <3=> Green
  3835. // <4=> Yellow
  3836. // <5=> Blue
  3837. // <6=> Magenta
  3838. // <7=> Cyan
  3839. // <8=> White
  3840. #ifndef PM_LOG_DEBUG_COLOR
  3841. #define PM_LOG_DEBUG_COLOR 0
  3842. #endif
  3843. // </e>
  3844. // </h>
  3845. //==========================================================
  3846. // <h> nrf_log in nRF_Serialization
  3847. //==========================================================
  3848. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3849. //==========================================================
  3850. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  3851. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  3852. #endif
  3853. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  3854. // <0=> Off
  3855. // <1=> Error
  3856. // <2=> Warning
  3857. // <3=> Info
  3858. // <4=> Debug
  3859. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  3860. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  3861. #endif
  3862. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3863. // <0=> Default
  3864. // <1=> Black
  3865. // <2=> Red
  3866. // <3=> Green
  3867. // <4=> Yellow
  3868. // <5=> Blue
  3869. // <6=> Magenta
  3870. // <7=> Cyan
  3871. // <8=> White
  3872. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  3873. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  3874. #endif
  3875. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3876. // <0=> Default
  3877. // <1=> Black
  3878. // <2=> Red
  3879. // <3=> Green
  3880. // <4=> Yellow
  3881. // <5=> Blue
  3882. // <6=> Magenta
  3883. // <7=> Cyan
  3884. // <8=> White
  3885. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  3886. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  3887. #endif
  3888. // </e>
  3889. // </h>
  3890. //==========================================================
  3891. // </h>
  3892. //==========================================================
  3893. // </e>
  3894. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  3895. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  3896. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  3897. #endif
  3898. // </h>
  3899. //==========================================================
  3900. // <h> nRF_Segger_RTT
  3901. //==========================================================
  3902. // <h> segger_rtt - SEGGER RTT
  3903. //==========================================================
  3904. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
  3905. // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
  3906. // <i> or this value is actually used. It depends on which one is bigger.
  3907. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
  3908. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 4096
  3909. #endif
  3910. // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers.
  3911. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
  3912. #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
  3913. #endif
  3914. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer.
  3915. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
  3916. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
  3917. #endif
  3918. // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Maximum number of downstream buffers.
  3919. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
  3920. #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
  3921. #endif
  3922. // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
  3923. // <i> The following modes are supported:
  3924. // <i> - SKIP - Do not block, output nothing.
  3925. // <i> - TRIM - Do not block, output as much as fits.
  3926. // <i> - BLOCK - Wait until there is space in the buffer.
  3927. // <0=> SKIP
  3928. // <1=> TRIM
  3929. // <2=> BLOCK_IF_FIFO_FULL
  3930. #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
  3931. #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
  3932. #endif
  3933. // </h>
  3934. //==========================================================
  3935. // </h>
  3936. //==========================================================
  3937. // <<< end of configuration section >>>
  3938. #endif //SDK_CONFIG_H