sdk_config.h 226 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740
  1. /**
  2. * Copyright (c) 2017 - 2018, 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_BLE
  47. //==========================================================
  48. // <q> BLE_ADVERTISING_ENABLED - ble_advertising - Advertising module
  49. #ifndef BLE_ADVERTISING_ENABLED
  50. #define BLE_ADVERTISING_ENABLED 0
  51. #endif
  52. // <q> BLE_DTM_ENABLED - ble_dtm - Module for testing RF/PHY using DTM commands
  53. #ifndef BLE_DTM_ENABLED
  54. #define BLE_DTM_ENABLED 0
  55. #endif
  56. // <q> BLE_RACP_ENABLED - ble_racp - Record Access Control Point library
  57. #ifndef BLE_RACP_ENABLED
  58. #define BLE_RACP_ENABLED 0
  59. #endif
  60. // <e> NRF_BLE_QWR_ENABLED - nrf_ble_qwr - Queued writes support module (prepare/execute write)
  61. //==========================================================
  62. #ifndef NRF_BLE_QWR_ENABLED
  63. #define NRF_BLE_QWR_ENABLED 0
  64. #endif
  65. // <o> NRF_BLE_QWR_MAX_ATTR - Maximum number of attribute handles that can be registered. This number must be adjusted according to the number of attributes for which Queued Writes will be enabled. If it is zero, the module will reject all Queued Write requests.
  66. #ifndef NRF_BLE_QWR_MAX_ATTR
  67. #define NRF_BLE_QWR_MAX_ATTR 0
  68. #endif
  69. // </e>
  70. // <e> PEER_MANAGER_ENABLED - peer_manager - Peer Manager
  71. //==========================================================
  72. #ifndef PEER_MANAGER_ENABLED
  73. #define PEER_MANAGER_ENABLED 0
  74. #endif
  75. // <o> PM_MAX_REGISTRANTS - Number of event handlers that can be registered.
  76. #ifndef PM_MAX_REGISTRANTS
  77. #define PM_MAX_REGISTRANTS 3
  78. #endif
  79. // <o> PM_FLASH_BUFFERS - Number of internal buffers for flash operations.
  80. // <i> Decrease this value to lower RAM usage.
  81. #ifndef PM_FLASH_BUFFERS
  82. #define PM_FLASH_BUFFERS 4
  83. #endif
  84. // <q> PM_CENTRAL_ENABLED - Enable/disable central-specific Peer Manager functionality.
  85. // <i> Enable/disable central-specific Peer Manager functionality.
  86. #ifndef PM_CENTRAL_ENABLED
  87. #define PM_CENTRAL_ENABLED 1
  88. #endif
  89. // <q> PM_SERVICE_CHANGED_ENABLED - Enable/disable the service changed management for GATT server in Peer Manager.
  90. // <i> If not using a GATT server, or using a server wihout a service changed characteristic,
  91. // <i> disable this to save code space.
  92. #ifndef PM_SERVICE_CHANGED_ENABLED
  93. #define PM_SERVICE_CHANGED_ENABLED 1
  94. #endif
  95. // <q> PM_PEER_RANKS_ENABLED - Enable/disable the peer rank management in Peer Manager.
  96. // <i> Set this to false to save code space if not using the peer rank API.
  97. #ifndef PM_PEER_RANKS_ENABLED
  98. #define PM_PEER_RANKS_ENABLED 1
  99. #endif
  100. // <q> PM_LESC_ENABLED - Enable/disable LESC support in Peer Manager.
  101. // <i> If set to true, you need to call nrf_ble_lesc_request_handler() in the main loop to respond to LESC-related BLE events. If LESC support is not required, set this to false to save code space.
  102. #ifndef PM_LESC_ENABLED
  103. #define PM_LESC_ENABLED 0
  104. #endif
  105. // <e> PM_RA_PROTECTION_ENABLED - Enable/disable protection against repeated pairing attempts in Peer Manager.
  106. //==========================================================
  107. #ifndef PM_RA_PROTECTION_ENABLED
  108. #define PM_RA_PROTECTION_ENABLED 0
  109. #endif
  110. // <o> PM_RA_PROTECTION_TRACKED_PEERS_NUM - Maximum number of peers whose authorization status can be tracked.
  111. #ifndef PM_RA_PROTECTION_TRACKED_PEERS_NUM
  112. #define PM_RA_PROTECTION_TRACKED_PEERS_NUM 8
  113. #endif
  114. // <o> PM_RA_PROTECTION_MIN_WAIT_INTERVAL - Minimum waiting interval (in ms) before a new pairing attempt can be initiated.
  115. #ifndef PM_RA_PROTECTION_MIN_WAIT_INTERVAL
  116. #define PM_RA_PROTECTION_MIN_WAIT_INTERVAL 4000
  117. #endif
  118. // <o> PM_RA_PROTECTION_MAX_WAIT_INTERVAL - Maximum waiting interval (in ms) before a new pairing attempt can be initiated.
  119. #ifndef PM_RA_PROTECTION_MAX_WAIT_INTERVAL
  120. #define PM_RA_PROTECTION_MAX_WAIT_INTERVAL 64000
  121. #endif
  122. // <o> PM_RA_PROTECTION_REWARD_PERIOD - Reward period (in ms).
  123. // <i> The waiting interval is gradually decreased when no new failed pairing attempts are made during reward period.
  124. #ifndef PM_RA_PROTECTION_REWARD_PERIOD
  125. #define PM_RA_PROTECTION_REWARD_PERIOD 10000
  126. #endif
  127. // </e>
  128. // <o> PM_HANDLER_SEC_DELAY_MS - Delay before starting security.
  129. // <i> This might be necessary for interoperability reasons, especially as peripheral.
  130. #ifndef PM_HANDLER_SEC_DELAY_MS
  131. #define PM_HANDLER_SEC_DELAY_MS 0
  132. #endif
  133. // </e>
  134. // </h>
  135. //==========================================================
  136. // <h> nRF_BLE_Services
  137. //==========================================================
  138. // <q> BLE_ANCS_C_ENABLED - ble_ancs_c - Apple Notification Service Client
  139. #ifndef BLE_ANCS_C_ENABLED
  140. #define BLE_ANCS_C_ENABLED 0
  141. #endif
  142. // <q> BLE_ANS_C_ENABLED - ble_ans_c - Alert Notification Service Client
  143. #ifndef BLE_ANS_C_ENABLED
  144. #define BLE_ANS_C_ENABLED 0
  145. #endif
  146. // <q> BLE_BAS_C_ENABLED - ble_bas_c - Battery Service Client
  147. #ifndef BLE_BAS_C_ENABLED
  148. #define BLE_BAS_C_ENABLED 0
  149. #endif
  150. // <e> BLE_BAS_ENABLED - ble_bas - Battery Service
  151. //==========================================================
  152. #ifndef BLE_BAS_ENABLED
  153. #define BLE_BAS_ENABLED 0
  154. #endif
  155. // <e> BLE_BAS_CONFIG_LOG_ENABLED - Enables logging in the module.
  156. //==========================================================
  157. #ifndef BLE_BAS_CONFIG_LOG_ENABLED
  158. #define BLE_BAS_CONFIG_LOG_ENABLED 0
  159. #endif
  160. // <o> BLE_BAS_CONFIG_LOG_LEVEL - Default Severity level
  161. // <0=> Off
  162. // <1=> Error
  163. // <2=> Warning
  164. // <3=> Info
  165. // <4=> Debug
  166. #ifndef BLE_BAS_CONFIG_LOG_LEVEL
  167. #define BLE_BAS_CONFIG_LOG_LEVEL 3
  168. #endif
  169. // <o> BLE_BAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  170. // <0=> Default
  171. // <1=> Black
  172. // <2=> Red
  173. // <3=> Green
  174. // <4=> Yellow
  175. // <5=> Blue
  176. // <6=> Magenta
  177. // <7=> Cyan
  178. // <8=> White
  179. #ifndef BLE_BAS_CONFIG_INFO_COLOR
  180. #define BLE_BAS_CONFIG_INFO_COLOR 0
  181. #endif
  182. // <o> BLE_BAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  183. // <0=> Default
  184. // <1=> Black
  185. // <2=> Red
  186. // <3=> Green
  187. // <4=> Yellow
  188. // <5=> Blue
  189. // <6=> Magenta
  190. // <7=> Cyan
  191. // <8=> White
  192. #ifndef BLE_BAS_CONFIG_DEBUG_COLOR
  193. #define BLE_BAS_CONFIG_DEBUG_COLOR 0
  194. #endif
  195. // </e>
  196. // </e>
  197. // <q> BLE_CSCS_ENABLED - ble_cscs - Cycling Speed and Cadence Service
  198. #ifndef BLE_CSCS_ENABLED
  199. #define BLE_CSCS_ENABLED 0
  200. #endif
  201. // <q> BLE_CTS_C_ENABLED - ble_cts_c - Current Time Service Client
  202. #ifndef BLE_CTS_C_ENABLED
  203. #define BLE_CTS_C_ENABLED 0
  204. #endif
  205. // <q> BLE_DIS_ENABLED - ble_dis - Device Information Service
  206. #ifndef BLE_DIS_ENABLED
  207. #define BLE_DIS_ENABLED 0
  208. #endif
  209. // <q> BLE_GLS_ENABLED - ble_gls - Glucose Service
  210. #ifndef BLE_GLS_ENABLED
  211. #define BLE_GLS_ENABLED 0
  212. #endif
  213. // <q> BLE_HIDS_ENABLED - ble_hids - Human Interface Device Service
  214. #ifndef BLE_HIDS_ENABLED
  215. #define BLE_HIDS_ENABLED 0
  216. #endif
  217. // <q> BLE_HRS_C_ENABLED - ble_hrs_c - Heart Rate Service Client
  218. #ifndef BLE_HRS_C_ENABLED
  219. #define BLE_HRS_C_ENABLED 0
  220. #endif
  221. // <q> BLE_HRS_ENABLED - ble_hrs - Heart Rate Service
  222. #ifndef BLE_HRS_ENABLED
  223. #define BLE_HRS_ENABLED 0
  224. #endif
  225. // <q> BLE_HTS_ENABLED - ble_hts - Health Thermometer Service
  226. #ifndef BLE_HTS_ENABLED
  227. #define BLE_HTS_ENABLED 0
  228. #endif
  229. // <q> BLE_IAS_C_ENABLED - ble_ias_c - Immediate Alert Service Client
  230. #ifndef BLE_IAS_C_ENABLED
  231. #define BLE_IAS_C_ENABLED 0
  232. #endif
  233. // <e> BLE_IAS_ENABLED - ble_ias - Immediate Alert Service
  234. //==========================================================
  235. #ifndef BLE_IAS_ENABLED
  236. #define BLE_IAS_ENABLED 0
  237. #endif
  238. // <e> BLE_IAS_CONFIG_LOG_ENABLED - Enables logging in the module.
  239. //==========================================================
  240. #ifndef BLE_IAS_CONFIG_LOG_ENABLED
  241. #define BLE_IAS_CONFIG_LOG_ENABLED 0
  242. #endif
  243. // <o> BLE_IAS_CONFIG_LOG_LEVEL - Default Severity level
  244. // <0=> Off
  245. // <1=> Error
  246. // <2=> Warning
  247. // <3=> Info
  248. // <4=> Debug
  249. #ifndef BLE_IAS_CONFIG_LOG_LEVEL
  250. #define BLE_IAS_CONFIG_LOG_LEVEL 3
  251. #endif
  252. // <o> BLE_IAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  253. // <0=> Default
  254. // <1=> Black
  255. // <2=> Red
  256. // <3=> Green
  257. // <4=> Yellow
  258. // <5=> Blue
  259. // <6=> Magenta
  260. // <7=> Cyan
  261. // <8=> White
  262. #ifndef BLE_IAS_CONFIG_INFO_COLOR
  263. #define BLE_IAS_CONFIG_INFO_COLOR 0
  264. #endif
  265. // <o> BLE_IAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  266. // <0=> Default
  267. // <1=> Black
  268. // <2=> Red
  269. // <3=> Green
  270. // <4=> Yellow
  271. // <5=> Blue
  272. // <6=> Magenta
  273. // <7=> Cyan
  274. // <8=> White
  275. #ifndef BLE_IAS_CONFIG_DEBUG_COLOR
  276. #define BLE_IAS_CONFIG_DEBUG_COLOR 0
  277. #endif
  278. // </e>
  279. // </e>
  280. // <q> BLE_LBS_C_ENABLED - ble_lbs_c - Nordic LED Button Service Client
  281. #ifndef BLE_LBS_C_ENABLED
  282. #define BLE_LBS_C_ENABLED 0
  283. #endif
  284. // <q> BLE_LBS_ENABLED - ble_lbs - LED Button Service
  285. #ifndef BLE_LBS_ENABLED
  286. #define BLE_LBS_ENABLED 0
  287. #endif
  288. // <q> BLE_LLS_ENABLED - ble_lls - Link Loss Service
  289. #ifndef BLE_LLS_ENABLED
  290. #define BLE_LLS_ENABLED 0
  291. #endif
  292. // <q> BLE_NUS_C_ENABLED - ble_nus_c - Nordic UART Central Service
  293. #ifndef BLE_NUS_C_ENABLED
  294. #define BLE_NUS_C_ENABLED 0
  295. #endif
  296. // <e> BLE_NUS_ENABLED - ble_nus - Nordic UART Service
  297. //==========================================================
  298. #ifndef BLE_NUS_ENABLED
  299. #define BLE_NUS_ENABLED 0
  300. #endif
  301. // <e> BLE_NUS_CONFIG_LOG_ENABLED - Enables logging in the module.
  302. //==========================================================
  303. #ifndef BLE_NUS_CONFIG_LOG_ENABLED
  304. #define BLE_NUS_CONFIG_LOG_ENABLED 0
  305. #endif
  306. // <o> BLE_NUS_CONFIG_LOG_LEVEL - Default Severity level
  307. // <0=> Off
  308. // <1=> Error
  309. // <2=> Warning
  310. // <3=> Info
  311. // <4=> Debug
  312. #ifndef BLE_NUS_CONFIG_LOG_LEVEL
  313. #define BLE_NUS_CONFIG_LOG_LEVEL 3
  314. #endif
  315. // <o> BLE_NUS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  316. // <0=> Default
  317. // <1=> Black
  318. // <2=> Red
  319. // <3=> Green
  320. // <4=> Yellow
  321. // <5=> Blue
  322. // <6=> Magenta
  323. // <7=> Cyan
  324. // <8=> White
  325. #ifndef BLE_NUS_CONFIG_INFO_COLOR
  326. #define BLE_NUS_CONFIG_INFO_COLOR 0
  327. #endif
  328. // <o> BLE_NUS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  329. // <0=> Default
  330. // <1=> Black
  331. // <2=> Red
  332. // <3=> Green
  333. // <4=> Yellow
  334. // <5=> Blue
  335. // <6=> Magenta
  336. // <7=> Cyan
  337. // <8=> White
  338. #ifndef BLE_NUS_CONFIG_DEBUG_COLOR
  339. #define BLE_NUS_CONFIG_DEBUG_COLOR 0
  340. #endif
  341. // </e>
  342. // </e>
  343. // <q> BLE_RSCS_C_ENABLED - ble_rscs_c - Running Speed and Cadence Client
  344. #ifndef BLE_RSCS_C_ENABLED
  345. #define BLE_RSCS_C_ENABLED 0
  346. #endif
  347. // <q> BLE_RSCS_ENABLED - ble_rscs - Running Speed and Cadence Service
  348. #ifndef BLE_RSCS_ENABLED
  349. #define BLE_RSCS_ENABLED 0
  350. #endif
  351. // <q> BLE_TPS_ENABLED - ble_tps - TX Power Service
  352. #ifndef BLE_TPS_ENABLED
  353. #define BLE_TPS_ENABLED 0
  354. #endif
  355. // </h>
  356. //==========================================================
  357. // <h> nRF_Core
  358. //==========================================================
  359. // <e> NRF_MPU_ENABLED - nrf_mpu - Module for MPU
  360. //==========================================================
  361. #ifndef NRF_MPU_ENABLED
  362. #define NRF_MPU_ENABLED 0
  363. #endif
  364. // <q> NRF_MPU_CLI_CMDS - Enable CLI commands specific to the module.
  365. #ifndef NRF_MPU_CLI_CMDS
  366. #define NRF_MPU_CLI_CMDS 0
  367. #endif
  368. // </e>
  369. // <e> NRF_STACK_GUARD_ENABLED - nrf_stack_guard - Stack guard
  370. //==========================================================
  371. #ifndef NRF_STACK_GUARD_ENABLED
  372. #define NRF_STACK_GUARD_ENABLED 0
  373. #endif
  374. // <o> NRF_STACK_GUARD_CONFIG_SIZE - Size of the stack guard.
  375. // <5=> 32 bytes
  376. // <6=> 64 bytes
  377. // <7=> 128 bytes
  378. // <8=> 256 bytes
  379. // <9=> 512 bytes
  380. // <10=> 1024 bytes
  381. // <11=> 2048 bytes
  382. // <12=> 4096 bytes
  383. #ifndef NRF_STACK_GUARD_CONFIG_SIZE
  384. #define NRF_STACK_GUARD_CONFIG_SIZE 7
  385. #endif
  386. // </e>
  387. // </h>
  388. //==========================================================
  389. // <h> nRF_Crypto
  390. //==========================================================
  391. // <e> NRF_CRYPTO_ENABLED - nrf_crypto - Cryptography library.
  392. //==========================================================
  393. #ifndef NRF_CRYPTO_ENABLED
  394. #define NRF_CRYPTO_ENABLED 1
  395. #endif
  396. // <o> NRF_CRYPTO_ALLOCATOR - Memory allocator
  397. // <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.
  398. // <0=> Default
  399. // <1=> User macros
  400. // <2=> On stack (alloca)
  401. // <3=> C dynamic memory (malloc)
  402. // <4=> SDK Memory Manager (nrf_malloc)
  403. #ifndef NRF_CRYPTO_ALLOCATOR
  404. #define NRF_CRYPTO_ALLOCATOR 0
  405. #endif
  406. // <e> NRF_CRYPTO_BACKEND_CC310_BL_ENABLED - Enable the ARM Cryptocell CC310 reduced backend.
  407. // <i> The CC310 hardware-accelerated cryptography backend with reduced functionality and footprint (only available on nRF52840).
  408. //==========================================================
  409. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ENABLED
  410. #define NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0
  411. #endif
  412. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310_BL.
  413. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED
  414. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED 0
  415. #endif
  416. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310_BL.
  417. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED
  418. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 1
  419. #endif
  420. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED - CC310_BL SHA-256 hash functionality.
  421. // <i> CC310_BL backend implementation for hardware-accelerated SHA-256.
  422. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED
  423. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED 1
  424. #endif
  425. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED - nrf_cc310_bl buffers to RAM before running hash operation
  426. // <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
  427. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED
  428. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED 0
  429. #endif
  430. // <o> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE - nrf_cc310_bl hash outputs digests in little endian
  431. // <i> Makes the nrf_cc310_bl hash functions output digests in little endian format. Only for use in nRF SDK DFU!
  432. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  433. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE 4096
  434. #endif
  435. // </e>
  436. // <e> NRF_CRYPTO_BACKEND_CC310_ENABLED - Enable the ARM Cryptocell CC310 backend.
  437. // <i> The CC310 hardware-accelerated cryptography backend (only available on nRF52840).
  438. //==========================================================
  439. #ifndef NRF_CRYPTO_BACKEND_CC310_ENABLED
  440. #define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
  441. #endif
  442. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED - Enable the AES CBC mode using CC310.
  443. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED
  444. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED 1
  445. #endif
  446. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED - Enable the AES CTR mode using CC310.
  447. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED
  448. #define NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED 1
  449. #endif
  450. // <q> NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED - Enable the AES ECB mode using CC310.
  451. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED
  452. #define NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED 1
  453. #endif
  454. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED - Enable the AES CBC_MAC mode using CC310.
  455. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED
  456. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED 1
  457. #endif
  458. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED - Enable the AES CMAC mode using CC310.
  459. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED
  460. #define NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED 1
  461. #endif
  462. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED - Enable the AES CCM mode using CC310.
  463. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED
  464. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED 1
  465. #endif
  466. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED - Enable the AES CCM* mode using CC310.
  467. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED
  468. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED 1
  469. #endif
  470. // <q> NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using CC310.
  471. #ifndef NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED
  472. #define NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED 1
  473. #endif
  474. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED - Enable the secp160r1 elliptic curve support using CC310.
  475. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED
  476. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED 1
  477. #endif
  478. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED - Enable the secp160r2 elliptic curve support using CC310.
  479. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED
  480. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED 1
  481. #endif
  482. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED - Enable the secp192r1 elliptic curve support using CC310.
  483. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED
  484. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED 1
  485. #endif
  486. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310.
  487. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED
  488. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED 1
  489. #endif
  490. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310.
  491. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED
  492. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED 1
  493. #endif
  494. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED - Enable the secp384r1 elliptic curve support using CC310.
  495. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED
  496. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED 1
  497. #endif
  498. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED - Enable the secp521r1 elliptic curve support using CC310.
  499. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED
  500. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED 1
  501. #endif
  502. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED - Enable the secp160k1 elliptic curve support using CC310.
  503. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED
  504. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED 1
  505. #endif
  506. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED - Enable the secp192k1 elliptic curve support using CC310.
  507. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED
  508. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED 1
  509. #endif
  510. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED - Enable the secp224k1 elliptic curve support using CC310.
  511. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED
  512. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED 1
  513. #endif
  514. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED - Enable the secp256k1 elliptic curve support using CC310.
  515. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED
  516. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED 1
  517. #endif
  518. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310.
  519. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED
  520. #define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1
  521. #endif
  522. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310.
  523. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED
  524. #define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1
  525. #endif
  526. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED - CC310 SHA-256 hash functionality.
  527. // <i> CC310 backend implementation for hardware-accelerated SHA-256.
  528. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED
  529. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED 1
  530. #endif
  531. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED - CC310 SHA-512 hash functionality
  532. // <i> CC310 backend implementation for SHA-512 (in software).
  533. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED
  534. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED 1
  535. #endif
  536. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED - CC310 HMAC using SHA-256
  537. // <i> CC310 backend implementation for HMAC using hardware-accelerated SHA-256.
  538. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED
  539. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED 1
  540. #endif
  541. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED - CC310 HMAC using SHA-512
  542. // <i> CC310 backend implementation for HMAC using SHA-512 (in software).
  543. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED
  544. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED 1
  545. #endif
  546. // <q> NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED - Enable RNG support using CC310.
  547. #ifndef NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED
  548. #define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 1
  549. #endif
  550. // </e>
  551. // <e> NRF_CRYPTO_BACKEND_CIFRA_ENABLED - Enable the Cifra backend.
  552. //==========================================================
  553. #ifndef NRF_CRYPTO_BACKEND_CIFRA_ENABLED
  554. #define NRF_CRYPTO_BACKEND_CIFRA_ENABLED 0
  555. #endif
  556. // <q> NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED - Enable the AES EAX mode using Cifra.
  557. #ifndef NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED
  558. #define NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED 1
  559. #endif
  560. // </e>
  561. // <e> NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED - Enable the mbed TLS backend.
  562. //==========================================================
  563. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED
  564. #define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 0
  565. #endif
  566. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED - Enable the AES CBC mode mbed TLS.
  567. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED
  568. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED 1
  569. #endif
  570. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED - Enable the AES CTR mode using mbed TLS.
  571. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED
  572. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED 1
  573. #endif
  574. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED - Enable the AES CFB mode using mbed TLS.
  575. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED
  576. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED 1
  577. #endif
  578. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED - Enable the AES ECB mode using mbed TLS.
  579. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED
  580. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED 1
  581. #endif
  582. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED - Enable the AES CBC MAC mode using mbed TLS.
  583. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED
  584. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED 1
  585. #endif
  586. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED - Enable the AES CMAC mode using mbed TLS.
  587. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED
  588. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED 1
  589. #endif
  590. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED - Enable the AES CCM mode using mbed TLS.
  591. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED
  592. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED 1
  593. #endif
  594. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED - Enable the AES GCM mode using mbed TLS.
  595. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED
  596. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED 1
  597. #endif
  598. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  599. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using MBEDTLS
  600. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED
  601. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED 1
  602. #endif
  603. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  604. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using MBEDTLS
  605. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED
  606. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED 1
  607. #endif
  608. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  609. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using MBEDTLS
  610. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED
  611. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
  612. #endif
  613. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED - Enable secp384r1 (NIST 384-bit) curve
  614. // <i> Enable this setting if you need secp384r1 (NIST 384-bit) support using MBEDTLS
  615. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED
  616. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED 1
  617. #endif
  618. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED - Enable secp521r1 (NIST 521-bit) curve
  619. // <i> Enable this setting if you need secp521r1 (NIST 521-bit) support using MBEDTLS
  620. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED
  621. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED 1
  622. #endif
  623. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED - Enable secp192k1 (Koblitz 192-bit) curve
  624. // <i> Enable this setting if you need secp192k1 (Koblitz 192-bit) support using MBEDTLS
  625. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED
  626. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED 1
  627. #endif
  628. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED - Enable secp224k1 (Koblitz 224-bit) curve
  629. // <i> Enable this setting if you need secp224k1 (Koblitz 224-bit) support using MBEDTLS
  630. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED
  631. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED 1
  632. #endif
  633. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  634. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using MBEDTLS
  635. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED
  636. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED 1
  637. #endif
  638. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED - Enable bp256r1 (Brainpool 256-bit) curve
  639. // <i> Enable this setting if you need bp256r1 (Brainpool 256-bit) support using MBEDTLS
  640. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED
  641. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED 1
  642. #endif
  643. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED - Enable bp384r1 (Brainpool 384-bit) curve
  644. // <i> Enable this setting if you need bp384r1 (Brainpool 384-bit) support using MBEDTLS
  645. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED
  646. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED 1
  647. #endif
  648. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED - Enable bp512r1 (Brainpool 512-bit) curve
  649. // <i> Enable this setting if you need bp512r1 (Brainpool 512-bit) support using MBEDTLS
  650. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED
  651. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED 1
  652. #endif
  653. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED - Enable Curve25519 curve
  654. // <i> Enable this setting if you need Curve25519 support using MBEDTLS
  655. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED
  656. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED 1
  657. #endif
  658. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED - Enable mbed TLS SHA-256 hash functionality.
  659. // <i> mbed TLS backend implementation for SHA-256.
  660. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED
  661. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
  662. #endif
  663. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED - Enable mbed TLS SHA-512 hash functionality.
  664. // <i> mbed TLS backend implementation for SHA-512.
  665. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED
  666. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED 1
  667. #endif
  668. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED - Enable mbed TLS HMAC using SHA-256.
  669. // <i> mbed TLS backend implementation for HMAC using SHA-256.
  670. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED
  671. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED 1
  672. #endif
  673. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED - Enable mbed TLS HMAC using SHA-512.
  674. // <i> mbed TLS backend implementation for HMAC using SHA-512.
  675. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED
  676. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED 1
  677. #endif
  678. // </e>
  679. // <e> NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED - Enable the micro-ecc backend.
  680. //==========================================================
  681. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED
  682. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED 0
  683. #endif
  684. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  685. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using micro-ecc
  686. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED
  687. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED 1
  688. #endif
  689. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  690. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using micro-ecc
  691. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED
  692. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED 1
  693. #endif
  694. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  695. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using micro-ecc
  696. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED
  697. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED 1
  698. #endif
  699. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  700. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using micro-ecc
  701. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED
  702. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED 1
  703. #endif
  704. // </e>
  705. // <e> NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED - Enable the nRF HW RNG backend.
  706. // <i> The nRF HW backend provide access to RNG peripheral in nRF5x devices.
  707. //==========================================================
  708. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED
  709. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 0
  710. #endif
  711. // <q> NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED - Enable mbed TLS CTR-DRBG algorithm.
  712. // <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.
  713. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED
  714. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
  715. #endif
  716. // </e>
  717. // <e> NRF_CRYPTO_BACKEND_NRF_SW_ENABLED - Enable the legacy nRFx sw for crypto.
  718. // <i> The nRF SW cryptography backend (only used in bootloader context).
  719. //==========================================================
  720. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_ENABLED
  721. #define NRF_CRYPTO_BACKEND_NRF_SW_ENABLED 0
  722. #endif
  723. // <q> NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED - nRF SW hash backend support for SHA-256
  724. // <i> The nRF SW backend provide access to nRF SDK legacy hash implementation of SHA-256.
  725. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED
  726. #define NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED 1
  727. #endif
  728. // </e>
  729. // <e> NRF_CRYPTO_BACKEND_OBERON_ENABLED - Enable the Oberon backend
  730. // <i> The Oberon backend
  731. //==========================================================
  732. #ifndef NRF_CRYPTO_BACKEND_OBERON_ENABLED
  733. #define NRF_CRYPTO_BACKEND_OBERON_ENABLED 0
  734. #endif
  735. // <q> NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using Oberon.
  736. #ifndef NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED
  737. #define NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED 1
  738. #endif
  739. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED - Enable secp256r1 curve
  740. // <i> Enable this setting if you need secp256r1 curve support using Oberon library
  741. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED
  742. #define NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED 1
  743. #endif
  744. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED - Enable Curve25519 ECDH
  745. // <i> Enable this setting if you need Curve25519 ECDH support using Oberon library
  746. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED
  747. #define NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED 1
  748. #endif
  749. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED - Enable Ed25519 signature scheme
  750. // <i> Enable this setting if you need Ed25519 support using Oberon library
  751. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED
  752. #define NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED 1
  753. #endif
  754. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED - Oberon SHA-256 hash functionality
  755. // <i> Oberon backend implementation for SHA-256.
  756. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED
  757. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED 1
  758. #endif
  759. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED - Oberon SHA-512 hash functionality
  760. // <i> Oberon backend implementation for SHA-512.
  761. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED
  762. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED 1
  763. #endif
  764. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED - Oberon HMAC using SHA-256
  765. // <i> Oberon backend implementation for HMAC using SHA-256.
  766. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED
  767. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED 1
  768. #endif
  769. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED - Oberon HMAC using SHA-512
  770. // <i> Oberon backend implementation for HMAC using SHA-512.
  771. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED
  772. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED 1
  773. #endif
  774. // </e>
  775. // <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data
  776. // <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0.
  777. #ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED
  778. #define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0
  779. #endif
  780. // </e>
  781. // </h>
  782. //==========================================================
  783. // <h> nRF_DFU
  784. //==========================================================
  785. // <h> ble_dfu - Device Firmware Update
  786. //==========================================================
  787. // <q> BLE_DFU_ENABLED - Enable DFU Service.
  788. #ifndef BLE_DFU_ENABLED
  789. #define BLE_DFU_ENABLED 0
  790. #endif
  791. // <q> NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS - Buttonless DFU supports bonds.
  792. #ifndef NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS
  793. #define NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS 0
  794. #endif
  795. // </h>
  796. //==========================================================
  797. // </h>
  798. //==========================================================
  799. // <h> nRF_Drivers
  800. //==========================================================
  801. // <e> COMP_ENABLED - nrf_drv_comp - COMP peripheral driver - legacy layer
  802. //==========================================================
  803. #ifndef COMP_ENABLED
  804. #define COMP_ENABLED 0
  805. #endif
  806. // <o> COMP_CONFIG_REF - Reference voltage
  807. // <0=> Internal 1.2V
  808. // <1=> Internal 1.8V
  809. // <2=> Internal 2.4V
  810. // <4=> VDD
  811. // <7=> ARef
  812. #ifndef COMP_CONFIG_REF
  813. #define COMP_CONFIG_REF 1
  814. #endif
  815. // <o> COMP_CONFIG_MAIN_MODE - Main mode
  816. // <0=> Single ended
  817. // <1=> Differential
  818. #ifndef COMP_CONFIG_MAIN_MODE
  819. #define COMP_CONFIG_MAIN_MODE 0
  820. #endif
  821. // <o> COMP_CONFIG_SPEED_MODE - Speed mode
  822. // <0=> Low power
  823. // <1=> Normal
  824. // <2=> High speed
  825. #ifndef COMP_CONFIG_SPEED_MODE
  826. #define COMP_CONFIG_SPEED_MODE 2
  827. #endif
  828. // <o> COMP_CONFIG_HYST - Hystheresis
  829. // <0=> No
  830. // <1=> 50mV
  831. #ifndef COMP_CONFIG_HYST
  832. #define COMP_CONFIG_HYST 0
  833. #endif
  834. // <o> COMP_CONFIG_ISOURCE - Current Source
  835. // <0=> Off
  836. // <1=> 2.5 uA
  837. // <2=> 5 uA
  838. // <3=> 10 uA
  839. #ifndef COMP_CONFIG_ISOURCE
  840. #define COMP_CONFIG_ISOURCE 0
  841. #endif
  842. // <o> COMP_CONFIG_INPUT - Analog input
  843. // <0=> 0
  844. // <1=> 1
  845. // <2=> 2
  846. // <3=> 3
  847. // <4=> 4
  848. // <5=> 5
  849. // <6=> 6
  850. // <7=> 7
  851. #ifndef COMP_CONFIG_INPUT
  852. #define COMP_CONFIG_INPUT 0
  853. #endif
  854. // <o> COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  855. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  856. // <0=> 0 (highest)
  857. // <1=> 1
  858. // <2=> 2
  859. // <3=> 3
  860. // <4=> 4
  861. // <5=> 5
  862. // <6=> 6
  863. // <7=> 7
  864. #ifndef COMP_CONFIG_IRQ_PRIORITY
  865. #define COMP_CONFIG_IRQ_PRIORITY 6
  866. #endif
  867. // </e>
  868. // <q> EGU_ENABLED - nrf_drv_swi - SWI(EGU) peripheral driver - legacy layer
  869. #ifndef EGU_ENABLED
  870. #define EGU_ENABLED 0
  871. #endif
  872. // <e> GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver - legacy layer
  873. //==========================================================
  874. #ifndef GPIOTE_ENABLED
  875. #define GPIOTE_ENABLED 0
  876. #endif
  877. // <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
  878. #ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
  879. #define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
  880. #endif
  881. // <o> GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
  882. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  883. // <0=> 0 (highest)
  884. // <1=> 1
  885. // <2=> 2
  886. // <3=> 3
  887. // <4=> 4
  888. // <5=> 5
  889. // <6=> 6
  890. // <7=> 7
  891. #ifndef GPIOTE_CONFIG_IRQ_PRIORITY
  892. #define GPIOTE_CONFIG_IRQ_PRIORITY 6
  893. #endif
  894. // </e>
  895. // <e> I2S_ENABLED - nrf_drv_i2s - I2S peripheral driver - legacy layer
  896. //==========================================================
  897. #ifndef I2S_ENABLED
  898. #define I2S_ENABLED 0
  899. #endif
  900. // <o> I2S_CONFIG_SCK_PIN - SCK pin <0-31>
  901. #ifndef I2S_CONFIG_SCK_PIN
  902. #define I2S_CONFIG_SCK_PIN 31
  903. #endif
  904. // <o> I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
  905. #ifndef I2S_CONFIG_LRCK_PIN
  906. #define I2S_CONFIG_LRCK_PIN 30
  907. #endif
  908. // <o> I2S_CONFIG_MCK_PIN - MCK pin
  909. #ifndef I2S_CONFIG_MCK_PIN
  910. #define I2S_CONFIG_MCK_PIN 255
  911. #endif
  912. // <o> I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
  913. #ifndef I2S_CONFIG_SDOUT_PIN
  914. #define I2S_CONFIG_SDOUT_PIN 29
  915. #endif
  916. // <o> I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
  917. #ifndef I2S_CONFIG_SDIN_PIN
  918. #define I2S_CONFIG_SDIN_PIN 28
  919. #endif
  920. // <o> I2S_CONFIG_MASTER - Mode
  921. // <0=> Master
  922. // <1=> Slave
  923. #ifndef I2S_CONFIG_MASTER
  924. #define I2S_CONFIG_MASTER 0
  925. #endif
  926. // <o> I2S_CONFIG_FORMAT - Format
  927. // <0=> I2S
  928. // <1=> Aligned
  929. #ifndef I2S_CONFIG_FORMAT
  930. #define I2S_CONFIG_FORMAT 0
  931. #endif
  932. // <o> I2S_CONFIG_ALIGN - Alignment
  933. // <0=> Left
  934. // <1=> Right
  935. #ifndef I2S_CONFIG_ALIGN
  936. #define I2S_CONFIG_ALIGN 0
  937. #endif
  938. // <o> I2S_CONFIG_SWIDTH - Sample width (bits)
  939. // <0=> 8
  940. // <1=> 16
  941. // <2=> 24
  942. #ifndef I2S_CONFIG_SWIDTH
  943. #define I2S_CONFIG_SWIDTH 1
  944. #endif
  945. // <o> I2S_CONFIG_CHANNELS - Channels
  946. // <0=> Stereo
  947. // <1=> Left
  948. // <2=> Right
  949. #ifndef I2S_CONFIG_CHANNELS
  950. #define I2S_CONFIG_CHANNELS 1
  951. #endif
  952. // <o> I2S_CONFIG_MCK_SETUP - MCK behavior
  953. // <0=> Disabled
  954. // <2147483648=> 32MHz/2
  955. // <1342177280=> 32MHz/3
  956. // <1073741824=> 32MHz/4
  957. // <805306368=> 32MHz/5
  958. // <671088640=> 32MHz/6
  959. // <536870912=> 32MHz/8
  960. // <402653184=> 32MHz/10
  961. // <369098752=> 32MHz/11
  962. // <285212672=> 32MHz/15
  963. // <268435456=> 32MHz/16
  964. // <201326592=> 32MHz/21
  965. // <184549376=> 32MHz/23
  966. // <142606336=> 32MHz/30
  967. // <138412032=> 32MHz/31
  968. // <134217728=> 32MHz/32
  969. // <100663296=> 32MHz/42
  970. // <68157440=> 32MHz/63
  971. // <34340864=> 32MHz/125
  972. #ifndef I2S_CONFIG_MCK_SETUP
  973. #define I2S_CONFIG_MCK_SETUP 536870912
  974. #endif
  975. // <o> I2S_CONFIG_RATIO - MCK/LRCK ratio
  976. // <0=> 32x
  977. // <1=> 48x
  978. // <2=> 64x
  979. // <3=> 96x
  980. // <4=> 128x
  981. // <5=> 192x
  982. // <6=> 256x
  983. // <7=> 384x
  984. // <8=> 512x
  985. #ifndef I2S_CONFIG_RATIO
  986. #define I2S_CONFIG_RATIO 2000
  987. #endif
  988. // <o> I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
  989. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  990. // <0=> 0 (highest)
  991. // <1=> 1
  992. // <2=> 2
  993. // <3=> 3
  994. // <4=> 4
  995. // <5=> 5
  996. // <6=> 6
  997. // <7=> 7
  998. #ifndef I2S_CONFIG_IRQ_PRIORITY
  999. #define I2S_CONFIG_IRQ_PRIORITY 6
  1000. #endif
  1001. // <e> I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
  1002. //==========================================================
  1003. #ifndef I2S_CONFIG_LOG_ENABLED
  1004. #define I2S_CONFIG_LOG_ENABLED 0
  1005. #endif
  1006. // <o> I2S_CONFIG_LOG_LEVEL - Default Severity level
  1007. // <0=> Off
  1008. // <1=> Error
  1009. // <2=> Warning
  1010. // <3=> Info
  1011. // <4=> Debug
  1012. #ifndef I2S_CONFIG_LOG_LEVEL
  1013. #define I2S_CONFIG_LOG_LEVEL 3
  1014. #endif
  1015. // <o> I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1016. // <0=> Default
  1017. // <1=> Black
  1018. // <2=> Red
  1019. // <3=> Green
  1020. // <4=> Yellow
  1021. // <5=> Blue
  1022. // <6=> Magenta
  1023. // <7=> Cyan
  1024. // <8=> White
  1025. #ifndef I2S_CONFIG_INFO_COLOR
  1026. #define I2S_CONFIG_INFO_COLOR 0
  1027. #endif
  1028. // <o> I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1029. // <0=> Default
  1030. // <1=> Black
  1031. // <2=> Red
  1032. // <3=> Green
  1033. // <4=> Yellow
  1034. // <5=> Blue
  1035. // <6=> Magenta
  1036. // <7=> Cyan
  1037. // <8=> White
  1038. #ifndef I2S_CONFIG_DEBUG_COLOR
  1039. #define I2S_CONFIG_DEBUG_COLOR 0
  1040. #endif
  1041. // </e>
  1042. // </e>
  1043. // <e> LPCOMP_ENABLED - nrf_drv_lpcomp - LPCOMP peripheral driver - legacy layer
  1044. //==========================================================
  1045. #ifndef LPCOMP_ENABLED
  1046. #define LPCOMP_ENABLED 0
  1047. #endif
  1048. // <o> LPCOMP_CONFIG_REFERENCE - Reference voltage
  1049. // <0=> Supply 1/8
  1050. // <1=> Supply 2/8
  1051. // <2=> Supply 3/8
  1052. // <3=> Supply 4/8
  1053. // <4=> Supply 5/8
  1054. // <5=> Supply 6/8
  1055. // <6=> Supply 7/8
  1056. // <8=> Supply 1/16 (nRF52)
  1057. // <9=> Supply 3/16 (nRF52)
  1058. // <10=> Supply 5/16 (nRF52)
  1059. // <11=> Supply 7/16 (nRF52)
  1060. // <12=> Supply 9/16 (nRF52)
  1061. // <13=> Supply 11/16 (nRF52)
  1062. // <14=> Supply 13/16 (nRF52)
  1063. // <15=> Supply 15/16 (nRF52)
  1064. // <7=> External Ref 0
  1065. // <65543=> External Ref 1
  1066. #ifndef LPCOMP_CONFIG_REFERENCE
  1067. #define LPCOMP_CONFIG_REFERENCE 3
  1068. #endif
  1069. // <o> LPCOMP_CONFIG_DETECTION - Detection
  1070. // <0=> Crossing
  1071. // <1=> Up
  1072. // <2=> Down
  1073. #ifndef LPCOMP_CONFIG_DETECTION
  1074. #define LPCOMP_CONFIG_DETECTION 2
  1075. #endif
  1076. // <o> LPCOMP_CONFIG_INPUT - Analog input
  1077. // <0=> 0
  1078. // <1=> 1
  1079. // <2=> 2
  1080. // <3=> 3
  1081. // <4=> 4
  1082. // <5=> 5
  1083. // <6=> 6
  1084. // <7=> 7
  1085. #ifndef LPCOMP_CONFIG_INPUT
  1086. #define LPCOMP_CONFIG_INPUT 0
  1087. #endif
  1088. // <q> LPCOMP_CONFIG_HYST - Hysteresis
  1089. #ifndef LPCOMP_CONFIG_HYST
  1090. #define LPCOMP_CONFIG_HYST 0
  1091. #endif
  1092. // <o> LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  1093. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  1094. // <0=> 0 (highest)
  1095. // <1=> 1
  1096. // <2=> 2
  1097. // <3=> 3
  1098. // <4=> 4
  1099. // <5=> 5
  1100. // <6=> 6
  1101. // <7=> 7
  1102. #ifndef LPCOMP_CONFIG_IRQ_PRIORITY
  1103. #define LPCOMP_CONFIG_IRQ_PRIORITY 6
  1104. #endif
  1105. // </e>
  1106. // <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
  1107. //==========================================================
  1108. #ifndef NRFX_CLOCK_ENABLED
  1109. #define NRFX_CLOCK_ENABLED 0
  1110. #endif
  1111. // <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
  1112. // <0=> RC
  1113. // <1=> XTAL
  1114. // <2=> Synth
  1115. // <131073=> External Low Swing
  1116. // <196609=> External Full Swing
  1117. #ifndef NRFX_CLOCK_CONFIG_LF_SRC
  1118. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  1119. #endif
  1120. // <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
  1121. // <0=> 0 (highest)
  1122. // <1=> 1
  1123. // <2=> 2
  1124. // <3=> 3
  1125. // <4=> 4
  1126. // <5=> 5
  1127. // <6=> 6
  1128. // <7=> 7
  1129. #ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
  1130. #define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 6
  1131. #endif
  1132. // <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1133. //==========================================================
  1134. #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
  1135. #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
  1136. #endif
  1137. // <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  1138. // <0=> Off
  1139. // <1=> Error
  1140. // <2=> Warning
  1141. // <3=> Info
  1142. // <4=> Debug
  1143. #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
  1144. #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
  1145. #endif
  1146. // <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1147. // <0=> Default
  1148. // <1=> Black
  1149. // <2=> Red
  1150. // <3=> Green
  1151. // <4=> Yellow
  1152. // <5=> Blue
  1153. // <6=> Magenta
  1154. // <7=> Cyan
  1155. // <8=> White
  1156. #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
  1157. #define NRFX_CLOCK_CONFIG_INFO_COLOR 0
  1158. #endif
  1159. // <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1160. // <0=> Default
  1161. // <1=> Black
  1162. // <2=> Red
  1163. // <3=> Green
  1164. // <4=> Yellow
  1165. // <5=> Blue
  1166. // <6=> Magenta
  1167. // <7=> Cyan
  1168. // <8=> White
  1169. #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
  1170. #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
  1171. #endif
  1172. // </e>
  1173. // </e>
  1174. // <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
  1175. //==========================================================
  1176. #ifndef NRFX_COMP_ENABLED
  1177. #define NRFX_COMP_ENABLED 0
  1178. #endif
  1179. // <o> NRFX_COMP_CONFIG_REF - Reference voltage
  1180. // <0=> Internal 1.2V
  1181. // <1=> Internal 1.8V
  1182. // <2=> Internal 2.4V
  1183. // <4=> VDD
  1184. // <7=> ARef
  1185. #ifndef NRFX_COMP_CONFIG_REF
  1186. #define NRFX_COMP_CONFIG_REF 1
  1187. #endif
  1188. // <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
  1189. // <0=> Single ended
  1190. // <1=> Differential
  1191. #ifndef NRFX_COMP_CONFIG_MAIN_MODE
  1192. #define NRFX_COMP_CONFIG_MAIN_MODE 0
  1193. #endif
  1194. // <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
  1195. // <0=> Low power
  1196. // <1=> Normal
  1197. // <2=> High speed
  1198. #ifndef NRFX_COMP_CONFIG_SPEED_MODE
  1199. #define NRFX_COMP_CONFIG_SPEED_MODE 2
  1200. #endif
  1201. // <o> NRFX_COMP_CONFIG_HYST - Hystheresis
  1202. // <0=> No
  1203. // <1=> 50mV
  1204. #ifndef NRFX_COMP_CONFIG_HYST
  1205. #define NRFX_COMP_CONFIG_HYST 0
  1206. #endif
  1207. // <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
  1208. // <0=> Off
  1209. // <1=> 2.5 uA
  1210. // <2=> 5 uA
  1211. // <3=> 10 uA
  1212. #ifndef NRFX_COMP_CONFIG_ISOURCE
  1213. #define NRFX_COMP_CONFIG_ISOURCE 0
  1214. #endif
  1215. // <o> NRFX_COMP_CONFIG_INPUT - Analog input
  1216. // <0=> 0
  1217. // <1=> 1
  1218. // <2=> 2
  1219. // <3=> 3
  1220. // <4=> 4
  1221. // <5=> 5
  1222. // <6=> 6
  1223. // <7=> 7
  1224. #ifndef NRFX_COMP_CONFIG_INPUT
  1225. #define NRFX_COMP_CONFIG_INPUT 0
  1226. #endif
  1227. // <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  1228. // <0=> 0 (highest)
  1229. // <1=> 1
  1230. // <2=> 2
  1231. // <3=> 3
  1232. // <4=> 4
  1233. // <5=> 5
  1234. // <6=> 6
  1235. // <7=> 7
  1236. #ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
  1237. #define NRFX_COMP_CONFIG_IRQ_PRIORITY 6
  1238. #endif
  1239. // <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1240. //==========================================================
  1241. #ifndef NRFX_COMP_CONFIG_LOG_ENABLED
  1242. #define NRFX_COMP_CONFIG_LOG_ENABLED 0
  1243. #endif
  1244. // <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
  1245. // <0=> Off
  1246. // <1=> Error
  1247. // <2=> Warning
  1248. // <3=> Info
  1249. // <4=> Debug
  1250. #ifndef NRFX_COMP_CONFIG_LOG_LEVEL
  1251. #define NRFX_COMP_CONFIG_LOG_LEVEL 3
  1252. #endif
  1253. // <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1254. // <0=> Default
  1255. // <1=> Black
  1256. // <2=> Red
  1257. // <3=> Green
  1258. // <4=> Yellow
  1259. // <5=> Blue
  1260. // <6=> Magenta
  1261. // <7=> Cyan
  1262. // <8=> White
  1263. #ifndef NRFX_COMP_CONFIG_INFO_COLOR
  1264. #define NRFX_COMP_CONFIG_INFO_COLOR 0
  1265. #endif
  1266. // <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1267. // <0=> Default
  1268. // <1=> Black
  1269. // <2=> Red
  1270. // <3=> Green
  1271. // <4=> Yellow
  1272. // <5=> Blue
  1273. // <6=> Magenta
  1274. // <7=> Cyan
  1275. // <8=> White
  1276. #ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
  1277. #define NRFX_COMP_CONFIG_DEBUG_COLOR 0
  1278. #endif
  1279. // </e>
  1280. // </e>
  1281. // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
  1282. //==========================================================
  1283. #ifndef NRFX_GPIOTE_ENABLED
  1284. #define NRFX_GPIOTE_ENABLED 0
  1285. #endif
  1286. // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
  1287. #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
  1288. #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
  1289. #endif
  1290. // <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
  1291. // <0=> 0 (highest)
  1292. // <1=> 1
  1293. // <2=> 2
  1294. // <3=> 3
  1295. // <4=> 4
  1296. // <5=> 5
  1297. // <6=> 6
  1298. // <7=> 7
  1299. #ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
  1300. #define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 6
  1301. #endif
  1302. // <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1303. //==========================================================
  1304. #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
  1305. #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
  1306. #endif
  1307. // <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  1308. // <0=> Off
  1309. // <1=> Error
  1310. // <2=> Warning
  1311. // <3=> Info
  1312. // <4=> Debug
  1313. #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
  1314. #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
  1315. #endif
  1316. // <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1317. // <0=> Default
  1318. // <1=> Black
  1319. // <2=> Red
  1320. // <3=> Green
  1321. // <4=> Yellow
  1322. // <5=> Blue
  1323. // <6=> Magenta
  1324. // <7=> Cyan
  1325. // <8=> White
  1326. #ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
  1327. #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
  1328. #endif
  1329. // <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1330. // <0=> Default
  1331. // <1=> Black
  1332. // <2=> Red
  1333. // <3=> Green
  1334. // <4=> Yellow
  1335. // <5=> Blue
  1336. // <6=> Magenta
  1337. // <7=> Cyan
  1338. // <8=> White
  1339. #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
  1340. #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
  1341. #endif
  1342. // </e>
  1343. // </e>
  1344. // <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
  1345. //==========================================================
  1346. #ifndef NRFX_PDM_ENABLED
  1347. #define NRFX_PDM_ENABLED 0
  1348. #endif
  1349. // <o> NRFX_PDM_CONFIG_MODE - Mode
  1350. // <0=> Stereo
  1351. // <1=> Mono
  1352. #ifndef NRFX_PDM_CONFIG_MODE
  1353. #define NRFX_PDM_CONFIG_MODE 1
  1354. #endif
  1355. // <o> NRFX_PDM_CONFIG_EDGE - Edge
  1356. // <0=> Left falling
  1357. // <1=> Left rising
  1358. #ifndef NRFX_PDM_CONFIG_EDGE
  1359. #define NRFX_PDM_CONFIG_EDGE 0
  1360. #endif
  1361. // <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
  1362. // <134217728=> 1000k
  1363. // <138412032=> 1032k (default)
  1364. // <142606336=> 1067k
  1365. #ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
  1366. #define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
  1367. #endif
  1368. // <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
  1369. // <0=> 0 (highest)
  1370. // <1=> 1
  1371. // <2=> 2
  1372. // <3=> 3
  1373. // <4=> 4
  1374. // <5=> 5
  1375. // <6=> 6
  1376. // <7=> 7
  1377. #ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
  1378. #define NRFX_PDM_CONFIG_IRQ_PRIORITY 6
  1379. #endif
  1380. // <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1381. //==========================================================
  1382. #ifndef NRFX_PDM_CONFIG_LOG_ENABLED
  1383. #define NRFX_PDM_CONFIG_LOG_ENABLED 0
  1384. #endif
  1385. // <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
  1386. // <0=> Off
  1387. // <1=> Error
  1388. // <2=> Warning
  1389. // <3=> Info
  1390. // <4=> Debug
  1391. #ifndef NRFX_PDM_CONFIG_LOG_LEVEL
  1392. #define NRFX_PDM_CONFIG_LOG_LEVEL 3
  1393. #endif
  1394. // <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1395. // <0=> Default
  1396. // <1=> Black
  1397. // <2=> Red
  1398. // <3=> Green
  1399. // <4=> Yellow
  1400. // <5=> Blue
  1401. // <6=> Magenta
  1402. // <7=> Cyan
  1403. // <8=> White
  1404. #ifndef NRFX_PDM_CONFIG_INFO_COLOR
  1405. #define NRFX_PDM_CONFIG_INFO_COLOR 0
  1406. #endif
  1407. // <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1408. // <0=> Default
  1409. // <1=> Black
  1410. // <2=> Red
  1411. // <3=> Green
  1412. // <4=> Yellow
  1413. // <5=> Blue
  1414. // <6=> Magenta
  1415. // <7=> Cyan
  1416. // <8=> White
  1417. #ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
  1418. #define NRFX_PDM_CONFIG_DEBUG_COLOR 0
  1419. #endif
  1420. // </e>
  1421. // </e>
  1422. // <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
  1423. //==========================================================
  1424. #ifndef NRFX_POWER_ENABLED
  1425. #define NRFX_POWER_ENABLED 0
  1426. #endif
  1427. // <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
  1428. // <0=> 0 (highest)
  1429. // <1=> 1
  1430. // <2=> 2
  1431. // <3=> 3
  1432. // <4=> 4
  1433. // <5=> 5
  1434. // <6=> 6
  1435. // <7=> 7
  1436. #ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
  1437. #define NRFX_POWER_CONFIG_IRQ_PRIORITY 6
  1438. #endif
  1439. // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
  1440. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  1441. #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
  1442. #define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
  1443. #endif
  1444. // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
  1445. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  1446. #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
  1447. #define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
  1448. #endif
  1449. // </e>
  1450. // <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
  1451. //==========================================================
  1452. #ifndef NRFX_PPI_ENABLED
  1453. #define NRFX_PPI_ENABLED 0
  1454. #endif
  1455. // <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1456. //==========================================================
  1457. #ifndef NRFX_PPI_CONFIG_LOG_ENABLED
  1458. #define NRFX_PPI_CONFIG_LOG_ENABLED 0
  1459. #endif
  1460. // <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
  1461. // <0=> Off
  1462. // <1=> Error
  1463. // <2=> Warning
  1464. // <3=> Info
  1465. // <4=> Debug
  1466. #ifndef NRFX_PPI_CONFIG_LOG_LEVEL
  1467. #define NRFX_PPI_CONFIG_LOG_LEVEL 3
  1468. #endif
  1469. // <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1470. // <0=> Default
  1471. // <1=> Black
  1472. // <2=> Red
  1473. // <3=> Green
  1474. // <4=> Yellow
  1475. // <5=> Blue
  1476. // <6=> Magenta
  1477. // <7=> Cyan
  1478. // <8=> White
  1479. #ifndef NRFX_PPI_CONFIG_INFO_COLOR
  1480. #define NRFX_PPI_CONFIG_INFO_COLOR 0
  1481. #endif
  1482. // <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1483. // <0=> Default
  1484. // <1=> Black
  1485. // <2=> Red
  1486. // <3=> Green
  1487. // <4=> Yellow
  1488. // <5=> Blue
  1489. // <6=> Magenta
  1490. // <7=> Cyan
  1491. // <8=> White
  1492. #ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
  1493. #define NRFX_PPI_CONFIG_DEBUG_COLOR 0
  1494. #endif
  1495. // </e>
  1496. // </e>
  1497. // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
  1498. //==========================================================
  1499. #ifndef NRFX_PWM_ENABLED
  1500. #define NRFX_PWM_ENABLED 0
  1501. #endif
  1502. // <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
  1503. #ifndef NRFX_PWM0_ENABLED
  1504. #define NRFX_PWM0_ENABLED 0
  1505. #endif
  1506. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
  1507. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
  1508. #define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
  1509. #endif
  1510. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
  1511. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
  1512. #define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
  1513. #endif
  1514. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
  1515. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
  1516. #define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
  1517. #endif
  1518. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
  1519. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
  1520. #define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
  1521. #endif
  1522. // <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
  1523. // <0=> 16 MHz
  1524. // <1=> 8 MHz
  1525. // <2=> 4 MHz
  1526. // <3=> 2 MHz
  1527. // <4=> 1 MHz
  1528. // <5=> 500 kHz
  1529. // <6=> 250 kHz
  1530. // <7=> 125 kHz
  1531. #ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
  1532. #define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
  1533. #endif
  1534. // <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
  1535. // <0=> Up
  1536. // <1=> Up and Down
  1537. #ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
  1538. #define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
  1539. #endif
  1540. // <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
  1541. #ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
  1542. #define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
  1543. #endif
  1544. // <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
  1545. // <0=> Common
  1546. // <1=> Grouped
  1547. // <2=> Individual
  1548. // <3=> Waveform
  1549. #ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
  1550. #define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
  1551. #endif
  1552. // <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
  1553. // <0=> Auto
  1554. // <1=> Triggered
  1555. #ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
  1556. #define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
  1557. #endif
  1558. // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1559. // <0=> 0 (highest)
  1560. // <1=> 1
  1561. // <2=> 2
  1562. // <3=> 3
  1563. // <4=> 4
  1564. // <5=> 5
  1565. // <6=> 6
  1566. // <7=> 7
  1567. #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
  1568. #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1569. #endif
  1570. // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1571. //==========================================================
  1572. #ifndef NRFX_PWM_CONFIG_LOG_ENABLED
  1573. #define NRFX_PWM_CONFIG_LOG_ENABLED 0
  1574. #endif
  1575. // <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
  1576. // <0=> Off
  1577. // <1=> Error
  1578. // <2=> Warning
  1579. // <3=> Info
  1580. // <4=> Debug
  1581. #ifndef NRFX_PWM_CONFIG_LOG_LEVEL
  1582. #define NRFX_PWM_CONFIG_LOG_LEVEL 3
  1583. #endif
  1584. // <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1585. // <0=> Default
  1586. // <1=> Black
  1587. // <2=> Red
  1588. // <3=> Green
  1589. // <4=> Yellow
  1590. // <5=> Blue
  1591. // <6=> Magenta
  1592. // <7=> Cyan
  1593. // <8=> White
  1594. #ifndef NRFX_PWM_CONFIG_INFO_COLOR
  1595. #define NRFX_PWM_CONFIG_INFO_COLOR 0
  1596. #endif
  1597. // <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1598. // <0=> Default
  1599. // <1=> Black
  1600. // <2=> Red
  1601. // <3=> Green
  1602. // <4=> Yellow
  1603. // <5=> Blue
  1604. // <6=> Magenta
  1605. // <7=> Cyan
  1606. // <8=> White
  1607. #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
  1608. #define NRFX_PWM_CONFIG_DEBUG_COLOR 0
  1609. #endif
  1610. // </e>
  1611. // </e>
  1612. // <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
  1613. //==========================================================
  1614. #ifndef NRFX_QDEC_ENABLED
  1615. #define NRFX_QDEC_ENABLED 0
  1616. #endif
  1617. // <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
  1618. // <0=> 10 Samples
  1619. // <1=> 40 Samples
  1620. // <2=> 80 Samples
  1621. // <3=> 120 Samples
  1622. // <4=> 160 Samples
  1623. // <5=> 200 Samples
  1624. // <6=> 240 Samples
  1625. // <7=> 280 Samples
  1626. #ifndef NRFX_QDEC_CONFIG_REPORTPER
  1627. #define NRFX_QDEC_CONFIG_REPORTPER 0
  1628. #endif
  1629. // <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
  1630. // <0=> 128 us
  1631. // <1=> 256 us
  1632. // <2=> 512 us
  1633. // <3=> 1024 us
  1634. // <4=> 2048 us
  1635. // <5=> 4096 us
  1636. // <6=> 8192 us
  1637. // <7=> 16384 us
  1638. #ifndef NRFX_QDEC_CONFIG_SAMPLEPER
  1639. #define NRFX_QDEC_CONFIG_SAMPLEPER 7
  1640. #endif
  1641. // <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
  1642. #ifndef NRFX_QDEC_CONFIG_PIO_A
  1643. #define NRFX_QDEC_CONFIG_PIO_A 31
  1644. #endif
  1645. // <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
  1646. #ifndef NRFX_QDEC_CONFIG_PIO_B
  1647. #define NRFX_QDEC_CONFIG_PIO_B 31
  1648. #endif
  1649. // <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
  1650. #ifndef NRFX_QDEC_CONFIG_PIO_LED
  1651. #define NRFX_QDEC_CONFIG_PIO_LED 31
  1652. #endif
  1653. // <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
  1654. #ifndef NRFX_QDEC_CONFIG_LEDPRE
  1655. #define NRFX_QDEC_CONFIG_LEDPRE 511
  1656. #endif
  1657. // <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
  1658. // <0=> Active low
  1659. // <1=> Active high
  1660. #ifndef NRFX_QDEC_CONFIG_LEDPOL
  1661. #define NRFX_QDEC_CONFIG_LEDPOL 1
  1662. #endif
  1663. // <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
  1664. #ifndef NRFX_QDEC_CONFIG_DBFEN
  1665. #define NRFX_QDEC_CONFIG_DBFEN 0
  1666. #endif
  1667. // <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
  1668. #ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
  1669. #define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
  1670. #endif
  1671. // <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
  1672. // <0=> 0 (highest)
  1673. // <1=> 1
  1674. // <2=> 2
  1675. // <3=> 3
  1676. // <4=> 4
  1677. // <5=> 5
  1678. // <6=> 6
  1679. // <7=> 7
  1680. #ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
  1681. #define NRFX_QDEC_CONFIG_IRQ_PRIORITY 6
  1682. #endif
  1683. // <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1684. //==========================================================
  1685. #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
  1686. #define NRFX_QDEC_CONFIG_LOG_ENABLED 0
  1687. #endif
  1688. // <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
  1689. // <0=> Off
  1690. // <1=> Error
  1691. // <2=> Warning
  1692. // <3=> Info
  1693. // <4=> Debug
  1694. #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
  1695. #define NRFX_QDEC_CONFIG_LOG_LEVEL 3
  1696. #endif
  1697. // <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1698. // <0=> Default
  1699. // <1=> Black
  1700. // <2=> Red
  1701. // <3=> Green
  1702. // <4=> Yellow
  1703. // <5=> Blue
  1704. // <6=> Magenta
  1705. // <7=> Cyan
  1706. // <8=> White
  1707. #ifndef NRFX_QDEC_CONFIG_INFO_COLOR
  1708. #define NRFX_QDEC_CONFIG_INFO_COLOR 0
  1709. #endif
  1710. // <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1711. // <0=> Default
  1712. // <1=> Black
  1713. // <2=> Red
  1714. // <3=> Green
  1715. // <4=> Yellow
  1716. // <5=> Blue
  1717. // <6=> Magenta
  1718. // <7=> Cyan
  1719. // <8=> White
  1720. #ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
  1721. #define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
  1722. #endif
  1723. // </e>
  1724. // </e>
  1725. // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
  1726. //==========================================================
  1727. #ifndef NRFX_RNG_ENABLED
  1728. #define NRFX_RNG_ENABLED 0
  1729. #endif
  1730. // <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
  1731. #ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
  1732. #define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
  1733. #endif
  1734. // <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  1735. // <0=> 0 (highest)
  1736. // <1=> 1
  1737. // <2=> 2
  1738. // <3=> 3
  1739. // <4=> 4
  1740. // <5=> 5
  1741. // <6=> 6
  1742. // <7=> 7
  1743. #ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
  1744. #define NRFX_RNG_CONFIG_IRQ_PRIORITY 6
  1745. #endif
  1746. // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  1747. //==========================================================
  1748. #ifndef NRFX_RNG_CONFIG_LOG_ENABLED
  1749. #define NRFX_RNG_CONFIG_LOG_ENABLED 0
  1750. #endif
  1751. // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
  1752. // <0=> Off
  1753. // <1=> Error
  1754. // <2=> Warning
  1755. // <3=> Info
  1756. // <4=> Debug
  1757. #ifndef NRFX_RNG_CONFIG_LOG_LEVEL
  1758. #define NRFX_RNG_CONFIG_LOG_LEVEL 3
  1759. #endif
  1760. // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1761. // <0=> Default
  1762. // <1=> Black
  1763. // <2=> Red
  1764. // <3=> Green
  1765. // <4=> Yellow
  1766. // <5=> Blue
  1767. // <6=> Magenta
  1768. // <7=> Cyan
  1769. // <8=> White
  1770. #ifndef NRFX_RNG_CONFIG_INFO_COLOR
  1771. #define NRFX_RNG_CONFIG_INFO_COLOR 0
  1772. #endif
  1773. // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1774. // <0=> Default
  1775. // <1=> Black
  1776. // <2=> Red
  1777. // <3=> Green
  1778. // <4=> Yellow
  1779. // <5=> Blue
  1780. // <6=> Magenta
  1781. // <7=> Cyan
  1782. // <8=> White
  1783. #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
  1784. #define NRFX_RNG_CONFIG_DEBUG_COLOR 0
  1785. #endif
  1786. // </e>
  1787. // </e>
  1788. // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
  1789. //==========================================================
  1790. #ifndef NRFX_RTC_ENABLED
  1791. #define NRFX_RTC_ENABLED 0
  1792. #endif
  1793. // <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
  1794. #ifndef NRFX_RTC0_ENABLED
  1795. #define NRFX_RTC0_ENABLED 0
  1796. #endif
  1797. // <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
  1798. #ifndef NRFX_RTC1_ENABLED
  1799. #define NRFX_RTC1_ENABLED 0
  1800. #endif
  1801. // <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  1802. #ifndef NRFX_RTC_MAXIMUM_LATENCY_US
  1803. #define NRFX_RTC_MAXIMUM_LATENCY_US 2000
  1804. #endif
  1805. // <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  1806. #ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
  1807. #define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
  1808. #endif
  1809. // <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  1810. #ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
  1811. #define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
  1812. #endif
  1813. // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1814. // <0=> 0 (highest)
  1815. // <1=> 1
  1816. // <2=> 2
  1817. // <3=> 3
  1818. // <4=> 4
  1819. // <5=> 5
  1820. // <6=> 6
  1821. // <7=> 7
  1822. #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  1823. #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1824. #endif
  1825. // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1826. //==========================================================
  1827. #ifndef NRFX_RTC_CONFIG_LOG_ENABLED
  1828. #define NRFX_RTC_CONFIG_LOG_ENABLED 0
  1829. #endif
  1830. // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
  1831. // <0=> Off
  1832. // <1=> Error
  1833. // <2=> Warning
  1834. // <3=> Info
  1835. // <4=> Debug
  1836. #ifndef NRFX_RTC_CONFIG_LOG_LEVEL
  1837. #define NRFX_RTC_CONFIG_LOG_LEVEL 3
  1838. #endif
  1839. // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1840. // <0=> Default
  1841. // <1=> Black
  1842. // <2=> Red
  1843. // <3=> Green
  1844. // <4=> Yellow
  1845. // <5=> Blue
  1846. // <6=> Magenta
  1847. // <7=> Cyan
  1848. // <8=> White
  1849. #ifndef NRFX_RTC_CONFIG_INFO_COLOR
  1850. #define NRFX_RTC_CONFIG_INFO_COLOR 0
  1851. #endif
  1852. // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1853. // <0=> Default
  1854. // <1=> Black
  1855. // <2=> Red
  1856. // <3=> Green
  1857. // <4=> Yellow
  1858. // <5=> Blue
  1859. // <6=> Magenta
  1860. // <7=> Cyan
  1861. // <8=> White
  1862. #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
  1863. #define NRFX_RTC_CONFIG_DEBUG_COLOR 0
  1864. #endif
  1865. // </e>
  1866. // </e>
  1867. // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
  1868. //==========================================================
  1869. #ifndef NRFX_SAADC_ENABLED
  1870. #define NRFX_SAADC_ENABLED 0
  1871. #endif
  1872. // <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
  1873. // <0=> 8 bit
  1874. // <1=> 10 bit
  1875. // <2=> 12 bit
  1876. // <3=> 14 bit
  1877. #ifndef NRFX_SAADC_CONFIG_RESOLUTION
  1878. #define NRFX_SAADC_CONFIG_RESOLUTION 1
  1879. #endif
  1880. // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
  1881. // <0=> Disabled
  1882. // <1=> 2x
  1883. // <2=> 4x
  1884. // <3=> 8x
  1885. // <4=> 16x
  1886. // <5=> 32x
  1887. // <6=> 64x
  1888. // <7=> 128x
  1889. // <8=> 256x
  1890. #ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
  1891. #define NRFX_SAADC_CONFIG_OVERSAMPLE 0
  1892. #endif
  1893. // <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
  1894. #ifndef NRFX_SAADC_CONFIG_LP_MODE
  1895. #define NRFX_SAADC_CONFIG_LP_MODE 0
  1896. #endif
  1897. // <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  1898. // <0=> 0 (highest)
  1899. // <1=> 1
  1900. // <2=> 2
  1901. // <3=> 3
  1902. // <4=> 4
  1903. // <5=> 5
  1904. // <6=> 6
  1905. // <7=> 7
  1906. #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
  1907. #define NRFX_SAADC_CONFIG_IRQ_PRIORITY 6
  1908. #endif
  1909. // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1910. //==========================================================
  1911. #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
  1912. #define NRFX_SAADC_CONFIG_LOG_ENABLED 0
  1913. #endif
  1914. // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
  1915. // <0=> Off
  1916. // <1=> Error
  1917. // <2=> Warning
  1918. // <3=> Info
  1919. // <4=> Debug
  1920. #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
  1921. #define NRFX_SAADC_CONFIG_LOG_LEVEL 3
  1922. #endif
  1923. // <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1924. // <0=> Default
  1925. // <1=> Black
  1926. // <2=> Red
  1927. // <3=> Green
  1928. // <4=> Yellow
  1929. // <5=> Blue
  1930. // <6=> Magenta
  1931. // <7=> Cyan
  1932. // <8=> White
  1933. #ifndef NRFX_SAADC_CONFIG_INFO_COLOR
  1934. #define NRFX_SAADC_CONFIG_INFO_COLOR 0
  1935. #endif
  1936. // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1937. // <0=> Default
  1938. // <1=> Black
  1939. // <2=> Red
  1940. // <3=> Green
  1941. // <4=> Yellow
  1942. // <5=> Blue
  1943. // <6=> Magenta
  1944. // <7=> Cyan
  1945. // <8=> White
  1946. #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
  1947. #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
  1948. #endif
  1949. // </e>
  1950. // </e>
  1951. // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
  1952. //==========================================================
  1953. #ifndef NRFX_SPIM_ENABLED
  1954. #define NRFX_SPIM_ENABLED 0
  1955. #endif
  1956. // <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
  1957. #ifndef NRFX_SPIM0_ENABLED
  1958. #define NRFX_SPIM0_ENABLED 0
  1959. #endif
  1960. // <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
  1961. // <0=> NRF_GPIO_PIN_NOPULL
  1962. // <1=> NRF_GPIO_PIN_PULLDOWN
  1963. // <3=> NRF_GPIO_PIN_PULLUP
  1964. #ifndef NRFX_SPIM_MISO_PULL_CFG
  1965. #define NRFX_SPIM_MISO_PULL_CFG 1
  1966. #endif
  1967. // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1968. // <0=> 0 (highest)
  1969. // <1=> 1
  1970. // <2=> 2
  1971. // <3=> 3
  1972. // <4=> 4
  1973. // <5=> 5
  1974. // <6=> 6
  1975. // <7=> 7
  1976. #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
  1977. #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  1978. #endif
  1979. // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1980. //==========================================================
  1981. #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
  1982. #define NRFX_SPIM_CONFIG_LOG_ENABLED 0
  1983. #endif
  1984. // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
  1985. // <0=> Off
  1986. // <1=> Error
  1987. // <2=> Warning
  1988. // <3=> Info
  1989. // <4=> Debug
  1990. #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
  1991. #define NRFX_SPIM_CONFIG_LOG_LEVEL 3
  1992. #endif
  1993. // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1994. // <0=> Default
  1995. // <1=> Black
  1996. // <2=> Red
  1997. // <3=> Green
  1998. // <4=> Yellow
  1999. // <5=> Blue
  2000. // <6=> Magenta
  2001. // <7=> Cyan
  2002. // <8=> White
  2003. #ifndef NRFX_SPIM_CONFIG_INFO_COLOR
  2004. #define NRFX_SPIM_CONFIG_INFO_COLOR 0
  2005. #endif
  2006. // <o> NRFX_SPIM_CONFIG_DEBUG_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 NRFX_SPIM_CONFIG_DEBUG_COLOR
  2017. #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
  2018. #endif
  2019. // </e>
  2020. // </e>
  2021. // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
  2022. //==========================================================
  2023. #ifndef NRFX_SPIS_ENABLED
  2024. #define NRFX_SPIS_ENABLED 0
  2025. #endif
  2026. // <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
  2027. #ifndef NRFX_SPIS0_ENABLED
  2028. #define NRFX_SPIS0_ENABLED 0
  2029. #endif
  2030. // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2031. // <0=> 0 (highest)
  2032. // <1=> 1
  2033. // <2=> 2
  2034. // <3=> 3
  2035. // <4=> 4
  2036. // <5=> 5
  2037. // <6=> 6
  2038. // <7=> 7
  2039. #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  2040. #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2041. #endif
  2042. // <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  2043. #ifndef NRFX_SPIS_DEFAULT_DEF
  2044. #define NRFX_SPIS_DEFAULT_DEF 255
  2045. #endif
  2046. // <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  2047. #ifndef NRFX_SPIS_DEFAULT_ORC
  2048. #define NRFX_SPIS_DEFAULT_ORC 255
  2049. #endif
  2050. // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2051. //==========================================================
  2052. #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
  2053. #define NRFX_SPIS_CONFIG_LOG_ENABLED 0
  2054. #endif
  2055. // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
  2056. // <0=> Off
  2057. // <1=> Error
  2058. // <2=> Warning
  2059. // <3=> Info
  2060. // <4=> Debug
  2061. #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
  2062. #define NRFX_SPIS_CONFIG_LOG_LEVEL 3
  2063. #endif
  2064. // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2065. // <0=> Default
  2066. // <1=> Black
  2067. // <2=> Red
  2068. // <3=> Green
  2069. // <4=> Yellow
  2070. // <5=> Blue
  2071. // <6=> Magenta
  2072. // <7=> Cyan
  2073. // <8=> White
  2074. #ifndef NRFX_SPIS_CONFIG_INFO_COLOR
  2075. #define NRFX_SPIS_CONFIG_INFO_COLOR 0
  2076. #endif
  2077. // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2078. // <0=> Default
  2079. // <1=> Black
  2080. // <2=> Red
  2081. // <3=> Green
  2082. // <4=> Yellow
  2083. // <5=> Blue
  2084. // <6=> Magenta
  2085. // <7=> Cyan
  2086. // <8=> White
  2087. #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
  2088. #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
  2089. #endif
  2090. // </e>
  2091. // </e>
  2092. // <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
  2093. //==========================================================
  2094. #ifndef NRFX_SWI_ENABLED
  2095. #define NRFX_SWI_ENABLED 0
  2096. #endif
  2097. // <q> NRFX_EGU_ENABLED - Enable EGU support
  2098. #ifndef NRFX_EGU_ENABLED
  2099. #define NRFX_EGU_ENABLED 0
  2100. #endif
  2101. // <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
  2102. #ifndef NRFX_SWI0_DISABLED
  2103. #define NRFX_SWI0_DISABLED 0
  2104. #endif
  2105. // <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
  2106. #ifndef NRFX_SWI1_DISABLED
  2107. #define NRFX_SWI1_DISABLED 0
  2108. #endif
  2109. // <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
  2110. #ifndef NRFX_SWI2_DISABLED
  2111. #define NRFX_SWI2_DISABLED 0
  2112. #endif
  2113. // <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
  2114. #ifndef NRFX_SWI3_DISABLED
  2115. #define NRFX_SWI3_DISABLED 0
  2116. #endif
  2117. // <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
  2118. #ifndef NRFX_SWI4_DISABLED
  2119. #define NRFX_SWI4_DISABLED 0
  2120. #endif
  2121. // <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
  2122. #ifndef NRFX_SWI5_DISABLED
  2123. #define NRFX_SWI5_DISABLED 0
  2124. #endif
  2125. // <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2126. //==========================================================
  2127. #ifndef NRFX_SWI_CONFIG_LOG_ENABLED
  2128. #define NRFX_SWI_CONFIG_LOG_ENABLED 0
  2129. #endif
  2130. // <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
  2131. // <0=> Off
  2132. // <1=> Error
  2133. // <2=> Warning
  2134. // <3=> Info
  2135. // <4=> Debug
  2136. #ifndef NRFX_SWI_CONFIG_LOG_LEVEL
  2137. #define NRFX_SWI_CONFIG_LOG_LEVEL 3
  2138. #endif
  2139. // <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2140. // <0=> Default
  2141. // <1=> Black
  2142. // <2=> Red
  2143. // <3=> Green
  2144. // <4=> Yellow
  2145. // <5=> Blue
  2146. // <6=> Magenta
  2147. // <7=> Cyan
  2148. // <8=> White
  2149. #ifndef NRFX_SWI_CONFIG_INFO_COLOR
  2150. #define NRFX_SWI_CONFIG_INFO_COLOR 0
  2151. #endif
  2152. // <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2153. // <0=> Default
  2154. // <1=> Black
  2155. // <2=> Red
  2156. // <3=> Green
  2157. // <4=> Yellow
  2158. // <5=> Blue
  2159. // <6=> Magenta
  2160. // <7=> Cyan
  2161. // <8=> White
  2162. #ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
  2163. #define NRFX_SWI_CONFIG_DEBUG_COLOR 0
  2164. #endif
  2165. // </e>
  2166. // </e>
  2167. // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
  2168. //==========================================================
  2169. #ifndef NRFX_TIMER_ENABLED
  2170. #define NRFX_TIMER_ENABLED 0
  2171. #endif
  2172. // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
  2173. #ifndef NRFX_TIMER0_ENABLED
  2174. #define NRFX_TIMER0_ENABLED 0
  2175. #endif
  2176. // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
  2177. #ifndef NRFX_TIMER1_ENABLED
  2178. #define NRFX_TIMER1_ENABLED 0
  2179. #endif
  2180. // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
  2181. #ifndef NRFX_TIMER2_ENABLED
  2182. #define NRFX_TIMER2_ENABLED 0
  2183. #endif
  2184. // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  2185. // <0=> 16 MHz
  2186. // <1=> 8 MHz
  2187. // <2=> 4 MHz
  2188. // <3=> 2 MHz
  2189. // <4=> 1 MHz
  2190. // <5=> 500 kHz
  2191. // <6=> 250 kHz
  2192. // <7=> 125 kHz
  2193. // <8=> 62.5 kHz
  2194. // <9=> 31.25 kHz
  2195. #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
  2196. #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
  2197. #endif
  2198. // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  2199. // <0=> Timer
  2200. // <1=> Counter
  2201. #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
  2202. #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
  2203. #endif
  2204. // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  2205. // <0=> 16 bit
  2206. // <1=> 8 bit
  2207. // <2=> 24 bit
  2208. // <3=> 32 bit
  2209. #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
  2210. #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  2211. #endif
  2212. // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2213. // <0=> 0 (highest)
  2214. // <1=> 1
  2215. // <2=> 2
  2216. // <3=> 3
  2217. // <4=> 4
  2218. // <5=> 5
  2219. // <6=> 6
  2220. // <7=> 7
  2221. #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  2222. #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2223. #endif
  2224. // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2225. //==========================================================
  2226. #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
  2227. #define NRFX_TIMER_CONFIG_LOG_ENABLED 0
  2228. #endif
  2229. // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2230. // <0=> Off
  2231. // <1=> Error
  2232. // <2=> Warning
  2233. // <3=> Info
  2234. // <4=> Debug
  2235. #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
  2236. #define NRFX_TIMER_CONFIG_LOG_LEVEL 3
  2237. #endif
  2238. // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2239. // <0=> Default
  2240. // <1=> Black
  2241. // <2=> Red
  2242. // <3=> Green
  2243. // <4=> Yellow
  2244. // <5=> Blue
  2245. // <6=> Magenta
  2246. // <7=> Cyan
  2247. // <8=> White
  2248. #ifndef NRFX_TIMER_CONFIG_INFO_COLOR
  2249. #define NRFX_TIMER_CONFIG_INFO_COLOR 0
  2250. #endif
  2251. // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2252. // <0=> Default
  2253. // <1=> Black
  2254. // <2=> Red
  2255. // <3=> Green
  2256. // <4=> Yellow
  2257. // <5=> Blue
  2258. // <6=> Magenta
  2259. // <7=> Cyan
  2260. // <8=> White
  2261. #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
  2262. #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
  2263. #endif
  2264. // </e>
  2265. // </e>
  2266. // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
  2267. //==========================================================
  2268. #ifndef NRFX_TWIM_ENABLED
  2269. #define NRFX_TWIM_ENABLED 0
  2270. #endif
  2271. // <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
  2272. #ifndef NRFX_TWIM0_ENABLED
  2273. #define NRFX_TWIM0_ENABLED 0
  2274. #endif
  2275. // <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
  2276. // <26738688=> 100k
  2277. // <67108864=> 250k
  2278. // <104857600=> 400k
  2279. #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
  2280. #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
  2281. #endif
  2282. // <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  2283. #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  2284. #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  2285. #endif
  2286. // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2287. // <0=> 0 (highest)
  2288. // <1=> 1
  2289. // <2=> 2
  2290. // <3=> 3
  2291. // <4=> 4
  2292. // <5=> 5
  2293. // <6=> 6
  2294. // <7=> 7
  2295. #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
  2296. #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2297. #endif
  2298. // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2299. //==========================================================
  2300. #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
  2301. #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
  2302. #endif
  2303. // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
  2304. // <0=> Off
  2305. // <1=> Error
  2306. // <2=> Warning
  2307. // <3=> Info
  2308. // <4=> Debug
  2309. #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
  2310. #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
  2311. #endif
  2312. // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2313. // <0=> Default
  2314. // <1=> Black
  2315. // <2=> Red
  2316. // <3=> Green
  2317. // <4=> Yellow
  2318. // <5=> Blue
  2319. // <6=> Magenta
  2320. // <7=> Cyan
  2321. // <8=> White
  2322. #ifndef NRFX_TWIM_CONFIG_INFO_COLOR
  2323. #define NRFX_TWIM_CONFIG_INFO_COLOR 0
  2324. #endif
  2325. // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2326. // <0=> Default
  2327. // <1=> Black
  2328. // <2=> Red
  2329. // <3=> Green
  2330. // <4=> Yellow
  2331. // <5=> Blue
  2332. // <6=> Magenta
  2333. // <7=> Cyan
  2334. // <8=> White
  2335. #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
  2336. #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
  2337. #endif
  2338. // </e>
  2339. // </e>
  2340. // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
  2341. //==========================================================
  2342. #ifndef NRFX_TWIS_ENABLED
  2343. #define NRFX_TWIS_ENABLED 0
  2344. #endif
  2345. // <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
  2346. #ifndef NRFX_TWIS0_ENABLED
  2347. #define NRFX_TWIS0_ENABLED 0
  2348. #endif
  2349. // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  2350. // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
  2351. #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  2352. #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  2353. #endif
  2354. // <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  2355. // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
  2356. #ifndef NRFX_TWIS_NO_SYNC_MODE
  2357. #define NRFX_TWIS_NO_SYNC_MODE 0
  2358. #endif
  2359. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  2360. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
  2361. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
  2362. #endif
  2363. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  2364. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
  2365. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
  2366. #endif
  2367. // <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  2368. // <0=> Disabled
  2369. // <1=> Pull down
  2370. // <3=> Pull up
  2371. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
  2372. #define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
  2373. #endif
  2374. // <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  2375. // <0=> Disabled
  2376. // <1=> Pull down
  2377. // <3=> Pull up
  2378. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
  2379. #define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
  2380. #endif
  2381. // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2382. // <0=> 0 (highest)
  2383. // <1=> 1
  2384. // <2=> 2
  2385. // <3=> 3
  2386. // <4=> 4
  2387. // <5=> 5
  2388. // <6=> 6
  2389. // <7=> 7
  2390. #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  2391. #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2392. #endif
  2393. // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2394. //==========================================================
  2395. #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
  2396. #define NRFX_TWIS_CONFIG_LOG_ENABLED 0
  2397. #endif
  2398. // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
  2399. // <0=> Off
  2400. // <1=> Error
  2401. // <2=> Warning
  2402. // <3=> Info
  2403. // <4=> Debug
  2404. #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
  2405. #define NRFX_TWIS_CONFIG_LOG_LEVEL 3
  2406. #endif
  2407. // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2408. // <0=> Default
  2409. // <1=> Black
  2410. // <2=> Red
  2411. // <3=> Green
  2412. // <4=> Yellow
  2413. // <5=> Blue
  2414. // <6=> Magenta
  2415. // <7=> Cyan
  2416. // <8=> White
  2417. #ifndef NRFX_TWIS_CONFIG_INFO_COLOR
  2418. #define NRFX_TWIS_CONFIG_INFO_COLOR 0
  2419. #endif
  2420. // <o> NRFX_TWIS_CONFIG_DEBUG_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 NRFX_TWIS_CONFIG_DEBUG_COLOR
  2431. #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
  2432. #endif
  2433. // </e>
  2434. // </e>
  2435. // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
  2436. //==========================================================
  2437. #ifndef NRFX_UARTE_ENABLED
  2438. #define NRFX_UARTE_ENABLED 0
  2439. #endif
  2440. // <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
  2441. #ifndef NRFX_UARTE0_ENABLED
  2442. #define NRFX_UARTE0_ENABLED 0
  2443. #endif
  2444. // <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  2445. // <0=> Disabled
  2446. // <1=> Enabled
  2447. #ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
  2448. #define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
  2449. #endif
  2450. // <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
  2451. // <0=> Excluded
  2452. // <14=> Included
  2453. #ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
  2454. #define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
  2455. #endif
  2456. // <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  2457. // <323584=> 1200 baud
  2458. // <643072=> 2400 baud
  2459. // <1290240=> 4800 baud
  2460. // <2576384=> 9600 baud
  2461. // <3862528=> 14400 baud
  2462. // <5152768=> 19200 baud
  2463. // <7716864=> 28800 baud
  2464. // <8388608=> 31250 baud
  2465. // <10289152=> 38400 baud
  2466. // <15007744=> 56000 baud
  2467. // <15400960=> 57600 baud
  2468. // <20615168=> 76800 baud
  2469. // <30801920=> 115200 baud
  2470. // <61865984=> 230400 baud
  2471. // <67108864=> 250000 baud
  2472. // <121634816=> 460800 baud
  2473. // <251658240=> 921600 baud
  2474. // <268435456=> 1000000 baud
  2475. #ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
  2476. #define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
  2477. #endif
  2478. // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2479. // <0=> 0 (highest)
  2480. // <1=> 1
  2481. // <2=> 2
  2482. // <3=> 3
  2483. // <4=> 4
  2484. // <5=> 5
  2485. // <6=> 6
  2486. // <7=> 7
  2487. #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
  2488. #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2489. #endif
  2490. // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  2491. //==========================================================
  2492. #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
  2493. #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
  2494. #endif
  2495. // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
  2496. // <0=> Off
  2497. // <1=> Error
  2498. // <2=> Warning
  2499. // <3=> Info
  2500. // <4=> Debug
  2501. #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
  2502. #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
  2503. #endif
  2504. // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2505. // <0=> Default
  2506. // <1=> Black
  2507. // <2=> Red
  2508. // <3=> Green
  2509. // <4=> Yellow
  2510. // <5=> Blue
  2511. // <6=> Magenta
  2512. // <7=> Cyan
  2513. // <8=> White
  2514. #ifndef NRFX_UARTE_CONFIG_INFO_COLOR
  2515. #define NRFX_UARTE_CONFIG_INFO_COLOR 0
  2516. #endif
  2517. // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2518. // <0=> Default
  2519. // <1=> Black
  2520. // <2=> Red
  2521. // <3=> Green
  2522. // <4=> Yellow
  2523. // <5=> Blue
  2524. // <6=> Magenta
  2525. // <7=> Cyan
  2526. // <8=> White
  2527. #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
  2528. #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
  2529. #endif
  2530. // </e>
  2531. // </e>
  2532. // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
  2533. //==========================================================
  2534. #ifndef NRFX_WDT_ENABLED
  2535. #define NRFX_WDT_ENABLED 0
  2536. #endif
  2537. // <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  2538. // <1=> Run in SLEEP, Pause in HALT
  2539. // <8=> Pause in SLEEP, Run in HALT
  2540. // <9=> Run in SLEEP and HALT
  2541. // <0=> Pause in SLEEP and HALT
  2542. #ifndef NRFX_WDT_CONFIG_BEHAVIOUR
  2543. #define NRFX_WDT_CONFIG_BEHAVIOUR 1
  2544. #endif
  2545. // <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
  2546. #ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
  2547. #define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
  2548. #endif
  2549. // <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2550. // <0=> 0 (highest)
  2551. // <1=> 1
  2552. // <2=> 2
  2553. // <3=> 3
  2554. // <4=> 4
  2555. // <5=> 5
  2556. // <6=> 6
  2557. // <7=> 7
  2558. #ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
  2559. #define NRFX_WDT_CONFIG_IRQ_PRIORITY 6
  2560. #endif
  2561. // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2562. //==========================================================
  2563. #ifndef NRFX_WDT_CONFIG_LOG_ENABLED
  2564. #define NRFX_WDT_CONFIG_LOG_ENABLED 0
  2565. #endif
  2566. // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
  2567. // <0=> Off
  2568. // <1=> Error
  2569. // <2=> Warning
  2570. // <3=> Info
  2571. // <4=> Debug
  2572. #ifndef NRFX_WDT_CONFIG_LOG_LEVEL
  2573. #define NRFX_WDT_CONFIG_LOG_LEVEL 3
  2574. #endif
  2575. // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2576. // <0=> Default
  2577. // <1=> Black
  2578. // <2=> Red
  2579. // <3=> Green
  2580. // <4=> Yellow
  2581. // <5=> Blue
  2582. // <6=> Magenta
  2583. // <7=> Cyan
  2584. // <8=> White
  2585. #ifndef NRFX_WDT_CONFIG_INFO_COLOR
  2586. #define NRFX_WDT_CONFIG_INFO_COLOR 0
  2587. #endif
  2588. // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2589. // <0=> Default
  2590. // <1=> Black
  2591. // <2=> Red
  2592. // <3=> Green
  2593. // <4=> Yellow
  2594. // <5=> Blue
  2595. // <6=> Magenta
  2596. // <7=> Cyan
  2597. // <8=> White
  2598. #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
  2599. #define NRFX_WDT_CONFIG_DEBUG_COLOR 0
  2600. #endif
  2601. // </e>
  2602. // </e>
  2603. // <e> NRF_CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver - legacy layer
  2604. //==========================================================
  2605. #ifndef NRF_CLOCK_ENABLED
  2606. #define NRF_CLOCK_ENABLED 0
  2607. #endif
  2608. // <o> CLOCK_CONFIG_LF_SRC - LF Clock Source
  2609. // <0=> RC
  2610. // <1=> XTAL
  2611. // <2=> Synth
  2612. // <131073=> External Low Swing
  2613. // <196609=> External Full Swing
  2614. #ifndef CLOCK_CONFIG_LF_SRC
  2615. #define CLOCK_CONFIG_LF_SRC 1
  2616. #endif
  2617. // <o> CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
  2618. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2619. // <0=> 0 (highest)
  2620. // <1=> 1
  2621. // <2=> 2
  2622. // <3=> 3
  2623. // <4=> 4
  2624. // <5=> 5
  2625. // <6=> 6
  2626. // <7=> 7
  2627. #ifndef CLOCK_CONFIG_IRQ_PRIORITY
  2628. #define CLOCK_CONFIG_IRQ_PRIORITY 6
  2629. #endif
  2630. // </e>
  2631. // <e> PDM_ENABLED - nrf_drv_pdm - PDM peripheral driver - legacy layer
  2632. //==========================================================
  2633. #ifndef PDM_ENABLED
  2634. #define PDM_ENABLED 0
  2635. #endif
  2636. // <o> PDM_CONFIG_MODE - Mode
  2637. // <0=> Stereo
  2638. // <1=> Mono
  2639. #ifndef PDM_CONFIG_MODE
  2640. #define PDM_CONFIG_MODE 1
  2641. #endif
  2642. // <o> PDM_CONFIG_EDGE - Edge
  2643. // <0=> Left falling
  2644. // <1=> Left rising
  2645. #ifndef PDM_CONFIG_EDGE
  2646. #define PDM_CONFIG_EDGE 0
  2647. #endif
  2648. // <o> PDM_CONFIG_CLOCK_FREQ - Clock frequency
  2649. // <134217728=> 1000k
  2650. // <138412032=> 1032k (default)
  2651. // <142606336=> 1067k
  2652. #ifndef PDM_CONFIG_CLOCK_FREQ
  2653. #define PDM_CONFIG_CLOCK_FREQ 138412032
  2654. #endif
  2655. // <o> PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
  2656. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2657. // <0=> 0 (highest)
  2658. // <1=> 1
  2659. // <2=> 2
  2660. // <3=> 3
  2661. // <4=> 4
  2662. // <5=> 5
  2663. // <6=> 6
  2664. // <7=> 7
  2665. #ifndef PDM_CONFIG_IRQ_PRIORITY
  2666. #define PDM_CONFIG_IRQ_PRIORITY 6
  2667. #endif
  2668. // </e>
  2669. // <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver - legacy layer
  2670. //==========================================================
  2671. #ifndef POWER_ENABLED
  2672. #define POWER_ENABLED 0
  2673. #endif
  2674. // <o> POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
  2675. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2676. // <0=> 0 (highest)
  2677. // <1=> 1
  2678. // <2=> 2
  2679. // <3=> 3
  2680. // <4=> 4
  2681. // <5=> 5
  2682. // <6=> 6
  2683. // <7=> 7
  2684. #ifndef POWER_CONFIG_IRQ_PRIORITY
  2685. #define POWER_CONFIG_IRQ_PRIORITY 6
  2686. #endif
  2687. // <q> POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
  2688. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  2689. #ifndef POWER_CONFIG_DEFAULT_DCDCEN
  2690. #define POWER_CONFIG_DEFAULT_DCDCEN 0
  2691. #endif
  2692. // <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
  2693. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  2694. #ifndef POWER_CONFIG_DEFAULT_DCDCENHV
  2695. #define POWER_CONFIG_DEFAULT_DCDCENHV 0
  2696. #endif
  2697. // </e>
  2698. // <q> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver - legacy layer
  2699. #ifndef PPI_ENABLED
  2700. #define PPI_ENABLED 0
  2701. #endif
  2702. // <e> PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver - legacy layer
  2703. //==========================================================
  2704. #ifndef PWM_ENABLED
  2705. #define PWM_ENABLED 0
  2706. #endif
  2707. // <o> PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
  2708. #ifndef PWM_DEFAULT_CONFIG_OUT0_PIN
  2709. #define PWM_DEFAULT_CONFIG_OUT0_PIN 31
  2710. #endif
  2711. // <o> PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
  2712. #ifndef PWM_DEFAULT_CONFIG_OUT1_PIN
  2713. #define PWM_DEFAULT_CONFIG_OUT1_PIN 31
  2714. #endif
  2715. // <o> PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
  2716. #ifndef PWM_DEFAULT_CONFIG_OUT2_PIN
  2717. #define PWM_DEFAULT_CONFIG_OUT2_PIN 31
  2718. #endif
  2719. // <o> PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
  2720. #ifndef PWM_DEFAULT_CONFIG_OUT3_PIN
  2721. #define PWM_DEFAULT_CONFIG_OUT3_PIN 31
  2722. #endif
  2723. // <o> PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
  2724. // <0=> 16 MHz
  2725. // <1=> 8 MHz
  2726. // <2=> 4 MHz
  2727. // <3=> 2 MHz
  2728. // <4=> 1 MHz
  2729. // <5=> 500 kHz
  2730. // <6=> 250 kHz
  2731. // <7=> 125 kHz
  2732. #ifndef PWM_DEFAULT_CONFIG_BASE_CLOCK
  2733. #define PWM_DEFAULT_CONFIG_BASE_CLOCK 4
  2734. #endif
  2735. // <o> PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
  2736. // <0=> Up
  2737. // <1=> Up and Down
  2738. #ifndef PWM_DEFAULT_CONFIG_COUNT_MODE
  2739. #define PWM_DEFAULT_CONFIG_COUNT_MODE 0
  2740. #endif
  2741. // <o> PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
  2742. #ifndef PWM_DEFAULT_CONFIG_TOP_VALUE
  2743. #define PWM_DEFAULT_CONFIG_TOP_VALUE 1000
  2744. #endif
  2745. // <o> PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
  2746. // <0=> Common
  2747. // <1=> Grouped
  2748. // <2=> Individual
  2749. // <3=> Waveform
  2750. #ifndef PWM_DEFAULT_CONFIG_LOAD_MODE
  2751. #define PWM_DEFAULT_CONFIG_LOAD_MODE 0
  2752. #endif
  2753. // <o> PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
  2754. // <0=> Auto
  2755. // <1=> Triggered
  2756. #ifndef PWM_DEFAULT_CONFIG_STEP_MODE
  2757. #define PWM_DEFAULT_CONFIG_STEP_MODE 0
  2758. #endif
  2759. // <o> PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2760. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2761. // <0=> 0 (highest)
  2762. // <1=> 1
  2763. // <2=> 2
  2764. // <3=> 3
  2765. // <4=> 4
  2766. // <5=> 5
  2767. // <6=> 6
  2768. // <7=> 7
  2769. #ifndef PWM_DEFAULT_CONFIG_IRQ_PRIORITY
  2770. #define PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2771. #endif
  2772. // <q> PWM0_ENABLED - Enable PWM0 instance
  2773. #ifndef PWM0_ENABLED
  2774. #define PWM0_ENABLED 0
  2775. #endif
  2776. // <q> PWM1_ENABLED - Enable PWM1 instance
  2777. #ifndef PWM1_ENABLED
  2778. #define PWM1_ENABLED 0
  2779. #endif
  2780. // <q> PWM2_ENABLED - Enable PWM2 instance
  2781. #ifndef PWM2_ENABLED
  2782. #define PWM2_ENABLED 0
  2783. #endif
  2784. // </e>
  2785. // <e> QDEC_ENABLED - nrf_drv_qdec - QDEC peripheral driver - legacy layer
  2786. //==========================================================
  2787. #ifndef QDEC_ENABLED
  2788. #define QDEC_ENABLED 0
  2789. #endif
  2790. // <o> QDEC_CONFIG_REPORTPER - Report period
  2791. // <0=> 10 Samples
  2792. // <1=> 40 Samples
  2793. // <2=> 80 Samples
  2794. // <3=> 120 Samples
  2795. // <4=> 160 Samples
  2796. // <5=> 200 Samples
  2797. // <6=> 240 Samples
  2798. // <7=> 280 Samples
  2799. #ifndef QDEC_CONFIG_REPORTPER
  2800. #define QDEC_CONFIG_REPORTPER 0
  2801. #endif
  2802. // <o> QDEC_CONFIG_SAMPLEPER - Sample period
  2803. // <0=> 128 us
  2804. // <1=> 256 us
  2805. // <2=> 512 us
  2806. // <3=> 1024 us
  2807. // <4=> 2048 us
  2808. // <5=> 4096 us
  2809. // <6=> 8192 us
  2810. // <7=> 16384 us
  2811. #ifndef QDEC_CONFIG_SAMPLEPER
  2812. #define QDEC_CONFIG_SAMPLEPER 7
  2813. #endif
  2814. // <o> QDEC_CONFIG_PIO_A - A pin <0-31>
  2815. #ifndef QDEC_CONFIG_PIO_A
  2816. #define QDEC_CONFIG_PIO_A 31
  2817. #endif
  2818. // <o> QDEC_CONFIG_PIO_B - B pin <0-31>
  2819. #ifndef QDEC_CONFIG_PIO_B
  2820. #define QDEC_CONFIG_PIO_B 31
  2821. #endif
  2822. // <o> QDEC_CONFIG_PIO_LED - LED pin <0-31>
  2823. #ifndef QDEC_CONFIG_PIO_LED
  2824. #define QDEC_CONFIG_PIO_LED 31
  2825. #endif
  2826. // <o> QDEC_CONFIG_LEDPRE - LED pre
  2827. #ifndef QDEC_CONFIG_LEDPRE
  2828. #define QDEC_CONFIG_LEDPRE 511
  2829. #endif
  2830. // <o> QDEC_CONFIG_LEDPOL - LED polarity
  2831. // <0=> Active low
  2832. // <1=> Active high
  2833. #ifndef QDEC_CONFIG_LEDPOL
  2834. #define QDEC_CONFIG_LEDPOL 1
  2835. #endif
  2836. // <q> QDEC_CONFIG_DBFEN - Debouncing enable
  2837. #ifndef QDEC_CONFIG_DBFEN
  2838. #define QDEC_CONFIG_DBFEN 0
  2839. #endif
  2840. // <q> QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
  2841. #ifndef QDEC_CONFIG_SAMPLE_INTEN
  2842. #define QDEC_CONFIG_SAMPLE_INTEN 0
  2843. #endif
  2844. // <o> QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
  2845. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2846. // <0=> 0 (highest)
  2847. // <1=> 1
  2848. // <2=> 2
  2849. // <3=> 3
  2850. // <4=> 4
  2851. // <5=> 5
  2852. // <6=> 6
  2853. // <7=> 7
  2854. #ifndef QDEC_CONFIG_IRQ_PRIORITY
  2855. #define QDEC_CONFIG_IRQ_PRIORITY 6
  2856. #endif
  2857. // </e>
  2858. // <e> QSPI_ENABLED - nrf_drv_qspi - QSPI peripheral driver - legacy layer
  2859. //==========================================================
  2860. #ifndef QSPI_ENABLED
  2861. #define QSPI_ENABLED 0
  2862. #endif
  2863. // <o> QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
  2864. #ifndef QSPI_CONFIG_SCK_DELAY
  2865. #define QSPI_CONFIG_SCK_DELAY 1
  2866. #endif
  2867. // <o> QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
  2868. #ifndef QSPI_CONFIG_XIP_OFFSET
  2869. #define QSPI_CONFIG_XIP_OFFSET 0
  2870. #endif
  2871. // <o> QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
  2872. // <0=> FastRead
  2873. // <1=> Read2O
  2874. // <2=> Read2IO
  2875. // <3=> Read4O
  2876. // <4=> Read4IO
  2877. #ifndef QSPI_CONFIG_READOC
  2878. #define QSPI_CONFIG_READOC 0
  2879. #endif
  2880. // <o> QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
  2881. // <0=> PP
  2882. // <1=> PP2O
  2883. // <2=> PP4O
  2884. // <3=> PP4IO
  2885. #ifndef QSPI_CONFIG_WRITEOC
  2886. #define QSPI_CONFIG_WRITEOC 0
  2887. #endif
  2888. // <o> QSPI_CONFIG_ADDRMODE - Addressing mode.
  2889. // <0=> 24bit
  2890. // <1=> 32bit
  2891. #ifndef QSPI_CONFIG_ADDRMODE
  2892. #define QSPI_CONFIG_ADDRMODE 0
  2893. #endif
  2894. // <o> QSPI_CONFIG_MODE - SPI mode.
  2895. // <0=> Mode 0
  2896. // <1=> Mode 1
  2897. #ifndef QSPI_CONFIG_MODE
  2898. #define QSPI_CONFIG_MODE 0
  2899. #endif
  2900. // <o> QSPI_CONFIG_FREQUENCY - Frequency divider.
  2901. // <0=> 32MHz/1
  2902. // <1=> 32MHz/2
  2903. // <2=> 32MHz/3
  2904. // <3=> 32MHz/4
  2905. // <4=> 32MHz/5
  2906. // <5=> 32MHz/6
  2907. // <6=> 32MHz/7
  2908. // <7=> 32MHz/8
  2909. // <8=> 32MHz/9
  2910. // <9=> 32MHz/10
  2911. // <10=> 32MHz/11
  2912. // <11=> 32MHz/12
  2913. // <12=> 32MHz/13
  2914. // <13=> 32MHz/14
  2915. // <14=> 32MHz/15
  2916. // <15=> 32MHz/16
  2917. #ifndef QSPI_CONFIG_FREQUENCY
  2918. #define QSPI_CONFIG_FREQUENCY 15
  2919. #endif
  2920. // <s> QSPI_PIN_SCK - SCK pin value.
  2921. #ifndef QSPI_PIN_SCK
  2922. #define QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
  2923. #endif
  2924. // <s> QSPI_PIN_CSN - CSN pin value.
  2925. #ifndef QSPI_PIN_CSN
  2926. #define QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
  2927. #endif
  2928. // <s> QSPI_PIN_IO0 - IO0 pin value.
  2929. #ifndef QSPI_PIN_IO0
  2930. #define QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
  2931. #endif
  2932. // <s> QSPI_PIN_IO1 - IO1 pin value.
  2933. #ifndef QSPI_PIN_IO1
  2934. #define QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
  2935. #endif
  2936. // <s> QSPI_PIN_IO2 - IO2 pin value.
  2937. #ifndef QSPI_PIN_IO2
  2938. #define QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
  2939. #endif
  2940. // <s> QSPI_PIN_IO3 - IO3 pin value.
  2941. #ifndef QSPI_PIN_IO3
  2942. #define QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
  2943. #endif
  2944. // <o> QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
  2945. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2946. // <0=> 0 (highest)
  2947. // <1=> 1
  2948. // <2=> 2
  2949. // <3=> 3
  2950. // <4=> 4
  2951. // <5=> 5
  2952. // <6=> 6
  2953. // <7=> 7
  2954. #ifndef QSPI_CONFIG_IRQ_PRIORITY
  2955. #define QSPI_CONFIG_IRQ_PRIORITY 6
  2956. #endif
  2957. // </e>
  2958. // <e> RNG_ENABLED - nrf_drv_rng - RNG peripheral driver - legacy layer
  2959. //==========================================================
  2960. #ifndef RNG_ENABLED
  2961. #define RNG_ENABLED 0
  2962. #endif
  2963. // <q> RNG_CONFIG_ERROR_CORRECTION - Error correction
  2964. #ifndef RNG_CONFIG_ERROR_CORRECTION
  2965. #define RNG_CONFIG_ERROR_CORRECTION 1
  2966. #endif
  2967. // <o> RNG_CONFIG_POOL_SIZE - Pool size
  2968. #ifndef RNG_CONFIG_POOL_SIZE
  2969. #define RNG_CONFIG_POOL_SIZE 64
  2970. #endif
  2971. // <o> RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  2972. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  2973. // <0=> 0 (highest)
  2974. // <1=> 1
  2975. // <2=> 2
  2976. // <3=> 3
  2977. // <4=> 4
  2978. // <5=> 5
  2979. // <6=> 6
  2980. // <7=> 7
  2981. #ifndef RNG_CONFIG_IRQ_PRIORITY
  2982. #define RNG_CONFIG_IRQ_PRIORITY 6
  2983. #endif
  2984. // </e>
  2985. // <e> RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver - legacy layer
  2986. //==========================================================
  2987. #ifndef RTC_ENABLED
  2988. #define RTC_ENABLED 0
  2989. #endif
  2990. // <o> RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  2991. #ifndef RTC_DEFAULT_CONFIG_FREQUENCY
  2992. #define RTC_DEFAULT_CONFIG_FREQUENCY 32768
  2993. #endif
  2994. // <q> RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  2995. #ifndef RTC_DEFAULT_CONFIG_RELIABLE
  2996. #define RTC_DEFAULT_CONFIG_RELIABLE 0
  2997. #endif
  2998. // <o> RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2999. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3000. // <0=> 0 (highest)
  3001. // <1=> 1
  3002. // <2=> 2
  3003. // <3=> 3
  3004. // <4=> 4
  3005. // <5=> 5
  3006. // <6=> 6
  3007. // <7=> 7
  3008. #ifndef RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  3009. #define RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3010. #endif
  3011. // <q> RTC0_ENABLED - Enable RTC0 instance
  3012. #ifndef RTC0_ENABLED
  3013. #define RTC0_ENABLED 0
  3014. #endif
  3015. // <q> RTC1_ENABLED - Enable RTC1 instance
  3016. #ifndef RTC1_ENABLED
  3017. #define RTC1_ENABLED 0
  3018. #endif
  3019. // <q> RTC2_ENABLED - Enable RTC2 instance
  3020. #ifndef RTC2_ENABLED
  3021. #define RTC2_ENABLED 0
  3022. #endif
  3023. // <o> NRF_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  3024. #ifndef NRF_MAXIMUM_LATENCY_US
  3025. #define NRF_MAXIMUM_LATENCY_US 2000
  3026. #endif
  3027. // </e>
  3028. // <e> SAADC_ENABLED - nrf_drv_saadc - SAADC peripheral driver - legacy layer
  3029. //==========================================================
  3030. #ifndef SAADC_ENABLED
  3031. #define SAADC_ENABLED 0
  3032. #endif
  3033. // <o> SAADC_CONFIG_RESOLUTION - Resolution
  3034. // <0=> 8 bit
  3035. // <1=> 10 bit
  3036. // <2=> 12 bit
  3037. // <3=> 14 bit
  3038. #ifndef SAADC_CONFIG_RESOLUTION
  3039. #define SAADC_CONFIG_RESOLUTION 1
  3040. #endif
  3041. // <o> SAADC_CONFIG_OVERSAMPLE - Sample period
  3042. // <0=> Disabled
  3043. // <1=> 2x
  3044. // <2=> 4x
  3045. // <3=> 8x
  3046. // <4=> 16x
  3047. // <5=> 32x
  3048. // <6=> 64x
  3049. // <7=> 128x
  3050. // <8=> 256x
  3051. #ifndef SAADC_CONFIG_OVERSAMPLE
  3052. #define SAADC_CONFIG_OVERSAMPLE 0
  3053. #endif
  3054. // <q> SAADC_CONFIG_LP_MODE - Enabling low power mode
  3055. #ifndef SAADC_CONFIG_LP_MODE
  3056. #define SAADC_CONFIG_LP_MODE 0
  3057. #endif
  3058. // <o> SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  3059. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3060. // <0=> 0 (highest)
  3061. // <1=> 1
  3062. // <2=> 2
  3063. // <3=> 3
  3064. // <4=> 4
  3065. // <5=> 5
  3066. // <6=> 6
  3067. // <7=> 7
  3068. #ifndef SAADC_CONFIG_IRQ_PRIORITY
  3069. #define SAADC_CONFIG_IRQ_PRIORITY 6
  3070. #endif
  3071. // </e>
  3072. // <e> SPIS_ENABLED - nrf_drv_spis - SPIS peripheral driver - legacy layer
  3073. //==========================================================
  3074. #ifndef SPIS_ENABLED
  3075. #define SPIS_ENABLED 0
  3076. #endif
  3077. // <o> SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3078. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3079. // <0=> 0 (highest)
  3080. // <1=> 1
  3081. // <2=> 2
  3082. // <3=> 3
  3083. // <4=> 4
  3084. // <5=> 5
  3085. // <6=> 6
  3086. // <7=> 7
  3087. #ifndef SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  3088. #define SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3089. #endif
  3090. // <o> SPIS_DEFAULT_MODE - Mode
  3091. // <0=> MODE_0
  3092. // <1=> MODE_1
  3093. // <2=> MODE_2
  3094. // <3=> MODE_3
  3095. #ifndef SPIS_DEFAULT_MODE
  3096. #define SPIS_DEFAULT_MODE 0
  3097. #endif
  3098. // <o> SPIS_DEFAULT_BIT_ORDER - SPIS default bit order
  3099. // <0=> MSB first
  3100. // <1=> LSB first
  3101. #ifndef SPIS_DEFAULT_BIT_ORDER
  3102. #define SPIS_DEFAULT_BIT_ORDER 0
  3103. #endif
  3104. // <o> SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  3105. #ifndef SPIS_DEFAULT_DEF
  3106. #define SPIS_DEFAULT_DEF 255
  3107. #endif
  3108. // <o> SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  3109. #ifndef SPIS_DEFAULT_ORC
  3110. #define SPIS_DEFAULT_ORC 255
  3111. #endif
  3112. // <q> SPIS0_ENABLED - Enable SPIS0 instance
  3113. #ifndef SPIS0_ENABLED
  3114. #define SPIS0_ENABLED 0
  3115. #endif
  3116. // </e>
  3117. // <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer
  3118. //==========================================================
  3119. #ifndef SPI_ENABLED
  3120. #define SPI_ENABLED 0
  3121. #endif
  3122. // <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3123. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3124. // <0=> 0 (highest)
  3125. // <1=> 1
  3126. // <2=> 2
  3127. // <3=> 3
  3128. // <4=> 4
  3129. // <5=> 5
  3130. // <6=> 6
  3131. // <7=> 7
  3132. #ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  3133. #define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3134. #endif
  3135. // <o> NRF_SPI_DRV_MISO_PULLUP_CFG - MISO PIN pull-up configuration.
  3136. // <0=> NRF_GPIO_PIN_NOPULL
  3137. // <1=> NRF_GPIO_PIN_PULLDOWN
  3138. // <3=> NRF_GPIO_PIN_PULLUP
  3139. #ifndef NRF_SPI_DRV_MISO_PULLUP_CFG
  3140. #define NRF_SPI_DRV_MISO_PULLUP_CFG 1
  3141. #endif
  3142. // <e> SPI0_ENABLED - Enable SPI0 instance
  3143. //==========================================================
  3144. #ifndef SPI0_ENABLED
  3145. #define SPI0_ENABLED 0
  3146. #endif
  3147. // </e>
  3148. // </e>
  3149. // <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer
  3150. //==========================================================
  3151. #ifndef TIMER_ENABLED
  3152. #define TIMER_ENABLED 0
  3153. #endif
  3154. // <o> TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  3155. // <0=> 16 MHz
  3156. // <1=> 8 MHz
  3157. // <2=> 4 MHz
  3158. // <3=> 2 MHz
  3159. // <4=> 1 MHz
  3160. // <5=> 500 kHz
  3161. // <6=> 250 kHz
  3162. // <7=> 125 kHz
  3163. // <8=> 62.5 kHz
  3164. // <9=> 31.25 kHz
  3165. #ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
  3166. #define TIMER_DEFAULT_CONFIG_FREQUENCY 0
  3167. #endif
  3168. // <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  3169. // <0=> Timer
  3170. // <1=> Counter
  3171. #ifndef TIMER_DEFAULT_CONFIG_MODE
  3172. #define TIMER_DEFAULT_CONFIG_MODE 0
  3173. #endif
  3174. // <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  3175. // <0=> 16 bit
  3176. // <1=> 8 bit
  3177. // <2=> 24 bit
  3178. // <3=> 32 bit
  3179. #ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
  3180. #define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  3181. #endif
  3182. // <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3183. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3184. // <0=> 0 (highest)
  3185. // <1=> 1
  3186. // <2=> 2
  3187. // <3=> 3
  3188. // <4=> 4
  3189. // <5=> 5
  3190. // <6=> 6
  3191. // <7=> 7
  3192. #ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  3193. #define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3194. #endif
  3195. // <q> TIMER0_ENABLED - Enable TIMER0 instance
  3196. #ifndef TIMER0_ENABLED
  3197. #define TIMER0_ENABLED 0
  3198. #endif
  3199. // <q> TIMER1_ENABLED - Enable TIMER1 instance
  3200. #ifndef TIMER1_ENABLED
  3201. #define TIMER1_ENABLED 0
  3202. #endif
  3203. // <q> TIMER2_ENABLED - Enable TIMER2 instance
  3204. #ifndef TIMER2_ENABLED
  3205. #define TIMER2_ENABLED 0
  3206. #endif
  3207. // <q> TIMER3_ENABLED - Enable TIMER3 instance
  3208. #ifndef TIMER3_ENABLED
  3209. #define TIMER3_ENABLED 0
  3210. #endif
  3211. // <q> TIMER4_ENABLED - Enable TIMER4 instance
  3212. #ifndef TIMER4_ENABLED
  3213. #define TIMER4_ENABLED 0
  3214. #endif
  3215. // </e>
  3216. // <e> TWIS_ENABLED - nrf_drv_twis - TWIS peripheral driver - legacy layer
  3217. //==========================================================
  3218. #ifndef TWIS_ENABLED
  3219. #define TWIS_ENABLED 0
  3220. #endif
  3221. // <q> TWIS0_ENABLED - Enable TWIS0 instance
  3222. #ifndef TWIS0_ENABLED
  3223. #define TWIS0_ENABLED 0
  3224. #endif
  3225. // <q> TWIS1_ENABLED - Enable TWIS1 instance
  3226. #ifndef TWIS1_ENABLED
  3227. #define TWIS1_ENABLED 0
  3228. #endif
  3229. // <q> TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  3230. // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
  3231. #ifndef TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  3232. #define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  3233. #endif
  3234. // <q> TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  3235. // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
  3236. #ifndef TWIS_NO_SYNC_MODE
  3237. #define TWIS_NO_SYNC_MODE 0
  3238. #endif
  3239. // <o> TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  3240. #ifndef TWIS_DEFAULT_CONFIG_ADDR0
  3241. #define TWIS_DEFAULT_CONFIG_ADDR0 0
  3242. #endif
  3243. // <o> TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  3244. #ifndef TWIS_DEFAULT_CONFIG_ADDR1
  3245. #define TWIS_DEFAULT_CONFIG_ADDR1 0
  3246. #endif
  3247. // <o> TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  3248. // <0=> Disabled
  3249. // <1=> Pull down
  3250. // <3=> Pull up
  3251. #ifndef TWIS_DEFAULT_CONFIG_SCL_PULL
  3252. #define TWIS_DEFAULT_CONFIG_SCL_PULL 0
  3253. #endif
  3254. // <o> TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  3255. // <0=> Disabled
  3256. // <1=> Pull down
  3257. // <3=> Pull up
  3258. #ifndef TWIS_DEFAULT_CONFIG_SDA_PULL
  3259. #define TWIS_DEFAULT_CONFIG_SDA_PULL 0
  3260. #endif
  3261. // <o> TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3262. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3263. // <0=> 0 (highest)
  3264. // <1=> 1
  3265. // <2=> 2
  3266. // <3=> 3
  3267. // <4=> 4
  3268. // <5=> 5
  3269. // <6=> 6
  3270. // <7=> 7
  3271. #ifndef TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  3272. #define TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3273. #endif
  3274. // </e>
  3275. // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
  3276. //==========================================================
  3277. #ifndef TWI_ENABLED
  3278. #define TWI_ENABLED 0
  3279. #endif
  3280. // <o> TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
  3281. // <26738688=> 100k
  3282. // <67108864=> 250k
  3283. // <104857600=> 400k
  3284. #ifndef TWI_DEFAULT_CONFIG_FREQUENCY
  3285. #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
  3286. #endif
  3287. // <q> TWI_DEFAULT_CONFIG_CLR_BUS_INIT - Enables bus clearing procedure during init
  3288. #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
  3289. #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
  3290. #endif
  3291. // <q> TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  3292. #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  3293. #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  3294. #endif
  3295. // <o> TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3296. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3297. // <0=> 0 (highest)
  3298. // <1=> 1
  3299. // <2=> 2
  3300. // <3=> 3
  3301. // <4=> 4
  3302. // <5=> 5
  3303. // <6=> 6
  3304. // <7=> 7
  3305. #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
  3306. #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3307. #endif
  3308. // <e> TWI0_ENABLED - Enable TWI0 instance
  3309. //==========================================================
  3310. #ifndef TWI0_ENABLED
  3311. #define TWI0_ENABLED 0
  3312. #endif
  3313. // </e>
  3314. // </e>
  3315. // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
  3316. //==========================================================
  3317. #ifndef UART_ENABLED
  3318. #define UART_ENABLED 0
  3319. #endif
  3320. // <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  3321. // <0=> Disabled
  3322. // <1=> Enabled
  3323. #ifndef UART_DEFAULT_CONFIG_HWFC
  3324. #define UART_DEFAULT_CONFIG_HWFC 0
  3325. #endif
  3326. // <o> UART_DEFAULT_CONFIG_PARITY - Parity
  3327. // <0=> Excluded
  3328. // <14=> Included
  3329. #ifndef UART_DEFAULT_CONFIG_PARITY
  3330. #define UART_DEFAULT_CONFIG_PARITY 0
  3331. #endif
  3332. // <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  3333. // <323584=> 1200 baud
  3334. // <643072=> 2400 baud
  3335. // <1290240=> 4800 baud
  3336. // <2576384=> 9600 baud
  3337. // <3862528=> 14400 baud
  3338. // <5152768=> 19200 baud
  3339. // <7716864=> 28800 baud
  3340. // <10289152=> 38400 baud
  3341. // <15400960=> 57600 baud
  3342. // <20615168=> 76800 baud
  3343. // <30801920=> 115200 baud
  3344. // <61865984=> 230400 baud
  3345. // <67108864=> 250000 baud
  3346. // <121634816=> 460800 baud
  3347. // <251658240=> 921600 baud
  3348. // <268435456=> 1000000 baud
  3349. #ifndef UART_DEFAULT_CONFIG_BAUDRATE
  3350. #define UART_DEFAULT_CONFIG_BAUDRATE 30801920
  3351. #endif
  3352. // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3353. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3354. // <0=> 0 (highest)
  3355. // <1=> 1
  3356. // <2=> 2
  3357. // <3=> 3
  3358. // <4=> 4
  3359. // <5=> 5
  3360. // <6=> 6
  3361. // <7=> 7
  3362. #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
  3363. #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3364. #endif
  3365. // <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA
  3366. #ifndef UART_EASY_DMA_SUPPORT
  3367. #define UART_EASY_DMA_SUPPORT 1
  3368. #endif
  3369. // <e> UART0_ENABLED - Enable UART0 instance
  3370. //==========================================================
  3371. #ifndef UART0_ENABLED
  3372. #define UART0_ENABLED 0
  3373. #endif
  3374. // </e>
  3375. // </e>
  3376. // <e> USBD_ENABLED - nrf_drv_usbd - USB driver
  3377. //==========================================================
  3378. #ifndef USBD_ENABLED
  3379. #define USBD_ENABLED 0
  3380. #endif
  3381. // <o> USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
  3382. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3383. // <0=> 0 (highest)
  3384. // <1=> 1
  3385. // <2=> 2
  3386. // <3=> 3
  3387. // <4=> 4
  3388. // <5=> 5
  3389. // <6=> 6
  3390. // <7=> 7
  3391. #ifndef USBD_CONFIG_IRQ_PRIORITY
  3392. #define USBD_CONFIG_IRQ_PRIORITY 6
  3393. #endif
  3394. // <o> USBD_CONFIG_DMASCHEDULER_MODE - USBD SMA scheduler working scheme
  3395. // <0=> Prioritized access
  3396. // <1=> Round Robin
  3397. #ifndef USBD_CONFIG_DMASCHEDULER_MODE
  3398. #define USBD_CONFIG_DMASCHEDULER_MODE 0
  3399. #endif
  3400. // <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
  3401. // <i> This option gives priority to isochronous transfers.
  3402. // <i> Enabling it assures that isochronous transfers are always processed,
  3403. // <i> even if multiple other transfers are pending.
  3404. // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
  3405. // <i> function is called, so the option is independent of the algorithm chosen.
  3406. #ifndef USBD_CONFIG_DMASCHEDULER_ISO_BOOST
  3407. #define USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
  3408. #endif
  3409. // <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
  3410. // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
  3411. // <i> Else, there will be no response.
  3412. #ifndef USBD_CONFIG_ISO_IN_ZLP
  3413. #define USBD_CONFIG_ISO_IN_ZLP 0
  3414. #endif
  3415. // </e>
  3416. // <e> WDT_ENABLED - nrf_drv_wdt - WDT peripheral driver - legacy layer
  3417. //==========================================================
  3418. #ifndef WDT_ENABLED
  3419. #define WDT_ENABLED 0
  3420. #endif
  3421. // <o> WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  3422. // <1=> Run in SLEEP, Pause in HALT
  3423. // <8=> Pause in SLEEP, Run in HALT
  3424. // <9=> Run in SLEEP and HALT
  3425. // <0=> Pause in SLEEP and HALT
  3426. #ifndef WDT_CONFIG_BEHAVIOUR
  3427. #define WDT_CONFIG_BEHAVIOUR 1
  3428. #endif
  3429. // <o> WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
  3430. #ifndef WDT_CONFIG_RELOAD_VALUE
  3431. #define WDT_CONFIG_RELOAD_VALUE 2000
  3432. #endif
  3433. // <o> WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3434. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3435. // <0=> 0 (highest)
  3436. // <1=> 1
  3437. // <2=> 2
  3438. // <3=> 3
  3439. // <4=> 4
  3440. // <5=> 5
  3441. // <6=> 6
  3442. // <7=> 7
  3443. #ifndef WDT_CONFIG_IRQ_PRIORITY
  3444. #define WDT_CONFIG_IRQ_PRIORITY 6
  3445. #endif
  3446. // </e>
  3447. // <h> nrfx_i2s - I2S peripheral driver
  3448. //==========================================================
  3449. // </h>
  3450. //==========================================================
  3451. // <h> nrfx_lpcomp - LPCOMP peripheral driver
  3452. //==========================================================
  3453. // </h>
  3454. //==========================================================
  3455. // <h> nrfx_qspi - QSPI peripheral driver
  3456. //==========================================================
  3457. // </h>
  3458. //==========================================================
  3459. // <h> nrfx_spi - SPI peripheral driver
  3460. //==========================================================
  3461. // </h>
  3462. //==========================================================
  3463. // <h> nrfx_twi - TWI peripheral driver
  3464. //==========================================================
  3465. // </h>
  3466. //==========================================================
  3467. // <h> nrfx_uart - UART peripheral driver
  3468. //==========================================================
  3469. // </h>
  3470. //==========================================================
  3471. // </h>
  3472. //==========================================================
  3473. // <h> nRF_Drivers_External
  3474. //==========================================================
  3475. // <q> NRF_TWI_SENSOR_ENABLED - nrf_twi_sensor - nRF TWI Sensor module
  3476. #ifndef NRF_TWI_SENSOR_ENABLED
  3477. #define NRF_TWI_SENSOR_ENABLED 0
  3478. #endif
  3479. // </h>
  3480. //==========================================================
  3481. // <h> nRF_Libraries
  3482. //==========================================================
  3483. // <q> APP_GPIOTE_ENABLED - app_gpiote - GPIOTE events dispatcher
  3484. #ifndef APP_GPIOTE_ENABLED
  3485. #define APP_GPIOTE_ENABLED 0
  3486. #endif
  3487. // <q> APP_PWM_ENABLED - app_pwm - PWM functionality
  3488. #ifndef APP_PWM_ENABLED
  3489. #define APP_PWM_ENABLED 0
  3490. #endif
  3491. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  3492. //==========================================================
  3493. #ifndef APP_SCHEDULER_ENABLED
  3494. #define APP_SCHEDULER_ENABLED 0
  3495. #endif
  3496. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  3497. #ifndef APP_SCHEDULER_WITH_PAUSE
  3498. #define APP_SCHEDULER_WITH_PAUSE 0
  3499. #endif
  3500. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  3501. #ifndef APP_SCHEDULER_WITH_PROFILER
  3502. #define APP_SCHEDULER_WITH_PROFILER 0
  3503. #endif
  3504. // </e>
  3505. // <e> APP_SDCARD_ENABLED - app_sdcard - SD/MMC card support using SPI
  3506. //==========================================================
  3507. #ifndef APP_SDCARD_ENABLED
  3508. #define APP_SDCARD_ENABLED 0
  3509. #endif
  3510. // <o> APP_SDCARD_SPI_INSTANCE - SPI instance used
  3511. // <0=> 0
  3512. // <1=> 1
  3513. // <2=> 2
  3514. #ifndef APP_SDCARD_SPI_INSTANCE
  3515. #define APP_SDCARD_SPI_INSTANCE 0
  3516. #endif
  3517. // <o> APP_SDCARD_FREQ_INIT - SPI frequency
  3518. // <33554432=> 125 kHz
  3519. // <67108864=> 250 kHz
  3520. // <134217728=> 500 kHz
  3521. // <268435456=> 1 MHz
  3522. // <536870912=> 2 MHz
  3523. // <1073741824=> 4 MHz
  3524. // <2147483648=> 8 MHz
  3525. #ifndef APP_SDCARD_FREQ_INIT
  3526. #define APP_SDCARD_FREQ_INIT 67108864
  3527. #endif
  3528. // <o> APP_SDCARD_FREQ_DATA - SPI frequency
  3529. // <33554432=> 125 kHz
  3530. // <67108864=> 250 kHz
  3531. // <134217728=> 500 kHz
  3532. // <268435456=> 1 MHz
  3533. // <536870912=> 2 MHz
  3534. // <1073741824=> 4 MHz
  3535. // <2147483648=> 8 MHz
  3536. #ifndef APP_SDCARD_FREQ_DATA
  3537. #define APP_SDCARD_FREQ_DATA 1073741824
  3538. #endif
  3539. // </e>
  3540. // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
  3541. //==========================================================
  3542. #ifndef APP_TIMER_ENABLED
  3543. #define APP_TIMER_ENABLED 0
  3544. #endif
  3545. // <o> APP_TIMER_CONFIG_RTC_FREQUENCY - Configure RTC prescaler.
  3546. // <0=> 32768 Hz
  3547. // <1=> 16384 Hz
  3548. // <3=> 8192 Hz
  3549. // <7=> 4096 Hz
  3550. // <15=> 2048 Hz
  3551. // <31=> 1024 Hz
  3552. #ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
  3553. #define APP_TIMER_CONFIG_RTC_FREQUENCY 0
  3554. #endif
  3555. // <o> APP_TIMER_CONFIG_IRQ_PRIORITY - Interrupt priority
  3556. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3557. // <0=> 0 (highest)
  3558. // <1=> 1
  3559. // <2=> 2
  3560. // <3=> 3
  3561. // <4=> 4
  3562. // <5=> 5
  3563. // <6=> 6
  3564. // <7=> 7
  3565. #ifndef APP_TIMER_CONFIG_IRQ_PRIORITY
  3566. #define APP_TIMER_CONFIG_IRQ_PRIORITY 6
  3567. #endif
  3568. // <o> APP_TIMER_CONFIG_OP_QUEUE_SIZE - Capacity of timer requests queue.
  3569. // <i> Size of the queue depends on how many timers are used
  3570. // <i> in the system, how often timers are started and overall
  3571. // <i> system latency. If queue size is too small app_timer calls
  3572. // <i> will fail.
  3573. #ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
  3574. #define APP_TIMER_CONFIG_OP_QUEUE_SIZE 10
  3575. #endif
  3576. // <q> APP_TIMER_CONFIG_USE_SCHEDULER - Enable scheduling app_timer events to app_scheduler
  3577. #ifndef APP_TIMER_CONFIG_USE_SCHEDULER
  3578. #define APP_TIMER_CONFIG_USE_SCHEDULER 0
  3579. #endif
  3580. // <q> APP_TIMER_KEEPS_RTC_ACTIVE - Enable RTC always on
  3581. // <i> If option is enabled RTC is kept running even if there is no active timers.
  3582. // <i> This option can be used when app_timer is used for timestamping.
  3583. #ifndef APP_TIMER_KEEPS_RTC_ACTIVE
  3584. #define APP_TIMER_KEEPS_RTC_ACTIVE 0
  3585. #endif
  3586. // <o> APP_TIMER_SAFE_WINDOW_MS - Maximum possible latency (in milliseconds) of handling app_timer event.
  3587. // <i> Maximum possible timeout that can be set is reduced by safe window.
  3588. // <i> Example: RTC frequency 16384 Hz, maximum possible timeout 1024 seconds - APP_TIMER_SAFE_WINDOW_MS.
  3589. // <i> Since RTC is not stopped when processor is halted in debugging session, this value
  3590. // <i> must cover it if debugging is needed. It is possible to halt processor for APP_TIMER_SAFE_WINDOW_MS
  3591. // <i> without corrupting app_timer behavior.
  3592. #ifndef APP_TIMER_SAFE_WINDOW_MS
  3593. #define APP_TIMER_SAFE_WINDOW_MS 300000
  3594. #endif
  3595. // <h> App Timer Legacy configuration - Legacy configuration.
  3596. //==========================================================
  3597. // <q> APP_TIMER_WITH_PROFILER - Enable app_timer profiling
  3598. #ifndef APP_TIMER_WITH_PROFILER
  3599. #define APP_TIMER_WITH_PROFILER 0
  3600. #endif
  3601. // <q> APP_TIMER_CONFIG_SWI_NUMBER - Configure SWI instance used.
  3602. #ifndef APP_TIMER_CONFIG_SWI_NUMBER
  3603. #define APP_TIMER_CONFIG_SWI_NUMBER 0
  3604. #endif
  3605. // </h>
  3606. //==========================================================
  3607. // </e>
  3608. // <q> APP_USBD_AUDIO_ENABLED - app_usbd_audio - USB AUDIO class
  3609. #ifndef APP_USBD_AUDIO_ENABLED
  3610. #define APP_USBD_AUDIO_ENABLED 0
  3611. #endif
  3612. // <e> APP_USBD_ENABLED - app_usbd - USB Device library
  3613. //==========================================================
  3614. #ifndef APP_USBD_ENABLED
  3615. #define APP_USBD_ENABLED 0
  3616. #endif
  3617. // <o> APP_USBD_VID - Vendor ID. <0x0000-0xFFFF>
  3618. // <i> Note: This value is not editable in Configuration Wizard.
  3619. // <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/
  3620. #ifndef APP_USBD_VID
  3621. #define APP_USBD_VID 0
  3622. #endif
  3623. // <o> APP_USBD_PID - Product ID. <0x0000-0xFFFF>
  3624. // <i> Note: This value is not editable in Configuration Wizard.
  3625. // <i> Selected Product ID
  3626. #ifndef APP_USBD_PID
  3627. #define APP_USBD_PID 0
  3628. #endif
  3629. // <o> APP_USBD_DEVICE_VER_MAJOR - Device version, major part. <0-99>
  3630. // <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
  3631. #ifndef APP_USBD_DEVICE_VER_MAJOR
  3632. #define APP_USBD_DEVICE_VER_MAJOR 1
  3633. #endif
  3634. // <o> APP_USBD_DEVICE_VER_MINOR - Device version, minor part. <0-99>
  3635. // <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
  3636. #ifndef APP_USBD_DEVICE_VER_MINOR
  3637. #define APP_USBD_DEVICE_VER_MINOR 0
  3638. #endif
  3639. // <q> APP_USBD_CONFIG_SELF_POWERED - Self-powered device, as opposed to bus-powered.
  3640. #ifndef APP_USBD_CONFIG_SELF_POWERED
  3641. #define APP_USBD_CONFIG_SELF_POWERED 1
  3642. #endif
  3643. // <o> APP_USBD_CONFIG_MAX_POWER - MaxPower field in configuration descriptor in milliamps. <0-500>
  3644. #ifndef APP_USBD_CONFIG_MAX_POWER
  3645. #define APP_USBD_CONFIG_MAX_POWER 500
  3646. #endif
  3647. // <q> APP_USBD_CONFIG_POWER_EVENTS_PROCESS - Process power events.
  3648. // <i> Enable processing power events in USB event handler.
  3649. #ifndef APP_USBD_CONFIG_POWER_EVENTS_PROCESS
  3650. #define APP_USBD_CONFIG_POWER_EVENTS_PROCESS 1
  3651. #endif
  3652. // <e> APP_USBD_CONFIG_EVENT_QUEUE_ENABLE - Enable event queue.
  3653. // <i> This is the default configuration when all the events are placed into internal queue.
  3654. // <i> Disable it when an external queue is used like app_scheduler or if you wish to process all events inside interrupts.
  3655. // <i> Processing all events from the interrupt level adds requirement not to call any functions that modifies the USBD library state from the context higher than USB interrupt context.
  3656. // <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable, and disable.
  3657. //==========================================================
  3658. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_ENABLE
  3659. #define APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 1
  3660. #endif
  3661. // <o> APP_USBD_CONFIG_EVENT_QUEUE_SIZE - The size of the event queue. <16-64>
  3662. // <i> The size of the queue for the events that would be processed in the main loop.
  3663. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_SIZE
  3664. #define APP_USBD_CONFIG_EVENT_QUEUE_SIZE 32
  3665. #endif
  3666. // <o> APP_USBD_CONFIG_SOF_HANDLING_MODE - Change SOF events handling mode.
  3667. // <i> Normal queue - SOF events are pushed normally into the event queue.
  3668. // <i> Compress queue - SOF events are counted and binded with other events or executed when the queue is empty.
  3669. // <i> This prevents the queue from filling up with SOF events.
  3670. // <i> Interrupt - SOF events are processed in interrupt.
  3671. // <0=> Normal queue
  3672. // <1=> Compress queue
  3673. // <2=> Interrupt
  3674. #ifndef APP_USBD_CONFIG_SOF_HANDLING_MODE
  3675. #define APP_USBD_CONFIG_SOF_HANDLING_MODE 1
  3676. #endif
  3677. // </e>
  3678. // <q> APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE - Provide a function that generates timestamps for logs based on the current SOF.
  3679. // <i> The function app_usbd_sof_timestamp_get is implemented if the logger is enabled.
  3680. // <i> Use it when initializing the logger.
  3681. // <i> SOF processing is always enabled when this configuration parameter is active.
  3682. // <i> Note: This option is configured outside of APP_USBD_CONFIG_LOG_ENABLED.
  3683. // <i> This means that it works even if the logging in this very module is disabled.
  3684. #ifndef APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE
  3685. #define APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE 0
  3686. #endif
  3687. // <o> APP_USBD_CONFIG_DESC_STRING_SIZE - Maximum size of the NULL-terminated string of the string descriptor. <31-254>
  3688. // <i> 31 characters can be stored in the internal USB buffer used for transfers.
  3689. // <i> Any value higher than 31 creates an additional buffer just for descriptor strings.
  3690. #ifndef APP_USBD_CONFIG_DESC_STRING_SIZE
  3691. #define APP_USBD_CONFIG_DESC_STRING_SIZE 31
  3692. #endif
  3693. // <q> APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED - Enable UTF8 conversion.
  3694. // <i> Enable UTF8-encoded characters. In normal processing, only ASCII characters are available.
  3695. #ifndef APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED
  3696. #define APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED 0
  3697. #endif
  3698. // <s> APP_USBD_STRINGS_LANGIDS - Supported languages identifiers.
  3699. // <i> Note: This value is not editable in Configuration Wizard.
  3700. // <i> Comma-separated list of supported languages.
  3701. #ifndef APP_USBD_STRINGS_LANGIDS
  3702. #define APP_USBD_STRINGS_LANGIDS APP_USBD_LANG_AND_SUBLANG(APP_USBD_LANG_ENGLISH, APP_USBD_SUBLANG_ENGLISH_US)
  3703. #endif
  3704. // <e> APP_USBD_STRING_ID_MANUFACTURER - Define manufacturer string ID.
  3705. // <i> Setting ID to 0 disables the string.
  3706. //==========================================================
  3707. #ifndef APP_USBD_STRING_ID_MANUFACTURER
  3708. #define APP_USBD_STRING_ID_MANUFACTURER 1
  3709. #endif
  3710. // <q> APP_USBD_STRINGS_MANUFACTURER_EXTERN - Define whether @ref APP_USBD_STRINGS_MANUFACTURER is created by macro or declared as a global variable.
  3711. #ifndef APP_USBD_STRINGS_MANUFACTURER_EXTERN
  3712. #define APP_USBD_STRINGS_MANUFACTURER_EXTERN 0
  3713. #endif
  3714. // <s> APP_USBD_STRINGS_MANUFACTURER - String descriptor for the manufacturer name.
  3715. // <i> Note: This value is not editable in Configuration Wizard.
  3716. // <i> Comma-separated list of manufacturer names for each defined language.
  3717. // <i> Use @ref APP_USBD_STRING_DESC macro to create string descriptor from a NULL-terminated string.
  3718. // <i> Use @ref APP_USBD_STRING_RAW8_DESC macro to create string descriptor from comma-separated uint8_t values.
  3719. // <i> Use @ref APP_USBD_STRING_RAW16_DESC macro to create string descriptor from comma-separated uint16_t values.
  3720. // <i> Alternatively, configure the macro to point to any internal variable pointer that already contains the descriptor.
  3721. // <i> Setting string to NULL disables that string.
  3722. // <i> The order of manufacturer names must be the same like in @ref APP_USBD_STRINGS_LANGIDS.
  3723. #ifndef APP_USBD_STRINGS_MANUFACTURER
  3724. #define APP_USBD_STRINGS_MANUFACTURER APP_USBD_STRING_DESC("Nordic Semiconductor")
  3725. #endif
  3726. // </e>
  3727. // <e> APP_USBD_STRING_ID_PRODUCT - Define product string ID.
  3728. // <i> Setting ID to 0 disables the string.
  3729. //==========================================================
  3730. #ifndef APP_USBD_STRING_ID_PRODUCT
  3731. #define APP_USBD_STRING_ID_PRODUCT 2
  3732. #endif
  3733. // <q> APP_USBD_STRINGS_PRODUCT_EXTERN - Define whether @ref APP_USBD_STRINGS_PRODUCT is created by macro or declared as a global variable.
  3734. #ifndef APP_USBD_STRINGS_PRODUCT_EXTERN
  3735. #define APP_USBD_STRINGS_PRODUCT_EXTERN 0
  3736. #endif
  3737. // <s> APP_USBD_STRINGS_PRODUCT - String descriptor for the product name.
  3738. // <i> Note: This value is not editable in Configuration Wizard.
  3739. // <i> List of product names that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  3740. #ifndef APP_USBD_STRINGS_PRODUCT
  3741. #define APP_USBD_STRINGS_PRODUCT APP_USBD_STRING_DESC("nRF52 USB Product")
  3742. #endif
  3743. // </e>
  3744. // <e> APP_USBD_STRING_ID_SERIAL - Define serial number string ID.
  3745. // <i> Setting ID to 0 disables the string.
  3746. //==========================================================
  3747. #ifndef APP_USBD_STRING_ID_SERIAL
  3748. #define APP_USBD_STRING_ID_SERIAL 3
  3749. #endif
  3750. // <q> APP_USBD_STRING_SERIAL_EXTERN - Define whether @ref APP_USBD_STRING_SERIAL is created by macro or declared as a global variable.
  3751. #ifndef APP_USBD_STRING_SERIAL_EXTERN
  3752. #define APP_USBD_STRING_SERIAL_EXTERN 0
  3753. #endif
  3754. // <s> APP_USBD_STRING_SERIAL - String descriptor for the serial number.
  3755. // <i> Note: This value is not editable in Configuration Wizard.
  3756. // <i> Serial number that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  3757. #ifndef APP_USBD_STRING_SERIAL
  3758. #define APP_USBD_STRING_SERIAL APP_USBD_STRING_DESC("000000000000")
  3759. #endif
  3760. // </e>
  3761. // <e> APP_USBD_STRING_ID_CONFIGURATION - Define configuration string ID.
  3762. // <i> Setting ID to 0 disables the string.
  3763. //==========================================================
  3764. #ifndef APP_USBD_STRING_ID_CONFIGURATION
  3765. #define APP_USBD_STRING_ID_CONFIGURATION 4
  3766. #endif
  3767. // <q> APP_USBD_STRING_CONFIGURATION_EXTERN - Define whether @ref APP_USBD_STRINGS_CONFIGURATION is created by macro or declared as global variable.
  3768. #ifndef APP_USBD_STRING_CONFIGURATION_EXTERN
  3769. #define APP_USBD_STRING_CONFIGURATION_EXTERN 0
  3770. #endif
  3771. // <s> APP_USBD_STRINGS_CONFIGURATION - String descriptor for the device configuration.
  3772. // <i> Note: This value is not editable in Configuration Wizard.
  3773. // <i> Configuration string that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  3774. #ifndef APP_USBD_STRINGS_CONFIGURATION
  3775. #define APP_USBD_STRINGS_CONFIGURATION APP_USBD_STRING_DESC("Default configuration")
  3776. #endif
  3777. // </e>
  3778. // <s> APP_USBD_STRINGS_USER - Default values for user strings.
  3779. // <i> Note: This value is not editable in Configuration Wizard.
  3780. // <i> This value stores all application specific user strings with the default initialization.
  3781. // <i> The setup is done by X-macros.
  3782. // <i> Expected macro parameters:
  3783. // <i> @code
  3784. // <i> X(mnemonic, [=str_idx], ...)
  3785. // <i> @endcode
  3786. // <i> - @c mnemonic: Mnemonic of the string descriptor that would be added to
  3787. // <i> @ref app_usbd_string_desc_idx_t enumerator.
  3788. // <i> - @c str_idx : String index value, can be set or left empty.
  3789. // <i> For example, WinUSB driver requires descriptor to be present on 0xEE index.
  3790. // <i> Then use X(USBD_STRING_WINUSB, =0xEE, (APP_USBD_STRING_DESC(...)))
  3791. // <i> - @c ... : List of string descriptors for each defined language.
  3792. #ifndef APP_USBD_STRINGS_USER
  3793. #define APP_USBD_STRINGS_USER X(APP_USER_1, , APP_USBD_STRING_DESC("User 1"))
  3794. #endif
  3795. // </e>
  3796. // <e> APP_USBD_HID_ENABLED - app_usbd_hid - USB HID class
  3797. //==========================================================
  3798. #ifndef APP_USBD_HID_ENABLED
  3799. #define APP_USBD_HID_ENABLED 0
  3800. #endif
  3801. // <o> APP_USBD_HID_DEFAULT_IDLE_RATE - Default idle rate for HID class. <0-255>
  3802. // <i> 0 means indefinite duration, any other value is multiplied by 4 milliseconds. Refer to Chapter 7.2.4 of HID 1.11 Specification.
  3803. #ifndef APP_USBD_HID_DEFAULT_IDLE_RATE
  3804. #define APP_USBD_HID_DEFAULT_IDLE_RATE 0
  3805. #endif
  3806. // <o> APP_USBD_HID_REPORT_IDLE_TABLE_SIZE - Size of idle rate table. <1-255>
  3807. // <i> Must be higher than the highest report ID used.
  3808. #ifndef APP_USBD_HID_REPORT_IDLE_TABLE_SIZE
  3809. #define APP_USBD_HID_REPORT_IDLE_TABLE_SIZE 4
  3810. #endif
  3811. // </e>
  3812. // <q> APP_USBD_HID_GENERIC_ENABLED - app_usbd_hid_generic - USB HID generic
  3813. #ifndef APP_USBD_HID_GENERIC_ENABLED
  3814. #define APP_USBD_HID_GENERIC_ENABLED 0
  3815. #endif
  3816. // <q> APP_USBD_HID_KBD_ENABLED - app_usbd_hid_kbd - USB HID keyboard
  3817. #ifndef APP_USBD_HID_KBD_ENABLED
  3818. #define APP_USBD_HID_KBD_ENABLED 0
  3819. #endif
  3820. // <q> APP_USBD_HID_MOUSE_ENABLED - app_usbd_hid_mouse - USB HID mouse
  3821. #ifndef APP_USBD_HID_MOUSE_ENABLED
  3822. #define APP_USBD_HID_MOUSE_ENABLED 0
  3823. #endif
  3824. // <q> APP_USBD_MSC_ENABLED - app_usbd_msc - USB MSC class
  3825. #ifndef APP_USBD_MSC_ENABLED
  3826. #define APP_USBD_MSC_ENABLED 0
  3827. #endif
  3828. // <q> CRC16_ENABLED - crc16 - CRC16 calculation routines
  3829. #ifndef CRC16_ENABLED
  3830. #define CRC16_ENABLED 0
  3831. #endif
  3832. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  3833. #ifndef CRC32_ENABLED
  3834. #define CRC32_ENABLED 0
  3835. #endif
  3836. // <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
  3837. #ifndef ECC_ENABLED
  3838. #define ECC_ENABLED 0
  3839. #endif
  3840. // <e> FDS_ENABLED - fds - Flash data storage module
  3841. //==========================================================
  3842. #ifndef FDS_ENABLED
  3843. #define FDS_ENABLED 0
  3844. #endif
  3845. // <h> Pages - Virtual page settings
  3846. // <i> Configure the number of virtual pages to use and their size.
  3847. //==========================================================
  3848. // <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use.
  3849. // <i> One of the virtual pages is reserved by the system for garbage collection.
  3850. // <i> Therefore, the minimum is two virtual pages: one page to store data and one page to be used by the system for garbage collection.
  3851. // <i> The total amount of flash memory that is used by FDS amounts to @ref FDS_VIRTUAL_PAGES * @ref FDS_VIRTUAL_PAGE_SIZE * 4 bytes.
  3852. #ifndef FDS_VIRTUAL_PAGES
  3853. #define FDS_VIRTUAL_PAGES 3
  3854. #endif
  3855. // <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual flash page.
  3856. // <i> Expressed in number of 4-byte words.
  3857. // <i> By default, a virtual page is the same size as a physical page.
  3858. // <i> The size of a virtual page must be a multiple of the size of a physical page.
  3859. // <1024=> 1024
  3860. // <2048=> 2048
  3861. #ifndef FDS_VIRTUAL_PAGE_SIZE
  3862. #define FDS_VIRTUAL_PAGE_SIZE 1024
  3863. #endif
  3864. // </h>
  3865. //==========================================================
  3866. // <h> Backend - Backend configuration
  3867. // <i> Configure which nrf_fstorage backend is used by FDS to write to flash.
  3868. //==========================================================
  3869. // <o> FDS_BACKEND - FDS flash backend.
  3870. // <i> NRF_FSTORAGE_SD uses the nrf_fstorage_sd backend implementation using the SoftDevice API. Use this if you have a SoftDevice present.
  3871. // <i> NRF_FSTORAGE_NVMC uses the nrf_fstorage_nvmc implementation. Use this setting if you don't use the SoftDevice.
  3872. // <1=> NRF_FSTORAGE_NVMC
  3873. // <2=> NRF_FSTORAGE_SD
  3874. #ifndef FDS_BACKEND
  3875. #define FDS_BACKEND 2
  3876. #endif
  3877. // </h>
  3878. //==========================================================
  3879. // <h> Queue - Queue settings
  3880. //==========================================================
  3881. // <o> FDS_OP_QUEUE_SIZE - Size of the internal queue.
  3882. // <i> Increase this value if you frequently get synchronous FDS_ERR_NO_SPACE_IN_QUEUES errors.
  3883. #ifndef FDS_OP_QUEUE_SIZE
  3884. #define FDS_OP_QUEUE_SIZE 4
  3885. #endif
  3886. // </h>
  3887. //==========================================================
  3888. // <h> CRC - CRC functionality
  3889. //==========================================================
  3890. // <e> FDS_CRC_CHECK_ON_READ - Enable CRC checks.
  3891. // <i> Save a record's CRC when it is written to flash and check it when the record is opened.
  3892. // <i> Records with an incorrect CRC can still be 'seen' by the user using FDS functions, but they cannot be opened.
  3893. // <i> Additionally, they will not be garbage collected until they are deleted.
  3894. //==========================================================
  3895. #ifndef FDS_CRC_CHECK_ON_READ
  3896. #define FDS_CRC_CHECK_ON_READ 0
  3897. #endif
  3898. // <o> FDS_CRC_CHECK_ON_WRITE - Perform a CRC check on newly written records.
  3899. // <i> Perform a CRC check on newly written records.
  3900. // <i> This setting can be used to make sure that the record data was not altered while being written to flash.
  3901. // <1=> Enabled
  3902. // <0=> Disabled
  3903. #ifndef FDS_CRC_CHECK_ON_WRITE
  3904. #define FDS_CRC_CHECK_ON_WRITE 0
  3905. #endif
  3906. // </e>
  3907. // </h>
  3908. //==========================================================
  3909. // <h> Users - Number of users
  3910. //==========================================================
  3911. // <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered.
  3912. #ifndef FDS_MAX_USERS
  3913. #define FDS_MAX_USERS 4
  3914. #endif
  3915. // </h>
  3916. //==========================================================
  3917. // </e>
  3918. // <q> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release
  3919. #ifndef HARDFAULT_HANDLER_ENABLED
  3920. #define HARDFAULT_HANDLER_ENABLED 0
  3921. #endif
  3922. // <e> HCI_MEM_POOL_ENABLED - hci_mem_pool - memory pool implementation used by HCI
  3923. //==========================================================
  3924. #ifndef HCI_MEM_POOL_ENABLED
  3925. #define HCI_MEM_POOL_ENABLED 0
  3926. #endif
  3927. // <o> HCI_TX_BUF_SIZE - TX buffer size in bytes.
  3928. #ifndef HCI_TX_BUF_SIZE
  3929. #define HCI_TX_BUF_SIZE 600
  3930. #endif
  3931. // <o> HCI_RX_BUF_SIZE - RX buffer size in bytes.
  3932. #ifndef HCI_RX_BUF_SIZE
  3933. #define HCI_RX_BUF_SIZE 600
  3934. #endif
  3935. // <o> HCI_RX_BUF_QUEUE_SIZE - RX buffer queue size.
  3936. #ifndef HCI_RX_BUF_QUEUE_SIZE
  3937. #define HCI_RX_BUF_QUEUE_SIZE 4
  3938. #endif
  3939. // </e>
  3940. // <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI
  3941. //==========================================================
  3942. #ifndef HCI_SLIP_ENABLED
  3943. #define HCI_SLIP_ENABLED 0
  3944. #endif
  3945. // <o> HCI_UART_BAUDRATE - Default Baudrate
  3946. // <323584=> 1200 baud
  3947. // <643072=> 2400 baud
  3948. // <1290240=> 4800 baud
  3949. // <2576384=> 9600 baud
  3950. // <3862528=> 14400 baud
  3951. // <5152768=> 19200 baud
  3952. // <7716864=> 28800 baud
  3953. // <10289152=> 38400 baud
  3954. // <15400960=> 57600 baud
  3955. // <20615168=> 76800 baud
  3956. // <30801920=> 115200 baud
  3957. // <61865984=> 230400 baud
  3958. // <67108864=> 250000 baud
  3959. // <121634816=> 460800 baud
  3960. // <251658240=> 921600 baud
  3961. // <268435456=> 1000000 baud
  3962. #ifndef HCI_UART_BAUDRATE
  3963. #define HCI_UART_BAUDRATE 30801920
  3964. #endif
  3965. // <o> HCI_UART_FLOW_CONTROL - Hardware Flow Control
  3966. // <0=> Disabled
  3967. // <1=> Enabled
  3968. #ifndef HCI_UART_FLOW_CONTROL
  3969. #define HCI_UART_FLOW_CONTROL 0
  3970. #endif
  3971. // <o> HCI_UART_RX_PIN - UART RX pin
  3972. #ifndef HCI_UART_RX_PIN
  3973. #define HCI_UART_RX_PIN 31
  3974. #endif
  3975. // <o> HCI_UART_TX_PIN - UART TX pin
  3976. #ifndef HCI_UART_TX_PIN
  3977. #define HCI_UART_TX_PIN 31
  3978. #endif
  3979. // <o> HCI_UART_RTS_PIN - UART RTS pin
  3980. #ifndef HCI_UART_RTS_PIN
  3981. #define HCI_UART_RTS_PIN 31
  3982. #endif
  3983. // <o> HCI_UART_CTS_PIN - UART CTS pin
  3984. #ifndef HCI_UART_CTS_PIN
  3985. #define HCI_UART_CTS_PIN 31
  3986. #endif
  3987. // </e>
  3988. // <e> HCI_TRANSPORT_ENABLED - hci_transport - HCI transport
  3989. //==========================================================
  3990. #ifndef HCI_TRANSPORT_ENABLED
  3991. #define HCI_TRANSPORT_ENABLED 0
  3992. #endif
  3993. // <o> HCI_MAX_PACKET_SIZE_IN_BITS - Maximum size of a single application packet in bits.
  3994. #ifndef HCI_MAX_PACKET_SIZE_IN_BITS
  3995. #define HCI_MAX_PACKET_SIZE_IN_BITS 8000
  3996. #endif
  3997. // </e>
  3998. // <q> LED_SOFTBLINK_ENABLED - led_softblink - led_softblink module
  3999. #ifndef LED_SOFTBLINK_ENABLED
  4000. #define LED_SOFTBLINK_ENABLED 0
  4001. #endif
  4002. // <q> LOW_POWER_PWM_ENABLED - low_power_pwm - low_power_pwm module
  4003. #ifndef LOW_POWER_PWM_ENABLED
  4004. #define LOW_POWER_PWM_ENABLED 0
  4005. #endif
  4006. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  4007. //==========================================================
  4008. #ifndef MEM_MANAGER_ENABLED
  4009. #define MEM_MANAGER_ENABLED 0
  4010. #endif
  4011. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  4012. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  4013. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  4014. #endif
  4015. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  4016. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  4017. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  4018. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  4019. #endif
  4020. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  4021. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  4022. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  4023. #endif
  4024. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  4025. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  4026. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  4027. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  4028. #endif
  4029. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  4030. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  4031. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  4032. #endif
  4033. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  4034. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  4035. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  4036. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  4037. #endif
  4038. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  4039. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  4040. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  4041. #endif
  4042. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  4043. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  4044. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  4045. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  4046. #endif
  4047. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  4048. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  4049. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  4050. #endif
  4051. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  4052. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  4053. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  4054. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  4055. #endif
  4056. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  4057. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  4058. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  4059. #endif
  4060. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  4061. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  4062. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  4063. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  4064. #endif
  4065. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  4066. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  4067. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  4068. #endif
  4069. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  4070. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  4071. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  4072. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  4073. #endif
  4074. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  4075. //==========================================================
  4076. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  4077. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  4078. #endif
  4079. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  4080. // <0=> Off
  4081. // <1=> Error
  4082. // <2=> Warning
  4083. // <3=> Info
  4084. // <4=> Debug
  4085. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  4086. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  4087. #endif
  4088. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4089. // <0=> Default
  4090. // <1=> Black
  4091. // <2=> Red
  4092. // <3=> Green
  4093. // <4=> Yellow
  4094. // <5=> Blue
  4095. // <6=> Magenta
  4096. // <7=> Cyan
  4097. // <8=> White
  4098. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  4099. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  4100. #endif
  4101. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4102. // <0=> Default
  4103. // <1=> Black
  4104. // <2=> Red
  4105. // <3=> Green
  4106. // <4=> Yellow
  4107. // <5=> Blue
  4108. // <6=> Magenta
  4109. // <7=> Cyan
  4110. // <8=> White
  4111. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  4112. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  4113. #endif
  4114. // </e>
  4115. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  4116. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  4117. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  4118. #endif
  4119. // </e>
  4120. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  4121. //==========================================================
  4122. #ifndef NRF_BALLOC_ENABLED
  4123. #define NRF_BALLOC_ENABLED 1
  4124. #endif
  4125. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  4126. //==========================================================
  4127. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  4128. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  4129. #endif
  4130. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  4131. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  4132. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  4133. #endif
  4134. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  4135. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  4136. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  4137. #endif
  4138. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  4139. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  4140. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  4141. #endif
  4142. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  4143. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  4144. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  4145. #endif
  4146. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  4147. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  4148. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  4149. #endif
  4150. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  4151. #ifndef NRF_BALLOC_CLI_CMDS
  4152. #define NRF_BALLOC_CLI_CMDS 0
  4153. #endif
  4154. // </e>
  4155. // </e>
  4156. // <e> NRF_CSENSE_ENABLED - nrf_csense - Capacitive sensor module
  4157. //==========================================================
  4158. #ifndef NRF_CSENSE_ENABLED
  4159. #define NRF_CSENSE_ENABLED 0
  4160. #endif
  4161. // <o> NRF_CSENSE_PAD_HYSTERESIS - Minimum value of change required to determine that a pad was touched.
  4162. #ifndef NRF_CSENSE_PAD_HYSTERESIS
  4163. #define NRF_CSENSE_PAD_HYSTERESIS 15
  4164. #endif
  4165. // <o> NRF_CSENSE_PAD_DEVIATION - Minimum value measured on a pad required to take it into account while calculating the step.
  4166. #ifndef NRF_CSENSE_PAD_DEVIATION
  4167. #define NRF_CSENSE_PAD_DEVIATION 70
  4168. #endif
  4169. // <o> NRF_CSENSE_MIN_PAD_VALUE - Minimum normalized value on a pad required to take its value into account.
  4170. #ifndef NRF_CSENSE_MIN_PAD_VALUE
  4171. #define NRF_CSENSE_MIN_PAD_VALUE 20
  4172. #endif
  4173. // <o> NRF_CSENSE_MAX_PADS_NUMBER - Maximum number of pads used for one instance.
  4174. #ifndef NRF_CSENSE_MAX_PADS_NUMBER
  4175. #define NRF_CSENSE_MAX_PADS_NUMBER 20
  4176. #endif
  4177. // <o> NRF_CSENSE_MAX_VALUE - Maximum normalized value obtained from measurement.
  4178. #ifndef NRF_CSENSE_MAX_VALUE
  4179. #define NRF_CSENSE_MAX_VALUE 1000
  4180. #endif
  4181. // <o> NRF_CSENSE_OUTPUT_PIN - Output pin used by the low-level module.
  4182. // <i> This is used when capacitive sensor does not use COMP.
  4183. #ifndef NRF_CSENSE_OUTPUT_PIN
  4184. #define NRF_CSENSE_OUTPUT_PIN 26
  4185. #endif
  4186. // </e>
  4187. // <e> NRF_DRV_CSENSE_ENABLED - nrf_drv_csense - Capacitive sensor low-level module
  4188. //==========================================================
  4189. #ifndef NRF_DRV_CSENSE_ENABLED
  4190. #define NRF_DRV_CSENSE_ENABLED 0
  4191. #endif
  4192. // <e> USE_COMP - Use the comparator to implement the capacitive sensor driver.
  4193. // <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation.
  4194. //==========================================================
  4195. #ifndef USE_COMP
  4196. #define USE_COMP 0
  4197. #endif
  4198. // <o> TIMER0_FOR_CSENSE - First TIMER instance used by the driver (not used on nRF51).
  4199. #ifndef TIMER0_FOR_CSENSE
  4200. #define TIMER0_FOR_CSENSE 1
  4201. #endif
  4202. // <o> TIMER1_FOR_CSENSE - Second TIMER instance used by the driver (not used on nRF51).
  4203. #ifndef TIMER1_FOR_CSENSE
  4204. #define TIMER1_FOR_CSENSE 2
  4205. #endif
  4206. // <o> MEASUREMENT_PERIOD - Single measurement period.
  4207. // <i> Time of a single measurement can be calculated as
  4208. // <i> T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ).
  4209. // <i> I_SOURCE, VUP, and VDOWN are values used to initialize COMP and C is the capacitance of the used pad.
  4210. #ifndef MEASUREMENT_PERIOD
  4211. #define MEASUREMENT_PERIOD 20
  4212. #endif
  4213. // </e>
  4214. // </e>
  4215. // <q> NRF_FPRINTF_ENABLED - nrf_fprintf - fprintf function.
  4216. #ifndef NRF_FPRINTF_ENABLED
  4217. #define NRF_FPRINTF_ENABLED 1
  4218. #endif
  4219. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  4220. //==========================================================
  4221. #ifndef NRF_FSTORAGE_ENABLED
  4222. #define NRF_FSTORAGE_ENABLED 0
  4223. #endif
  4224. // <h> nrf_fstorage - Common settings
  4225. // <i> Common settings to all fstorage implementations
  4226. //==========================================================
  4227. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  4228. // <i> If selected, use ASSERT to validate user input.
  4229. // <i> This effectively removes user input validation in production code.
  4230. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  4231. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  4232. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
  4233. #endif
  4234. // </h>
  4235. //==========================================================
  4236. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  4237. // <i> Configuration options for the fstorage implementation using the SoftDevice
  4238. //==========================================================
  4239. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  4240. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  4241. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  4242. #define NRF_FSTORAGE_SD_QUEUE_SIZE 4
  4243. #endif
  4244. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  4245. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  4246. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  4247. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  4248. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  4249. #endif
  4250. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  4251. // <i> This value must be a multiple of four.
  4252. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  4253. // <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.
  4254. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  4255. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  4256. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
  4257. #endif
  4258. // </h>
  4259. //==========================================================
  4260. // </e>
  4261. // <q> NRF_GFX_ENABLED - nrf_gfx - GFX module
  4262. #ifndef NRF_GFX_ENABLED
  4263. #define NRF_GFX_ENABLED 0
  4264. #endif
  4265. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  4266. #ifndef NRF_MEMOBJ_ENABLED
  4267. #define NRF_MEMOBJ_ENABLED 1
  4268. #endif
  4269. // <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
  4270. //==========================================================
  4271. #ifndef NRF_PWR_MGMT_ENABLED
  4272. #define NRF_PWR_MGMT_ENABLED 0
  4273. #endif
  4274. // <e> NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
  4275. // <i> Selected pin will be set when CPU is in sleep mode.
  4276. //==========================================================
  4277. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
  4278. #define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED 0
  4279. #endif
  4280. // <o> NRF_PWR_MGMT_SLEEP_DEBUG_PIN - Pin number
  4281. // <0=> 0 (P0.0)
  4282. // <1=> 1 (P0.1)
  4283. // <2=> 2 (P0.2)
  4284. // <3=> 3 (P0.3)
  4285. // <4=> 4 (P0.4)
  4286. // <5=> 5 (P0.5)
  4287. // <6=> 6 (P0.6)
  4288. // <7=> 7 (P0.7)
  4289. // <8=> 8 (P0.8)
  4290. // <9=> 9 (P0.9)
  4291. // <10=> 10 (P0.10)
  4292. // <11=> 11 (P0.11)
  4293. // <12=> 12 (P0.12)
  4294. // <13=> 13 (P0.13)
  4295. // <14=> 14 (P0.14)
  4296. // <15=> 15 (P0.15)
  4297. // <16=> 16 (P0.16)
  4298. // <17=> 17 (P0.17)
  4299. // <18=> 18 (P0.18)
  4300. // <19=> 19 (P0.19)
  4301. // <20=> 20 (P0.20)
  4302. // <21=> 21 (P0.21)
  4303. // <22=> 22 (P0.22)
  4304. // <23=> 23 (P0.23)
  4305. // <24=> 24 (P0.24)
  4306. // <25=> 25 (P0.25)
  4307. // <26=> 26 (P0.26)
  4308. // <27=> 27 (P0.27)
  4309. // <28=> 28 (P0.28)
  4310. // <29=> 29 (P0.29)
  4311. // <30=> 30 (P0.30)
  4312. // <31=> 31 (P0.31)
  4313. // <4294967295=> Not connected
  4314. #ifndef NRF_PWR_MGMT_SLEEP_DEBUG_PIN
  4315. #define NRF_PWR_MGMT_SLEEP_DEBUG_PIN 31
  4316. #endif
  4317. // </e>
  4318. // <q> NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED - Enables CPU usage monitor.
  4319. // <i> Module will trace percentage of CPU usage in one second intervals.
  4320. #ifndef NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED
  4321. #define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED 0
  4322. #endif
  4323. // <e> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED - Enable standby timeout.
  4324. //==========================================================
  4325. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
  4326. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED 0
  4327. #endif
  4328. // <o> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S - Standby timeout (in seconds).
  4329. // <i> Shutdown procedure will begin no earlier than after this number of seconds.
  4330. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S
  4331. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S 3
  4332. #endif
  4333. // </e>
  4334. // <q> NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED - Enables FPU event cleaning.
  4335. #ifndef NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED
  4336. #define NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED 0
  4337. #endif
  4338. // <q> NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY - Blocked shutdown procedure will be retried every second.
  4339. #ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
  4340. #define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 0
  4341. #endif
  4342. // <q> NRF_PWR_MGMT_CONFIG_USE_SCHEDULER - Module will use @ref app_scheduler.
  4343. #ifndef NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
  4344. #define NRF_PWR_MGMT_CONFIG_USE_SCHEDULER 0
  4345. #endif
  4346. // <o> NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT - The number of priorities for module handlers.
  4347. // <i> The number of stages of the shutdown process.
  4348. #ifndef NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT
  4349. #define NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT 3
  4350. #endif
  4351. // </e>
  4352. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  4353. //==========================================================
  4354. #ifndef NRF_QUEUE_ENABLED
  4355. #define NRF_QUEUE_ENABLED 0
  4356. #endif
  4357. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  4358. #ifndef NRF_QUEUE_CLI_CMDS
  4359. #define NRF_QUEUE_CLI_CMDS 0
  4360. #endif
  4361. // </e>
  4362. // <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
  4363. #ifndef NRF_SECTION_ITER_ENABLED
  4364. #define NRF_SECTION_ITER_ENABLED 1
  4365. #endif
  4366. // <q> NRF_SORTLIST_ENABLED - nrf_sortlist - Sorted list
  4367. #ifndef NRF_SORTLIST_ENABLED
  4368. #define NRF_SORTLIST_ENABLED 0
  4369. #endif
  4370. // <q> NRF_SPI_MNGR_ENABLED - nrf_spi_mngr - SPI transaction manager
  4371. #ifndef NRF_SPI_MNGR_ENABLED
  4372. #define NRF_SPI_MNGR_ENABLED 0
  4373. #endif
  4374. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  4375. #ifndef NRF_STRERROR_ENABLED
  4376. #define NRF_STRERROR_ENABLED 1
  4377. #endif
  4378. // <q> NRF_TWI_MNGR_ENABLED - nrf_twi_mngr - TWI transaction manager
  4379. #ifndef NRF_TWI_MNGR_ENABLED
  4380. #define NRF_TWI_MNGR_ENABLED 0
  4381. #endif
  4382. // <q> SLIP_ENABLED - slip - SLIP encoding and decoding
  4383. #ifndef SLIP_ENABLED
  4384. #define SLIP_ENABLED 0
  4385. #endif
  4386. // <e> TASK_MANAGER_ENABLED - task_manager - Task manager.
  4387. //==========================================================
  4388. #ifndef TASK_MANAGER_ENABLED
  4389. #define TASK_MANAGER_ENABLED 0
  4390. #endif
  4391. // <q> TASK_MANAGER_CLI_CMDS - Enable CLI commands specific to the module
  4392. #ifndef TASK_MANAGER_CLI_CMDS
  4393. #define TASK_MANAGER_CLI_CMDS 0
  4394. #endif
  4395. // <o> TASK_MANAGER_CONFIG_MAX_TASKS - Maximum number of tasks which can be created
  4396. #ifndef TASK_MANAGER_CONFIG_MAX_TASKS
  4397. #define TASK_MANAGER_CONFIG_MAX_TASKS 2
  4398. #endif
  4399. // <o> TASK_MANAGER_CONFIG_STACK_SIZE - Stack size for every task (power of 2)
  4400. #ifndef TASK_MANAGER_CONFIG_STACK_SIZE
  4401. #define TASK_MANAGER_CONFIG_STACK_SIZE 1024
  4402. #endif
  4403. // <q> TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED - Enable stack profiling.
  4404. #ifndef TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED
  4405. #define TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED 1
  4406. #endif
  4407. // <o> TASK_MANAGER_CONFIG_STACK_GUARD - Configures stack guard.
  4408. // <0=> Disabled
  4409. // <4=> 32 bytes
  4410. // <5=> 64 bytes
  4411. // <6=> 128 bytes
  4412. // <7=> 256 bytes
  4413. // <8=> 512 bytes
  4414. #ifndef TASK_MANAGER_CONFIG_STACK_GUARD
  4415. #define TASK_MANAGER_CONFIG_STACK_GUARD 7
  4416. #endif
  4417. // </e>
  4418. // <h> app_button - buttons handling module
  4419. //==========================================================
  4420. // <q> BUTTON_ENABLED - Enables Button module
  4421. #ifndef BUTTON_ENABLED
  4422. #define BUTTON_ENABLED 0
  4423. #endif
  4424. // <q> BUTTON_HIGH_ACCURACY_ENABLED - Enables GPIOTE high accuracy for buttons
  4425. #ifndef BUTTON_HIGH_ACCURACY_ENABLED
  4426. #define BUTTON_HIGH_ACCURACY_ENABLED 0
  4427. #endif
  4428. // </h>
  4429. //==========================================================
  4430. // <h> app_usbd_cdc_acm - USB CDC ACM class
  4431. //==========================================================
  4432. // <q> APP_USBD_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library
  4433. #ifndef APP_USBD_CDC_ACM_ENABLED
  4434. #define APP_USBD_CDC_ACM_ENABLED 0
  4435. #endif
  4436. // <q> APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE - Send ZLP on write with same size as endpoint
  4437. // <i> If enabled, CDC ACM class will automatically send a zero length packet after transfer which has the same size as endpoint.
  4438. // <i> This may limit throughput if a lot of binary data is sent, but in terminal mode operation it makes sure that the data is always displayed right after it is sent.
  4439. #ifndef APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE
  4440. #define APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE 1
  4441. #endif
  4442. // </h>
  4443. //==========================================================
  4444. // <h> nrf_cli - Command line interface
  4445. //==========================================================
  4446. // <q> NRF_CLI_ENABLED - Enable/disable the CLI module.
  4447. #ifndef NRF_CLI_ENABLED
  4448. #define NRF_CLI_ENABLED 0
  4449. #endif
  4450. // <o> NRF_CLI_ARGC_MAX - Maximum number of parameters passed to the command handler.
  4451. #ifndef NRF_CLI_ARGC_MAX
  4452. #define NRF_CLI_ARGC_MAX 12
  4453. #endif
  4454. // <q> NRF_CLI_BUILD_IN_CMDS_ENABLED - CLI built-in commands.
  4455. #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
  4456. #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
  4457. #endif
  4458. // <o> NRF_CLI_CMD_BUFF_SIZE - Maximum buffer size for a single command.
  4459. #ifndef NRF_CLI_CMD_BUFF_SIZE
  4460. #define NRF_CLI_CMD_BUFF_SIZE 128
  4461. #endif
  4462. // <q> NRF_CLI_ECHO_STATUS - CLI echo status. If set, echo is ON.
  4463. #ifndef NRF_CLI_ECHO_STATUS
  4464. #define NRF_CLI_ECHO_STATUS 1
  4465. #endif
  4466. // <q> NRF_CLI_WILDCARD_ENABLED - Enable wildcard functionality for CLI commands.
  4467. #ifndef NRF_CLI_WILDCARD_ENABLED
  4468. #define NRF_CLI_WILDCARD_ENABLED 0
  4469. #endif
  4470. // <q> NRF_CLI_METAKEYS_ENABLED - Enable additional control keys for CLI commands like ctrl+a, ctrl+e, ctrl+w, ctrl+u
  4471. #ifndef NRF_CLI_METAKEYS_ENABLED
  4472. #define NRF_CLI_METAKEYS_ENABLED 0
  4473. #endif
  4474. // <o> NRF_CLI_PRINTF_BUFF_SIZE - Maximum print buffer size.
  4475. #ifndef NRF_CLI_PRINTF_BUFF_SIZE
  4476. #define NRF_CLI_PRINTF_BUFF_SIZE 23
  4477. #endif
  4478. // <e> NRF_CLI_HISTORY_ENABLED - Enable CLI history mode.
  4479. //==========================================================
  4480. #ifndef NRF_CLI_HISTORY_ENABLED
  4481. #define NRF_CLI_HISTORY_ENABLED 1
  4482. #endif
  4483. // <o> NRF_CLI_HISTORY_ELEMENT_SIZE - Size of one memory object reserved for CLI history.
  4484. #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
  4485. #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
  4486. #endif
  4487. // <o> NRF_CLI_HISTORY_ELEMENT_COUNT - Number of history memory objects.
  4488. #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
  4489. #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
  4490. #endif
  4491. // </e>
  4492. // <q> NRF_CLI_VT100_COLORS_ENABLED - CLI VT100 colors.
  4493. #ifndef NRF_CLI_VT100_COLORS_ENABLED
  4494. #define NRF_CLI_VT100_COLORS_ENABLED 1
  4495. #endif
  4496. // <q> NRF_CLI_STATISTICS_ENABLED - Enable CLI statistics.
  4497. #ifndef NRF_CLI_STATISTICS_ENABLED
  4498. #define NRF_CLI_STATISTICS_ENABLED 1
  4499. #endif
  4500. // <q> NRF_CLI_LOG_BACKEND - Enable logger backend interface.
  4501. #ifndef NRF_CLI_LOG_BACKEND
  4502. #define NRF_CLI_LOG_BACKEND 1
  4503. #endif
  4504. // <q> NRF_CLI_USES_TASK_MANAGER_ENABLED - Enable CLI to use task_manager
  4505. #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
  4506. #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
  4507. #endif
  4508. // </h>
  4509. //==========================================================
  4510. // </h>
  4511. //==========================================================
  4512. // <h> nRF_Log
  4513. //==========================================================
  4514. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  4515. //==========================================================
  4516. #ifndef NRF_LOG_ENABLED
  4517. #define NRF_LOG_ENABLED 0
  4518. #endif
  4519. // <h> Log message pool - Configuration of log message pool
  4520. //==========================================================
  4521. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  4522. // <i> If a small value is set, then performance of logs processing
  4523. // <i> is degraded because data is fragmented. Bigger value impacts
  4524. // <i> RAM memory utilization. The size is set to fit a message with
  4525. // <i> a timestamp and up to 2 arguments in a single memory object.
  4526. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  4527. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  4528. #endif
  4529. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  4530. // <i> If a small value is set, then it may lead to a deadlock
  4531. // <i> in certain cases if backend has high latency and holds
  4532. // <i> multiple messages for long time. Bigger value impacts
  4533. // <i> RAM memory usage.
  4534. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  4535. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  4536. #endif
  4537. // </h>
  4538. //==========================================================
  4539. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  4540. // <i> If set then oldest logs are overwritten. Otherwise a
  4541. // <i> marker is injected informing about overflow.
  4542. #ifndef NRF_LOG_ALLOW_OVERFLOW
  4543. #define NRF_LOG_ALLOW_OVERFLOW 1
  4544. #endif
  4545. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  4546. // <i> Must be power of 2 and multiple of 4.
  4547. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  4548. // <128=> 128
  4549. // <256=> 256
  4550. // <512=> 512
  4551. // <1024=> 1024
  4552. // <2048=> 2048
  4553. // <4096=> 4096
  4554. // <8192=> 8192
  4555. // <16384=> 16384
  4556. #ifndef NRF_LOG_BUFSIZE
  4557. #define NRF_LOG_BUFSIZE 1024
  4558. #endif
  4559. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  4560. #ifndef NRF_LOG_CLI_CMDS
  4561. #define NRF_LOG_CLI_CMDS 0
  4562. #endif
  4563. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  4564. // <0=> Off
  4565. // <1=> Error
  4566. // <2=> Warning
  4567. // <3=> Info
  4568. // <4=> Debug
  4569. #ifndef NRF_LOG_DEFAULT_LEVEL
  4570. #define NRF_LOG_DEFAULT_LEVEL 3
  4571. #endif
  4572. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  4573. // <i> Log data is buffered and can be processed in idle.
  4574. #ifndef NRF_LOG_DEFERRED
  4575. #define NRF_LOG_DEFERRED 1
  4576. #endif
  4577. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  4578. #ifndef NRF_LOG_FILTERS_ENABLED
  4579. #define NRF_LOG_FILTERS_ENABLED 0
  4580. #endif
  4581. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  4582. // <16=> 16
  4583. // <32=> 32
  4584. // <64=> 64
  4585. // <128=> 128
  4586. // <256=> 256
  4587. // <512=> 512
  4588. // <1024=> 1024
  4589. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  4590. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  4591. #endif
  4592. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  4593. // <16=> 16
  4594. // <32=> 32
  4595. // <64=> 64
  4596. // <128=> 128
  4597. // <256=> 256
  4598. // <512=> 512
  4599. // <1024=> 1024
  4600. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  4601. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  4602. #endif
  4603. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  4604. //==========================================================
  4605. #ifndef NRF_LOG_USES_COLORS
  4606. #define NRF_LOG_USES_COLORS 0
  4607. #endif
  4608. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  4609. // <0=> Default
  4610. // <1=> Black
  4611. // <2=> Red
  4612. // <3=> Green
  4613. // <4=> Yellow
  4614. // <5=> Blue
  4615. // <6=> Magenta
  4616. // <7=> Cyan
  4617. // <8=> White
  4618. #ifndef NRF_LOG_COLOR_DEFAULT
  4619. #define NRF_LOG_COLOR_DEFAULT 0
  4620. #endif
  4621. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  4622. // <0=> Default
  4623. // <1=> Black
  4624. // <2=> Red
  4625. // <3=> Green
  4626. // <4=> Yellow
  4627. // <5=> Blue
  4628. // <6=> Magenta
  4629. // <7=> Cyan
  4630. // <8=> White
  4631. #ifndef NRF_LOG_ERROR_COLOR
  4632. #define NRF_LOG_ERROR_COLOR 2
  4633. #endif
  4634. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  4635. // <0=> Default
  4636. // <1=> Black
  4637. // <2=> Red
  4638. // <3=> Green
  4639. // <4=> Yellow
  4640. // <5=> Blue
  4641. // <6=> Magenta
  4642. // <7=> Cyan
  4643. // <8=> White
  4644. #ifndef NRF_LOG_WARNING_COLOR
  4645. #define NRF_LOG_WARNING_COLOR 4
  4646. #endif
  4647. // </e>
  4648. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  4649. // <i> Function for getting the timestamp is provided by the user
  4650. //==========================================================
  4651. #ifndef NRF_LOG_USES_TIMESTAMP
  4652. #define NRF_LOG_USES_TIMESTAMP 0
  4653. #endif
  4654. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  4655. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  4656. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  4657. #endif
  4658. // </e>
  4659. // <h> nrf_log module configuration
  4660. //==========================================================
  4661. // <h> nrf_log in nRF_Core
  4662. //==========================================================
  4663. // <e> NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module.
  4664. //==========================================================
  4665. #ifndef NRF_MPU_CONFIG_LOG_ENABLED
  4666. #define NRF_MPU_CONFIG_LOG_ENABLED 0
  4667. #endif
  4668. // <o> NRF_MPU_CONFIG_LOG_LEVEL - Default Severity level
  4669. // <0=> Off
  4670. // <1=> Error
  4671. // <2=> Warning
  4672. // <3=> Info
  4673. // <4=> Debug
  4674. #ifndef NRF_MPU_CONFIG_LOG_LEVEL
  4675. #define NRF_MPU_CONFIG_LOG_LEVEL 3
  4676. #endif
  4677. // <o> NRF_MPU_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4678. // <0=> Default
  4679. // <1=> Black
  4680. // <2=> Red
  4681. // <3=> Green
  4682. // <4=> Yellow
  4683. // <5=> Blue
  4684. // <6=> Magenta
  4685. // <7=> Cyan
  4686. // <8=> White
  4687. #ifndef NRF_MPU_CONFIG_INFO_COLOR
  4688. #define NRF_MPU_CONFIG_INFO_COLOR 0
  4689. #endif
  4690. // <o> NRF_MPU_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4691. // <0=> Default
  4692. // <1=> Black
  4693. // <2=> Red
  4694. // <3=> Green
  4695. // <4=> Yellow
  4696. // <5=> Blue
  4697. // <6=> Magenta
  4698. // <7=> Cyan
  4699. // <8=> White
  4700. #ifndef NRF_MPU_CONFIG_DEBUG_COLOR
  4701. #define NRF_MPU_CONFIG_DEBUG_COLOR 0
  4702. #endif
  4703. // </e>
  4704. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  4705. //==========================================================
  4706. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  4707. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  4708. #endif
  4709. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  4710. // <0=> Off
  4711. // <1=> Error
  4712. // <2=> Warning
  4713. // <3=> Info
  4714. // <4=> Debug
  4715. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  4716. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  4717. #endif
  4718. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4719. // <0=> Default
  4720. // <1=> Black
  4721. // <2=> Red
  4722. // <3=> Green
  4723. // <4=> Yellow
  4724. // <5=> Blue
  4725. // <6=> Magenta
  4726. // <7=> Cyan
  4727. // <8=> White
  4728. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  4729. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  4730. #endif
  4731. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4732. // <0=> Default
  4733. // <1=> Black
  4734. // <2=> Red
  4735. // <3=> Green
  4736. // <4=> Yellow
  4737. // <5=> Blue
  4738. // <6=> Magenta
  4739. // <7=> Cyan
  4740. // <8=> White
  4741. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  4742. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  4743. #endif
  4744. // </e>
  4745. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  4746. //==========================================================
  4747. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  4748. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  4749. #endif
  4750. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  4751. // <0=> Off
  4752. // <1=> Error
  4753. // <2=> Warning
  4754. // <3=> Info
  4755. // <4=> Debug
  4756. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  4757. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  4758. #endif
  4759. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4760. // <0=> Default
  4761. // <1=> Black
  4762. // <2=> Red
  4763. // <3=> Green
  4764. // <4=> Yellow
  4765. // <5=> Blue
  4766. // <6=> Magenta
  4767. // <7=> Cyan
  4768. // <8=> White
  4769. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  4770. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  4771. #endif
  4772. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4773. // <0=> Default
  4774. // <1=> Black
  4775. // <2=> Red
  4776. // <3=> Green
  4777. // <4=> Yellow
  4778. // <5=> Blue
  4779. // <6=> Magenta
  4780. // <7=> Cyan
  4781. // <8=> White
  4782. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  4783. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  4784. #endif
  4785. // </e>
  4786. // </h>
  4787. //==========================================================
  4788. // <h> nrf_log in nRF_Drivers
  4789. //==========================================================
  4790. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  4791. //==========================================================
  4792. #ifndef CLOCK_CONFIG_LOG_ENABLED
  4793. #define CLOCK_CONFIG_LOG_ENABLED 0
  4794. #endif
  4795. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  4796. // <0=> Off
  4797. // <1=> Error
  4798. // <2=> Warning
  4799. // <3=> Info
  4800. // <4=> Debug
  4801. #ifndef CLOCK_CONFIG_LOG_LEVEL
  4802. #define CLOCK_CONFIG_LOG_LEVEL 3
  4803. #endif
  4804. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4805. // <0=> Default
  4806. // <1=> Black
  4807. // <2=> Red
  4808. // <3=> Green
  4809. // <4=> Yellow
  4810. // <5=> Blue
  4811. // <6=> Magenta
  4812. // <7=> Cyan
  4813. // <8=> White
  4814. #ifndef CLOCK_CONFIG_INFO_COLOR
  4815. #define CLOCK_CONFIG_INFO_COLOR 0
  4816. #endif
  4817. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4818. // <0=> Default
  4819. // <1=> Black
  4820. // <2=> Red
  4821. // <3=> Green
  4822. // <4=> Yellow
  4823. // <5=> Blue
  4824. // <6=> Magenta
  4825. // <7=> Cyan
  4826. // <8=> White
  4827. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  4828. #define CLOCK_CONFIG_DEBUG_COLOR 0
  4829. #endif
  4830. // </e>
  4831. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  4832. //==========================================================
  4833. #ifndef COMP_CONFIG_LOG_ENABLED
  4834. #define COMP_CONFIG_LOG_ENABLED 0
  4835. #endif
  4836. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  4837. // <0=> Off
  4838. // <1=> Error
  4839. // <2=> Warning
  4840. // <3=> Info
  4841. // <4=> Debug
  4842. #ifndef COMP_CONFIG_LOG_LEVEL
  4843. #define COMP_CONFIG_LOG_LEVEL 3
  4844. #endif
  4845. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4846. // <0=> Default
  4847. // <1=> Black
  4848. // <2=> Red
  4849. // <3=> Green
  4850. // <4=> Yellow
  4851. // <5=> Blue
  4852. // <6=> Magenta
  4853. // <7=> Cyan
  4854. // <8=> White
  4855. #ifndef COMP_CONFIG_INFO_COLOR
  4856. #define COMP_CONFIG_INFO_COLOR 0
  4857. #endif
  4858. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4859. // <0=> Default
  4860. // <1=> Black
  4861. // <2=> Red
  4862. // <3=> Green
  4863. // <4=> Yellow
  4864. // <5=> Blue
  4865. // <6=> Magenta
  4866. // <7=> Cyan
  4867. // <8=> White
  4868. #ifndef COMP_CONFIG_DEBUG_COLOR
  4869. #define COMP_CONFIG_DEBUG_COLOR 0
  4870. #endif
  4871. // </e>
  4872. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  4873. //==========================================================
  4874. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  4875. #define GPIOTE_CONFIG_LOG_ENABLED 0
  4876. #endif
  4877. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  4878. // <0=> Off
  4879. // <1=> Error
  4880. // <2=> Warning
  4881. // <3=> Info
  4882. // <4=> Debug
  4883. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  4884. #define GPIOTE_CONFIG_LOG_LEVEL 3
  4885. #endif
  4886. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4887. // <0=> Default
  4888. // <1=> Black
  4889. // <2=> Red
  4890. // <3=> Green
  4891. // <4=> Yellow
  4892. // <5=> Blue
  4893. // <6=> Magenta
  4894. // <7=> Cyan
  4895. // <8=> White
  4896. #ifndef GPIOTE_CONFIG_INFO_COLOR
  4897. #define GPIOTE_CONFIG_INFO_COLOR 0
  4898. #endif
  4899. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4900. // <0=> Default
  4901. // <1=> Black
  4902. // <2=> Red
  4903. // <3=> Green
  4904. // <4=> Yellow
  4905. // <5=> Blue
  4906. // <6=> Magenta
  4907. // <7=> Cyan
  4908. // <8=> White
  4909. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  4910. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  4911. #endif
  4912. // </e>
  4913. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  4914. //==========================================================
  4915. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  4916. #define LPCOMP_CONFIG_LOG_ENABLED 0
  4917. #endif
  4918. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  4919. // <0=> Off
  4920. // <1=> Error
  4921. // <2=> Warning
  4922. // <3=> Info
  4923. // <4=> Debug
  4924. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  4925. #define LPCOMP_CONFIG_LOG_LEVEL 3
  4926. #endif
  4927. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4928. // <0=> Default
  4929. // <1=> Black
  4930. // <2=> Red
  4931. // <3=> Green
  4932. // <4=> Yellow
  4933. // <5=> Blue
  4934. // <6=> Magenta
  4935. // <7=> Cyan
  4936. // <8=> White
  4937. #ifndef LPCOMP_CONFIG_INFO_COLOR
  4938. #define LPCOMP_CONFIG_INFO_COLOR 0
  4939. #endif
  4940. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4941. // <0=> Default
  4942. // <1=> Black
  4943. // <2=> Red
  4944. // <3=> Green
  4945. // <4=> Yellow
  4946. // <5=> Blue
  4947. // <6=> Magenta
  4948. // <7=> Cyan
  4949. // <8=> White
  4950. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  4951. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  4952. #endif
  4953. // </e>
  4954. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  4955. //==========================================================
  4956. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  4957. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  4958. #endif
  4959. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  4960. // <0=> Off
  4961. // <1=> Error
  4962. // <2=> Warning
  4963. // <3=> Info
  4964. // <4=> Debug
  4965. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  4966. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  4967. #endif
  4968. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  4969. // <0=> Default
  4970. // <1=> Black
  4971. // <2=> Red
  4972. // <3=> Green
  4973. // <4=> Yellow
  4974. // <5=> Blue
  4975. // <6=> Magenta
  4976. // <7=> Cyan
  4977. // <8=> White
  4978. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  4979. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  4980. #endif
  4981. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  4982. // <0=> Default
  4983. // <1=> Black
  4984. // <2=> Red
  4985. // <3=> Green
  4986. // <4=> Yellow
  4987. // <5=> Blue
  4988. // <6=> Magenta
  4989. // <7=> Cyan
  4990. // <8=> White
  4991. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  4992. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  4993. #endif
  4994. // </e>
  4995. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  4996. //==========================================================
  4997. #ifndef PDM_CONFIG_LOG_ENABLED
  4998. #define PDM_CONFIG_LOG_ENABLED 0
  4999. #endif
  5000. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  5001. // <0=> Off
  5002. // <1=> Error
  5003. // <2=> Warning
  5004. // <3=> Info
  5005. // <4=> Debug
  5006. #ifndef PDM_CONFIG_LOG_LEVEL
  5007. #define PDM_CONFIG_LOG_LEVEL 3
  5008. #endif
  5009. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5010. // <0=> Default
  5011. // <1=> Black
  5012. // <2=> Red
  5013. // <3=> Green
  5014. // <4=> Yellow
  5015. // <5=> Blue
  5016. // <6=> Magenta
  5017. // <7=> Cyan
  5018. // <8=> White
  5019. #ifndef PDM_CONFIG_INFO_COLOR
  5020. #define PDM_CONFIG_INFO_COLOR 0
  5021. #endif
  5022. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5023. // <0=> Default
  5024. // <1=> Black
  5025. // <2=> Red
  5026. // <3=> Green
  5027. // <4=> Yellow
  5028. // <5=> Blue
  5029. // <6=> Magenta
  5030. // <7=> Cyan
  5031. // <8=> White
  5032. #ifndef PDM_CONFIG_DEBUG_COLOR
  5033. #define PDM_CONFIG_DEBUG_COLOR 0
  5034. #endif
  5035. // </e>
  5036. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  5037. //==========================================================
  5038. #ifndef PPI_CONFIG_LOG_ENABLED
  5039. #define PPI_CONFIG_LOG_ENABLED 0
  5040. #endif
  5041. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  5042. // <0=> Off
  5043. // <1=> Error
  5044. // <2=> Warning
  5045. // <3=> Info
  5046. // <4=> Debug
  5047. #ifndef PPI_CONFIG_LOG_LEVEL
  5048. #define PPI_CONFIG_LOG_LEVEL 3
  5049. #endif
  5050. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5051. // <0=> Default
  5052. // <1=> Black
  5053. // <2=> Red
  5054. // <3=> Green
  5055. // <4=> Yellow
  5056. // <5=> Blue
  5057. // <6=> Magenta
  5058. // <7=> Cyan
  5059. // <8=> White
  5060. #ifndef PPI_CONFIG_INFO_COLOR
  5061. #define PPI_CONFIG_INFO_COLOR 0
  5062. #endif
  5063. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5064. // <0=> Default
  5065. // <1=> Black
  5066. // <2=> Red
  5067. // <3=> Green
  5068. // <4=> Yellow
  5069. // <5=> Blue
  5070. // <6=> Magenta
  5071. // <7=> Cyan
  5072. // <8=> White
  5073. #ifndef PPI_CONFIG_DEBUG_COLOR
  5074. #define PPI_CONFIG_DEBUG_COLOR 0
  5075. #endif
  5076. // </e>
  5077. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  5078. //==========================================================
  5079. #ifndef PWM_CONFIG_LOG_ENABLED
  5080. #define PWM_CONFIG_LOG_ENABLED 0
  5081. #endif
  5082. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  5083. // <0=> Off
  5084. // <1=> Error
  5085. // <2=> Warning
  5086. // <3=> Info
  5087. // <4=> Debug
  5088. #ifndef PWM_CONFIG_LOG_LEVEL
  5089. #define PWM_CONFIG_LOG_LEVEL 3
  5090. #endif
  5091. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5092. // <0=> Default
  5093. // <1=> Black
  5094. // <2=> Red
  5095. // <3=> Green
  5096. // <4=> Yellow
  5097. // <5=> Blue
  5098. // <6=> Magenta
  5099. // <7=> Cyan
  5100. // <8=> White
  5101. #ifndef PWM_CONFIG_INFO_COLOR
  5102. #define PWM_CONFIG_INFO_COLOR 0
  5103. #endif
  5104. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5105. // <0=> Default
  5106. // <1=> Black
  5107. // <2=> Red
  5108. // <3=> Green
  5109. // <4=> Yellow
  5110. // <5=> Blue
  5111. // <6=> Magenta
  5112. // <7=> Cyan
  5113. // <8=> White
  5114. #ifndef PWM_CONFIG_DEBUG_COLOR
  5115. #define PWM_CONFIG_DEBUG_COLOR 0
  5116. #endif
  5117. // </e>
  5118. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  5119. //==========================================================
  5120. #ifndef QDEC_CONFIG_LOG_ENABLED
  5121. #define QDEC_CONFIG_LOG_ENABLED 0
  5122. #endif
  5123. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  5124. // <0=> Off
  5125. // <1=> Error
  5126. // <2=> Warning
  5127. // <3=> Info
  5128. // <4=> Debug
  5129. #ifndef QDEC_CONFIG_LOG_LEVEL
  5130. #define QDEC_CONFIG_LOG_LEVEL 3
  5131. #endif
  5132. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5133. // <0=> Default
  5134. // <1=> Black
  5135. // <2=> Red
  5136. // <3=> Green
  5137. // <4=> Yellow
  5138. // <5=> Blue
  5139. // <6=> Magenta
  5140. // <7=> Cyan
  5141. // <8=> White
  5142. #ifndef QDEC_CONFIG_INFO_COLOR
  5143. #define QDEC_CONFIG_INFO_COLOR 0
  5144. #endif
  5145. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5146. // <0=> Default
  5147. // <1=> Black
  5148. // <2=> Red
  5149. // <3=> Green
  5150. // <4=> Yellow
  5151. // <5=> Blue
  5152. // <6=> Magenta
  5153. // <7=> Cyan
  5154. // <8=> White
  5155. #ifndef QDEC_CONFIG_DEBUG_COLOR
  5156. #define QDEC_CONFIG_DEBUG_COLOR 0
  5157. #endif
  5158. // </e>
  5159. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  5160. //==========================================================
  5161. #ifndef RNG_CONFIG_LOG_ENABLED
  5162. #define RNG_CONFIG_LOG_ENABLED 0
  5163. #endif
  5164. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  5165. // <0=> Off
  5166. // <1=> Error
  5167. // <2=> Warning
  5168. // <3=> Info
  5169. // <4=> Debug
  5170. #ifndef RNG_CONFIG_LOG_LEVEL
  5171. #define RNG_CONFIG_LOG_LEVEL 3
  5172. #endif
  5173. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5174. // <0=> Default
  5175. // <1=> Black
  5176. // <2=> Red
  5177. // <3=> Green
  5178. // <4=> Yellow
  5179. // <5=> Blue
  5180. // <6=> Magenta
  5181. // <7=> Cyan
  5182. // <8=> White
  5183. #ifndef RNG_CONFIG_INFO_COLOR
  5184. #define RNG_CONFIG_INFO_COLOR 0
  5185. #endif
  5186. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5187. // <0=> Default
  5188. // <1=> Black
  5189. // <2=> Red
  5190. // <3=> Green
  5191. // <4=> Yellow
  5192. // <5=> Blue
  5193. // <6=> Magenta
  5194. // <7=> Cyan
  5195. // <8=> White
  5196. #ifndef RNG_CONFIG_DEBUG_COLOR
  5197. #define RNG_CONFIG_DEBUG_COLOR 0
  5198. #endif
  5199. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  5200. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  5201. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  5202. #endif
  5203. // </e>
  5204. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  5205. //==========================================================
  5206. #ifndef RTC_CONFIG_LOG_ENABLED
  5207. #define RTC_CONFIG_LOG_ENABLED 0
  5208. #endif
  5209. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  5210. // <0=> Off
  5211. // <1=> Error
  5212. // <2=> Warning
  5213. // <3=> Info
  5214. // <4=> Debug
  5215. #ifndef RTC_CONFIG_LOG_LEVEL
  5216. #define RTC_CONFIG_LOG_LEVEL 3
  5217. #endif
  5218. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5219. // <0=> Default
  5220. // <1=> Black
  5221. // <2=> Red
  5222. // <3=> Green
  5223. // <4=> Yellow
  5224. // <5=> Blue
  5225. // <6=> Magenta
  5226. // <7=> Cyan
  5227. // <8=> White
  5228. #ifndef RTC_CONFIG_INFO_COLOR
  5229. #define RTC_CONFIG_INFO_COLOR 0
  5230. #endif
  5231. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5232. // <0=> Default
  5233. // <1=> Black
  5234. // <2=> Red
  5235. // <3=> Green
  5236. // <4=> Yellow
  5237. // <5=> Blue
  5238. // <6=> Magenta
  5239. // <7=> Cyan
  5240. // <8=> White
  5241. #ifndef RTC_CONFIG_DEBUG_COLOR
  5242. #define RTC_CONFIG_DEBUG_COLOR 0
  5243. #endif
  5244. // </e>
  5245. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  5246. //==========================================================
  5247. #ifndef SAADC_CONFIG_LOG_ENABLED
  5248. #define SAADC_CONFIG_LOG_ENABLED 0
  5249. #endif
  5250. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  5251. // <0=> Off
  5252. // <1=> Error
  5253. // <2=> Warning
  5254. // <3=> Info
  5255. // <4=> Debug
  5256. #ifndef SAADC_CONFIG_LOG_LEVEL
  5257. #define SAADC_CONFIG_LOG_LEVEL 3
  5258. #endif
  5259. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5260. // <0=> Default
  5261. // <1=> Black
  5262. // <2=> Red
  5263. // <3=> Green
  5264. // <4=> Yellow
  5265. // <5=> Blue
  5266. // <6=> Magenta
  5267. // <7=> Cyan
  5268. // <8=> White
  5269. #ifndef SAADC_CONFIG_INFO_COLOR
  5270. #define SAADC_CONFIG_INFO_COLOR 0
  5271. #endif
  5272. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5273. // <0=> Default
  5274. // <1=> Black
  5275. // <2=> Red
  5276. // <3=> Green
  5277. // <4=> Yellow
  5278. // <5=> Blue
  5279. // <6=> Magenta
  5280. // <7=> Cyan
  5281. // <8=> White
  5282. #ifndef SAADC_CONFIG_DEBUG_COLOR
  5283. #define SAADC_CONFIG_DEBUG_COLOR 0
  5284. #endif
  5285. // </e>
  5286. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  5287. //==========================================================
  5288. #ifndef SPIS_CONFIG_LOG_ENABLED
  5289. #define SPIS_CONFIG_LOG_ENABLED 0
  5290. #endif
  5291. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  5292. // <0=> Off
  5293. // <1=> Error
  5294. // <2=> Warning
  5295. // <3=> Info
  5296. // <4=> Debug
  5297. #ifndef SPIS_CONFIG_LOG_LEVEL
  5298. #define SPIS_CONFIG_LOG_LEVEL 3
  5299. #endif
  5300. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5301. // <0=> Default
  5302. // <1=> Black
  5303. // <2=> Red
  5304. // <3=> Green
  5305. // <4=> Yellow
  5306. // <5=> Blue
  5307. // <6=> Magenta
  5308. // <7=> Cyan
  5309. // <8=> White
  5310. #ifndef SPIS_CONFIG_INFO_COLOR
  5311. #define SPIS_CONFIG_INFO_COLOR 0
  5312. #endif
  5313. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5314. // <0=> Default
  5315. // <1=> Black
  5316. // <2=> Red
  5317. // <3=> Green
  5318. // <4=> Yellow
  5319. // <5=> Blue
  5320. // <6=> Magenta
  5321. // <7=> Cyan
  5322. // <8=> White
  5323. #ifndef SPIS_CONFIG_DEBUG_COLOR
  5324. #define SPIS_CONFIG_DEBUG_COLOR 0
  5325. #endif
  5326. // </e>
  5327. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  5328. //==========================================================
  5329. #ifndef SPI_CONFIG_LOG_ENABLED
  5330. #define SPI_CONFIG_LOG_ENABLED 0
  5331. #endif
  5332. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  5333. // <0=> Off
  5334. // <1=> Error
  5335. // <2=> Warning
  5336. // <3=> Info
  5337. // <4=> Debug
  5338. #ifndef SPI_CONFIG_LOG_LEVEL
  5339. #define SPI_CONFIG_LOG_LEVEL 3
  5340. #endif
  5341. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5342. // <0=> Default
  5343. // <1=> Black
  5344. // <2=> Red
  5345. // <3=> Green
  5346. // <4=> Yellow
  5347. // <5=> Blue
  5348. // <6=> Magenta
  5349. // <7=> Cyan
  5350. // <8=> White
  5351. #ifndef SPI_CONFIG_INFO_COLOR
  5352. #define SPI_CONFIG_INFO_COLOR 0
  5353. #endif
  5354. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5355. // <0=> Default
  5356. // <1=> Black
  5357. // <2=> Red
  5358. // <3=> Green
  5359. // <4=> Yellow
  5360. // <5=> Blue
  5361. // <6=> Magenta
  5362. // <7=> Cyan
  5363. // <8=> White
  5364. #ifndef SPI_CONFIG_DEBUG_COLOR
  5365. #define SPI_CONFIG_DEBUG_COLOR 0
  5366. #endif
  5367. // </e>
  5368. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5369. //==========================================================
  5370. #ifndef TIMER_CONFIG_LOG_ENABLED
  5371. #define TIMER_CONFIG_LOG_ENABLED 0
  5372. #endif
  5373. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  5374. // <0=> Off
  5375. // <1=> Error
  5376. // <2=> Warning
  5377. // <3=> Info
  5378. // <4=> Debug
  5379. #ifndef TIMER_CONFIG_LOG_LEVEL
  5380. #define TIMER_CONFIG_LOG_LEVEL 3
  5381. #endif
  5382. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5383. // <0=> Default
  5384. // <1=> Black
  5385. // <2=> Red
  5386. // <3=> Green
  5387. // <4=> Yellow
  5388. // <5=> Blue
  5389. // <6=> Magenta
  5390. // <7=> Cyan
  5391. // <8=> White
  5392. #ifndef TIMER_CONFIG_INFO_COLOR
  5393. #define TIMER_CONFIG_INFO_COLOR 0
  5394. #endif
  5395. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5396. // <0=> Default
  5397. // <1=> Black
  5398. // <2=> Red
  5399. // <3=> Green
  5400. // <4=> Yellow
  5401. // <5=> Blue
  5402. // <6=> Magenta
  5403. // <7=> Cyan
  5404. // <8=> White
  5405. #ifndef TIMER_CONFIG_DEBUG_COLOR
  5406. #define TIMER_CONFIG_DEBUG_COLOR 0
  5407. #endif
  5408. // </e>
  5409. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  5410. //==========================================================
  5411. #ifndef TWIS_CONFIG_LOG_ENABLED
  5412. #define TWIS_CONFIG_LOG_ENABLED 0
  5413. #endif
  5414. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  5415. // <0=> Off
  5416. // <1=> Error
  5417. // <2=> Warning
  5418. // <3=> Info
  5419. // <4=> Debug
  5420. #ifndef TWIS_CONFIG_LOG_LEVEL
  5421. #define TWIS_CONFIG_LOG_LEVEL 3
  5422. #endif
  5423. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5424. // <0=> Default
  5425. // <1=> Black
  5426. // <2=> Red
  5427. // <3=> Green
  5428. // <4=> Yellow
  5429. // <5=> Blue
  5430. // <6=> Magenta
  5431. // <7=> Cyan
  5432. // <8=> White
  5433. #ifndef TWIS_CONFIG_INFO_COLOR
  5434. #define TWIS_CONFIG_INFO_COLOR 0
  5435. #endif
  5436. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5437. // <0=> Default
  5438. // <1=> Black
  5439. // <2=> Red
  5440. // <3=> Green
  5441. // <4=> Yellow
  5442. // <5=> Blue
  5443. // <6=> Magenta
  5444. // <7=> Cyan
  5445. // <8=> White
  5446. #ifndef TWIS_CONFIG_DEBUG_COLOR
  5447. #define TWIS_CONFIG_DEBUG_COLOR 0
  5448. #endif
  5449. // </e>
  5450. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  5451. //==========================================================
  5452. #ifndef TWI_CONFIG_LOG_ENABLED
  5453. #define TWI_CONFIG_LOG_ENABLED 0
  5454. #endif
  5455. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  5456. // <0=> Off
  5457. // <1=> Error
  5458. // <2=> Warning
  5459. // <3=> Info
  5460. // <4=> Debug
  5461. #ifndef TWI_CONFIG_LOG_LEVEL
  5462. #define TWI_CONFIG_LOG_LEVEL 3
  5463. #endif
  5464. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5465. // <0=> Default
  5466. // <1=> Black
  5467. // <2=> Red
  5468. // <3=> Green
  5469. // <4=> Yellow
  5470. // <5=> Blue
  5471. // <6=> Magenta
  5472. // <7=> Cyan
  5473. // <8=> White
  5474. #ifndef TWI_CONFIG_INFO_COLOR
  5475. #define TWI_CONFIG_INFO_COLOR 0
  5476. #endif
  5477. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5478. // <0=> Default
  5479. // <1=> Black
  5480. // <2=> Red
  5481. // <3=> Green
  5482. // <4=> Yellow
  5483. // <5=> Blue
  5484. // <6=> Magenta
  5485. // <7=> Cyan
  5486. // <8=> White
  5487. #ifndef TWI_CONFIG_DEBUG_COLOR
  5488. #define TWI_CONFIG_DEBUG_COLOR 0
  5489. #endif
  5490. // </e>
  5491. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  5492. //==========================================================
  5493. #ifndef UART_CONFIG_LOG_ENABLED
  5494. #define UART_CONFIG_LOG_ENABLED 0
  5495. #endif
  5496. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  5497. // <0=> Off
  5498. // <1=> Error
  5499. // <2=> Warning
  5500. // <3=> Info
  5501. // <4=> Debug
  5502. #ifndef UART_CONFIG_LOG_LEVEL
  5503. #define UART_CONFIG_LOG_LEVEL 3
  5504. #endif
  5505. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5506. // <0=> Default
  5507. // <1=> Black
  5508. // <2=> Red
  5509. // <3=> Green
  5510. // <4=> Yellow
  5511. // <5=> Blue
  5512. // <6=> Magenta
  5513. // <7=> Cyan
  5514. // <8=> White
  5515. #ifndef UART_CONFIG_INFO_COLOR
  5516. #define UART_CONFIG_INFO_COLOR 0
  5517. #endif
  5518. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5519. // <0=> Default
  5520. // <1=> Black
  5521. // <2=> Red
  5522. // <3=> Green
  5523. // <4=> Yellow
  5524. // <5=> Blue
  5525. // <6=> Magenta
  5526. // <7=> Cyan
  5527. // <8=> White
  5528. #ifndef UART_CONFIG_DEBUG_COLOR
  5529. #define UART_CONFIG_DEBUG_COLOR 0
  5530. #endif
  5531. // </e>
  5532. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  5533. //==========================================================
  5534. #ifndef USBD_CONFIG_LOG_ENABLED
  5535. #define USBD_CONFIG_LOG_ENABLED 0
  5536. #endif
  5537. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  5538. // <0=> Off
  5539. // <1=> Error
  5540. // <2=> Warning
  5541. // <3=> Info
  5542. // <4=> Debug
  5543. #ifndef USBD_CONFIG_LOG_LEVEL
  5544. #define USBD_CONFIG_LOG_LEVEL 3
  5545. #endif
  5546. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5547. // <0=> Default
  5548. // <1=> Black
  5549. // <2=> Red
  5550. // <3=> Green
  5551. // <4=> Yellow
  5552. // <5=> Blue
  5553. // <6=> Magenta
  5554. // <7=> Cyan
  5555. // <8=> White
  5556. #ifndef USBD_CONFIG_INFO_COLOR
  5557. #define USBD_CONFIG_INFO_COLOR 0
  5558. #endif
  5559. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5560. // <0=> Default
  5561. // <1=> Black
  5562. // <2=> Red
  5563. // <3=> Green
  5564. // <4=> Yellow
  5565. // <5=> Blue
  5566. // <6=> Magenta
  5567. // <7=> Cyan
  5568. // <8=> White
  5569. #ifndef USBD_CONFIG_DEBUG_COLOR
  5570. #define USBD_CONFIG_DEBUG_COLOR 0
  5571. #endif
  5572. // </e>
  5573. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  5574. //==========================================================
  5575. #ifndef WDT_CONFIG_LOG_ENABLED
  5576. #define WDT_CONFIG_LOG_ENABLED 0
  5577. #endif
  5578. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  5579. // <0=> Off
  5580. // <1=> Error
  5581. // <2=> Warning
  5582. // <3=> Info
  5583. // <4=> Debug
  5584. #ifndef WDT_CONFIG_LOG_LEVEL
  5585. #define WDT_CONFIG_LOG_LEVEL 3
  5586. #endif
  5587. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5588. // <0=> Default
  5589. // <1=> Black
  5590. // <2=> Red
  5591. // <3=> Green
  5592. // <4=> Yellow
  5593. // <5=> Blue
  5594. // <6=> Magenta
  5595. // <7=> Cyan
  5596. // <8=> White
  5597. #ifndef WDT_CONFIG_INFO_COLOR
  5598. #define WDT_CONFIG_INFO_COLOR 0
  5599. #endif
  5600. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5601. // <0=> Default
  5602. // <1=> Black
  5603. // <2=> Red
  5604. // <3=> Green
  5605. // <4=> Yellow
  5606. // <5=> Blue
  5607. // <6=> Magenta
  5608. // <7=> Cyan
  5609. // <8=> White
  5610. #ifndef WDT_CONFIG_DEBUG_COLOR
  5611. #define WDT_CONFIG_DEBUG_COLOR 0
  5612. #endif
  5613. // </e>
  5614. // </h>
  5615. //==========================================================
  5616. // <h> nrf_log in nRF_Libraries
  5617. //==========================================================
  5618. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5619. //==========================================================
  5620. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  5621. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  5622. #endif
  5623. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  5624. // <0=> Off
  5625. // <1=> Error
  5626. // <2=> Warning
  5627. // <3=> Info
  5628. // <4=> Debug
  5629. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  5630. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  5631. #endif
  5632. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  5633. // <i> If module generates a lot of logs, initial log level can
  5634. // <i> be decreased to prevent flooding. Severity level can be
  5635. // <i> increased on instance basis.
  5636. // <0=> Off
  5637. // <1=> Error
  5638. // <2=> Warning
  5639. // <3=> Info
  5640. // <4=> Debug
  5641. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  5642. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  5643. #endif
  5644. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5645. // <0=> Default
  5646. // <1=> Black
  5647. // <2=> Red
  5648. // <3=> Green
  5649. // <4=> Yellow
  5650. // <5=> Blue
  5651. // <6=> Magenta
  5652. // <7=> Cyan
  5653. // <8=> White
  5654. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  5655. #define APP_TIMER_CONFIG_INFO_COLOR 0
  5656. #endif
  5657. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5658. // <0=> Default
  5659. // <1=> Black
  5660. // <2=> Red
  5661. // <3=> Green
  5662. // <4=> Yellow
  5663. // <5=> Blue
  5664. // <6=> Magenta
  5665. // <7=> Cyan
  5666. // <8=> White
  5667. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  5668. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  5669. #endif
  5670. // </e>
  5671. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  5672. //==========================================================
  5673. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  5674. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  5675. #endif
  5676. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  5677. // <0=> Off
  5678. // <1=> Error
  5679. // <2=> Warning
  5680. // <3=> Info
  5681. // <4=> Debug
  5682. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  5683. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  5684. #endif
  5685. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5686. // <0=> Default
  5687. // <1=> Black
  5688. // <2=> Red
  5689. // <3=> Green
  5690. // <4=> Yellow
  5691. // <5=> Blue
  5692. // <6=> Magenta
  5693. // <7=> Cyan
  5694. // <8=> White
  5695. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  5696. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  5697. #endif
  5698. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5699. // <0=> Default
  5700. // <1=> Black
  5701. // <2=> Red
  5702. // <3=> Green
  5703. // <4=> Yellow
  5704. // <5=> Blue
  5705. // <6=> Magenta
  5706. // <7=> Cyan
  5707. // <8=> White
  5708. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  5709. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  5710. #endif
  5711. // </e>
  5712. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  5713. //==========================================================
  5714. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  5715. #define APP_USBD_CONFIG_LOG_ENABLED 0
  5716. #endif
  5717. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  5718. // <0=> Off
  5719. // <1=> Error
  5720. // <2=> Warning
  5721. // <3=> Info
  5722. // <4=> Debug
  5723. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  5724. #define APP_USBD_CONFIG_LOG_LEVEL 3
  5725. #endif
  5726. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5727. // <0=> Default
  5728. // <1=> Black
  5729. // <2=> Red
  5730. // <3=> Green
  5731. // <4=> Yellow
  5732. // <5=> Blue
  5733. // <6=> Magenta
  5734. // <7=> Cyan
  5735. // <8=> White
  5736. #ifndef APP_USBD_CONFIG_INFO_COLOR
  5737. #define APP_USBD_CONFIG_INFO_COLOR 0
  5738. #endif
  5739. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5740. // <0=> Default
  5741. // <1=> Black
  5742. // <2=> Red
  5743. // <3=> Green
  5744. // <4=> Yellow
  5745. // <5=> Blue
  5746. // <6=> Magenta
  5747. // <7=> Cyan
  5748. // <8=> White
  5749. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  5750. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  5751. #endif
  5752. // </e>
  5753. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  5754. //==========================================================
  5755. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  5756. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  5757. #endif
  5758. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  5759. // <0=> Off
  5760. // <1=> Error
  5761. // <2=> Warning
  5762. // <3=> Info
  5763. // <4=> Debug
  5764. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  5765. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  5766. #endif
  5767. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5768. // <0=> Default
  5769. // <1=> Black
  5770. // <2=> Red
  5771. // <3=> Green
  5772. // <4=> Yellow
  5773. // <5=> Blue
  5774. // <6=> Magenta
  5775. // <7=> Cyan
  5776. // <8=> White
  5777. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  5778. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  5779. #endif
  5780. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5781. // <0=> Default
  5782. // <1=> Black
  5783. // <2=> Red
  5784. // <3=> Green
  5785. // <4=> Yellow
  5786. // <5=> Blue
  5787. // <6=> Magenta
  5788. // <7=> Cyan
  5789. // <8=> White
  5790. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  5791. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  5792. #endif
  5793. // </e>
  5794. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  5795. //==========================================================
  5796. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  5797. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  5798. #endif
  5799. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  5800. // <0=> Off
  5801. // <1=> Error
  5802. // <2=> Warning
  5803. // <3=> Info
  5804. // <4=> Debug
  5805. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  5806. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  5807. #endif
  5808. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5809. // <0=> Default
  5810. // <1=> Black
  5811. // <2=> Red
  5812. // <3=> Green
  5813. // <4=> Yellow
  5814. // <5=> Blue
  5815. // <6=> Magenta
  5816. // <7=> Cyan
  5817. // <8=> White
  5818. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  5819. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  5820. #endif
  5821. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5822. // <0=> Default
  5823. // <1=> Black
  5824. // <2=> Red
  5825. // <3=> Green
  5826. // <4=> Yellow
  5827. // <5=> Blue
  5828. // <6=> Magenta
  5829. // <7=> Cyan
  5830. // <8=> White
  5831. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  5832. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  5833. #endif
  5834. // </e>
  5835. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5836. //==========================================================
  5837. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  5838. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  5839. #endif
  5840. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  5841. // <0=> Off
  5842. // <1=> Error
  5843. // <2=> Warning
  5844. // <3=> Info
  5845. // <4=> Debug
  5846. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  5847. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  5848. #endif
  5849. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5850. // <0=> Default
  5851. // <1=> Black
  5852. // <2=> Red
  5853. // <3=> Green
  5854. // <4=> Yellow
  5855. // <5=> Blue
  5856. // <6=> Magenta
  5857. // <7=> Cyan
  5858. // <8=> White
  5859. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  5860. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  5861. #endif
  5862. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5863. // <0=> Default
  5864. // <1=> Black
  5865. // <2=> Red
  5866. // <3=> Green
  5867. // <4=> Yellow
  5868. // <5=> Blue
  5869. // <6=> Magenta
  5870. // <7=> Cyan
  5871. // <8=> White
  5872. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  5873. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  5874. #endif
  5875. // </e>
  5876. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  5877. //==========================================================
  5878. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  5879. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  5880. #endif
  5881. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  5882. // <0=> Off
  5883. // <1=> Error
  5884. // <2=> Warning
  5885. // <3=> Info
  5886. // <4=> Debug
  5887. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  5888. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  5889. #endif
  5890. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  5891. // <0=> Off
  5892. // <1=> Error
  5893. // <2=> Warning
  5894. // <3=> Info
  5895. // <4=> Debug
  5896. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  5897. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  5898. #endif
  5899. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5900. // <0=> Default
  5901. // <1=> Black
  5902. // <2=> Red
  5903. // <3=> Green
  5904. // <4=> Yellow
  5905. // <5=> Blue
  5906. // <6=> Magenta
  5907. // <7=> Cyan
  5908. // <8=> White
  5909. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  5910. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  5911. #endif
  5912. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5913. // <0=> Default
  5914. // <1=> Black
  5915. // <2=> Red
  5916. // <3=> Green
  5917. // <4=> Yellow
  5918. // <5=> Blue
  5919. // <6=> Magenta
  5920. // <7=> Cyan
  5921. // <8=> White
  5922. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  5923. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  5924. #endif
  5925. // </e>
  5926. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  5927. //==========================================================
  5928. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  5929. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  5930. #endif
  5931. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  5932. // <0=> Off
  5933. // <1=> Error
  5934. // <2=> Warning
  5935. // <3=> Info
  5936. // <4=> Debug
  5937. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  5938. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  5939. #endif
  5940. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  5941. // <i> If module generates a lot of logs, initial log level can
  5942. // <i> be decreased to prevent flooding. Severity level can be
  5943. // <i> increased on instance basis.
  5944. // <0=> Off
  5945. // <1=> Error
  5946. // <2=> Warning
  5947. // <3=> Info
  5948. // <4=> Debug
  5949. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  5950. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  5951. #endif
  5952. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5953. // <0=> Default
  5954. // <1=> Black
  5955. // <2=> Red
  5956. // <3=> Green
  5957. // <4=> Yellow
  5958. // <5=> Blue
  5959. // <6=> Magenta
  5960. // <7=> Cyan
  5961. // <8=> White
  5962. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  5963. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  5964. #endif
  5965. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5966. // <0=> Default
  5967. // <1=> Black
  5968. // <2=> Red
  5969. // <3=> Green
  5970. // <4=> Yellow
  5971. // <5=> Blue
  5972. // <6=> Magenta
  5973. // <7=> Cyan
  5974. // <8=> White
  5975. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  5976. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  5977. #endif
  5978. // </e>
  5979. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  5980. //==========================================================
  5981. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  5982. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  5983. #endif
  5984. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  5985. // <0=> Off
  5986. // <1=> Error
  5987. // <2=> Warning
  5988. // <3=> Info
  5989. // <4=> Debug
  5990. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  5991. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  5992. #endif
  5993. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  5994. // <0=> Off
  5995. // <1=> Error
  5996. // <2=> Warning
  5997. // <3=> Info
  5998. // <4=> Debug
  5999. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  6000. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  6001. #endif
  6002. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6003. // <0=> Default
  6004. // <1=> Black
  6005. // <2=> Red
  6006. // <3=> Green
  6007. // <4=> Yellow
  6008. // <5=> Blue
  6009. // <6=> Magenta
  6010. // <7=> Cyan
  6011. // <8=> White
  6012. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  6013. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  6014. #endif
  6015. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6016. // <0=> Default
  6017. // <1=> Black
  6018. // <2=> Red
  6019. // <3=> Green
  6020. // <4=> Yellow
  6021. // <5=> Blue
  6022. // <6=> Magenta
  6023. // <7=> Cyan
  6024. // <8=> White
  6025. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  6026. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  6027. #endif
  6028. // </e>
  6029. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6030. //==========================================================
  6031. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  6032. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  6033. #endif
  6034. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  6035. // <0=> Off
  6036. // <1=> Error
  6037. // <2=> Warning
  6038. // <3=> Info
  6039. // <4=> Debug
  6040. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  6041. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  6042. #endif
  6043. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  6044. // <0=> Off
  6045. // <1=> Error
  6046. // <2=> Warning
  6047. // <3=> Info
  6048. // <4=> Debug
  6049. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  6050. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  6051. #endif
  6052. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6053. // <0=> Default
  6054. // <1=> Black
  6055. // <2=> Red
  6056. // <3=> Green
  6057. // <4=> Yellow
  6058. // <5=> Blue
  6059. // <6=> Magenta
  6060. // <7=> Cyan
  6061. // <8=> White
  6062. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  6063. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  6064. #endif
  6065. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6066. // <0=> Default
  6067. // <1=> Black
  6068. // <2=> Red
  6069. // <3=> Green
  6070. // <4=> Yellow
  6071. // <5=> Blue
  6072. // <6=> Magenta
  6073. // <7=> Cyan
  6074. // <8=> White
  6075. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  6076. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  6077. #endif
  6078. // </e>
  6079. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6080. //==========================================================
  6081. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  6082. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  6083. #endif
  6084. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  6085. // <0=> Off
  6086. // <1=> Error
  6087. // <2=> Warning
  6088. // <3=> Info
  6089. // <4=> Debug
  6090. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  6091. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  6092. #endif
  6093. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  6094. // <0=> Off
  6095. // <1=> Error
  6096. // <2=> Warning
  6097. // <3=> Info
  6098. // <4=> Debug
  6099. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  6100. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  6101. #endif
  6102. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6103. // <0=> Default
  6104. // <1=> Black
  6105. // <2=> Red
  6106. // <3=> Green
  6107. // <4=> Yellow
  6108. // <5=> Blue
  6109. // <6=> Magenta
  6110. // <7=> Cyan
  6111. // <8=> White
  6112. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  6113. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  6114. #endif
  6115. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6116. // <0=> Default
  6117. // <1=> Black
  6118. // <2=> Red
  6119. // <3=> Green
  6120. // <4=> Yellow
  6121. // <5=> Blue
  6122. // <6=> Magenta
  6123. // <7=> Cyan
  6124. // <8=> White
  6125. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  6126. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  6127. #endif
  6128. // </e>
  6129. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  6130. //==========================================================
  6131. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  6132. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  6133. #endif
  6134. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  6135. // <0=> Off
  6136. // <1=> Error
  6137. // <2=> Warning
  6138. // <3=> Info
  6139. // <4=> Debug
  6140. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  6141. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  6142. #endif
  6143. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6144. // <0=> Default
  6145. // <1=> Black
  6146. // <2=> Red
  6147. // <3=> Green
  6148. // <4=> Yellow
  6149. // <5=> Blue
  6150. // <6=> Magenta
  6151. // <7=> Cyan
  6152. // <8=> White
  6153. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  6154. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  6155. #endif
  6156. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6157. // <0=> Default
  6158. // <1=> Black
  6159. // <2=> Red
  6160. // <3=> Green
  6161. // <4=> Yellow
  6162. // <5=> Blue
  6163. // <6=> Magenta
  6164. // <7=> Cyan
  6165. // <8=> White
  6166. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  6167. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  6168. #endif
  6169. // </e>
  6170. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  6171. //==========================================================
  6172. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  6173. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  6174. #endif
  6175. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  6176. // <0=> Off
  6177. // <1=> Error
  6178. // <2=> Warning
  6179. // <3=> Info
  6180. // <4=> Debug
  6181. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  6182. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  6183. #endif
  6184. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6185. // <0=> Default
  6186. // <1=> Black
  6187. // <2=> Red
  6188. // <3=> Green
  6189. // <4=> Yellow
  6190. // <5=> Blue
  6191. // <6=> Magenta
  6192. // <7=> Cyan
  6193. // <8=> White
  6194. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  6195. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  6196. #endif
  6197. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6198. // <0=> Default
  6199. // <1=> Black
  6200. // <2=> Red
  6201. // <3=> Green
  6202. // <4=> Yellow
  6203. // <5=> Blue
  6204. // <6=> Magenta
  6205. // <7=> Cyan
  6206. // <8=> White
  6207. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  6208. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  6209. #endif
  6210. // </e>
  6211. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  6212. //==========================================================
  6213. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  6214. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  6215. #endif
  6216. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  6217. // <0=> Off
  6218. // <1=> Error
  6219. // <2=> Warning
  6220. // <3=> Info
  6221. // <4=> Debug
  6222. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  6223. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  6224. #endif
  6225. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6226. // <0=> Default
  6227. // <1=> Black
  6228. // <2=> Red
  6229. // <3=> Green
  6230. // <4=> Yellow
  6231. // <5=> Blue
  6232. // <6=> Magenta
  6233. // <7=> Cyan
  6234. // <8=> White
  6235. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  6236. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  6237. #endif
  6238. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6239. // <0=> Default
  6240. // <1=> Black
  6241. // <2=> Red
  6242. // <3=> Green
  6243. // <4=> Yellow
  6244. // <5=> Blue
  6245. // <6=> Magenta
  6246. // <7=> Cyan
  6247. // <8=> White
  6248. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  6249. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  6250. #endif
  6251. // </e>
  6252. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  6253. //==========================================================
  6254. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  6255. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  6256. #endif
  6257. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  6258. // <0=> Off
  6259. // <1=> Error
  6260. // <2=> Warning
  6261. // <3=> Info
  6262. // <4=> Debug
  6263. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  6264. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  6265. #endif
  6266. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6267. // <0=> Default
  6268. // <1=> Black
  6269. // <2=> Red
  6270. // <3=> Green
  6271. // <4=> Yellow
  6272. // <5=> Blue
  6273. // <6=> Magenta
  6274. // <7=> Cyan
  6275. // <8=> White
  6276. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  6277. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  6278. #endif
  6279. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6280. // <0=> Default
  6281. // <1=> Black
  6282. // <2=> Red
  6283. // <3=> Green
  6284. // <4=> Yellow
  6285. // <5=> Blue
  6286. // <6=> Magenta
  6287. // <7=> Cyan
  6288. // <8=> White
  6289. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  6290. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  6291. #endif
  6292. // </e>
  6293. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  6294. //==========================================================
  6295. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  6296. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  6297. #endif
  6298. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  6299. // <0=> Off
  6300. // <1=> Error
  6301. // <2=> Warning
  6302. // <3=> Info
  6303. // <4=> Debug
  6304. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  6305. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  6306. #endif
  6307. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6308. // <0=> Default
  6309. // <1=> Black
  6310. // <2=> Red
  6311. // <3=> Green
  6312. // <4=> Yellow
  6313. // <5=> Blue
  6314. // <6=> Magenta
  6315. // <7=> Cyan
  6316. // <8=> White
  6317. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  6318. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  6319. #endif
  6320. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6321. // <0=> Default
  6322. // <1=> Black
  6323. // <2=> Red
  6324. // <3=> Green
  6325. // <4=> Yellow
  6326. // <5=> Blue
  6327. // <6=> Magenta
  6328. // <7=> Cyan
  6329. // <8=> White
  6330. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  6331. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  6332. #endif
  6333. // </e>
  6334. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  6335. //==========================================================
  6336. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  6337. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  6338. #endif
  6339. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  6340. // <0=> Off
  6341. // <1=> Error
  6342. // <2=> Warning
  6343. // <3=> Info
  6344. // <4=> Debug
  6345. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  6346. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  6347. #endif
  6348. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6349. // <0=> Default
  6350. // <1=> Black
  6351. // <2=> Red
  6352. // <3=> Green
  6353. // <4=> Yellow
  6354. // <5=> Blue
  6355. // <6=> Magenta
  6356. // <7=> Cyan
  6357. // <8=> White
  6358. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  6359. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  6360. #endif
  6361. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6362. // <0=> Default
  6363. // <1=> Black
  6364. // <2=> Red
  6365. // <3=> Green
  6366. // <4=> Yellow
  6367. // <5=> Blue
  6368. // <6=> Magenta
  6369. // <7=> Cyan
  6370. // <8=> White
  6371. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  6372. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  6373. #endif
  6374. // </e>
  6375. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  6376. //==========================================================
  6377. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  6378. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  6379. #endif
  6380. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  6381. // <0=> Off
  6382. // <1=> Error
  6383. // <2=> Warning
  6384. // <3=> Info
  6385. // <4=> Debug
  6386. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  6387. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  6388. #endif
  6389. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  6390. // <0=> Off
  6391. // <1=> Error
  6392. // <2=> Warning
  6393. // <3=> Info
  6394. // <4=> Debug
  6395. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  6396. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  6397. #endif
  6398. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6399. // <0=> Default
  6400. // <1=> Black
  6401. // <2=> Red
  6402. // <3=> Green
  6403. // <4=> Yellow
  6404. // <5=> Blue
  6405. // <6=> Magenta
  6406. // <7=> Cyan
  6407. // <8=> White
  6408. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  6409. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  6410. #endif
  6411. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6412. // <0=> Default
  6413. // <1=> Black
  6414. // <2=> Red
  6415. // <3=> Green
  6416. // <4=> Yellow
  6417. // <5=> Blue
  6418. // <6=> Magenta
  6419. // <7=> Cyan
  6420. // <8=> White
  6421. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  6422. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  6423. #endif
  6424. // </e>
  6425. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  6426. //==========================================================
  6427. #ifndef NRF_SDH_ANT_LOG_ENABLED
  6428. #define NRF_SDH_ANT_LOG_ENABLED 0
  6429. #endif
  6430. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  6431. // <0=> Off
  6432. // <1=> Error
  6433. // <2=> Warning
  6434. // <3=> Info
  6435. // <4=> Debug
  6436. #ifndef NRF_SDH_ANT_LOG_LEVEL
  6437. #define NRF_SDH_ANT_LOG_LEVEL 3
  6438. #endif
  6439. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  6440. // <0=> Default
  6441. // <1=> Black
  6442. // <2=> Red
  6443. // <3=> Green
  6444. // <4=> Yellow
  6445. // <5=> Blue
  6446. // <6=> Magenta
  6447. // <7=> Cyan
  6448. // <8=> White
  6449. #ifndef NRF_SDH_ANT_INFO_COLOR
  6450. #define NRF_SDH_ANT_INFO_COLOR 0
  6451. #endif
  6452. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  6453. // <0=> Default
  6454. // <1=> Black
  6455. // <2=> Red
  6456. // <3=> Green
  6457. // <4=> Yellow
  6458. // <5=> Blue
  6459. // <6=> Magenta
  6460. // <7=> Cyan
  6461. // <8=> White
  6462. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  6463. #define NRF_SDH_ANT_DEBUG_COLOR 0
  6464. #endif
  6465. // </e>
  6466. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  6467. //==========================================================
  6468. #ifndef NRF_SDH_BLE_LOG_ENABLED
  6469. #define NRF_SDH_BLE_LOG_ENABLED 1
  6470. #endif
  6471. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  6472. // <0=> Off
  6473. // <1=> Error
  6474. // <2=> Warning
  6475. // <3=> Info
  6476. // <4=> Debug
  6477. #ifndef NRF_SDH_BLE_LOG_LEVEL
  6478. #define NRF_SDH_BLE_LOG_LEVEL 3
  6479. #endif
  6480. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  6481. // <0=> Default
  6482. // <1=> Black
  6483. // <2=> Red
  6484. // <3=> Green
  6485. // <4=> Yellow
  6486. // <5=> Blue
  6487. // <6=> Magenta
  6488. // <7=> Cyan
  6489. // <8=> White
  6490. #ifndef NRF_SDH_BLE_INFO_COLOR
  6491. #define NRF_SDH_BLE_INFO_COLOR 0
  6492. #endif
  6493. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  6494. // <0=> Default
  6495. // <1=> Black
  6496. // <2=> Red
  6497. // <3=> Green
  6498. // <4=> Yellow
  6499. // <5=> Blue
  6500. // <6=> Magenta
  6501. // <7=> Cyan
  6502. // <8=> White
  6503. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  6504. #define NRF_SDH_BLE_DEBUG_COLOR 0
  6505. #endif
  6506. // </e>
  6507. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  6508. //==========================================================
  6509. #ifndef NRF_SDH_LOG_ENABLED
  6510. #define NRF_SDH_LOG_ENABLED 1
  6511. #endif
  6512. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  6513. // <0=> Off
  6514. // <1=> Error
  6515. // <2=> Warning
  6516. // <3=> Info
  6517. // <4=> Debug
  6518. #ifndef NRF_SDH_LOG_LEVEL
  6519. #define NRF_SDH_LOG_LEVEL 3
  6520. #endif
  6521. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  6522. // <0=> Default
  6523. // <1=> Black
  6524. // <2=> Red
  6525. // <3=> Green
  6526. // <4=> Yellow
  6527. // <5=> Blue
  6528. // <6=> Magenta
  6529. // <7=> Cyan
  6530. // <8=> White
  6531. #ifndef NRF_SDH_INFO_COLOR
  6532. #define NRF_SDH_INFO_COLOR 0
  6533. #endif
  6534. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  6535. // <0=> Default
  6536. // <1=> Black
  6537. // <2=> Red
  6538. // <3=> Green
  6539. // <4=> Yellow
  6540. // <5=> Blue
  6541. // <6=> Magenta
  6542. // <7=> Cyan
  6543. // <8=> White
  6544. #ifndef NRF_SDH_DEBUG_COLOR
  6545. #define NRF_SDH_DEBUG_COLOR 0
  6546. #endif
  6547. // </e>
  6548. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  6549. //==========================================================
  6550. #ifndef NRF_SDH_SOC_LOG_ENABLED
  6551. #define NRF_SDH_SOC_LOG_ENABLED 1
  6552. #endif
  6553. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  6554. // <0=> Off
  6555. // <1=> Error
  6556. // <2=> Warning
  6557. // <3=> Info
  6558. // <4=> Debug
  6559. #ifndef NRF_SDH_SOC_LOG_LEVEL
  6560. #define NRF_SDH_SOC_LOG_LEVEL 3
  6561. #endif
  6562. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  6563. // <0=> Default
  6564. // <1=> Black
  6565. // <2=> Red
  6566. // <3=> Green
  6567. // <4=> Yellow
  6568. // <5=> Blue
  6569. // <6=> Magenta
  6570. // <7=> Cyan
  6571. // <8=> White
  6572. #ifndef NRF_SDH_SOC_INFO_COLOR
  6573. #define NRF_SDH_SOC_INFO_COLOR 0
  6574. #endif
  6575. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  6576. // <0=> Default
  6577. // <1=> Black
  6578. // <2=> Red
  6579. // <3=> Green
  6580. // <4=> Yellow
  6581. // <5=> Blue
  6582. // <6=> Magenta
  6583. // <7=> Cyan
  6584. // <8=> White
  6585. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  6586. #define NRF_SDH_SOC_DEBUG_COLOR 0
  6587. #endif
  6588. // </e>
  6589. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  6590. //==========================================================
  6591. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  6592. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  6593. #endif
  6594. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  6595. // <0=> Off
  6596. // <1=> Error
  6597. // <2=> Warning
  6598. // <3=> Info
  6599. // <4=> Debug
  6600. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  6601. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  6602. #endif
  6603. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6604. // <0=> Default
  6605. // <1=> Black
  6606. // <2=> Red
  6607. // <3=> Green
  6608. // <4=> Yellow
  6609. // <5=> Blue
  6610. // <6=> Magenta
  6611. // <7=> Cyan
  6612. // <8=> White
  6613. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  6614. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  6615. #endif
  6616. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6617. // <0=> Default
  6618. // <1=> Black
  6619. // <2=> Red
  6620. // <3=> Green
  6621. // <4=> Yellow
  6622. // <5=> Blue
  6623. // <6=> Magenta
  6624. // <7=> Cyan
  6625. // <8=> White
  6626. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  6627. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  6628. #endif
  6629. // </e>
  6630. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  6631. //==========================================================
  6632. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  6633. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  6634. #endif
  6635. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  6636. // <0=> Off
  6637. // <1=> Error
  6638. // <2=> Warning
  6639. // <3=> Info
  6640. // <4=> Debug
  6641. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  6642. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  6643. #endif
  6644. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6645. // <0=> Default
  6646. // <1=> Black
  6647. // <2=> Red
  6648. // <3=> Green
  6649. // <4=> Yellow
  6650. // <5=> Blue
  6651. // <6=> Magenta
  6652. // <7=> Cyan
  6653. // <8=> White
  6654. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  6655. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  6656. #endif
  6657. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6658. // <0=> Default
  6659. // <1=> Black
  6660. // <2=> Red
  6661. // <3=> Green
  6662. // <4=> Yellow
  6663. // <5=> Blue
  6664. // <6=> Magenta
  6665. // <7=> Cyan
  6666. // <8=> White
  6667. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  6668. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  6669. #endif
  6670. // </e>
  6671. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  6672. //==========================================================
  6673. #ifndef PM_LOG_ENABLED
  6674. #define PM_LOG_ENABLED 1
  6675. #endif
  6676. // <o> PM_LOG_LEVEL - Default Severity level
  6677. // <0=> Off
  6678. // <1=> Error
  6679. // <2=> Warning
  6680. // <3=> Info
  6681. // <4=> Debug
  6682. #ifndef PM_LOG_LEVEL
  6683. #define PM_LOG_LEVEL 3
  6684. #endif
  6685. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  6686. // <0=> Default
  6687. // <1=> Black
  6688. // <2=> Red
  6689. // <3=> Green
  6690. // <4=> Yellow
  6691. // <5=> Blue
  6692. // <6=> Magenta
  6693. // <7=> Cyan
  6694. // <8=> White
  6695. #ifndef PM_LOG_INFO_COLOR
  6696. #define PM_LOG_INFO_COLOR 0
  6697. #endif
  6698. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  6699. // <0=> Default
  6700. // <1=> Black
  6701. // <2=> Red
  6702. // <3=> Green
  6703. // <4=> Yellow
  6704. // <5=> Blue
  6705. // <6=> Magenta
  6706. // <7=> Cyan
  6707. // <8=> White
  6708. #ifndef PM_LOG_DEBUG_COLOR
  6709. #define PM_LOG_DEBUG_COLOR 0
  6710. #endif
  6711. // </e>
  6712. // </h>
  6713. //==========================================================
  6714. // <h> nrf_log in nRF_Serialization
  6715. //==========================================================
  6716. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  6717. //==========================================================
  6718. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  6719. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  6720. #endif
  6721. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  6722. // <0=> Off
  6723. // <1=> Error
  6724. // <2=> Warning
  6725. // <3=> Info
  6726. // <4=> Debug
  6727. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  6728. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  6729. #endif
  6730. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6731. // <0=> Default
  6732. // <1=> Black
  6733. // <2=> Red
  6734. // <3=> Green
  6735. // <4=> Yellow
  6736. // <5=> Blue
  6737. // <6=> Magenta
  6738. // <7=> Cyan
  6739. // <8=> White
  6740. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  6741. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  6742. #endif
  6743. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6744. // <0=> Default
  6745. // <1=> Black
  6746. // <2=> Red
  6747. // <3=> Green
  6748. // <4=> Yellow
  6749. // <5=> Blue
  6750. // <6=> Magenta
  6751. // <7=> Cyan
  6752. // <8=> White
  6753. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  6754. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  6755. #endif
  6756. // </e>
  6757. // </h>
  6758. //==========================================================
  6759. // </h>
  6760. //==========================================================
  6761. // </e>
  6762. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  6763. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  6764. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  6765. #endif
  6766. // </h>
  6767. //==========================================================
  6768. // <h> nRF_SoftDevice
  6769. //==========================================================
  6770. // <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
  6771. //==========================================================
  6772. #ifndef NRF_SDH_BLE_ENABLED
  6773. #define NRF_SDH_BLE_ENABLED 0
  6774. #endif
  6775. // <h> BLE Stack configuration - Stack configuration parameters
  6776. // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
  6777. // <i> Other libraries might depend on these values; keep them up-to-date even if you are not explicitely calling @ref nrf_sdh_ble_default_cfg_set.
  6778. //==========================================================
  6779. // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
  6780. // <i> Requested BLE GAP data length to be negotiated.
  6781. #ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
  6782. #define NRF_SDH_BLE_GAP_DATA_LENGTH 27
  6783. #endif
  6784. // <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
  6785. #ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
  6786. #define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 0
  6787. #endif
  6788. // <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
  6789. #ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
  6790. #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
  6791. #endif
  6792. // <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
  6793. // <i> Maximum number of total concurrent connections using the default configuration.
  6794. #ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
  6795. #define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
  6796. #endif
  6797. // <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
  6798. // <i> The time set aside for this connection on every connection interval in 1.25 ms units.
  6799. #ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
  6800. #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
  6801. #endif
  6802. // <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
  6803. #ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
  6804. #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 23
  6805. #endif
  6806. // <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
  6807. #ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
  6808. #define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1408
  6809. #endif
  6810. // <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
  6811. #ifndef NRF_SDH_BLE_VS_UUID_COUNT
  6812. #define NRF_SDH_BLE_VS_UUID_COUNT 0
  6813. #endif
  6814. // <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
  6815. #ifndef NRF_SDH_BLE_SERVICE_CHANGED
  6816. #define NRF_SDH_BLE_SERVICE_CHANGED 0
  6817. #endif
  6818. // </h>
  6819. //==========================================================
  6820. // <h> BLE Observers - Observers and priority levels
  6821. //==========================================================
  6822. // <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
  6823. // <i> This setting configures the number of priority levels available for BLE event handlers.
  6824. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  6825. #ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
  6826. #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
  6827. #endif
  6828. // <h> BLE Observers priorities - Invididual priorities
  6829. //==========================================================
  6830. // <o> BLE_ADV_BLE_OBSERVER_PRIO
  6831. // <i> Priority with which BLE events are dispatched to the Advertising module.
  6832. #ifndef BLE_ADV_BLE_OBSERVER_PRIO
  6833. #define BLE_ADV_BLE_OBSERVER_PRIO 1
  6834. #endif
  6835. // <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
  6836. // <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
  6837. #ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
  6838. #define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
  6839. #endif
  6840. // <o> BLE_ANS_C_BLE_OBSERVER_PRIO
  6841. // <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
  6842. #ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
  6843. #define BLE_ANS_C_BLE_OBSERVER_PRIO 2
  6844. #endif
  6845. // <o> BLE_BAS_BLE_OBSERVER_PRIO
  6846. // <i> Priority with which BLE events are dispatched to the Battery Service.
  6847. #ifndef BLE_BAS_BLE_OBSERVER_PRIO
  6848. #define BLE_BAS_BLE_OBSERVER_PRIO 2
  6849. #endif
  6850. // <o> BLE_BAS_C_BLE_OBSERVER_PRIO
  6851. // <i> Priority with which BLE events are dispatched to the Battery Service Client.
  6852. #ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
  6853. #define BLE_BAS_C_BLE_OBSERVER_PRIO 2
  6854. #endif
  6855. // <o> BLE_BPS_BLE_OBSERVER_PRIO
  6856. // <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
  6857. #ifndef BLE_BPS_BLE_OBSERVER_PRIO
  6858. #define BLE_BPS_BLE_OBSERVER_PRIO 2
  6859. #endif
  6860. // <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  6861. // <i> Priority with which BLE events are dispatched to the Connection parameters module.
  6862. #ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  6863. #define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
  6864. #endif
  6865. // <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
  6866. // <i> Priority with which BLE events are dispatched to the Connection State module.
  6867. #ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
  6868. #define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
  6869. #endif
  6870. // <o> BLE_CSCS_BLE_OBSERVER_PRIO
  6871. // <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
  6872. #ifndef BLE_CSCS_BLE_OBSERVER_PRIO
  6873. #define BLE_CSCS_BLE_OBSERVER_PRIO 2
  6874. #endif
  6875. // <o> BLE_CTS_C_BLE_OBSERVER_PRIO
  6876. // <i> Priority with which BLE events are dispatched to the Current Time Service Client.
  6877. #ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
  6878. #define BLE_CTS_C_BLE_OBSERVER_PRIO 2
  6879. #endif
  6880. // <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
  6881. // <i> Priority with which BLE events are dispatched to the Database Discovery module.
  6882. #ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
  6883. #define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
  6884. #endif
  6885. // <o> BLE_DFU_BLE_OBSERVER_PRIO
  6886. // <i> Priority with which BLE events are dispatched to the DFU Service.
  6887. #ifndef BLE_DFU_BLE_OBSERVER_PRIO
  6888. #define BLE_DFU_BLE_OBSERVER_PRIO 2
  6889. #endif
  6890. // <o> BLE_DIS_C_BLE_OBSERVER_PRIO
  6891. // <i> Priority with which BLE events are dispatched to the Device Information Client.
  6892. #ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
  6893. #define BLE_DIS_C_BLE_OBSERVER_PRIO 2
  6894. #endif
  6895. // <o> BLE_GLS_BLE_OBSERVER_PRIO
  6896. // <i> Priority with which BLE events are dispatched to the Glucose Service.
  6897. #ifndef BLE_GLS_BLE_OBSERVER_PRIO
  6898. #define BLE_GLS_BLE_OBSERVER_PRIO 2
  6899. #endif
  6900. // <o> BLE_HIDS_BLE_OBSERVER_PRIO
  6901. // <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
  6902. #ifndef BLE_HIDS_BLE_OBSERVER_PRIO
  6903. #define BLE_HIDS_BLE_OBSERVER_PRIO 2
  6904. #endif
  6905. // <o> BLE_HRS_BLE_OBSERVER_PRIO
  6906. // <i> Priority with which BLE events are dispatched to the Heart Rate Service.
  6907. #ifndef BLE_HRS_BLE_OBSERVER_PRIO
  6908. #define BLE_HRS_BLE_OBSERVER_PRIO 2
  6909. #endif
  6910. // <o> BLE_HRS_C_BLE_OBSERVER_PRIO
  6911. // <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
  6912. #ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
  6913. #define BLE_HRS_C_BLE_OBSERVER_PRIO 2
  6914. #endif
  6915. // <o> BLE_HTS_BLE_OBSERVER_PRIO
  6916. // <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
  6917. #ifndef BLE_HTS_BLE_OBSERVER_PRIO
  6918. #define BLE_HTS_BLE_OBSERVER_PRIO 2
  6919. #endif
  6920. // <o> BLE_IAS_BLE_OBSERVER_PRIO
  6921. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
  6922. #ifndef BLE_IAS_BLE_OBSERVER_PRIO
  6923. #define BLE_IAS_BLE_OBSERVER_PRIO 2
  6924. #endif
  6925. // <o> BLE_IAS_C_BLE_OBSERVER_PRIO
  6926. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
  6927. #ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
  6928. #define BLE_IAS_C_BLE_OBSERVER_PRIO 2
  6929. #endif
  6930. // <o> BLE_LBS_BLE_OBSERVER_PRIO
  6931. // <i> Priority with which BLE events are dispatched to the LED Button Service.
  6932. #ifndef BLE_LBS_BLE_OBSERVER_PRIO
  6933. #define BLE_LBS_BLE_OBSERVER_PRIO 2
  6934. #endif
  6935. // <o> BLE_LBS_C_BLE_OBSERVER_PRIO
  6936. // <i> Priority with which BLE events are dispatched to the LED Button Service Client.
  6937. #ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
  6938. #define BLE_LBS_C_BLE_OBSERVER_PRIO 2
  6939. #endif
  6940. // <o> BLE_LLS_BLE_OBSERVER_PRIO
  6941. // <i> Priority with which BLE events are dispatched to the Link Loss Service.
  6942. #ifndef BLE_LLS_BLE_OBSERVER_PRIO
  6943. #define BLE_LLS_BLE_OBSERVER_PRIO 2
  6944. #endif
  6945. // <o> BLE_LNS_BLE_OBSERVER_PRIO
  6946. // <i> Priority with which BLE events are dispatched to the Location Navigation Service.
  6947. #ifndef BLE_LNS_BLE_OBSERVER_PRIO
  6948. #define BLE_LNS_BLE_OBSERVER_PRIO 2
  6949. #endif
  6950. // <o> BLE_NUS_BLE_OBSERVER_PRIO
  6951. // <i> Priority with which BLE events are dispatched to the UART Service.
  6952. #ifndef BLE_NUS_BLE_OBSERVER_PRIO
  6953. #define BLE_NUS_BLE_OBSERVER_PRIO 2
  6954. #endif
  6955. // <o> BLE_NUS_C_BLE_OBSERVER_PRIO
  6956. // <i> Priority with which BLE events are dispatched to the UART Central Service.
  6957. #ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
  6958. #define BLE_NUS_C_BLE_OBSERVER_PRIO 2
  6959. #endif
  6960. // <o> BLE_OTS_BLE_OBSERVER_PRIO
  6961. // <i> Priority with which BLE events are dispatched to the Object transfer service.
  6962. #ifndef BLE_OTS_BLE_OBSERVER_PRIO
  6963. #define BLE_OTS_BLE_OBSERVER_PRIO 2
  6964. #endif
  6965. // <o> BLE_OTS_C_BLE_OBSERVER_PRIO
  6966. // <i> Priority with which BLE events are dispatched to the Object transfer service client.
  6967. #ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
  6968. #define BLE_OTS_C_BLE_OBSERVER_PRIO 2
  6969. #endif
  6970. // <o> BLE_RSCS_BLE_OBSERVER_PRIO
  6971. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
  6972. #ifndef BLE_RSCS_BLE_OBSERVER_PRIO
  6973. #define BLE_RSCS_BLE_OBSERVER_PRIO 2
  6974. #endif
  6975. // <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
  6976. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
  6977. #ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
  6978. #define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
  6979. #endif
  6980. // <o> BLE_TPS_BLE_OBSERVER_PRIO
  6981. // <i> Priority with which BLE events are dispatched to the TX Power Service.
  6982. #ifndef BLE_TPS_BLE_OBSERVER_PRIO
  6983. #define BLE_TPS_BLE_OBSERVER_PRIO 2
  6984. #endif
  6985. // <o> BSP_BTN_BLE_OBSERVER_PRIO
  6986. // <i> Priority with which BLE events are dispatched to the Button Control module.
  6987. #ifndef BSP_BTN_BLE_OBSERVER_PRIO
  6988. #define BSP_BTN_BLE_OBSERVER_PRIO 1
  6989. #endif
  6990. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  6991. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  6992. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  6993. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  6994. #endif
  6995. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  6996. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  6997. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  6998. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  6999. #endif
  7000. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  7001. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  7002. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  7003. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  7004. #endif
  7005. // <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
  7006. // <i> Priority with which BLE events are dispatched to the Bond Management Service.
  7007. #ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
  7008. #define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
  7009. #endif
  7010. // <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  7011. // <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
  7012. #ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  7013. #define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
  7014. #endif
  7015. // <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
  7016. // <i> Priority with which BLE events are dispatched to the Eddystone module.
  7017. #ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
  7018. #define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
  7019. #endif
  7020. // <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  7021. // <i> Priority with which BLE events are dispatched to the GATT Service Client.
  7022. #ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  7023. #define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
  7024. #endif
  7025. // <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
  7026. // <i> Priority with which BLE events are dispatched to the GATT module.
  7027. #ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
  7028. #define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
  7029. #endif
  7030. // <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
  7031. // <i> Priority with which BLE events are dispatched to the Queued writes module.
  7032. #ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
  7033. #define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
  7034. #endif
  7035. // <o> NRF_BLE_SCAN_OBSERVER_PRIO
  7036. // <i> Priority for dispatching the BLE events to the Scanning Module.
  7037. #ifndef NRF_BLE_SCAN_OBSERVER_PRIO
  7038. #define NRF_BLE_SCAN_OBSERVER_PRIO 1
  7039. #endif
  7040. // <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
  7041. #ifndef PM_BLE_OBSERVER_PRIO
  7042. #define PM_BLE_OBSERVER_PRIO 1
  7043. #endif
  7044. // </h>
  7045. //==========================================================
  7046. // </h>
  7047. //==========================================================
  7048. // </e>
  7049. // <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
  7050. //==========================================================
  7051. #ifndef NRF_SDH_ENABLED
  7052. #define NRF_SDH_ENABLED 0
  7053. #endif
  7054. // <h> Dispatch model
  7055. // <i> This setting configures how Stack events are dispatched to the application.
  7056. //==========================================================
  7057. // <o> NRF_SDH_DISPATCH_MODEL
  7058. // <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
  7059. // <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
  7060. // <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
  7061. // <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
  7062. // <1=> NRF_SDH_DISPATCH_MODEL_APPSH
  7063. // <2=> NRF_SDH_DISPATCH_MODEL_POLLING
  7064. #ifndef NRF_SDH_DISPATCH_MODEL
  7065. #define NRF_SDH_DISPATCH_MODEL 0
  7066. #endif
  7067. // </h>
  7068. //==========================================================
  7069. // <h> Clock - SoftDevice clock configuration
  7070. //==========================================================
  7071. // <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
  7072. // <0=> NRF_CLOCK_LF_SRC_RC
  7073. // <1=> NRF_CLOCK_LF_SRC_XTAL
  7074. // <2=> NRF_CLOCK_LF_SRC_SYNTH
  7075. #ifndef NRF_SDH_CLOCK_LF_SRC
  7076. #define NRF_SDH_CLOCK_LF_SRC 1
  7077. #endif
  7078. // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
  7079. #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
  7080. #define NRF_SDH_CLOCK_LF_RC_CTIV 0
  7081. #endif
  7082. // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
  7083. // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
  7084. // <i> if the temperature has not changed.
  7085. #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
  7086. #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
  7087. #endif
  7088. // <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
  7089. // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
  7090. // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
  7091. // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
  7092. // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
  7093. // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
  7094. // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
  7095. // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
  7096. // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
  7097. // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
  7098. // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
  7099. // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
  7100. // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
  7101. #ifndef NRF_SDH_CLOCK_LF_ACCURACY
  7102. #define NRF_SDH_CLOCK_LF_ACCURACY 7
  7103. #endif
  7104. // </h>
  7105. //==========================================================
  7106. // <h> SDH Observers - Observers and priority levels
  7107. //==========================================================
  7108. // <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
  7109. // <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
  7110. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  7111. #ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
  7112. #define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
  7113. #endif
  7114. // <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
  7115. // <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
  7116. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  7117. #ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
  7118. #define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
  7119. #endif
  7120. // <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
  7121. // <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
  7122. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  7123. #ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
  7124. #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
  7125. #endif
  7126. // <h> State Observers priorities - Invididual priorities
  7127. //==========================================================
  7128. // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
  7129. // <i> Priority with which state events are dispatched to the Clock driver.
  7130. #ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
  7131. #define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
  7132. #endif
  7133. // <o> POWER_CONFIG_STATE_OBSERVER_PRIO
  7134. // <i> Priority with which state events are dispatched to the Power driver.
  7135. #ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
  7136. #define POWER_CONFIG_STATE_OBSERVER_PRIO 0
  7137. #endif
  7138. // <o> RNG_CONFIG_STATE_OBSERVER_PRIO
  7139. // <i> Priority with which state events are dispatched to this module.
  7140. #ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
  7141. #define RNG_CONFIG_STATE_OBSERVER_PRIO 0
  7142. #endif
  7143. // </h>
  7144. //==========================================================
  7145. // <h> Stack Event Observers priorities - Invididual priorities
  7146. //==========================================================
  7147. // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
  7148. // <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
  7149. // <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
  7150. // <i> Zero is the highest priority.
  7151. #ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
  7152. #define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
  7153. #endif
  7154. // <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
  7155. // <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
  7156. // <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
  7157. // <i> Zero is the highest priority.
  7158. #ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
  7159. #define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
  7160. #endif
  7161. // <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
  7162. // <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
  7163. // <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
  7164. // <i> Zero is the highest priority.
  7165. #ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
  7166. #define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
  7167. #endif
  7168. // </h>
  7169. //==========================================================
  7170. // </h>
  7171. //==========================================================
  7172. // </e>
  7173. // <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
  7174. //==========================================================
  7175. #ifndef NRF_SDH_SOC_ENABLED
  7176. #define NRF_SDH_SOC_ENABLED 0
  7177. #endif
  7178. // <h> SoC Observers - Observers and priority levels
  7179. //==========================================================
  7180. // <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
  7181. // <i> This setting configures the number of priority levels available for the SoC event handlers.
  7182. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  7183. #ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
  7184. #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
  7185. #endif
  7186. // <h> SoC Observers priorities - Invididual priorities
  7187. //==========================================================
  7188. // <o> BLE_ADV_SOC_OBSERVER_PRIO
  7189. // <i> Priority with which SoC events are dispatched to the Advertising module.
  7190. #ifndef BLE_ADV_SOC_OBSERVER_PRIO
  7191. #define BLE_ADV_SOC_OBSERVER_PRIO 1
  7192. #endif
  7193. // <o> BLE_DFU_SOC_OBSERVER_PRIO
  7194. // <i> Priority with which BLE events are dispatched to the DFU Service.
  7195. #ifndef BLE_DFU_SOC_OBSERVER_PRIO
  7196. #define BLE_DFU_SOC_OBSERVER_PRIO 1
  7197. #endif
  7198. // <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
  7199. // <i> Priority with which SoC events are dispatched to the Clock driver.
  7200. #ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
  7201. #define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
  7202. #endif
  7203. // <o> POWER_CONFIG_SOC_OBSERVER_PRIO
  7204. // <i> Priority with which SoC events are dispatched to the Power driver.
  7205. #ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
  7206. #define POWER_CONFIG_SOC_OBSERVER_PRIO 0
  7207. #endif
  7208. // </h>
  7209. //==========================================================
  7210. // </h>
  7211. //==========================================================
  7212. // </e>
  7213. // </h>
  7214. //==========================================================
  7215. // <<< end of configuration section >>>
  7216. #endif //SDK_CONFIG_H