code
stringlengths 3
1.01M
| repo_name
stringlengths 5
116
| path
stringlengths 3
311
| language
stringclasses 30
values | license
stringclasses 15
values | size
int64 3
1.01M
|
|---|---|---|---|---|---|
<?php
include('sessioncheck.php');
include('db.php');
$q = "select * from info where eml = '".$_SESSION['username']."'";
$r = mysqli_query($cn,$q);
$res = mysqli_fetch_row($r);
?>
<html>
<link rel="icon" type="images/png" href="images/favicon.png">
<head>
<title>Tradfashion</title>
<link rel="stylesheet" href="style7.css">
</head>
<body>
<?php include('header1.php'); ?>
<?php include('left_header.php'); ?>
<?php include('right_header.php'); ?>
<div id="content">
<div id="form">
<table cellspacing="5" cellpadding="5">
<div style="font-size: 100%; float: right; margin-right: 40; padding-bottom:10px; padding-right:10px;"><?php echo "<b>Welcome  ".$_SESSION['username']; ?></div>
<h3>Registration Form</h3>
<tr>
<td>Photo</td>
<td><img src="<?php echo $res[9]; ?>" height="50px" width="50px"></td>
</tr>
<tr>
<td>First Name</td>
<td><?php echo $res[1]; ?></td>
</tr>
<tr>
<td>Middle Name</td>
<td><?php echo $res[2]; ?></td>
</tr>
<tr>
<td>Last Name</td>
<td><?php echo $res[3]; ?></td>
</tr>
<tr>
<td>Email/Username</td>
<td><?php echo $res[4]; ?></td>
</tr>
<tr>
<td>Mobile</td>
<td><?php echo $res[6]; ?></td>
</tr>
<tr>
<td>Gender</td>
<td><input type="radio" name="gender" value="male" <?php if($res[7] == 'male') { ?> checked="checked"<?php } ?>>Male
<input type="radio" name="gender" value="female" <?php if($res[7] == 'female') { ?> checked="checked"<?php } ?>>Female</td>
</tr>
<tr>
<td>City</td>
<td><select name="city">
<option value=""></option>
<option <?php if($res[8] == 'Ahmedabad') { ?> selected="selected" <?php } ?> value="Ahmedabad">Ahmedabad</option>
<option <?php if($res[8] == 'Asansol') { ?> selected="selected" <?php } ?> value="Asansol">Asansol</option>
<option <?php if($res[8] == 'Bengaluru') { ?> selected="selected" <?php } ?> value="Bengaluru">Bengaluru</option>
<option <?php if($res[8] == 'Chennai') { ?> selected="selected" <?php } ?> value="Chennai">Chennai</option>
<option <?php if($res[8] == 'Delhi') { ?> selected="selected" <?php } ?> value="Delhi">Delhi</option>
<option <?php if($res[8] == 'Durgapur') { ?> selected="selected" <?php } ?> value="Durgapur">Durgapur</option>
<option <?php if($res[8] == 'Hyderabad') { ?> selected="selected" <?php } ?> value="Hyderabad">Hyderabad</option>
<option <?php if($res[8] == 'Jamshedpur') { ?> selected="selected" <?php } ?> value="Jamshedpur">Jamshedpur</option>
<option <?php if($res[8] == 'Kolkata') { ?> selected="selected" <?php } ?> value="Kolkata">Kolkata</option>
<option <?php if($res[8] == 'Mumbai') { ?> selected="selected" <?php } ?> value="Mumbai">Mumbai</option>
<option <?php if($res[8] == 'Nagpur') { ?> selected="selected" <?php } ?> value="Nagpur">Nagpur</option>
<option <?php if($res[8] == 'Patna') { ?> selected="selected" <?php } ?> value="Patna">Patna</option>
<option <?php if($res[8] == 'Pune') { ?> selected="selected" <?php } ?> value="Pune">Pune</option>
<option <?php if($res[8] == 'Ranchi') { ?> selected="selected" <?php } ?> value="Ranchi">Ranchi</option>
<option <?php if($res[8] == 'Surat') { ?> selected="selected" <?php } ?> value="Surat">Surat</option>
<option <?php if($res[8] == 'Visakhapatnam') { ?> selected="selected" <?php } ?> value="Visakhapatnam">Visakhapatnam</option>
</select></td>
</tr>
<tr>
<td>Download Resume</td>
<td><a href="<?php echo $res[10]; ?>" target="_blank">Click Here</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
|
AmirMustafa/Project-TredFashion
|
user_page.php
|
PHP
|
mit
| 3,874
|
#include <stdio.h>
#include "list.h"
#define N 10
void visit(link);
int main(void) {
int i;
link head, x;
// Population
head = new_link(0);
x = head;
for (i = 1; i < N; ++i) {
x = insert_after(x, new_link(i));
}
// Recursive Traversal
traverse(head, visit);
return 0;
}
void visit(link x) {
printf("Visited link %i\n", x->item);
}
|
bartobri/data-structures-c
|
linked-lists/standard-recursive-traversal/main.c
|
C
|
mit
| 354
|
<html><body>
<h4>Windows 10 x64 (18363.535)</h4><br>
<h2>_LOADER_RESET_REASON</h2>
<font face="arial"> +0x000 Supplied : UChar<br>
+0x008 Basic : <a href="./<anonymous-tag>.html"><anonymous-tag></a><br>
+0x010 AdditionalInfo : [8] Uint4B<br>
</font></body></html>
|
epikcraw/ggool
|
public/Windows 10 x64 (18363.535)/_LOADER_RESET_REASON.html
|
HTML
|
mit
| 298
|
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016-2017 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// Interface header.
#include "metalbrdf.h"
// appleseed.renderer headers.
#include "renderer/kernel/lighting/scatteringmode.h"
#include "renderer/modeling/bsdf/bsdf.h"
#include "renderer/modeling/bsdf/bsdfwrapper.h"
#include "renderer/modeling/bsdf/fresnel.h"
#include "renderer/modeling/bsdf/microfacethelper.h"
#include "renderer/modeling/bsdf/specularhelper.h"
#include "renderer/utility/messagecontext.h"
#include "renderer/utility/paramarray.h"
// appleseed.foundation headers.
#include "foundation/math/basis.h"
#include "foundation/math/microfacet.h"
#include "foundation/math/minmax.h"
#include "foundation/math/sampling/mappings.h"
#include "foundation/math/vector.h"
#include "foundation/utility/api/specializedapiarrays.h"
#include "foundation/utility/containers/dictionary.h"
#include "foundation/utility/makevector.h"
#include "foundation/utility/otherwise.h"
// Standard headers.
#include <algorithm>
#include <cmath>
#include <string>
// Forward declarations.
namespace foundation { class IAbortSwitch; }
namespace renderer { class Assembly; }
namespace renderer { class Project; }
using namespace foundation;
using namespace std;
namespace renderer
{
namespace
{
//
// Metal BRDF.
//
// A future version of this BRDF will support multiple scattering.
// For that reason, the only available microfacet distribution functions
// are those that support it (Beckmann and GGX).
//
// References:
//
// [1] Microfacet Models for Refraction through Rough Surfaces
// http://www.cs.cornell.edu/~srm/publications/EGSR07-btdf.pdf
//
// Todo:
//
// This BRDF currently assumes an air | metal interface and will not
// produce correct results when that's not the case, for example
// a metallic object inside a liquid.
// Reference for the correct Fresnel equation to use:
// https://seblagarde.wordpress.com/2013/04/29/memo-on-fresnel-equations/
//
const char* Model = "metal_brdf";
class MetalBRDFImpl
: public BSDF
{
public:
MetalBRDFImpl(
const char* name,
const ParamArray& params)
: BSDF(name, Reflective, ScatteringMode::Glossy | ScatteringMode::Specular, params)
{
m_inputs.declare("normal_reflectance", InputFormatSpectralReflectance);
m_inputs.declare("edge_tint", InputFormatSpectralReflectance);
m_inputs.declare("reflectance_multiplier", InputFormatFloat, "1.0");
m_inputs.declare("roughness", InputFormatFloat, "0.15");
m_inputs.declare("anisotropy", InputFormatFloat, "0.0");
}
virtual void release() APPLESEED_OVERRIDE
{
delete this;
}
virtual const char* get_model() const APPLESEED_OVERRIDE
{
return Model;
}
virtual size_t compute_input_data_size() const APPLESEED_OVERRIDE
{
return sizeof(InputValues);
}
virtual void prepare_inputs(
Arena& arena,
const ShadingPoint& shading_point,
void* data) const APPLESEED_OVERRIDE
{
InputValues* values = static_cast<InputValues*>(data);
new (&values->m_precomputed) InputValues::Precomputed();
artist_friendly_fresnel_conductor_reparameterization(
values->m_normal_reflectance,
values->m_edge_tint,
values->m_precomputed.m_n,
values->m_precomputed.m_k);
}
virtual bool on_frame_begin(
const Project& project,
const BaseGroup* parent,
OnFrameBeginRecorder& recorder,
IAbortSwitch* abort_switch) APPLESEED_OVERRIDE
{
if (!BSDF::on_frame_begin(project, parent, recorder, abort_switch))
return false;
const EntityDefMessageContext context("bsdf", this);
const string mdf =
m_params.get_required<string>(
"mdf",
"ggx",
make_vector("beckmann", "ggx"),
context);
if (mdf == "ggx")
m_mdf.reset(new GGXMDF());
else if (mdf == "beckmann")
m_mdf.reset(new BeckmannMDF());
else return false;
return true;
}
virtual void sample(
SamplingContext& sampling_context,
const void* data,
const bool adjoint,
const bool cosine_mult,
BSDFSample& sample) const APPLESEED_OVERRIDE
{
const Vector3f& n = sample.m_shading_basis.get_normal();
const Vector3f& outgoing = sample.m_outgoing.get_value();
const float cos_on = std::min(dot(outgoing, n), 1.0f);
if (cos_on < 0.0f)
return;
const InputValues* values = static_cast<const InputValues*>(data);
FresnelConductorFun f(
values->m_precomputed.m_n,
values->m_precomputed.m_k,
values->m_reflectance_multiplier);
// If roughness is zero use reflection.
if (values->m_roughness == 0.0f)
{
SpecularBRDFHelper::sample(f, sample);
return;
}
float alpha_x, alpha_y;
microfacet_alpha_from_roughness(
values->m_roughness,
values->m_anisotropy,
alpha_x,
alpha_y);
MicrofacetBRDFHelper::sample(
sampling_context,
*m_mdf,
alpha_x,
alpha_y,
0.0f,
f,
cos_on,
sample);
}
virtual float evaluate(
const void* data,
const bool adjoint,
const bool cosine_mult,
const Vector3f& geometric_normal,
const Basis3f& shading_basis,
const Vector3f& outgoing,
const Vector3f& incoming,
const int modes,
Spectrum& value) const APPLESEED_OVERRIDE
{
if (!ScatteringMode::has_glossy(modes))
return 0.0f;
// No reflection below the shading surface.
const Vector3f& n = shading_basis.get_normal();
const float cos_in = dot(incoming, n);
const float cos_on = dot(outgoing, n);
if (cos_in < 0.0f || cos_on < 0.0f)
return 0.0f;
const InputValues* values = static_cast<const InputValues*>(data);
float alpha_x, alpha_y;
microfacet_alpha_from_roughness(
values->m_roughness,
values->m_anisotropy,
alpha_x,
alpha_y);
FresnelConductorFun f(
values->m_precomputed.m_n,
values->m_precomputed.m_k,
values->m_reflectance_multiplier);
return MicrofacetBRDFHelper::evaluate(
*m_mdf,
alpha_x,
alpha_y,
0.0f,
shading_basis,
outgoing,
incoming,
f,
cos_in,
cos_on,
value);
}
virtual float evaluate_pdf(
const void* data,
const Vector3f& geometric_normal,
const Basis3f& shading_basis,
const Vector3f& outgoing,
const Vector3f& incoming,
const int modes) const APPLESEED_OVERRIDE
{
if (!ScatteringMode::has_glossy(modes))
return 0.0f;
// No reflection below the shading surface.
const Vector3f& n = shading_basis.get_normal();
const float cos_in = dot(incoming, n);
const float cos_on = dot(outgoing, n);
if (cos_in < 0.0f || cos_on < 0.0f)
return 0.0f;
const InputValues* values = static_cast<const InputValues*>(data);
float alpha_x, alpha_y;
microfacet_alpha_from_roughness(
values->m_roughness,
values->m_anisotropy,
alpha_x,
alpha_y);
return MicrofacetBRDFHelper::pdf(
*m_mdf,
alpha_x,
alpha_y,
0.0f,
shading_basis,
outgoing,
incoming);
}
private:
typedef MetalBRDFInputValues InputValues;
auto_ptr<MDF> m_mdf;
};
typedef BSDFWrapper<MetalBRDFImpl> MetalBRDF;
}
//
// MetalBRDFFactory class implementation.
//
const char* MetalBRDFFactory::get_model() const
{
return Model;
}
Dictionary MetalBRDFFactory::get_model_metadata() const
{
return
Dictionary()
.insert("name", Model)
.insert("label", "Metal BRDF");
}
DictionaryArray MetalBRDFFactory::get_input_metadata() const
{
DictionaryArray metadata;
metadata.push_back(
Dictionary()
.insert("name", "mdf")
.insert("label", "Microfacet Distribution Function")
.insert("type", "enumeration")
.insert("items",
Dictionary()
.insert("Beckmann", "beckmann")
.insert("GGX", "ggx"))
.insert("use", "required")
.insert("default", "ggx"));
metadata.push_back(
Dictionary()
.insert("name", "normal_reflectance")
.insert("label", "Normal Reflectance")
.insert("type", "colormap")
.insert("entity_types",
Dictionary()
.insert("color", "Colors")
.insert("texture_instance", "Textures"))
.insert("use", "required")
.insert("default", "0.92"));
metadata.push_back(
Dictionary()
.insert("name", "edge_tint")
.insert("label", "Edge Tint")
.insert("type", "colormap")
.insert("entity_types",
Dictionary()
.insert("color", "Colors")
.insert("texture_instance", "Textures"))
.insert("use", "required")
.insert("default", "0.98"));
metadata.push_back(
Dictionary()
.insert("name", "reflectance_multiplier")
.insert("label", "Reflectance Multiplier")
.insert("type", "colormap")
.insert("entity_types",
Dictionary().insert("texture_instance", "Textures"))
.insert("use", "optional")
.insert("default", "1.0"));
metadata.push_back(
Dictionary()
.insert("name", "roughness")
.insert("label", "Roughness")
.insert("type", "colormap")
.insert("entity_types",
Dictionary()
.insert("color", "Colors")
.insert("texture_instance", "Textures"))
.insert("use", "optional")
.insert("min_value", "0.0")
.insert("max_value", "1.0")
.insert("default", "0.15"));
metadata.push_back(
Dictionary()
.insert("name", "anisotropy")
.insert("label", "Anisotropy")
.insert("type", "colormap")
.insert("entity_types",
Dictionary()
.insert("color", "Colors")
.insert("texture_instance", "Textures"))
.insert("use", "optional")
.insert("min_value", "-1.0")
.insert("max_value", "1.0")
.insert("default", "0.0"));
return metadata;
}
auto_release_ptr<BSDF> MetalBRDFFactory::create(
const char* name,
const ParamArray& params) const
{
return auto_release_ptr<BSDF>(new MetalBRDF(name, params));
}
auto_release_ptr<BSDF> MetalBRDFFactory::static_create(
const char* name,
const ParamArray& params)
{
return auto_release_ptr<BSDF>(new MetalBRDF(name, params));
}
} // namespace renderer
|
aiivashchenko/appleseed
|
src/appleseed/renderer/modeling/bsdf/metalbrdf.cpp
|
C++
|
mit
| 13,847
|
---
layout: default
---
<article class="post">
<h1>{{ page.title }}</h1>
<div class="entry">
{{ content }}
</div>
<div class="date">
Last updated {{ page.date | date: "%B %e, %Y" }}
</div>
{% include disqus.html %}
</article>
{% for js in page.jsarr %}
<script type="text/javascript">
{% include {{ js }} %}
</script>
{% endfor %}
|
qst0/taut.tech
|
_layouts/post.html
|
HTML
|
mit
| 370
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Chart = require('../../../models/Chart');
var _Chart2 = _interopRequireDefault(_Chart);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = async function (ctx) {
await ctx.checkAbility('admin');
//abilities
let id = ctx.query.id || ctx.error(404);
// $Flow findById
let chart = await _Chart2.default.findById(id);
if (!chart) ctx.error(404);
if (chart.abilities) {
for (let ability of chart.abilities) {
// $Flow ability Object string
await ctx.checkAbility(ability);
}
}
ctx.body = await chart.getData(ctx);
};
|
maichong/alaska
|
packages/alaska-statistics/config/alaska-admin/api/chart.js
|
JavaScript
|
mit
| 705
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DataAccessLayer
{
using System;
using System.Collections.Generic;
public partial class Customer
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Customer()
{
this.Orders = new HashSet<Order>();
}
public string CustomerID { get; set; }
public string CompanyName { get; set; }
public string ContactName { get; set; }
public string ContactTitle { get; set; }
public string Address { get; set; }
public string City { get; set; }
public string Region { get; set; }
public string PostalCode { get; set; }
public string Country { get; set; }
public string Phone { get; set; }
public string Fax { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Order> Orders { get; set; }
}
}
|
dwiajik/asp-mvc-workshop
|
DataAccessLayer/Customer.cs
|
C#
|
mit
| 1,474
|
// $Id$
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using OreEfficiencyCalc.Properties;
namespace OreEfficiencyCalc {
public partial class ManualPricesForm : Form {
public ManualPricesForm() {
InitializeComponent();
manualCheckBox.Checked = Settings.Default.manualPrices;
manualCheckBox_CheckedChanged(manualCheckBox, EventArgs.Empty);
}
private void cancelButton_Click(object sender, EventArgs e) {
this.Close();
}
private void saveButton_Click(object sender, EventArgs e) {
foreach (Control c in pricesGroupBox.Controls) {
if (c is Label) {
string label = ((Label)c).Text;
TextBox textBox = (TextBox)pricesGroupBox.Controls[label.Replace(' ', '_')];
double result;
if ((label.Length > 0) && (textBox != null) &&
double.TryParse(textBox.Text, out result)) {
Prices.setPrice(
(Component)Enum.Parse(typeof(Component), label.ToUpper()), result);
}
}
}
this.Close();
}
private void manualCheckBox_CheckedChanged(object sender, EventArgs e) {
pricesGroupBox.Enabled =
Settings.Default.manualPrices = ((CheckBox)sender).Checked;
}
}
}
|
marinazzio/orecalc
|
src/ManualPricesForm.cs
|
C#
|
mit
| 1,604
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "IDEEditorDocument.h"
#import "DVTSourceLandmarkProvider.h"
#import "DVTSourceTextViewDelegate.h"
#import "DVTTextFindable.h"
#import "DVTTextReplacable.h"
#import "DVTTextStorageDelegate.h"
#import "IDEDiagnosticControllerDataSource.h"
#import "IDEDocumentStructureProviding.h"
#import "IDEObjectiveCSourceCodeGenerationDestination.h"
@interface IDESourceCodeDocument : IDEEditorDocument <IDEDiagnosticControllerDataSource, IDEDocumentStructureProviding, DVTTextFindable, DVTTextReplacable, DVTTextStorageDelegate, IDEObjectiveCSourceCodeGenerationDestination, DVTSourceLandmarkProvider, DVTSourceTextViewDelegate>
{
DVTTextStorage *_textStorage;
DVTSourceCodeLanguage *_language;
IDEDiagnosticController *_diagnosticController;
NSArray *_sourceLandmarks;
NSMutableSet *_pendingAdjustNodeTypeRequests;
IDESourceCodeAdjustNodeTypesRequest *_lastAdjustNodeTypesRequest;
struct _NSRange _prefetchedNodeTypesLineRange;
DVTGeneratedContentProvider *_generatedContentProvider;
IDEGeneratedContentStatusContext *_generatedContentStatusContext;
BOOL _generatesContent;
DVTObservingToken *_generatedContentProviderDisplayNameObserver;
DVTNotificationToken *_indexDidIndexWorkspaceObserver;
DVTNotificationToken *_indexDidChangeObserver;
unsigned long long _lineEndings;
unsigned long long _textEncoding;
BOOL _usesLanguageFromFileDataType;
BOOL _languageSupportsSymbolColoring;
BOOL _setUpPrintInfoDefaults;
BOOL _isUnicodeWithBOM;
BOOL _isUnicodeBE;
BOOL _droppedRecomputableState;
DVTDelayedInvocation *_dropRecomputableState;
DVTObservingToken *_firstEditorWorkspaceToken;
DVTObservingToken *_firstEditorWorkspaceActiveSchemeToken;
DVTNotificationToken *_firstEditorWorkspaceActiveSchemeBuildablesDidChangeToken;
NSMutableArray *_registeredEditors;
BOOL _notifiesWhenClosing;
NSSet *__firstEditorWorkspacePreferredIndexableIdentifiers;
NSDictionary *__firstEditorWorkspaceBuildSettings;
}
+ (id)keyPathsForValuesAffecting_firstEditorWorkspace;
+ (id)keyPathsForValuesAffectingSourceLanguageServiceContext;
+ (id)syntaxColoringPrefetchLogAspect;
+ (id)topLevelStructureLogAspect;
+ (void)initialize;
@property(copy) NSDictionary *_firstEditorWorkspaceBuildSettings; // @synthesize _firstEditorWorkspaceBuildSettings=__firstEditorWorkspaceBuildSettings;
@property(copy) NSSet *_firstEditorWorkspacePreferredIndexableIdentifiers; // @synthesize _firstEditorWorkspacePreferredIndexableIdentifiers=__firstEditorWorkspacePreferredIndexableIdentifiers;
@property BOOL notifiesWhenClosing; // @synthesize notifiesWhenClosing=_notifiesWhenClosing;
@property(retain) IDEGeneratedContentStatusContext *generatedContentStatusContext; // @synthesize generatedContentStatusContext=_generatedContentStatusContext;
@property BOOL generatesContent; // @synthesize generatesContent=_generatesContent;
@property(readonly) struct _NSRange prefetchedNodeTypesLineRange; // @synthesize prefetchedNodeTypesLineRange=_prefetchedNodeTypesLineRange;
@property(nonatomic) unsigned long long lineEndings; // @synthesize lineEndings=_lineEndings;
@property unsigned long long textEncoding; // @synthesize textEncoding=_textEncoding;
@property(nonatomic) BOOL usesLanguageFromFileDataType; // @synthesize usesLanguageFromFileDataType=_usesLanguageFromFileDataType;
@property(retain, nonatomic) DVTSourceCodeLanguage *language; // @synthesize language=_language;
@property(readonly) DVTTextStorage *textStorage; // @synthesize textStorage=_textStorage;
- (void).cxx_destruct;
- (void)_delayedDropRecomputableState:(id)arg1;
- (void)_restoreRecomputableState;
- (void)_dropRecomputableState;
- (void)_documentMovingToForeground;
- (void)_documentMovingToBackground:(BOOL)arg1;
- (void)registerDocumentEditor:(id)arg1;
- (void)unregisterDocumentEditor:(id)arg1;
- (id)_firstEditorWorkspace;
- (id)_firstEditor;
- (id)sourceCodeGenerator:(id)arg1 commitInsertionOfSourceCodeForCompositeResult:(id)arg2 error:(id *)arg3;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCAtSynthesizeWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCPropertyDeclarationWithName:(id)arg2 type:(id)arg3 inClassNamed:(id)arg4 options:(id)arg5 error:(id *)arg6;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCPropertyReleaseForTeardownWithName:(id)arg2 type:(id)arg3 inClassNamed:(id)arg4 options:(id)arg5 error:(id *)arg6;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCInstanceVariableReleaseForTeardownWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)_primitiveAddObjectiveCReleaseForTeardownMethodWithSourceCodeGenerator:(id)arg1 withReleaseCallCode:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCInstanceVariableDeclarationWithName:(id)arg2 type:(id)arg3 inClassNamed:(id)arg4 options:(id)arg5 error:(id *)arg6;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCClassMethodDefinitionWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCClassMethodDeclarationWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCInstanceMethodDefinitionWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)_primitiveAppendObjectiveCSourceCode:(id)arg1 afterItem:(id)arg2 prependNewLine:(BOOL)arg3;
- (id)sourceCodeGenerator:(id)arg1 prepareToAddObjectiveCInstanceMethodDeclarationWithName:(id)arg2 inClassNamed:(id)arg3 options:(id)arg4 error:(id *)arg5;
- (id)_primitiveAddObjectiveCMethodSourceCode:(id)arg1 toClassItem:(id)arg2 withOptions:(id)arg3 error:(id *)arg4;
- (id)_primitiveAddObjectiveCSourceCode:(id)arg1 toClassItem:(id)arg2 withOptions:(id)arg3 insertAdditionalNewlineWhenInsertingWithAfterBeforeHint:(BOOL)arg4 insertAtEndWhenInsertingWithoutHint:(BOOL)arg5 insertAfterObjCBlockWhenInsertingAtBeginning:(BOOL)arg6 ignoreHintItemsConformingToSpecifications:(id)arg7 onlyConsiderItemsConformingToSpecifications:(id)arg8 error:(id *)arg9;
- (id)_insertObjectiveCSourceCode:(id)arg1 inTeardownMethodForClassNamed:(id)arg2 options:(id)arg3 error:(id *)arg4;
- (id)_teardownMethodNameForSourceCodeGeneratorWithOptions:(id)arg1;
- (BOOL)_hasObjCMethodImplementationForName:(id)arg1 forClassNamed:(id)arg2;
- (id)_objCMethodImplementationItemForName:(id)arg1 inClassItem:(id)arg2;
- (id)_insertObjCSourceCode:(id)arg1 inTopLevelOfClassItem:(id)arg2 withInsertAfterHint:(id)arg3 andInsertBeforeHint:(id)arg4 ignoreHintItemsConformingToSpecifications:(id)arg5 onlyConsiderItemsConformingToSpecifications:(id)arg6 insertAdditionalNewline:(BOOL)arg7 insertAtEndWhenInsertingWithoutHint:(BOOL)arg8 insertAfterObjCBlockWhenInsertingAtBeginning:(BOOL)arg9;
- (id)_insertObjCSourceCode:(id)arg1 inContainingSourceModelItem:(id)arg2 withInsertAfterHint:(id)arg3 andInsertBeforeHint:(id)arg4 ignoreHintItemsConformingToSpecifications:(id)arg5 onlyConsiderItemsConformingToSpecifications:(id)arg6 insertAdditionalNewline:(BOOL)arg7 fallbackInsertionBlock:(CDUnknownBlockType)arg8;
- (long long)_insertionHintMatchPriorityForObjCSourceModelItem:(id)arg1 givenInsertionHintItemName:(id)arg2 andLanguageSpecification:(id)arg3 ignoreItemsConformingToSpecifications:(id)arg4 onlyConsiderItemsConformingToSpecifications:(id)arg5;
- (id)_insertObjCSourceCode:(id)arg1 inTopLevelOfClassItem:(id)arg2 asCloseAsPossibleToLineNumber:(unsigned long long)arg3 error:(id *)arg4;
- (id)_insertObjCSourceCode:(id)arg1 inContainingSourceModelItem:(id)arg2 asCloseAsPossibleToLineNumber:(unsigned long long)arg3 firstPossibleItemToInsertBefore:(id)arg4 error:(id *)arg5;
- (id)_insertionHintForObjCSourceModelItem:(id)arg1;
- (id)_firstObjCSourceModelItemToInsertBeforeInInstanceVariableBlock:(id)arg1;
- (id)_firstTopLevelObjCInterfaceSourceModelItemToInsertBeforeInClassItem:(id)arg1;
- (id)_insertSourceCode:(id)arg1 atBeginningOfClassSourceModelItem:(id)arg2 insertOnNextLine:(BOOL)arg3 insertAfterObjCBlock:(BOOL)arg4;
- (id)_insertSourceCode:(id)arg1 atEndOfClassSourceModelItem:(id)arg2 insertOnNextLine:(BOOL)arg3;
- (id)_insertSourceCode:(id)arg1 atEndOfContainingSourceModelItem:(id)arg2 insertOnNextLine:(BOOL)arg3 beforeItemMatchingPredicateBlock:(CDUnknownBlockType)arg4;
- (id)_insertSourceCode:(id)arg1 atBeginningOfContainingSourceModelItem:(id)arg2 insertOnNextLine:(BOOL)arg3 afterItemMatchingPredicateBlock:(CDUnknownBlockType)arg4;
- (id)_primitiveInsertSourceCode:(id)arg1 atBeginning:(BOOL)arg2 ofContainingSourceModelItem:(id)arg3 insertOnNextLine:(BOOL)arg4 afterOrBeforeItemMatchingPredicateBlock:(CDUnknownBlockType)arg5;
- (id)textDocumentLocationForInsertingSourceCode:(id)arg1 atLocation:(unsigned long long)arg2;
- (id)_instanceVariableDeclarationBlockItemForClassItem:(id)arg1;
- (id)_objCCategoryImplementationClassModelItemForClassNamed:(id)arg1 categoryName:(id)arg2 error:(id *)arg3;
- (id)_objCCategoryInterfaceClassModelItemForClassNamed:(id)arg1 categoryName:(id)arg2 options:(id)arg3 error:(id *)arg4;
- (id)_objCImplementationClassModelItemForClassNamed:(id)arg1 error:(id *)arg2;
- (id)_objCInterfaceClassModelItemForClassNamed:(id)arg1 error:(id *)arg2;
- (id)_classModelItemForClassNamed:(id)arg1 withConditionBlock:(CDUnknownBlockType)arg2;
- (id)errorForNotFindingClassItemForClassNamed:(id)arg1 humanReadableClassItemType:(id)arg2;
- (id)supportedSourceCodeLanguagesForSourceCodeGeneration;
- (long long)defaultPropertyAccessControl;
- (id)emptyPrivateCopy;
- (id)privateCopy;
- (id)diffDataSource;
- (id)textViewWillReturnPrintJobTitle:(id)arg1;
- (id)printOperationWithSettings:(id)arg1 error:(id *)arg2;
- (void)sourceLanguageServiceAvailabilityNotification:(BOOL)arg1 message:(id)arg2;
- (BOOL)textStorageShouldAllowEditing:(id)arg1;
- (void)textStorageDidUpdateSourceLandmarks:(id)arg1;
- (void)textStorageDidProcessEditing:(id)arg1;
- (void)updateChangeCount:(unsigned long long)arg1;
- (BOOL)replaceTextWithContentsOfURL:(id)arg1 error:(id *)arg2;
- (BOOL)replaceFindResults:(id)arg1 inSelection:(struct _NSRange)arg2 withString:(id)arg3 withError:(id *)arg4;
- (BOOL)replaceFindResults:(id)arg1 withString:(id)arg2 withError:(id *)arg3;
- (BOOL)replaceFindResults:(id)arg1 withString:(id)arg2 inSelection:(struct _NSRange)arg3 withError:(id *)arg4;
- (id)findStringMatchingDescriptor:(id)arg1 backwards:(BOOL)arg2 from:(id)arg3 to:(id)arg4;
- (id)documentLocationFromCharacterRange:(struct _NSRange)arg1;
- (struct _NSRange)characterRangeFromDocumentLocation:(id)arg1;
- (id)updatedLocationFromLocation:(id)arg1 toTimestamp:(double)arg2;
- (id)indexCompatibleLocationFromLocation:(id)arg1;
- (id)editorCompatibleLocationFromLocation:(id)arg1;
- (void)prefetchNodeTypesExtraLines:(unsigned long long)arg1 upDirection:(BOOL)arg2 withContext:(id)arg3;
- (void)initialPrefetchNodeTypesForLineRange:(struct _NSRange)arg1 withContext:(id)arg2;
- (void)_prefetchNodeTypesForLineRange:(struct _NSRange)arg1 withContext:(id)arg2;
- (long long)nodeTypeForItem:(id)arg1 withContext:(id)arg2;
- (void)_adjustNodeTypeForIdentifierItem:(id)arg1 withContext:(id)arg2;
- (void)editorDocumentWillClose;
- (id)dataOfType:(id)arg1 error:(id *)arg2;
- (BOOL)writeToURL:(id)arg1 ofType:(id)arg2 error:(id *)arg3;
- (BOOL)readFromData:(id)arg1 ofType:(id)arg2 error:(id *)arg3;
- (BOOL)readFromURL:(id)arg1 ofType:(id)arg2 error:(id *)arg3;
- (void)_configureDocumentReadFromURL:(id)arg1 orData:(id)arg2 ofType:(id)arg3 usedEncoding:(unsigned long long)arg4 preferredLineEndings:(unsigned long long)arg5 readOutAttributes:(id)arg6;
- (id)_readOptionsDictionaryForURL:(id)arg1 preferredEncoding:(unsigned long long)arg2 inOutData:(id *)arg3;
- (unsigned long long)_lineEndingUsedInString:(id)arg1;
- (BOOL)canSaveAs;
- (BOOL)canSave;
@property(readonly) DVTPerformanceMetric *openingPerformanceMetric;
- (id)editedContents;
@property(readonly, copy) NSString *description;
- (id)displayName;
@property(readonly) NSArray *knownFileReferences;
- (struct _NSRange)lineRangeOfSourceLandmark:(id)arg1;
- (id)sourceLandmarkItemAtLineNumber:(unsigned long long)arg1;
- (id)sourceLandmarkItemAtCharacterIndex:(unsigned long long)arg1;
@property(readonly) NSArray *ideTopLevelStructureObjects;
- (void)invalidateAndDisableDiagnosticController;
- (void)invalidateDiagnosticController;
@property(retain) IDEDiagnosticController *diagnosticController; // @synthesize diagnosticController=_diagnosticController;
- (id)printInfo;
- (void)setTextEncoding:(unsigned long long)arg1 convertContents:(BOOL)arg2;
@property(readonly, nonatomic) NSDictionary *sourceLanguageServiceContext;
@property(readonly) DVTFileDataType *fileDataType;
- (id)init;
- (void)setSdefSupport_text:(id)arg1;
- (id)sdefSupport_text;
- (void)setSdefSupport_selection:(id)arg1;
- (id)sdefSupport_selection;
- (void)setSdefSupport_selectedParagraphRange:(id)arg1;
- (id)sdefSupport_selectedParagraphRange;
- (void)setSdefSupport_selectedCharacterRange:(id)arg1;
- (id)sdefSupport_selectedCharacterRange;
- (void)setSdefSupport_notifiesWhenClosing:(BOOL)arg1;
- (BOOL)sdefSupport_notifiesWhenClosing;
- (void)setSdefSupport_contents:(id)arg1;
- (id)sdefSupport_contents;
- (void)setSdefSupport_editorSettings:(id)arg1;
- (id)sdefSupport_editorSettings;
- (id)objectSpecifier;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) NSURL *fileURL;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@property unsigned long long supportedMatchingOptions;
@end
|
wczekalski/Distraction-Free-Xcode-plugin
|
Archived/v1/WCDistractionFreeXcodePlugin/Headers/PlugIns/IDESourceEditor/IDESourceCodeDocument.h
|
C
|
mit
| 13,806
|
using Newtonsoft.Json;
using System;
namespace UniversalChanApp.Model
{
internal class IdConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
throw new NotSupportedException();
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
{
var str = (string)reader.Value;
return new BoardId(str);
}
public override bool CanConvert(Type objectType)
{
return objectType == typeof (BoardId);
}
}
}
|
Euphoric/UniversalChanApp
|
UniversalChanApp/Model/IdConverter.cs
|
C#
|
mit
| 658
|
//
// ASCenterLayoutSpec.h
// Texture
//
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the /ASDK-Licenses directory of this source tree. An additional
// grant of patent rights can be found in the PATENTS file in the same directory.
//
// Modifications to this file made after 4/13/2017 are: Copyright (c) 2017-present,
// Pinterest, Inc. Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/ASRelativeLayoutSpec.h>
/**
* How the child is centered within the spec.
*
* The default option will position the child at {0,0} relatively to the layout bound.
* Swift: use [] for the default behavior.
*/
typedef NS_OPTIONS(NSUInteger, ASCenterLayoutSpecCenteringOptions) {
/** The child is positioned in {0,0} relatively to the layout bounds */
ASCenterLayoutSpecCenteringNone = 0,
/** The child is centered along the X axis */
ASCenterLayoutSpecCenteringX = 1 << 0,
/** The child is centered along the Y axis */
ASCenterLayoutSpecCenteringY = 1 << 1,
/** Convenience option to center both along the X and Y axis */
ASCenterLayoutSpecCenteringXY = ASCenterLayoutSpecCenteringX | ASCenterLayoutSpecCenteringY
};
/**
* How much space the spec will take up.
*
* The default option will allow the spec to take up the maximum size possible.
* Swift: use [] for the default behavior.
*/
typedef NS_OPTIONS(NSUInteger, ASCenterLayoutSpecSizingOptions) {
/** The spec will take up the maximum size possible */
ASCenterLayoutSpecSizingOptionDefault = ASRelativeLayoutSpecSizingOptionDefault,
/** The spec will take up the minimum size possible along the X axis */
ASCenterLayoutSpecSizingOptionMinimumX = ASRelativeLayoutSpecSizingOptionMinimumWidth,
/** The spec will take up the minimum size possible along the Y axis */
ASCenterLayoutSpecSizingOptionMinimumY = ASRelativeLayoutSpecSizingOptionMinimumHeight,
/** Convenience option to take up the minimum size along both the X and Y axis */
ASCenterLayoutSpecSizingOptionMinimumXY = ASRelativeLayoutSpecSizingOptionMinimumSize
};
NS_ASSUME_NONNULL_BEGIN
/** Lays out a single layoutElement child and position it so that it is centered into the layout bounds.
* NOTE: ASRelativeLayoutSpec offers all of the capabilities of Center, and more.
* Check it out if you would like to be able to position the child at any corner or the middle of an edge.
*/
@interface ASCenterLayoutSpec : ASRelativeLayoutSpec
@property (nonatomic) ASCenterLayoutSpecCenteringOptions centeringOptions;
@property (nonatomic) ASCenterLayoutSpecSizingOptions sizingOptions;
/**
* Initializer.
*
* @param centeringOptions How the child is centered.
* @param sizingOptions How much space will be taken up.
* @param child The child to center.
*/
+ (instancetype)centerLayoutSpecWithCenteringOptions:(ASCenterLayoutSpecCenteringOptions)centeringOptions
sizingOptions:(ASCenterLayoutSpecSizingOptions)sizingOptions
child:(id<ASLayoutElement>)child NS_RETURNS_RETAINED AS_WARN_UNUSED_RESULT;
@end
NS_ASSUME_NONNULL_END
|
TimeFaceCoder/TFCoreFoundation
|
Example/Pods/Texture/Source/Layout/ASCenterLayoutSpec.h
|
C
|
mit
| 3,411
|
EditorPrePlanning = EditorPrePlanning or class(MissionScriptEditor)
function EditorPrePlanning:create_element()
self.super.create_element(self)
self._element.class = "ElementPrePlanning"
self._element.values.allowed_types = {}
self._element.values.disables_types = {}
self._element.values.location_group = tweak_data.preplanning.location_groups[1]
self._element.values.upgrade_lock = "none"
self._element.values.dlc_lock = "none"
end
function EditorPrePlanning:_data_updated(value_type, value)
self._element.values[value_type] = value
end
function EditorPrePlanning:_build_panel()
self:_create_panel()
self:ComboCtrl("upgrade_lock", tweak_data.preplanning.upgrade_locks, {help = "Select a upgrade lock from the combobox"})
self:ComboCtrl("dlc_lock", tweak_data.preplanning.dlc_locks, {help = "Select a DLC lock from the combobox"})
self:ComboCtrl("location_group", tweak_data.preplanning.location_groups, {help = "Select a location group from the combobox"})
local types = managers.preplanning:types()
self:Button("SelectAllowedTypes", function()
BeardLibEditor.SelectDialog:Show({
selected_list = self._element.values.allowed_types,
list = types,
callback = ClassClbk(self, "_data_updated", "allowed_types")
})
end)
self:Button("SelectDisablesTypes", function()
BeardLibEditor.SelectDialog:Show({
selected_list = self._element.values.disables_types,
list = types,
callback = ClassClbk(self, "_data_updated", "disables_types")
})
end)
end
|
simon-wh/PAYDAY-2-BeardLib-Editor
|
mods/BeardLib-Editor/Classes/Map/Elements/preplanningelement.lua
|
Lua
|
mit
| 1,538
|
<?php
namespace Kirby\Database;
use Exception;
use Kirby\Exception\InvalidArgumentException;
use Kirby\Toolkit\A;
use Kirby\Toolkit\Str;
use PDO;
use PDOStatement;
use Throwable;
/**
* A simple database class
*
* @package Kirby Database
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://opensource.org/licenses/MIT
*/
class Database
{
/**
* The number of affected rows for the last query
*
* @var int|null
*/
protected $affected;
/**
* Whitelist for column names
*
* @var array
*/
protected $columnWhitelist = [];
/**
* The established connection
*
* @var PDO|null
*/
protected $connection;
/**
* A global array of started connections
*
* @var array
*/
public static $connections = [];
/**
* Database name
*
* @var string
*/
protected $database;
/**
* @var string
*/
protected $dsn;
/**
* Set to true to throw exceptions on failed queries
*
* @var bool
*/
protected $fail = false;
/**
* The connection id
*
* @var string
*/
protected $id;
/**
* The last error
*
* @var Exception|null
*/
protected $lastError;
/**
* The last insert id
*
* @var int|null
*/
protected $lastId;
/**
* The last query
*
* @var string
*/
protected $lastQuery;
/**
* The last result set
*
* @var mixed
*/
protected $lastResult;
/**
* Optional prefix for table names
*
* @var string
*/
protected $prefix;
/**
* The PDO query statement
*
* @var PDOStatement|null
*/
protected $statement;
/**
* Whitelists for table names
*
* @var array|null
*/
protected $tableWhitelist;
/**
* An array with all queries which are being made
*
* @var array
*/
protected $trace = [];
/**
* The database type (mysql, sqlite)
*
* @var string
*/
protected $type;
/**
* @var array
*/
public static $types = [];
/**
* Creates a new Database instance
*
* @param array $params
* @return void
*/
public function __construct(array $params = [])
{
$this->connect($params);
}
/**
* Returns one of the started instance
*
* @param string $id
* @return self
*/
public static function instance(string $id = null)
{
return $id === null ? A::last(static::$connections) : static::$connections[$id] ?? null;
}
/**
* Returns all started instances
*
* @return array
*/
public static function instances(): array
{
return static::$connections;
}
/**
* Connects to a database
*
* @param array|null $params This can either be a config key or an array of parameters for the connection
* @return \Kirby\Database\Database
*/
public function connect(array $params = null)
{
$defaults = [
'database' => null,
'type' => 'mysql',
'prefix' => null,
'user' => null,
'password' => null,
'id' => uniqid()
];
$options = array_merge($defaults, $params);
// store the database information
$this->database = $options['database'];
$this->type = $options['type'];
$this->prefix = $options['prefix'];
$this->id = $options['id'];
if (isset(static::$types[$this->type]) === false) {
throw new InvalidArgumentException('Invalid database type: ' . $this->type);
}
// fetch the dsn and store it
$this->dsn = static::$types[$this->type]['dsn']($options);
// try to connect
$this->connection = new PDO($this->dsn, $options['user'], $options['password']);
$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
// store the connection
static::$connections[$this->id] = $this;
// return the connection
return $this->connection;
}
/**
* Returns the currently active connection
*
* @return \Kirby\Database\Database|null
*/
public function connection()
{
return $this->connection;
}
/**
* Sets the exception mode for the next query
*
* @param bool $fail
* @return \Kirby\Database\Database
*/
public function fail(bool $fail = true)
{
$this->fail = $fail;
return $this;
}
/**
* Returns the used database type
*
* @return string
*/
public function type(): string
{
return $this->type;
}
/**
* Returns the used table name prefix
*
* @return string|null
*/
public function prefix(): ?string
{
return $this->prefix;
}
/**
* Escapes a value to be used for a safe query
* NOTE: Prepared statements using bound parameters are more secure and solid
*
* @param string $value
* @return string
*/
public function escape(string $value): string
{
return substr($this->connection()->quote($value), 1, -1);
}
/**
* Adds a value to the db trace and also returns the entire trace if nothing is specified
*
* @param array $data
* @return array
*/
public function trace($data = null): array
{
// return the full trace
if ($data === null) {
return $this->trace;
}
// add a new entry to the trace
$this->trace[] = $data;
return $this->trace;
}
/**
* Returns the number of affected rows for the last query
*
* @return int|null
*/
public function affected(): ?int
{
return $this->affected;
}
/**
* Returns the last id if available
*
* @return int|null
*/
public function lastId(): ?int
{
return $this->lastId;
}
/**
* Returns the last query
*
* @return string|null
*/
public function lastQuery(): ?string
{
return $this->lastQuery;
}
/**
* Returns the last set of results
*
* @return mixed
*/
public function lastResult()
{
return $this->lastResult;
}
/**
* Returns the last db error
*
* @return Throwable
*/
public function lastError()
{
return $this->lastError;
}
/**
* Returns the name of the database
*
* @return string|null
*/
public function name(): ?string
{
return $this->database;
}
/**
* Private method to execute database queries.
* This is used by the query() and execute() methods
*
* @param string $query
* @param array $bindings
* @return bool
*/
protected function hit(string $query, array $bindings = []): bool
{
// try to prepare and execute the sql
try {
$this->statement = $this->connection->prepare($query);
$this->statement->execute($bindings);
$this->affected = $this->statement->rowCount();
$this->lastId = $this->connection->lastInsertId();
$this->lastError = null;
// store the final sql to add it to the trace later
$this->lastQuery = $this->statement->queryString;
} catch (Throwable $e) {
// store the error
$this->affected = 0;
$this->lastError = $e;
$this->lastId = null;
$this->lastQuery = $query;
// only throw the extension if failing is allowed
if ($this->fail === true) {
throw $e;
}
}
// add a new entry to the singleton trace array
$this->trace([
'query' => $this->lastQuery,
'bindings' => $bindings,
'error' => $this->lastError
]);
// reset some stuff
$this->fail = false;
// return true or false on success or failure
return $this->lastError === null;
}
/**
* Exectues a sql query, which is expected to return a set of results
*
* @param string $query
* @param array $bindings
* @param array $params
* @return mixed
*/
public function query(string $query, array $bindings = [], array $params = [])
{
$defaults = [
'flag' => null,
'method' => 'fetchAll',
'fetch' => 'Kirby\Toolkit\Obj',
'iterator' => 'Kirby\Toolkit\Collection',
];
$options = array_merge($defaults, $params);
if ($this->hit($query, $bindings) === false) {
return false;
}
// define the default flag for the fetch method
$flags = $options['fetch'] === 'array' ? PDO::FETCH_ASSOC : PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE;
// add optional flags
if (empty($options['flag']) === false) {
$flags |= $options['flag'];
}
// set the fetch mode
if ($options['fetch'] === 'array') {
$this->statement->setFetchMode($flags);
} else {
$this->statement->setFetchMode($flags, $options['fetch']);
}
// fetch that stuff
$results = $this->statement->{$options['method']}();
if ($options['iterator'] === 'array') {
return $this->lastResult = $results;
}
return $this->lastResult = new $options['iterator']($results);
}
/**
* Executes a sql query, which is expected to not return a set of results
*
* @param string $query
* @param array $bindings
* @return bool
*/
public function execute(string $query, array $bindings = []): bool
{
return $this->lastResult = $this->hit($query, $bindings);
}
/**
* Returns the correct Sql generator instance
* for the type of database
*
* @return \Kirby\Database\Sql
*/
public function sql()
{
$className = static::$types[$this->type]['sql'] ?? 'Sql';
return new $className($this);
}
/**
* Sets the current table, which should be queried. Returns a
* Query object, which can be used to build a full query
* for that table
*
* @param string $table
* @return \Kirby\Database\Query
*/
public function table(string $table)
{
return new Query($this, $this->prefix() . $table);
}
/**
* Checks if a table exists in the current database
*
* @param string $table
* @return bool
*/
public function validateTable(string $table): bool
{
if ($this->tableWhitelist === null) {
// Get the table whitelist from the database
$sql = $this->sql()->tables($this->database);
$results = $this->query($sql['query'], $sql['bindings']);
if ($results) {
$this->tableWhitelist = $results->pluck('name');
} else {
return false;
}
}
return in_array($table, $this->tableWhitelist) === true;
}
/**
* Checks if a column exists in a specified table
*
* @param string $table
* @param string $column
* @return bool
*/
public function validateColumn(string $table, string $column): bool
{
if (isset($this->columnWhitelist[$table]) === false) {
if ($this->validateTable($table) === false) {
$this->columnWhitelist[$table] = [];
return false;
}
// Get the column whitelist from the database
$sql = $this->sql()->columns($table);
$results = $this->query($sql['query'], $sql['bindings']);
if ($results) {
$this->columnWhitelist[$table] = $results->pluck('name');
} else {
return false;
}
}
return in_array($column, $this->columnWhitelist[$table]) === true;
}
/**
* Creates a new table
*
* @param string $table
* @param array $columns
* @return bool
*/
public function createTable($table, $columns = []): bool
{
$sql = $this->sql()->createTable($table, $columns);
$queries = Str::split($sql['query'], ';');
foreach ($queries as $query) {
$query = trim($query);
if ($this->execute($query, $sql['bindings']) === false) {
return false;
}
}
return true;
}
/**
* Drops a table
*
* @param string $table
* @return bool
*/
public function dropTable($table): bool
{
$sql = $this->sql()->dropTable($table);
return $this->execute($sql['query'], $sql['bindings']);
}
/**
* Magic way to start queries for tables by
* using a method named like the table.
* I.e. $db->users()->all()
*
* @param mixed $method
* @param mixed $arguments
*/
public function __call($method, $arguments = null)
{
return $this->table($method);
}
}
/**
* MySQL database connector
*/
Database::$types['mysql'] = [
'sql' => 'Kirby\Database\Sql\Mysql',
'dsn' => function (array $params) {
if (isset($params['host']) === false && isset($params['socket']) === false) {
throw new InvalidArgumentException('The mysql connection requires either a "host" or a "socket" parameter');
}
if (isset($params['database']) === false) {
throw new InvalidArgumentException('The mysql connection requires a "database" parameter');
}
$parts = [];
if (empty($params['host']) === false) {
$parts[] = 'host=' . $params['host'];
}
if (empty($params['port']) === false) {
$parts[] = 'port=' . $params['port'];
}
if (empty($params['socket']) === false) {
$parts[] = 'unix_socket=' . $params['socket'];
}
if (empty($params['database']) === false) {
$parts[] = 'dbname=' . $params['database'];
}
$parts[] = 'charset=' . ($params['charset'] ?? 'utf8');
return 'mysql:' . implode(';', $parts);
}
];
/**
* SQLite database connector
*/
Database::$types['sqlite'] = [
'sql' => 'Kirby\Database\Sql\Sqlite',
'dsn' => function (array $params) {
if (isset($params['database']) === false) {
throw new InvalidArgumentException('The sqlite connection requires a "database" parameter');
}
return 'sqlite:' . $params['database'];
}
];
|
mmewen/mewen.fr
|
kirby/src/Database/Database.php
|
PHP
|
mit
| 15,031
|
FROM ubuntu:14.04
MAINTAINER Johann Saunier <johann_27@hotmail.fr>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0xcbcb082a1bb943db
RUN echo "deb http://mariadb.mirror.iweb.com/repo/10.0/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/mariadb.list
RUN apt-get update
RUN apt-get install -y mariadb-server
RUN rm -rf /var/lib/apt/lists/*
RUN sed -i 's/^\(bind-address\s.*\)/# \1/' /etc/mysql/my.cnf
RUN echo "mysqld_safe &" > /tmp/config
RUN echo "mysqladmin --silent --wait=30 ping || exit 1" >> /tmp/config
RUN echo "mysql -e 'GRANT ALL PRIVILEGES ON *.* TO \"root\"@\"%\" WITH GRANT OPTION;'" >> /tmp/config
RUN bash /tmp/config
RUN rm -f /tmp/config
VOLUME ["/etc/mysql", "/var/lib/mysql"]
WORKDIR /data
CMD ["mysqld_safe"]
EXPOSE 3306
|
ProPheT777/real_time_bidirectional_notification-symfony2-redis-websocket-pubsub
|
infra/notification/mariadb/Dockerfile
|
Dockerfile
|
mit
| 809
|
# encoding: UTF-8
require File.dirname(__FILE__) + '/../spec_helper.rb'
# This spec does something rspec isn't really designed to do: it tests data and
# not code. So... it involves a lot of weird stuff like testing to see if a test
# will fail before running the test. If we actually run real rspec tests on all
# translation strings, this will take forever. If there's a better way to get
# these tests to run in Travis, please holler
# Adapted from tools/i18qa.rb
def traverse( obj, key = nil, &blk )
case obj
when Hash
# Kind of a lame hack to detect situations when translatewiki has translated
# an array as a hash with numbered keys. They generally don't translate
# position 0, so if the first key is a number greater than zero, we assume
# it's one of those arrays here.
if obj.keys.first.to_s.to_i > 0
blk.call( obj, key )
else
obj.each {|k,v| traverse( v, [key, k].compact.join( "." ), &blk ) }
end
else
blk.call( obj, key )
end
end
describe "translations" do
data = {}
Dir.glob( "config/locales/*.yml" ).each do |path|
next if path =~ /qqq.yml/
locale = File.basename( path, ".yml" )
yaml = YAML.load_file( path )
unless locale =~ /(phonetic|doorkeeper)/
# Sometimes Crowdin seems to set the root of pt-BR to pt, which makes
# all the pt-BR translations unavailable to everyone with that
# preference
it "#{locale} should have a root key that matches the locale" do
expect( yaml.keys.first ).to eq locale
end
end
traverse( YAML.load_file( path ) ) do |translation, key|
data[key] = translation
end
end
data.each do |key, translation|
next if key =~ /^en\./
locale = key[/^(.+?)\./, 1]
en_key = key.sub( "#{locale}.", "en." )
describe key do
if key =~ /^#{locale}\.i18n\.inflections\.gender\./
it "should be a blank gender inflection" do
expect( key ).not_to eq "#{locale}.i18n.inflections.gender."
end
end
next unless data[en_key]
if data[en_key].is_a?( Array )
# For some reason, translatewiki tends to translate yaml arrays as yaml
# hashes with numbered keys. Our arrays often begin with a blank for
# position 0, and translatewiki tends not to include that in their hash, so
# ignore that in the count
it "should have all members of an array" do
expect( data[en_key].size ).to eq translation.size
end
next
elsif !data[en_key].is_a?( String )
next
end
variables = translation.scan( /%{.+?}/ )
variables.each do |variable|
# Bit of a kludge, but a lot of our singular form translations look like
# "1 observation" in the source string when they should probably look
# like "%{count} observation". The localization libs handle the %{count}
# variable regardless, so this is not really a problem worth raising
# alarms about
next if en_key =~ /\.one/ && variable == "%{count}"
unless data[en_key] =~ /#{variable.encode( "utf-8" )}/
it "#{variable} should be present in the source string" do
expect( data[en_key] ).to match /#{variable.encode( "utf-8" )}/
end
end
end
# https://stackoverflow.com/a/3314572
if translation =~ /<\/?\s+[^\s]+>/
it "should not have HTML with leading spaces" do
expect( translation ).not_to match /<\/?\s+[^\s]+>/
end
end
complete_inflections_pattern = /@\w+\{[^@\{]+?\}/
started_inflections_pattern = /@\w+\{/
if translation.scan( complete_inflections_pattern ).size != translation.scan( started_inflections_pattern ).size
it "should not have unclosed inflections" do
expect( translation.scan( complete_inflections_pattern ).size ).to eq translation.scan( started_inflections_pattern ).size
end
end
if key.split( "." ).last === "delimiter"
sep_key = key.sub( "delimiter", "separator" )
if sep = data[sep_key]
it "#{key} should not be the same as #{sep_key}" do
expect( sep ).not_to eq translation
end
end
end
end
end
end
|
inaturalist/inaturalist
|
spec/lib/translations_spec.rb
|
Ruby
|
mit
| 4,235
|
'use strict';
/**
* Import plugins
*/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
runSequence = require('run-sequence'),
argv = require('yargs').argv,
del = require('del');
/**
* Build vendors dependencies
*/
gulp.task('vendors', function() {
/**
* CSS VENDORS
*/
gulp.src([
'bower_components/font-awesome/css/font-awesome.min.css',
'bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css',
'bower_components/bootstrap-chosen/bootstrap-chosen.less'
])
.pipe($.concat('vendors.css'))
.pipe($.minifyCss())
.pipe(gulp.dest('web/assets/css'));
/**
* JS VENDORS
* (with jQuery and Bootstrap dependencies first)
*/
gulp.src([
'bower_components/jquery/dist/jquery.js',
'bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js',
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js'
])
.pipe($.concat('vendors.min.js'))
.pipe($.uglify())
.pipe(gulp.dest('web/assets/js'));
/**
* FONTS SOURCES
* Important to add the bootstrap fonts to avoid issues with the fonts include path
*/
gulp.src([
'bower_components/bootstrap-sass-official/assets/fonts/bootstrap/*',
'bower_components/font-awesome/fonts/*'
])
.pipe(gulp.dest('web/assets/fonts'));
/**
* POLYFILLS SOURCES
* Various polyfills required for old IE
*/
gulp.src([
'bower_components/html5shiv/dist/html5shiv.js',
'bower_components/respond/dest/respond.src.js'
])
.pipe($.concat('polyfills.min.js'))
.pipe($.uglify())
.pipe(gulp.dest('web/assets/js'));
/**
* POLYFILLS SOURCES
* Various polyfills required for old IE
*/
gulp.src([
'bower_components/bootstrap-chosen/chosen-sprite.png',
'bower_components/bootstrap-chosen/chosen-sprite@2x.png'
])
.pipe(gulp.dest('web/assets/css'));
});
/**
* Build styles from SCSS files
* With error reporting on compiling (so that there's no crash)
*/
gulp.task('styles', function() {
if (!argv.production) {
console.log('[styles] Processing styles for dev env. No minifying here, for sourcemaps!')
} else {
console.log('[styles] Processing styles for production env.');
}
return $.rubySass('sass/main.scss', {sourcemap: !argv.production})
.on('error', $.notify.onError(function (error) {
console.log('Error', error.message);
if (!argv.production) {
return 'Message to the notifier: ' + error.message;
}
}))
.pipe($.autoprefixer({
browsers: ['last 2 versions', 'safari 5', 'ie 8', 'ie 9', 'ff 27', 'opera 12.1']
}))
.pipe($.if(!argv.production, $.sourcemaps.write()))
.pipe($.if(argv.production, $.minifyCss()))
.pipe(gulp.dest('web/assets/css'));
});
/**
* Build JS
* With error reporting on compiling (so that there's no crash)
* And jshint check to highlight errors as we go.
*/
gulp.task('scripts', function() {
return gulp.src('js/**/*.js')
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'))
.pipe($.concat('main.js'))
.pipe(gulp.dest('web/assets/js'))
.pipe($.rename({ suffix: '.min' }))
.pipe($.uglify())
.pipe(gulp.dest('web/assets/js'));
});
/**
* Clean output directories
*/
gulp.task('clean', del.bind(null, ['web/assets']));
/**
* Serve
*/
gulp.task('serve', ['styles', 'scripts'], function () {
gulp.watch(['sass/**/*.scss'], function() {
runSequence('styles');
});
gulp.watch(['js/**/*.js'], function() {
runSequence('scripts');
});
});
/**
* Task to build assets on production server
*/
gulp.task('build', ['clean'], function() {
argv.production = true;
runSequence('vendors', 'styles', 'scripts');
});
/**
* Default task
*/
gulp.task('default', ['clean'], function(cb) {
runSequence('vendors', 'styles', 'scripts', cb);
});
|
CedricCarrard/eventApp
|
gulpfile.js
|
JavaScript
|
mit
| 5,135
|
<?php
namespace Sgpg\DocenteBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('docente');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}
|
crashorbo/SgpgSis
|
src/Sgpg/DocenteBundle/DependencyInjection/Configuration.php
|
PHP
|
mit
| 874
|
/*
* @(#)IllegalFormatWidthException.java 1.5 05/11/17
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package java.util;
/**
* Unchecked exception thrown when the format width is a negative value other
* than <tt>-1</tt> or is otherwise unsupported.
*
* @version 1.5, 11/17/05
* @since 1.5
*/
public class IllegalFormatWidthException extends IllegalFormatException {
private static final long serialVersionUID = 16660902L;
private int w;
/**
* Constructs an instance of this class with the specified width.
*
* @param w
* The width
*/
public IllegalFormatWidthException(int w) {
this.w = w;
}
/**
* Returns the width
*
* @return The width
*/
public int getWidth() {
return w;
}
public String getMessage() {
return Integer.toString(w);
}
}
|
jgaltidor/VarJ
|
analyzed_libs/jdk1.6.0_06_src/java/util/IllegalFormatWidthException.java
|
Java
|
mit
| 940
|
<?php
return array (
'id' => 'samsung_gt_i9100_ver1_suban43',
'fallback' => 'samsung_gt_i9100_ver1',
'capabilities' =>
array (
'device_os_version' => '4.3',
),
);
|
cuckata23/wurfl-data
|
data/samsung_gt_i9100_ver1_suban43.php
|
PHP
|
mit
| 178
|
export { default } from 'ember-fhir/serializers/appointment-response';
|
davekago/ember-fhir
|
app/serializers/appointment-response.js
|
JavaScript
|
mit
| 70
|
import random from '../../randomGenerator'
import sendCommand from './commandHelper'
const getTextDocumentData = (textDocumentData) => {
if ('k' in textDocumentData) {
return textDocumentData.k
} else {
return [
{
s: textDocumentData
}
]
}
}
const processText = (textData, layerId) => {
const textDocumentData = getTextDocumentData(textData.d)
const sourceTextIdId = random(10);
sendCommand('assignIdToProp', ['Source Text', sourceTextIdId, layerId]);
if (textDocumentData.length === 1) {
const textDocumentValue = textDocumentData[0].s
sendCommand('setTextDocumentValue',
[
layerId,
encodeURIComponent(textDocumentValue.t),
textDocumentValue.s,
encodeURIComponent(textDocumentValue.f),
textDocumentValue.fc,
textDocumentValue.tr,
textDocumentValue.j,
textDocumentValue.ls || 0,
]
);
} else {
textDocumentData.forEach(textDocument => {
const textDocumentValue = textDocument.s
sendCommand('setTextDocumentValueAtTime',
[
layerId,
textDocument.t,
encodeURIComponent(textDocumentValue.t),
textDocumentValue.s,
encodeURIComponent(textDocumentValue.f),
textDocumentValue.fc,
textDocumentValue.tr,
textDocumentValue.j,
textDocumentValue.ls || 0,
]
);
})
}
}
export default processText
|
bodymovin/bodymovin-extension
|
src/helpers/importers/lottie/text.js
|
JavaScript
|
mit
| 1,318
|
# irenicus
|
lw7360/irenicus
|
README.md
|
Markdown
|
mit
| 11
|
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
var onReady = function() {
$('table.table a#ping').on('click', function(event) {
var recruiterId = $(this).closest('tr.recruiter-id').attr('id').split('-')[1];
console.debug('clicked', recruiterId, $(this), event);
});
// Source: http://stackoverflow.com/q/30019692/1093087
// initialize bloodhound engine
var searchSelector = 'div.search.recruiters input.typeahead';
var bloodhound = new Bloodhound({
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.value);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
// sends ajax request to remote url where %QUERY is user input
remote: '/recruiters/typeahead/%QUERY',
limit: 50
});
bloodhound.initialize();
// initialize typeahead widget and hook it up to bloodhound engine
// #typeahead is just a text input
$(searchSelector).typeahead(null, {
displayKey: 'email',
source: bloodhound.ttAdapter()
});
// this is the event that is fired when a user clicks on a suggestion
$(searchSelector).bind('typeahead:selected', function(event, datum, name) {
//console.debug('Suggestion clicked:', event, datum, name);
window.location.href = '/recruiters/' + datum.id;
});
// Modal for blacklist button
$('div#blacklist-modal').on('show.bs.modal', function(e) {
var color = $(e.relatedTarget).hasClass('graylist') ? 'gray' : 'black';
$('div#blacklist-modal input#color').val(color);
})
$('div#blacklist-modal form').on('submit', function(e) {
$('div#blacklist-modal').modal('hide');
})
};
$(document).ready(onReady);
$(document).on('page:load', onReady);
|
klenwell/recruiters-on-rails
|
app/assets/javascripts/recruiters.js
|
JavaScript
|
mit
| 1,777
|
=begin
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
The version of the OpenAPI document: 1.1.2-pre.0
Contact: blah@cliffano.com
Generated by: https://github.com/openapitools/openapi-generator.git
=end
class QueueLeftItem < ApplicationRecord
serialize :actions, Array
end
|
cliffano/swaggy-jenkins
|
clients/ruby-on-rails/generated/app/models/queue_left_item.rb
|
Ruby
|
mit
| 317
|
import os
import sys
root_path = os.path.abspath("../../../")
if root_path not in sys.path:
sys.path.append(root_path)
import numpy as np
import tensorflow as tf
from _Dist.NeuralNetworks.Base import Generator4d
from _Dist.NeuralNetworks.h_RNN.RNN import Basic3d
from _Dist.NeuralNetworks.NNUtil import Activations
class Basic4d(Basic3d):
def _calculate(self, x, y=None, weights=None, tensor=None, n_elem=1e7, is_training=False):
return super(Basic4d, self)._calculate(x, y, weights, tensor, n_elem / 10, is_training)
class CNN(Basic4d):
def __init__(self, *args, **kwargs):
self.height, self.width = kwargs.pop("height", None), kwargs.pop("width", None)
super(CNN, self).__init__(*args, **kwargs)
self._name_appendix = "CNN"
self._generator_base = Generator4d
self.conv_activations = None
self.n_filters = self.filter_sizes = self.poolings = None
def init_model_param_settings(self):
super(CNN, self).init_model_param_settings()
self.conv_activations = self.model_param_settings.get("conv_activations", "relu")
def init_model_structure_settings(self):
super(CNN, self).init_model_structure_settings()
self.n_filters = self.model_structure_settings.get("n_filters", [32, 32])
self.filter_sizes = self.model_structure_settings.get("filter_sizes", [(3, 3), (3, 3)])
self.poolings = self.model_structure_settings.get("poolings", [None, "max_pool"])
if not len(self.filter_sizes) == len(self.poolings) == len(self.n_filters):
raise ValueError("Length of filter_sizes, n_filters & pooling should be the same")
if isinstance(self.conv_activations, str):
self.conv_activations = [self.conv_activations] * len(self.filter_sizes)
def init_from_data(self, x, y, x_test, y_test, sample_weights, names):
if self.height is None or self.width is None:
assert len(x.shape) == 4, "height and width are not provided, hence len(x.shape) should be 4"
self.height, self.width = x.shape[1:3]
if len(x.shape) == 2:
x = x.reshape(len(x), self.height, self.width, -1)
else:
assert self.height == x.shape[1], "height is set to be {}, but {} found".format(self.height, x.shape[1])
assert self.width == x.shape[2], "width is set to be {}, but {} found".format(self.height, x.shape[2])
if x_test is not None and len(x_test.shape) == 2:
x_test = x_test.reshape(len(x_test), self.height, self.width, -1)
super(CNN, self).init_from_data(x, y, x_test, y_test, sample_weights, names)
def _define_input_and_placeholder(self):
self._is_training = tf.placeholder(tf.bool, name="is_training")
self._tfx = tf.placeholder(tf.float32, [None, self.height, self.width, self.n_dim], name="X")
self._tfy = tf.placeholder(tf.float32, [None, self.n_class], name="Y")
def _build_model(self, net=None):
self._model_built = True
if net is None:
net = self._tfx
for i, (filter_size, n_filter, pooling) in enumerate(zip(
self.filter_sizes, self.n_filters, self.poolings
)):
net = tf.layers.conv2d(net, n_filter, filter_size, padding="same")
net = tf.layers.batch_normalization(net, training=self._is_training)
activation = self.conv_activations[i]
if activation is not None:
net = getattr(Activations, activation)(net, activation)
net = tf.layers.dropout(net, training=self._is_training)
if pooling is not None:
net = tf.layers.max_pooling2d(net, 2, 2, name="pool")
fc_shape = np.prod([net.shape[i].value for i in range(1, 4)])
net = tf.reshape(net, [-1, fc_shape])
super(CNN, self)._build_model(net)
|
carefree0910/MachineLearning
|
_Dist/NeuralNetworks/i_CNN/CNN.py
|
Python
|
mit
| 3,860
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>LIIS - Laboratory Information Indexing System: application/views/install/sidebar.php File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="liislogo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">LIIS - Laboratory Information Indexing System
 <span id="projectnumber">0.10.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d75c23162a2652451dce46d2e7e8aead.html">application</a></li><li class="navelem"><a class="el" href="dir_47696c67d24d00a376c580718bcb3d63.html">views</a></li><li class="navelem"><a class="el" href="dir_8a4ceba5b00294cf26dd69e05bfa807d.html">install</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">sidebar.php File Reference</div> </div>
</div><!--header-->
<div class="contents">
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 17 2014 19:50:05 for LIIS - Laboratory Information Indexing System by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
|
forstermatth/LIIS
|
refman/install_2sidebar_8php.html
|
HTML
|
mit
| 5,102
|
package com.callfire.api11.client.api.calls.model;
import com.callfire.api11.client.api.broadcasts.model.BroadcastConfig;
/**
* Common configuration for voice/ivr broadcasts
*/
public abstract class CallBroadcastConfig extends BroadcastConfig {
}
|
CallFire/callfire-api-1.1-client-java
|
callfire-api-1.1-client-core/src/main/java/com/callfire/api11/client/api/calls/model/CallBroadcastConfig.java
|
Java
|
mit
| 251
|
/**************************************************************************************************************************
Copyright(C) 2014-2018 www.xionggf.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute,sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**************************************************************************************************************************/
#include "kgl_lib_pch.h"
#include "kgl_imgui_opengl_bridge.h"
namespace kgl
{
std::string ImGuiOpenGLBridge::s_glsl_versin_str_;;
GLuint ImGuiOpenGLBridge::g_FontTexture = 0;
GLuint ImGuiOpenGLBridge::g_ShaderHandle = 0;
GLuint ImGuiOpenGLBridge::g_VertHandle = 0;
GLuint ImGuiOpenGLBridge::g_FragHandle = 0;
int ImGuiOpenGLBridge::g_AttribLocationTex = 0;
int ImGuiOpenGLBridge::g_AttribLocationProjMtx = 0;
int ImGuiOpenGLBridge::g_AttribLocationPosition = 0;
int ImGuiOpenGLBridge::g_AttribLocationUV = 0;
int ImGuiOpenGLBridge::g_AttribLocationColor = 0;
unsigned int ImGuiOpenGLBridge::g_VboHandle = 0;
unsigned int ImGuiOpenGLBridge::g_ElementsHandle = 0;
bool ImGuiOpenGLBridge::Init(const char* glsl_version)
{
#ifdef USE_GL_ES3
if (glsl_version == nullptr)
glsl_version = "#version 300 es";
#else
if (glsl_version == nullptr)
glsl_version = "#version 130";
#endif
// 记录下ImGui所使用的glsl版本字符串
s_glsl_versin_str_.clear();
s_glsl_versin_str_.append(glsl_version).append("\n");
return true;
}
void ImGuiOpenGLBridge::Shutdown()
{
if (g_VboHandle)
glDeleteBuffers(1, &g_VboHandle);
if (g_ElementsHandle)
glDeleteBuffers(1, &g_ElementsHandle);
g_VboHandle = g_ElementsHandle = 0;
if (g_ShaderHandle && g_VertHandle)
glDetachShader(g_ShaderHandle, g_VertHandle);
if (g_VertHandle)
glDeleteShader(g_VertHandle);
g_VertHandle = 0;
if (g_ShaderHandle && g_FragHandle)
glDetachShader(g_ShaderHandle, g_FragHandle);
if (g_FragHandle)
glDeleteShader(g_FragHandle);
g_FragHandle = 0;
if (g_ShaderHandle)
glDeleteProgram(g_ShaderHandle);
g_ShaderHandle = 0;
DestroyFontsTexture();
}
void ImGuiOpenGLBridge::ImGui_ImplOpenGL3_NewFrame()
{
// 如果字体纹理还没创建的话,就调用执行创建OpenGL设备对象
if (!g_FontTexture)
CreateDeviceObjects();
}
// OpenGL3 Render function.
// (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(),
// but you can now call this directly from your main loop)
// Note that this implementation is little overcomplicated because we are
// saving/setting up/restoring every OpenGL state explicitly, in order to be able
// to run within any OpenGL engine that doesn't do so.
void ImGuiOpenGLBridge::RenderDrawData(ImDrawData* draw_data)
{
// Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates)
ImGuiIO& io = ImGui::GetIO();
int fb_width = (int)(draw_data->DisplaySize.x * io.DisplayFramebufferScale.x);
int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y);
if (fb_width <= 0 || fb_height <= 0)
return;
draw_data->ScaleClipRects(io.DisplayFramebufferScale);
// Backup GL state
GLenum last_active_texture; glGetIntegerv(GL_ACTIVE_TEXTURE, (GLint*)&last_active_texture);
glActiveTexture(GL_TEXTURE0);
GLint last_program; glGetIntegerv(GL_CURRENT_PROGRAM, &last_program);
GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
#ifdef GL_SAMPLER_BINDING
GLint last_sampler; glGetIntegerv(GL_SAMPLER_BINDING, &last_sampler);
#endif
GLint last_array_buffer; glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer);
GLint last_vertex_array; glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
#ifdef GL_POLYGON_MODE
GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode);
#endif
GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport);
GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box);
GLenum last_blend_src_rgb; glGetIntegerv(GL_BLEND_SRC_RGB, (GLint*)&last_blend_src_rgb);
GLenum last_blend_dst_rgb; glGetIntegerv(GL_BLEND_DST_RGB, (GLint*)&last_blend_dst_rgb);
GLenum last_blend_src_alpha; glGetIntegerv(GL_BLEND_SRC_ALPHA, (GLint*)&last_blend_src_alpha);
GLenum last_blend_dst_alpha; glGetIntegerv(GL_BLEND_DST_ALPHA, (GLint*)&last_blend_dst_alpha);
GLenum last_blend_equation_rgb; glGetIntegerv(GL_BLEND_EQUATION_RGB, (GLint*)&last_blend_equation_rgb);
GLenum last_blend_equation_alpha; glGetIntegerv(GL_BLEND_EQUATION_ALPHA, (GLint*)&last_blend_equation_alpha);
GLboolean last_enable_blend = glIsEnabled(GL_BLEND);
GLboolean last_enable_cull_face = glIsEnabled(GL_CULL_FACE);
GLboolean last_enable_depth_test = glIsEnabled(GL_DEPTH_TEST);
GLboolean last_enable_scissor_test = glIsEnabled(GL_SCISSOR_TEST);
// Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
glEnable(GL_SCISSOR_TEST);
#ifdef GL_POLYGON_MODE
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
#endif
// Setup viewport, orthographic projection matrix
// Our visible imgui space lies from draw_data->DisplayPps (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayMin is typically (0,0) for single viewport apps.
glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height);
float L = draw_data->DisplayPos.x;
float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x;
float T = draw_data->DisplayPos.y;
float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y;
const float ortho_projection[4][4] =
{
{ 2.0f / (R - L), 0.0f, 0.0f, 0.0f },
{ 0.0f, 2.0f / (T - B), 0.0f, 0.0f },
{ 0.0f, 0.0f, -1.0f, 0.0f },
{ (R + L) / (L - R), (T + B) / (B - T), 0.0f, 1.0f },
};
glUseProgram(g_ShaderHandle);
glUniform1i(g_AttribLocationTex, 0);
glUniformMatrix4fv(g_AttribLocationProjMtx, 1, GL_FALSE, &ortho_projection[0][0]);
#ifdef GL_SAMPLER_BINDING
glBindSampler(0, 0); // We use combined texture/sampler state. Applications using GL 3.3 may set that otherwise.
#endif
// Recreate the VAO every time
// (This is to easily allow multiple GL contexts. VAO are not shared among GL contexts, and we don't track creation/deletion of windows so we don't have an obvious key to use to cache them.)
GLuint vao_handle = 0;
glGenVertexArrays(1, &vao_handle);
glBindVertexArray(vao_handle);
glBindBuffer(GL_ARRAY_BUFFER, g_VboHandle);
glEnableVertexAttribArray(g_AttribLocationPosition);
glEnableVertexAttribArray(g_AttribLocationUV);
glEnableVertexAttribArray(g_AttribLocationColor);
glVertexAttribPointer(g_AttribLocationPosition, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, pos));
glVertexAttribPointer(g_AttribLocationUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, uv));
glVertexAttribPointer(g_AttribLocationColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, col));
// Draw
ImVec2 pos = draw_data->DisplayPos;
for (int n = 0; n < draw_data->CmdListsCount; n++)
{
const ImDrawList* cmd_list = draw_data->CmdLists[n];
const ImDrawIdx* idx_buffer_offset = 0;
glBindBuffer(GL_ARRAY_BUFFER, g_VboHandle);
glBufferData(GL_ARRAY_BUFFER, (GLsizeiptr)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert), (const GLvoid*)cmd_list->VtxBuffer.Data, GL_STREAM_DRAW);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, g_ElementsHandle);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx), (const GLvoid*)cmd_list->IdxBuffer.Data, GL_STREAM_DRAW);
for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++)
{
const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i];
if (pcmd->UserCallback)
{
// User callback (registered via ImDrawList::AddCallback)
pcmd->UserCallback(cmd_list, pcmd);
}
else
{
ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - pos.x, pcmd->ClipRect.w - pos.y);
if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0f)
{
// Apply scissor/clipping rectangle
glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int)(clip_rect.w - clip_rect.y));
// Bind texture, Draw
glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId);
glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset);
}
}
idx_buffer_offset += pcmd->ElemCount;
}
}
glDeleteVertexArrays(1, &vao_handle);
// Restore modified GL state
glUseProgram(last_program);
glBindTexture(GL_TEXTURE_2D, last_texture);
#ifdef GL_SAMPLER_BINDING
glBindSampler(0, last_sampler);
#endif
glActiveTexture(last_active_texture);
glBindVertexArray(last_vertex_array);
glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer);
glBlendEquationSeparate(last_blend_equation_rgb, last_blend_equation_alpha);
glBlendFuncSeparate(last_blend_src_rgb, last_blend_dst_rgb, last_blend_src_alpha, last_blend_dst_alpha);
if (last_enable_blend) glEnable(GL_BLEND); else glDisable(GL_BLEND);
if (last_enable_cull_face) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE);
if (last_enable_depth_test) glEnable(GL_DEPTH_TEST); else glDisable(GL_DEPTH_TEST);
if (last_enable_scissor_test) glEnable(GL_SCISSOR_TEST); else glDisable(GL_SCISSOR_TEST);
#ifdef GL_POLYGON_MODE
glPolygonMode(GL_FRONT_AND_BACK, (GLenum)last_polygon_mode[0]);
#endif
glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]);
glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]);
}
bool ImGuiOpenGLBridge::CreateFontsTexture()
{
ImGuiIO& io = ImGui::GetIO();
unsigned char* pixels = nullptr;
int width = 0, height = 0;
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // 开辟一片内存缓冲区用来存放纹理信息
// Load as RGBA 32-bits (75% of the memory is wasted, but default font is so small)
// because it is more likely to be compatible with user's existing shaders.
// If your ImTextureId represent a higher-level concept than just a GL texture id,
// consider calling GetTexDataAsAlpha8() instead to save on GPU memory.
// Upload texture to graphics system
GLint last_texture;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGenTextures(1, &g_FontTexture);
glBindTexture(GL_TEXTURE_2D, g_FontTexture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
// Store our identifier
io.Fonts->TexID = reinterpret_cast<ImTextureID>(static_cast<intptr_t>(g_FontTexture));
// Restore state
glBindTexture(GL_TEXTURE_2D, last_texture);
return true;
}
void ImGuiOpenGLBridge::DestroyFontsTexture()
{
if (g_FontTexture)
{
ImGuiIO& io = ImGui::GetIO();
glDeleteTextures(1, &g_FontTexture);
io.Fonts->TexID = 0;
g_FontTexture = 0;
}
}
// If you get an error please report on github. You may try different GL context version or GLSL version.
static bool CheckShader(GLuint handle, const char* desc)
{
GLint status = 0, log_length = 0;
glGetShaderiv(handle, GL_COMPILE_STATUS, &status);
glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length);
if (status == GL_FALSE)
fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s!\n", desc);
if (log_length > 0)
{
ImVector<char> buf;
buf.resize((int)(log_length + 1));
glGetShaderInfoLog(handle, log_length, NULL, (GLchar*)buf.begin());
fprintf(stderr, "%s\n", buf.begin());
}
return status == GL_TRUE;
}
// If you get an error please report on github. You may try different GL context version or GLSL version.
static bool CheckProgram(GLuint handle, const char* desc)
{
GLint status = 0, log_length = 0;
glGetProgramiv(handle, GL_LINK_STATUS, &status);
glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length);
if (status == GL_FALSE)
fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link %s!\n", desc);
if (log_length > 0)
{
ImVector<char> buf;
buf.resize((int)(log_length + 1));
glGetProgramInfoLog(handle, log_length, NULL, (GLchar*)buf.begin());
fprintf(stderr, "%s\n", buf.begin());
}
return status == GL_TRUE;
}
bool ImGuiOpenGLBridge::CreateDeviceObjects()
{
// 对当前的GL state,绑定的纹理,顶点缓冲区等等,先做一个备份
GLint last_texture, last_array_buffer, last_vertex_array;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer);
glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
int glsl_version = 130;
std::stringstream ss;
ss << "#version " << glsl_version << "\n";
s_glsl_versin_str_ = ss.str();
const GLchar* vertex_shader_glsl_120 =
"uniform mat4 ProjMtx;\n"
"attribute vec2 Position;\n"
"attribute vec2 UV;\n"
"attribute vec4 Color;\n"
"varying vec2 Frag_UV;\n"
"varying vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" Frag_UV = UV;\n"
" Frag_Color = Color;\n"
" gl_Position = ProjMtx * vec4(Position.xy,0,1);\n"
"}\n";
const GLchar* vertex_shader_glsl_130 =
"uniform mat4 ProjMtx;\n"
"in vec2 Position;\n"
"in vec2 UV;\n"
"in vec4 Color;\n"
"out vec2 Frag_UV;\n"
"out vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" Frag_UV = UV;\n"
" Frag_Color = Color;\n"
" gl_Position = ProjMtx * vec4(Position.xy,0,1);\n"
"}\n";
const GLchar* vertex_shader_glsl_300_es =
"precision mediump float;\n"
"layout (location = 0) in vec2 Position;\n"
"layout (location = 1) in vec2 UV;\n"
"layout (location = 2) in vec4 Color;\n"
"uniform mat4 ProjMtx;\n"
"out vec2 Frag_UV;\n"
"out vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" Frag_UV = UV;\n"
" Frag_Color = Color;\n"
" gl_Position = ProjMtx * vec4(Position.xy,0,1);\n"
"}\n";
const GLchar* vertex_shader_glsl_410_core =
"layout (location = 0) in vec2 Position;\n"
"layout (location = 1) in vec2 UV;\n"
"layout (location = 2) in vec4 Color;\n"
"uniform mat4 ProjMtx;\n"
"out vec2 Frag_UV;\n"
"out vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" Frag_UV = UV;\n"
" Frag_Color = Color;\n"
" gl_Position = ProjMtx * vec4(Position.xy,0,1);\n"
"}\n";
const GLchar* fragment_shader_glsl_120 =
"#ifdef GL_ES\n"
" precision mediump float;\n"
"#endif\n"
"uniform sampler2D Texture;\n"
"varying vec2 Frag_UV;\n"
"varying vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" gl_FragColor = Frag_Color * texture2D(Texture, Frag_UV.st);\n"
"}\n";
const GLchar* fragment_shader_glsl_130 =
"uniform sampler2D Texture;\n"
"in vec2 Frag_UV;\n"
"in vec4 Frag_Color;\n"
"out vec4 Out_Color;\n"
"void main()\n"
"{\n"
" Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n"
"}\n";
const GLchar* fragment_shader_glsl_300_es =
"precision mediump float;\n"
"uniform sampler2D Texture;\n"
"in vec2 Frag_UV;\n"
"in vec4 Frag_Color;\n"
"layout (location = 0) out vec4 Out_Color;\n"
"void main()\n"
"{\n"
" Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n"
"}\n";
const GLchar* fragment_shader_glsl_410_core =
"in vec2 Frag_UV;\n"
"in vec4 Frag_Color;\n"
"uniform sampler2D Texture;\n"
"layout (location = 0) out vec4 Out_Color;\n"
"void main()\n"
"{\n"
" Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n"
"}\n";
// 根据所使用的glsl版本,决定使用哪个版本着色器字符串
const GLchar* vertex_shader = nullptr;
const GLchar* fragment_shader = nullptr;
if (glsl_version < 130)
{
vertex_shader = vertex_shader_glsl_120;
fragment_shader = fragment_shader_glsl_120;
}
else if (glsl_version == 410)
{
vertex_shader = vertex_shader_glsl_410_core;
fragment_shader = fragment_shader_glsl_410_core;
}
else if (glsl_version == 300)
{
vertex_shader = vertex_shader_glsl_300_es;
fragment_shader = fragment_shader_glsl_300_es;
}
else
{
vertex_shader = vertex_shader_glsl_130;
fragment_shader = fragment_shader_glsl_130;
}
// 创建对应的着色器
const GLchar* vertex_shader_with_version[2] = { s_glsl_versin_str_.c_str(), vertex_shader };
g_VertHandle = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(g_VertHandle, 2, vertex_shader_with_version, NULL);
glCompileShader(g_VertHandle);
CheckShader(g_VertHandle, "vertex shader");
const GLchar* fragment_shader_with_version[2] = { s_glsl_versin_str_.c_str(), fragment_shader };
g_FragHandle = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(g_FragHandle, 2, fragment_shader_with_version, NULL);
glCompileShader(g_FragHandle);
CheckShader(g_FragHandle, "fragment shader");
g_ShaderHandle = glCreateProgram();
glAttachShader(g_ShaderHandle, g_VertHandle);
glAttachShader(g_ShaderHandle, g_FragHandle);
glLinkProgram(g_ShaderHandle);
CheckProgram(g_ShaderHandle, "shader program");
g_AttribLocationTex = glGetUniformLocation(g_ShaderHandle, "Texture");
g_AttribLocationProjMtx = glGetUniformLocation(g_ShaderHandle, "ProjMtx");
g_AttribLocationPosition = glGetAttribLocation(g_ShaderHandle, "Position");
g_AttribLocationUV = glGetAttribLocation(g_ShaderHandle, "UV");
g_AttribLocationColor = glGetAttribLocation(g_ShaderHandle, "Color");
// 创建对应vertex buffer object
glGenBuffers(1, &g_VboHandle);
glGenBuffers(1, &g_ElementsHandle);
CreateFontsTexture();
// 恢复状态。Restore modified GL state
glBindTexture(GL_TEXTURE_2D, last_texture);
glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer);
glBindVertexArray(last_vertex_array);
return true;
}
}
|
kumakoko/KumaGL
|
klib/kgl_imgui_opengl_bridge.cc
|
C++
|
mit
| 22,591
|
var searchData=
[
['bool1',['bool1',['../a00743.html#gaddcd7aa2e30e61af5b38660613d3979e',1,'glm']]],
['bool1x1',['bool1x1',['../a00743.html#ga7f895c936f0c29c8729afbbf22806090',1,'glm']]],
['bool2',['bool2',['../a00743.html#gaa09ab65ec9c3c54305ff502e2b1fe6d9',1,'glm']]],
['bool2x2',['bool2x2',['../a00743.html#gadb3703955e513632f98ba12fe051ba3e',1,'glm']]],
['bool2x3',['bool2x3',['../a00743.html#ga9ae6ee155d0f90cb1ae5b6c4546738a0',1,'glm']]],
['bool2x4',['bool2x4',['../a00743.html#ga4d7fa65be8e8e4ad6d920b45c44e471f',1,'glm']]],
['bool3',['bool3',['../a00743.html#ga99629f818737f342204071ef8296b2ed',1,'glm']]],
['bool3x2',['bool3x2',['../a00743.html#gac7d7311f7e0fa8b6163d96dab033a755',1,'glm']]],
['bool3x3',['bool3x3',['../a00743.html#ga6c97b99aac3e302053ffb58aace9033c',1,'glm']]],
['bool3x4',['bool3x4',['../a00743.html#gae7d6b679463d37d6c527d478fb470fdf',1,'glm']]],
['bool4',['bool4',['../a00743.html#ga13c3200b82708f73faac6d7f09ec91a3',1,'glm']]],
['bool4x2',['bool4x2',['../a00743.html#ga9ed830f52408b2f83c085063a3eaf1d0',1,'glm']]],
['bool4x3',['bool4x3',['../a00743.html#gad0f5dc7f22c2065b1b06d57f1c0658fe',1,'glm']]],
['bool4x4',['bool4x4',['../a00743.html#ga7d2a7d13986602ae2896bfaa394235d4',1,'glm']]],
['bvec1',['bvec1',['../a00695.html#ga067af382616d93f8e850baae5154cdcc',1,'glm']]],
['bvec2',['bvec2',['../a00710.html#ga0b6123e03653cc1bbe366fc55238a934',1,'glm']]],
['bvec3',['bvec3',['../a00710.html#ga197151b72dfaf289daf98b361760ffe7',1,'glm']]],
['bvec4',['bvec4',['../a00710.html#ga9f7b9712373ff4342d9114619b55f5e3',1,'glm']]],
['byte',['byte',['../a00782.html#ga3005cb0d839d546c616becfa6602c607',1,'glm']]]
];
|
kumakoko/KumaGL
|
third_lib/glm/0.9.9.5/share/man/html/search/typedefs_1.js
|
JavaScript
|
mit
| 1,673
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace EF6Sample
{
using System;
using System.Collections.Generic;
public partial class D2
{
public D2()
{
this.D21 = new HashSet<D21>();
this.D22 = new HashSet<D22>();
this.D23 = new HashSet<D23>();
}
public System.Guid primaryKey { get; set; }
public string Name { get; set; }
public System.Guid D0 { get; set; }
public string S1 { get; set; }
public string S2 { get; set; }
public string S3 { get; set; }
public string S4 { get; set; }
public string S5 { get; set; }
public virtual D0 D01 { get; set; }
public virtual ICollection<D21> D21 { get; set; }
public virtual ICollection<D22> D22 { get; set; }
public virtual ICollection<D23> D23 { get; set; }
}
}
|
Flexberry/FlexberryORM-DemoApp
|
Entity Framework 6/EF6Sample/D2.cs
|
C#
|
mit
| 1,205
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("3. Printing Triangle")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("3. Printing Triangle")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("aede47a4-df04-4770-944e-b49e44c74379")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
alex99q/programming-fundamentals-exercises
|
Methods, Defining and Calling Methods/3. Printing Triangle/Properties/AssemblyInfo.cs
|
C#
|
mit
| 1,416
|
package com.afcrowther.algorithms.week2;
import java.util.Iterator;
import java.util.NoSuchElementException;
import edu.princeton.cs.algs4.StdRandom;
/**
* Random Queue implementation, utilizes a resizing array data structure
*/
public class RandomizedQueue<Item> implements Iterable<Item> {
private static int MIN_QUEUE_SIZE = 1;
private int size;
private Item[] queue;
public RandomizedQueue() {
this.queue = (Item[]) new Object[MIN_QUEUE_SIZE];
this.size = 0;
}
/**
* Is the queue empty?
*/
public boolean isEmpty() {
return size == 0;
}
/**
* How many items are in the queue
*/
public int size() {
return size;
}
/**
* Add a new item to the queue
*/
public void enqueue(Item item) {
if (item == null) {
throw new NullPointerException();
}
if (size == queue.length) {
// grow queue
resizeQueue(queue.length * 2);
}
queue[size++] = item;
}
/**
* Remove an item at random from the queue and return it
*/
public Item dequeue() {
if (size == 0) {
throw new NoSuchElementException();
}
int dequeueIndex = StdRandom.uniform(size);
Item dequeued = queue[dequeueIndex];
queue[dequeueIndex] = queue[size - 1];
queue[size - 1] = null;
size--;
if (queue.length != MIN_QUEUE_SIZE && size <= queue.length / 4) {
// shrink queue
resizeQueue(queue.length / 2);
}
return dequeued;
}
/**
* Get a random element from the queue, do not dequeue
*/
public Item sample() {
if (size == 0) {
throw new NoSuchElementException();
}
return queue[StdRandom.uniform(size)];
}
private void resizeQueue(int newSize) {
Item[] temp = (Item[]) new Object[newSize];
for (int i = 0; i < size; i++) {
temp[i] = queue[i];
}
queue = temp;
}
/**
* Get a randomly ordered iterator from the queue
*/
@Override
public Iterator<Item> iterator() {
return new RandomizedQueueIterator();
}
/**
* Random iterator implementsa
*/
private class RandomizedQueueIterator implements Iterator<Item> {
private Item[] internalQueue;
private int internalSize;
public RandomizedQueueIterator() {
// have to snapshot the queue at this point
internalSize = size;
internalQueue = (Item[]) new Object[internalSize];
for (int i = 0; i < internalSize; i++) {
internalQueue[i] = queue[i];
}
}
@Override
public boolean hasNext() {
return internalSize > 0;
}
@Override
public Item next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
int random = StdRandom.uniform(internalSize);
Item next = internalQueue[random];
internalQueue[random] = internalQueue[--internalSize];
internalQueue[internalSize] = null;
return next;
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}
public static void main(String[] args) {
// for tests
}
}
|
afcrowther/algorithms
|
src/main/java/com/afcrowther/algorithms/week2/RandomizedQueue.java
|
Java
|
mit
| 3,045
|
/**
* Created by body7 on 10/21/15.
*/
(function () {
'use strict';
angular.module('myApp')
.controller('modifiedController', ['$rootScope','$timeout','Upload','$scope','$state', '$stateParams','DataService', '$modal', '$window',
function($rootScope, $timeout, Upload, $scope, $state, $stateParams, DataService, $modal, $window){
var App = $rootScope.App;
var uploadAPI = App.uploadAPI;
var uploadFolder = App.uploadFolder;
$scope.pid = $stateParams.pid;
var pid = $scope.pid;
$scope.baseUrl = "http://www.boluomi1314.com/upload/";
$scope.product = {
title:"",
banner_pic: "",
description: "",
is_brand:1,
is_home:0,
music: "",
change_status:0,
pics:[]
};
$scope.$watch(function(){
return $scope.product.is_brand;
}, function(){
$scope.product.is_brand = Number($scope.product.is_brand);
console.log($scope.product.is_brand, typeof $scope.product.is_brand);
},true);
$scope.sortableOptions = {
containment: '#sortable-container',
//restrict move across columns. move only within column.
accept: function (sourceItemHandleScope, destSortableScope) {
return sourceItemHandleScope.itemScope.sortableScope.$id === destSortableScope.$id;
}
};
$scope.banner_progress = 0;
$scope.music_progress = 0;
$scope.music_uploading = false;
$scope.saveButton = "保存";
$scope.options = [{
name: '上下切换',
value: 0
}, {
name: '折叠切换',
value: 1
}, {
name: '立体切换',
value: 2
}];
$scope.saveChanges = saveChanges;
$scope.saveChangesAndExit = saveChangesAndExit;
$scope.preview = preview;
$scope.deleteMusic = deleteMusic;
$scope.musicName = "";
$scope.musicButton = "上传";
initProduct();
if(pid != null){
$scope.guideTitle = "作品";
DataService.GetProductInfo(pid, function(response){
if (response.success) {
$scope.product = response.data.detail[0];
$scope.guideTitle = $scope.product.title;
if($scope.product.pics == null || $scope.product.pics == ""){
$scope.product.pics = [];
}else{
var pics = $scope.product.pics.split(",");
$scope.product.pics = pics;
}
if($scope.product.is_brand == 1){
$scope.product.is_brand = true;
}else{
$scope.product.is_brand = false;
}
if($scope.product.music!=null && $scope.product.music != ""){
$scope.musicButton = "更改";
$scope.musicName = $scope.product.music.replace(/^.*[\\\/]/, '')
}
}
});
}else{
$scope.guideTitle = "新建";
}
function deletePic(pic){
var index = $scope.product.pics.indexOf(pic);
if (index > -1) {
$scope.product.pics.splice(index, 1);
}
}
function deleteMusic(){
$scope.product.music = "";
$scope.musicName = "";
}
function initProduct(){
$scope.product.title = "";
$scope.product.banner_pic = "img/cover.png";
$scope.product.description = "";
$scope.product.is_brand = 1;
$scope.product.is_home = 0;
$scope.product.music = "";
$scope.product.change_status = 0;
$scope.product.pics = [];
$scope.musicButton = "添加";
}
$scope.uploadMusic = function(music) {
//$scope.product.music = music.name;
$scope.music_progress = 0;
$scope.music_uploading = false;
if (music) {
music.upload = Upload.upload({
url: uploadAPI,
data: {file: music}
});
music.upload.then(function (response) {
$timeout(function () {
//file.result = response.data;
if(response.data.error == 1){
$scope.music_progress = 0;
$scope.music_uploading = false;
alert("上传失败,"+response.data.message);
}else{
$scope.product.music = uploadFolder+response.data.url;
$scope.musicButton = "更改";
$scope.musicName = music.name;
$scope.music_progress = 100;
$scope.music_uploading = false;
//alert("上传成功");
}
});
}, function (response) {
$scope.music_progress = 0;
$scope.music_uploading = false;
}, function (evt) {
music.progress = Math.min(100, parseInt(100.0 *
evt.loaded / evt.total));
$scope.music_progress = music.progress;
$scope.music_uploading = true;
});
}
}
$scope.validate = function(music){
if(music.type!="audio/mp3"){
alert("请上传MP3格式的音乐");
return false;
}
}
$scope.uploadBanner = function(file, errFiles) {
$scope.f = file;
$scope.errFile = errFiles && errFiles[0];
if($scope.errFile){
alert("图片超过大小");
}
if (file) {
file.upload = Upload.upload({
url: uploadAPI,
data: {file: file}
});
file.upload.then(function (response) {
$timeout(function () {
//file.result = response.data;
$scope.product.banner_pic = uploadFolder+response.data.url;
});
}, function (response) {
$scope.banner_progress = 1;
}, function (evt) {
file.progress = Math.min(100, parseInt(100.0 *
evt.loaded / evt.total));
$scope.banner_progress = file.progress/100;
});
}
}
function saveChanges(){
//check
if($scope.product.title == null || $scope.product.title=="" || $scope.product.title == undefined){
alert("对不起,保存失败!请填写标题,并且至少上传一张照片。");
return;
}
if($scope.product.pics == null || $scope.product.pics == undefined || $scope.product.pics.length < 1){
alert("对不起,保存失败!请填写标题,并且至少上传一张照片。");
return;
}
$scope.saveButton = "保存中...";
if($scope.product.is_brand == true){
$scope.product.is_brand = 1;
}else{
$scope.product.is_brand = 0;
}
if(pid != null){
DataService.EditProduct(pid, $rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
//$state.go('main.content');
alert("保存成功!");
}else{
alert("保存失败:图片不能为空");
}
$scope.saveButton = "保存";
});
}else{
DataService.AddProduct($rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
//$state.go('main.content');
pid = response.data.id;
alert("保存成功!");
}else{
alert("保存失败:图片不能用空");
}
$scope.saveButton = "保存";
});
}
}
function saveChangesAndExit(){
//check
if($scope.product.title == null || $scope.product.title=="" || $scope.product.title == undefined){
alert("对不起,保存失败!请填写标题,并且至少上传一张照片。");
return;
}
if($scope.product.pics == null || $scope.product.pics == undefined || $scope.product.pics.length < 1){
alert("对不起,保存失败!请填写标题,并且至少上传一张照片。");
return;
}
$scope.saveButton = "保存中...";
if($scope.product.is_brand == true){
$scope.product.is_brand = 1;
}else{
$scope.product.is_brand = 0;
}
if(pid != null){
DataService.EditProduct(pid, $rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
$state.go('main.content');
alert("保存成功!");
}else{
alert("保存失败");
}
$scope.saveButton = "保存";
});
}else{
DataService.AddProduct($rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
$state.go('main.content');
pid = response.data.id;
alert("保存成功!");
}else{
alert("保存失败");
}
$scope.saveButton = "保存";
});
}
}
function preview(){
$scope.saveButton = "保存中。。。";
if($scope.product.is_brand == true){
$scope.product.is_brand = 1;
}else{
$scope.product.is_brand = 0;
}
if(pid != null){
DataService.EditProduct(pid, $rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
//$state.go('main.content');
alert("保存成功!");
openPreviewTab(pid);
}else{
alert("保存失败");
}
$scope.saveButton = "保存";
});
}else{
DataService.AddProduct($rootScope.globals.authKey, $scope.product, function(response){
if(response.success){
//$state.go('main.content');
pid = response.data.id;
alert("保存成功!");
openPreviewTab(pid);
}else{
alert("保存失败");
}
$scope.saveButton = "保存";
});
}
}
function openPreviewTab(pid){
$window.open('http://www.boluomi1314.com/demo/pc/web_share.html?pid='+pid);
}
$scope.upload = function (file, errFiles) {
$scope.f = file;
$scope.errFile = errFiles && errFiles[0];
if (file) {
var new_pic = "img/default_img.png";
$scope.product.pics.push(new_pic);
file.upload = Upload.upload({
url: uploadAPI,
data: {
username: $scope.username,
file: file
}
});
file.upload.progress(function (evt) {
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);
$scope.log = 'progress: ' + progressPercentage + '% ' +
evt.config.data.file.name + '\n' + $scope.log;
$scope.percent = progressPercentage;
$scope.uploading = true;
}).success(function (data, status, headers, config) {
$timeout(function() {
$scope.log = 'file: ' + config.data.file.name + ', Response: ' + JSON.stringify(data) + '\n' + $scope.log;
$scope.product.pics[$scope.product.pics.length - 1] = uploadFolder+data.url;
$scope.uploading = false;
});
});
}
};
//pic upload
$scope.progress = [];
$scope.uploading = [];
$scope.uploadFiles = function(files, errFiles) {
$scope.files = files;
$scope.errFiles = errFiles;
if($scope.errFiles.length > 0){
alert("图片过大");
}
var pics_length = $scope.product.pics.length;
angular.forEach(files, function(file, index) {
var new_pic = "img/default_img.png";
var new_progress = 0;
var uploading = false;
$scope.product.pics.push(new_pic);
$scope.progress.push(new_progress);
$scope.uploading.push(uploading);
file.upload = Upload.upload({
url: uploadAPI,
data: {
username: $scope.username,
file: file
}
});
file.upload.then(function (response) {
//success
$timeout(function () {
$scope.product.pics[pics_length + index] = uploadFolder+response.data.url;
$scope.uploading[pics_length + index] = false;
});
}, function (response) {
//error
}, function (evt) {
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);
$scope.progress[pics_length + index] = progressPercentage;
$scope.uploading[pics_length + index] = true;
});
});
}
}]);
})();
|
ming-body7/boluomi-frontend
|
app/controllers/detail/detail.controller.js
|
JavaScript
|
mit
| 17,664
|
<?php
namespace Vanessa\CoreBundle\Services;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Monolog\Logger;
/**
* Utility manager
*
* @author Ronald Conco <ronald.conco@gmail.com>
* @version 1.0
* @package VanessaCoreBundle
* @subpackage Services
*/
final class UtilityManager
{
/**
* Service Container
* @var object
*/
private $container = null;
/**
* Monolog logger
* @var object
*/
private $logger = null;
/**
* Session
* @var object
*/
private $session = null;
/**
* Class construct
*
* @param ContainerInterface $container
* @param Logger $logger
* @return void
*/
public function __construct(
ContainerInterface $container, Logger $logger)
{
$this->setContainer($container);
$this->setLogger($logger);
$this->setSession($this->container->get('session'));
return;
}
public function getContainer()
{
return $this->container;
}
public function setContainer($container)
{
$this->container = $container;
}
public function getLogger()
{
return $this->logger;
}
public function setLogger($logger)
{
$this->logger = $logger;
}
public function getSession()
{
return $this->session;
}
public function setSession($session)
{
$this->session = $session;
}
/**
* Generate password
*
* @param integer $length
* @param integer $userUpper
* @param integer $useLower
* @param integer $useNumber
* @param integer $useCustom
* @return string
*/
public function generatePassword($length = 8, $userUpper = 1, $useLower = 1, $useNumber = 1, $useCustom = "")
{
$upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$lower = "abcdefghijklmnopqrstuvwxyz";
$number = "0123456789";
$seedLength = null;
$seed = null;
$password = null;
if ($userUpper) {
$seedLength += 26;
$seed .= $upper;
}
if ($useLower) {
$seedLength += 26;
$seed .= $lower;
}
if ($useNumber) {
$seedLength += 10;
$seed .= $number;
}
if ($useCustom) {
$seedLength +=strlen($useCustom);
$seed .= $useCustom;
}
for ($x = 1; $x <= $length; $x++) {
$password .= $seed{rand(0, $seedLength - 1)};
}
return($password);
}
/**
* Create alert message
*
* @param string $type
* @param string $message
* @return void
*/
public function alert($type,$message)
{
$this->session->getFlashBag()->add($type,$message);
$this->session->getFlashBag()->add('alert-'.$type,$message);
return;
}
public function generateToken()
{
return base_convert(bin2hex($this->getRandomNumber()) , 16 , 20);
}
private function getRandomNumber()
{
return hash('sha256' , uniqid(mt_rand() , true) , true);
}
}
|
sonnybrilliant/zeus-mobigospel
|
src/Vanessa/CoreBundle/Services/UtilityManager.php
|
PHP
|
mit
| 3,161
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../../..">Unstable</a></li>
<li class="active"><a href="">8.5.dev / contrib:generic-environments dev</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="../../../../../about.html">About</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../../..">« Up</a>
<h1>contrib:generic-environments <small>dev</small></h1>
<table class="table table-striped text-center">
<thead>
<tr>
<td>Date</td>
<td>Time</td>
<td>Relative</td>
<td>Status</td>
</tr>
</thead>
<tbody>
<tr>
<td>2015-02-03</td>
<td>00:28:27</td>
<td><script>document.write(moment("2015-02-03 00:28:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="success"><a href="2015-02-03_00-28-27.html">7 s</a></td>
</tr>
<tr>
<td>2015-01-30</td>
<td>20:36:42</td>
<td><script>document.write(moment("2015-01-30 20:36:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="success"><a href="2015-01-30_20-36-42.html">8 s</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
coq-bench/coq-bench.github.io-old
|
clean/Linux-x86_64-4.02.1-1.2.0/unstable/8.5.dev/contrib:generic-environments/dev/index.html
|
HTML
|
mit
| 3,655
|
package xyz.cafeconleche.web.chica.view;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.itextpdf.text.BadElementException;
import com.itextpdf.text.Document;
import com.itextpdf.text.Image;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfWriter;
import xyz.cafeconleche.web.chica.base.view.AbstractITextPdfView;
import xyz.cafeconleche.web.chica.dto.Face;
public class PdfView extends AbstractITextPdfView {
@Override
public void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,
HttpServletRequest request, HttpServletResponse response) throws Exception {
System.out.println("model: " + model);
Face face = (Face) model.get("face");
System.out.println("face: " + face);
Rectangle pageSize = document.getPageSize();
System.out.println("pageSize: " + pageSize);
System.out.println("w: " + pageSize.getWidth() + ", h: " + pageSize.getHeight());
Image leftEye = getImage("eyes/" + face.getEyes());
float leftAbsY = (pageSize.getHeight() - leftEye.getHeight());
leftEye.setAbsolutePosition(0, leftAbsY);
System.out.println("absoulte looking Y: " + leftAbsY);
Image rightEye = getImage("eyes/" + face.getEyes());
float rightAbsX = leftEye.getWidth()/2;
System.out.println("looking for: " + rightAbsX);
rightEye.setAbsolutePosition(rightAbsX, leftAbsY);
Image nose = getImage("noses/" + face.getNose());
float noseAbsX = leftEye.getWidth()/4;
float noseAbsY = leftAbsY-(nose.getHeight()/4);
nose.setAbsolutePosition(noseAbsX, noseAbsY);
Image mouth = getImage("mouths/" + face.getMouth());
float mouthAbsX = leftEye.getWidth()/4;
float mouthAbsY = leftAbsY-(mouth.getHeight()/1.7f);
mouth.setAbsolutePosition(mouthAbsX, mouthAbsY);
System.out.println("w: " + leftEye.getWidth());
System.out.println("plain w: " + leftEye.getPlainWidth());
System.out.println("absolute: " + leftEye.getAbsoluteX() + "," + leftEye.getAbsoluteY());
System.out.println("leftEye: " + leftEye + " - " + System.identityHashCode(leftEye));
System.out.println("rightEye: " + rightEye + " - " + System.identityHashCode(rightEye));
System.out.println("mouth: " + mouth);
document.add(leftEye);
document.add(rightEye);
document.add(nose);
document.add(mouth);
}
private Image getImage(String imgSrc) throws BadElementException, MalformedURLException, IOException {
String imgBaseDir = "http://localhost:8080/chica/resources/core/images/face/";
Image image = Image.getInstance(imgBaseDir + imgSrc + ".png");
return image;
}
}
|
topiltzin-butron/chica
|
src/main/java/xyz/cafeconleche/web/chica/view/PdfView.java
|
Java
|
mit
| 2,708
|
---
layout: page
title: Talks and Papers
permalink: /talks/
---
## 2017
* [Integrating Xtext and Sirius: Strategies and Pitfalls](https://www.slideshare.net/cbrun/integrating-xtext-and-sirius-strategies-and-pitfalls) at EclipseCon France 2017, Toulouse
* [EcoreTools-Next: Executable DSL made (more) accessible](https://www.slideshare.net/cbrun/ecoretoolsnext-executable-dsl-made-more-accessible) at EclipseCon France 2017, Toulouse [video](https://www.youtube.com/watch?v=x4viqEFN7PU)
* [Great new features and enhancements in the Eclipse IDE](https://www.slideshare.net/mikaelbarbero/whats-new-in-eclipse-oxygen-devoxx-france-2017) at Devoxx (last minute backup for Mikaël), France, Paris, [video](https://www.youtube.com/watch?v=jIcFiFZppSw)
## 2016
* [Sirius : Roadmap](https://cedric.brun.io/talks/SiriusCon2016/slides/#/) at SiriusCon 2016, France, Paris
* [Modeling Avengers : OSS Technology Mix for Saving the World](https://www.eclipsecon.org/france2016/session/modeling-avengers-open-source-technology-mix-saving-world) at EclipseCon France 2016, Toulouse ([slides](https://cedric.brun.io/talks/ModelingAvengers/#/))
* [Modeling Avengers : OSS Technology Mix for Saving the World](https://www.infoq.com/presentations/smart-farming-system-tools) at EclipseCon North America 2016, Washington ([slides](https://cedric.brun.io/talks/ModelingAvengers/#/), [video](https://www.infoq.com/presentations/smart-farming-system-tools))
## 2015
* [Sirius : Origins, Present, Future](https://cedric.brun.io/talks/SiriusOriginsPresentFuture/#/) at SiriusCon 2015, France, Paris
* [Domain Globalization: Using Languages to Support Technical and Social Coordination](https://www.springer.com/us/book/9783319261713) within the book 'Globalizing Domain-Specific Languages', Springer.
* [A Solution to the TTC'15 Model Execution Case Using the GEMOC Studio](https://hal.inria.fr/hal-01152342/), Transformation Tool Contest 2015.
* [Sirius 3.0 : Faster, Stronger and Smarter Diagram Editors](https://cedric.brun.io/talks/Sirius300FasterStrongerSmarter/slides/#/) at EclipseCon France, Toulouse.
* [Breathe Life Into Your Designer!](https://siriuslab.github.io/talks/BreatheLifeInYourDesigner/slides/index.html) at EclipseCon France, Toulouse.
## 2014
* [Sirius + Xtext = ♥](https://www.eclipsecon.org/europe2014/session/sirius-xtext-%E2%99%A5) at EclipseCon Europe, Ludwigsburg, Germany.
* [Sirius + Xtext = ♥](https://www.eclipsecon.org/france2014/sites/default/files/slides/Xtext_Sirius.pdf) at EclipseCon France, Toulouse ([Video](https://www.youtube.com/watch?v=Ha0FbmcLjYY), [slides](https://www.eclipsecon.org/france2014/sites/default/files/slides/Xtext_Sirius.pdf))
* [Hands-On Sirius: Create Graphical Editors for your Domain-Specific Language](https://www.eclipsecon.org/france2014/session/hands-sirius-create-graphical-editors-your-domain-specific-language) at EclipseCon France, Toulouse
* [Sirius + Xtext = ♥](https://www.xtextcon.org/slides/) at XtextCon at Kiel, Germany ([slides](https://www.xtextcon.org/slides/Sirius%20+%20Xtext%20=%20%3C3%20-%20Cedric%20Brun.pdf))
* [EcoreTools 2.0: The Luna Revival](https://fr.slideshare.net/cbrun/ecore-tools2) EclipseCon Nort America - San Francisco
## 2013
* [EcoreTools 2.0: The Making Of](https://www.eclipsecon.org/europe2013/ecoretools-20-making) EclipseCon Europe, Ludwigsburg, Germany ([Video](https://www.youtube.com/watch?v=XSP-oAmmS_E), [slides](https://www.eclipsecon.org/europe2013/sites/eclipsecon.org.europe2013/files/EcoreTools2.pdf))
* [Interview: Sirius getting contributed to Eclipse](https://www.youtube.com/watch?v=hyDxSmbSi2g)
## 2012
* [15 EMF projects in 25 minutes](https://cedric.brun.io/eclipsecon-europe-2012-slides/) at EclipseCon Europe, ([slides](https://cedric.brun.io/eclipsecon-europe-2012-slides/))
* [Tutorial: building webapp (backbone.js, ..) generator with Eclipse Modeling ](https://plus.google.com/+C%C3%A9dricBrun/posts/EKgDZ1grtEv) Breizhcamp, Rennes.
* [Understanding Eclipse Modeling](https://www.eclipsedaytoulouse.com/programme/#modeling) at Eclipse Day Toulouse [video](https://www.youtube.com/watch?v=sFf34a5u92U)
* [Interview: Opees and Polarsys at the core of Obeo's strategy](https://www.youtube.com/watch?v=DD-miRQlnQc) at Eclipse Day Toulouse
* [Your custom modeling environment definition made easy. At last!](https://www.eclipsecon.org/2013/sessions/your-custom-modeling-environment-definition-made-easy-last) at EclipseCon, Boston
## 2011
* [Building tools for software re-architecture](https://sites.google.com/site/jugsummercamp/) at JugSummer Camp, La Rochelle
* [What the heck is Eclipse Modeling and why should you care !](https://www.eclipsedayparis.com/) at EclipseDay Paris ([slides](https://www.eclipsedayparis.com/2011/uploads/slides2011/CedricBrun_EclipseModeling.pdf))
* [Collaborative Modeling : The New Deal](https://www.iwmcp.org/2011/page.php?id=36) Keynote at IWMCP, Zurich ([slides](https://dl.acm.org/citation.cfm?id=2000411&dl=ACM&coll=DL&CFID=484729923&CFTOKEN=19061534))
* [Collaborative Modeling : The New Deal](https://www.eclipsecon.org/europe2011/sessions/collaborative-modeling-new-deal.html) at EclipseCon Europe, Ludwigsburg
## 2010
* [Eclipse Modeling Panel](https://www.eclipsecon.org/2010/sessions/index8474.html?id=1528) at EclipseCon, San Francisco
* [Diff, Merge and Patch your models with Helios](https://www.eclipsecon.org/2010/sessions/index8b56.html?id=1169) at EclipseCon, San Francisco
* [Challenge Eclipse - Ask the Architecture Council](https://www.eclipsecon.org/2010/sessions/index3b81.html?id=1209)
## 2009
* [From Acceleo.org to Eclipse Modeling](https://www.eclipsecon.org/summiteurope2009/sessions9f0a.html?id=971) at Eclipse Summit Europe, Ludwigsburg
* [Team Work with Models : Compare and Merge with EMF Compare in Galileo](https://www.eclipsecon.org/2009/sessions5cad.html?id=461) at EclipseCon, San Francisco
## 2008
* [Comparing and Merging Models with Eclipse : an Update on EMF Compare](https://www.eclipsecon.org/2008/index7123.html?page=sub/&id=328) at EclipseCon, San Francisco ([slides](https://www.eclipsecon.org/2008/sub/attachments/Comparing_and_Merging_Models_with_Eclipse__an_Update_on_EMF_Compare.pdf))
* [Mega Modeling Mania](https://www.eclipsecon.org/2008/index17da.html?page=sub/&id=564) at EclipseCon, San Francisco
* BRUN, Cédric et PIERANTONIO, Alfonso. [Model differences in the eclipse modeling framework](https://www.cepis.org/upgrade/files/2008-II-pierantonio.pdf). UPGRADE, The European Journal for the Informatics Professional, 2008, vol. 9, no 2, p. 29-34.
## 2007
* [Model Comparison Panel](https://www.eclipsecon.org/2007/indexb8e1.html?page=sub/&id=3593) at EclipseCon, San Francisco
* [Setting up a Domain Specific Tooling](https://www.eclipsecon.org/summiteurope2007/index337e.html?page=detail/&id=17) at Eclipse Summit Europe, Ludwigsburg ([slides](https://www.eclipsecon.org/summiteurope2007/presentations/ESE2007_SettingUpDSMtooling.pdf))
* [EMF Compare: One Year Later](https://www.eclipsecon.org/summiteurope2007/index34ed.html?page=detail/&id=24) at Eclipse Summit Europe, Ludwigsburg ([slides](https://www.eclipsecon.org/summiteurope2007/presentations/ESE2007_EMFCompare.pdf))
* [Acceleo, un générateur open source pour des développements dirigé par les modèles](https://scenari-platform.org/projects/others/files/solutionslinux2007.pdf) at Solutions Linux, Paris
|
cbrun/cbrun.github.io
|
talks/index.md
|
Markdown
|
mit
| 7,397
|
<!DOCTYPE HTML>
<html>
<head>
<title>math.js | an extensive math library for JavaScript and Node.js</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="title" content="math.js">
<meta name="keywords" content="mathjs, math.js, math, js, javascript, node, library, expression, parser, numeric, number, bignumber, complex, matrix, unit, function, variable, string, value, node.js, mathematics, extensive, advanced">
<meta name="description" content="Math.js is an extensive math library for JavaScript and Node.js. It features big numbers, complex numbers, matrices, units, and a flexible expression parser.">
<meta name="author" content="Jos de Jong">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="../../../css/style.css" rel="stylesheet" type="text/css">
<link href="../../../css/commandline.css" rel="stylesheet" type="text/css">
<link href="../../../css/code.css" rel="stylesheet" type="text/css">
<script src="../../../js/lib/es5-shim.min.js" type="text/javascript"></script>
<script src="../../../js/lib/es5-sham.min.js" type="text/javascript"></script>
<script src="../../../js/lib/math.js" type="text/javascript"></script>
<script src="../../../js/commandline.js" type="text/javascript"></script>
</head>
<!-- itemscope, itemtype, and itemprop for google+ meta information -->
<body itemscope itemtype="http://schema.org/Product">
<div id="page">
<div>
<a href="../../../index.html">
<img src="../../../css/img/mathjs_330x100.png" id="logo" alt="math.js" itemprop="image" >
</a>
</div>
<div id="search">
<script>
(function() {
var cx = '017327835323070913148:__zkzh4scga';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
<div id="menu">
<a href="../../../index.html">
Home
</a><a href="../../../download.html">
Download
</a><a href="../../getting_started.html">
Get started
</a><a href="../../index.html">
Docs
<div class="selection"></div>
</a><a href="../../../examples/index.html">
Examples
</a>
</div>
<div id="content">
<h1 id="function-sec">Function sec <a href="sec.html#function-sec" title="Permalink">#</a></h1>
<p>Calculate the secant of a value, defined as <code>sec(x) = 1/cos(x)</code>.</p>
<p>For matrices, the function is evaluated element wise.</p>
<h2 id="syntax">Syntax <a href="sec.html#syntax" title="Permalink">#</a></h2>
<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">math</span><span class="p">.</span><span class="nx">sec</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span>
</code></pre></div>
<h3 id="parameters">Parameters <a href="sec.html#parameters" title="Permalink">#</a></h3>
<table><thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead><tbody>
<tr>
<td><code>x</code></td>
<td>Number | Boolean | Complex | Unit | Array | Matrix | null</td>
<td>Function input</td>
</tr>
</tbody></table>
<h3 id="returns">Returns <a href="sec.html#returns" title="Permalink">#</a></h3>
<table><thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead><tbody>
<tr>
<td>Number | Complex | Array | Matrix</td>
<td>Secant of x</td>
</tr>
</tbody></table>
<h2 id="examples">Examples <a href="sec.html#examples" title="Permalink">#</a></h2>
<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">math</span><span class="p">.</span><span class="nx">sec</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> <span class="c1">// returns Number -2.4029979617223822</span>
<span class="mi">1</span> <span class="o">/</span> <span class="nx">math</span><span class="p">.</span><span class="nx">cos</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> <span class="c1">// returns Number -2.4029979617223822</span>
</code></pre></div>
<h2 id="see-also">See also <a href="sec.html#see-also" title="Permalink">#</a></h2>
<p><a href="cos.html">cos</a>,
<a href="csc.html">csc</a>,
<a href="cot.html">cot</a></p>
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
</div>
</div>
<div id="footer">
<a href="../../../index.html">mathjs.org</a> •
<a href="https://github.com/josdejong/mathjs#license" target="_blank">copyright © 2013-2015 jos de jong</a> •
<a href="http://subtlepatterns.com/bright-squares/" target="_blank">background by waseem dahman</a>
</div>
<div id="forkme">
<a href="https://github.com/josdejong/mathjs" target="_blank">
<img src="../../../css/img/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" >
</a>
</div>
<script type="text/javascript">
// change layout for different screen sizes
function resize () {
var width = document.body.clientWidth;
var page = document.getElementById('page');
page.className = (width < 810) ? 'small' : 'normal';
if (width < 620) {
page.className += ' tiny';
}
var forkme = document.getElementById('forkme');
forkme.className = (width < 810) ? 'small' : 'normal';
}
resize();
window.onresize = resize;
</script>
</body>
</html>
|
jneuendorf/mathJS
|
info/mathjs.org/docs/reference/functions/sec.html
|
HTML
|
mit
| 5,751
|
//
// WYJForecastView.h
// Jingjingweather
//
// Created by 王亚静 on 2017/5/5.
// Copyright © 2017年 Wong. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WYJForecastView : UIView
@property (nonatomic, copy) NSArray *forecasts;
@end
|
WangYajing/mobile_web
|
Jingjingweather/Jingjingweather/View/WYJForecastView.h
|
C
|
mit
| 255
|
/**
* res : successCallback
* rej : failCallback
*/
const promise = new Promise((res, rej) => {
setTimeout(() => {
const name = "alice";
res(name);
}, 1000);
});
promise.then((name) => {
console.log('안녕하세요, ' + name + '님');
});
|
JaeGyu/PythonEx_1
|
web/node26.js
|
JavaScript
|
mit
| 274
|
/*! NProgress (c) 2013, Rico Sta. Cruz
* http://ricostacruz.com/nprogress */
;(function(factory) {
if (typeof module === 'function') {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(factory);
} else {
this.NProgress = factory();
}
})(function() {
var NProgress = {};
NProgress.version = '0.1.3';
var Settings = NProgress.settings = {
minimum: 0.08,
easing: 'ease',
positionUsing: '',
speed: 200,
trickle: true,
trickleRate: 0.02,
trickleSpeed: 800,
showSpinner: true,
barSelector: '[role="bar"]',
spinnerSelector: '[role="spinner"]',
template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
};
/**
* Updates configuration.
*
* NProgress.configure({
* minimum: 0.1
* });
*/
NProgress.configure = function(options) {
var key, value;
for (key in options) {
value = options[key];
if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
}
return this;
};
/**
* Last number.
*/
NProgress.status = null;
/**
* Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
*
* NProgress.set(0.4);
* NProgress.set(1.0);
*/
NProgress.set = function(n) {
var started = NProgress.isStarted();
n = clamp(n, Settings.minimum, 1);
NProgress.status = (n === 1 ? null : n);
var progress = NProgress.render(!started),
has_qs = typeof progress.querySelector !== 'undefined',
bar = has_qs ? progress.querySelector(Settings.barSelector) : null,
speed = Settings.speed,
ease = Settings.easing;
progress.offsetWidth; /* Repaint */
queue(function(next) {
// Set positionUsing if it hasn't already been set
if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();
// Add transition
if(has_qs)
css(bar, barPositionCSS(n, speed, ease));
if (n === 1) {
// Fade out
css(progress, {
transition: 'none',
opacity: 1
});
progress.offsetWidth; /* Repaint */
setTimeout(function() {
css(progress, {
transition: 'all ' + speed + 'ms linear',
opacity: 0
});
setTimeout(function() {
NProgress.remove();
next();
}, speed);
}, speed);
} else {
setTimeout(next, speed);
}
});
return this;
};
NProgress.isStarted = function() {
return typeof NProgress.status === 'number';
};
/**
* Shows the progress bar.
* This is the same as setting the status to 0%, except that it doesn't go backwards.
*
* NProgress.start();
*
*/
NProgress.start = function() {
if (!NProgress.status) NProgress.set(0);
var work = function() {
setTimeout(function() {
if (!NProgress.status) return;
NProgress.trickle();
work();
}, Settings.trickleSpeed);
};
if (Settings.trickle) work();
return this;
};
/**
* Hides the progress bar.
* This is the *sort of* the same as setting the status to 100%, with the
* difference being `done()` makes some placebo effect of some realistic motion.
*
* NProgress.done();
*
* If `true` is passed, it will show the progress bar even if its hidden.
*
* NProgress.done(true);
*/
NProgress.done = function(force) {
if (!force && !NProgress.status) return this;
return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
};
/**
* Increments by a random amount.
*/
NProgress.inc = function(amount) {
var n = NProgress.status;
if (!n) {
return NProgress.start();
} else {
if (typeof amount !== 'number') {
amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
}
n = clamp(n + amount, 0, 0.994);
return NProgress.set(n);
}
};
NProgress.trickle = function() {
return NProgress.inc(Math.random() * Settings.trickleRate);
};
/**
* Waits for all supplied jQuery promises and
* increases the progress as the promises resolve.
*
* @param $promise jQUery Promise
*/
(function() {
var initial = 0, current = 0;
NProgress.promise = function($promise) {
if (!$promise || $promise.state() == "resolved") {
return this;
}
if (current == 0) {
NProgress.start();
}
initial++;
current++;
$promise.always(function() {
current--;
if (current == 0) {
initial = 0;
NProgress.done();
} else {
NProgress.set((initial - current) / initial);
}
});
return this;
};
})();
/**
* (Internal) renders the progress bar markup based on the `template`
* setting.
*/
NProgress.render = function(fromStart) {
if (NProgress.isRendered()) return document.getElementById('nprogress');
addClass(document.documentElement, 'nprogress-busy');
var progress = document.createElement('div');
progress.id = 'nprogress';
progress.innerHTML = Settings.template;
if(typeof progress.querySelector !== 'undefined')
{
var bar = progress.querySelector(Settings.barSelector),
perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
spinner;
css(bar, {
transition: 'all 0 linear',
transform: 'translate3d(' + perc + '%,0,0)'
});
if (!Settings.showSpinner) {
spinner = progress.querySelector(Settings.spinnerSelector);
spinner && removeElement(spinner);
}
}
document.body.appendChild(progress);
return progress;
};
/**
* Removes the element. Opposite of render().
*/
NProgress.remove = function() {
removeClass(document.documentElement, 'nprogress-busy');
var progress = document.getElementById('nprogress');
progress && removeElement(progress);
};
/**
* Checks if the progress bar is rendered.
*/
NProgress.isRendered = function() {
return !!document.getElementById('nprogress');
};
/**
* Determine which positioning CSS rule to use.
*/
NProgress.getPositioningCSS = function() {
// Sniff on document.body.style
var bodyStyle = document.body.style;
// Sniff prefixes
var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :
('MozTransform' in bodyStyle) ? 'Moz' :
('msTransform' in bodyStyle) ? 'ms' :
('OTransform' in bodyStyle) ? 'O' : '';
if (vendorPrefix + 'Perspective' in bodyStyle) {
// Modern browsers with 3D support, e.g. Webkit, IE10
return 'translate3d';
} else if (vendorPrefix + 'Transform' in bodyStyle) {
// Browsers without 3D support, e.g. IE9
return 'translate';
} else {
// Browsers without translate() support, e.g. IE7-8
return 'margin';
}
};
/**
* Helpers
*/
function clamp(n, min, max) {
if (n < min) return min;
if (n > max) return max;
return n;
}
/**
* (Internal) converts a percentage (`0..1`) to a bar translateX
* percentage (`-100%..0%`).
*/
function toBarPerc(n) {
return (-1 + n) * 100;
}
/**
* (Internal) returns the correct CSS for changing the bar's
* position given an n percentage, and speed and ease from Settings
*/
function barPositionCSS(n, speed, ease) {
var barCSS;
if (Settings.positionUsing === 'translate3d') {
barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };
} else if (Settings.positionUsing === 'translate') {
barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };
} else {
barCSS = { 'margin-left': toBarPerc(n)+'%' };
}
barCSS.transition = 'all '+speed+'ms '+ease;
return barCSS;
}
/**
* (Internal) Queues a function to be executed.
*/
var queue = (function() {
var pending = [];
function next() {
var fn = pending.shift();
if (fn) {
fn(next);
}
}
return function(fn) {
pending.push(fn);
if (pending.length == 1) next();
};
})();
/**
* (Internal) Applies css properties to an element, similar to the jQuery
* css method.
*
* While this helper does assist with vendor prefixed property names, it
* does not perform any manipulation of values prior to setting styles.
*/
var css = (function() {
var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],
cssProps = {};
function camelCase(string) {
return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) {
return letter.toUpperCase();
});
}
function getVendorProp(name) {
var style = document.body.style;
if (name in style) return name;
var i = cssPrefixes.length,
capName = name.charAt(0).toUpperCase() + name.slice(1),
vendorName;
while (i--) {
vendorName = cssPrefixes[i] + capName;
if (vendorName in style) return vendorName;
}
return name;
}
function getStyleProp(name) {
name = camelCase(name);
return cssProps[name] || (cssProps[name] = getVendorProp(name));
}
function applyCss(element, prop, value) {
prop = getStyleProp(prop);
element.style[prop] = value;
}
return function(element, properties) {
var args = arguments,
prop,
value;
if (args.length == 2) {
for (prop in properties) {
value = properties[prop];
if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);
}
} else {
applyCss(element, args[1], args[2]);
}
}
})();
/**
* (Internal) Determines if an element or space separated list of class names contains a class name.
*/
function hasClass(element, name) {
var list = typeof element == 'string' ? element : classList(element);
return list.indexOf(' ' + name + ' ') >= 0;
}
/**
* (Internal) Adds a class to an element.
*/
function addClass(element, name) {
var oldList = classList(element),
newList = oldList + name;
if (hasClass(oldList, name)) return;
// Trim the opening space.
element.className = newList.substring(1);
}
/**
* (Internal) Removes a class from an element.
*/
function removeClass(element, name) {
var oldList = classList(element),
newList;
if (!hasClass(element, name)) return;
// Replace the class name.
newList = oldList.replace(' ' + name + ' ', ' ');
// Trim the opening and closing spaces.
element.className = newList.substring(1, newList.length - 1);
}
/**
* (Internal) Gets a space separated list of the class names on the element.
* The list is wrapped with a single space on each end to facilitate finding
* matches within the list.
*/
function classList(element) {
return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
}
/**
* (Internal) Removes an element from the DOM.
*/
function removeElement(element) {
element && element.parentNode && element.parentNode.removeChild(element);
}
return NProgress;
});
|
ipernet/nprogress
|
nprogress.js
|
JavaScript
|
mit
| 11,507
|
/**
* Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. This software, with or without modification, must only be used with a
* Nordic Semiconductor ASA integrated circuit.
*
* 5. Any software provided in binary form under this license must not be reverse
* engineered, decompiled, modified and/or disassembled.
*
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef SDK_CONFIG_H
#define SDK_CONFIG_H
// <<< Use Configuration Wizard in Context Menu >>>\n
#ifdef USE_APP_CONFIG
#include "app_config.h"
#endif
// <h> nRF_BLE
//==========================================================
// <q> BLE_ADVERTISING_ENABLED - ble_advertising - Advertising module
#ifndef BLE_ADVERTISING_ENABLED
#define BLE_ADVERTISING_ENABLED 0
#endif
// <q> BLE_DTM_ENABLED - ble_dtm - Module for testing RF/PHY using DTM commands
#ifndef BLE_DTM_ENABLED
#define BLE_DTM_ENABLED 0
#endif
// <q> BLE_RACP_ENABLED - ble_racp - Record Access Control Point library
#ifndef BLE_RACP_ENABLED
#define BLE_RACP_ENABLED 0
#endif
// <e> NRF_BLE_QWR_ENABLED - nrf_ble_qwr - Queued writes support module (prepare/execute write)
//==========================================================
#ifndef NRF_BLE_QWR_ENABLED
#define NRF_BLE_QWR_ENABLED 0
#endif
// <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.
#ifndef NRF_BLE_QWR_MAX_ATTR
#define NRF_BLE_QWR_MAX_ATTR 0
#endif
// </e>
// <e> PEER_MANAGER_ENABLED - peer_manager - Peer Manager
//==========================================================
#ifndef PEER_MANAGER_ENABLED
#define PEER_MANAGER_ENABLED 0
#endif
// <o> PM_MAX_REGISTRANTS - Number of event handlers that can be registered.
#ifndef PM_MAX_REGISTRANTS
#define PM_MAX_REGISTRANTS 3
#endif
// <o> PM_FLASH_BUFFERS - Number of internal buffers for flash operations.
// <i> Decrease this value to lower RAM usage.
#ifndef PM_FLASH_BUFFERS
#define PM_FLASH_BUFFERS 4
#endif
// <q> PM_CENTRAL_ENABLED - Enable/disable central-specific Peer Manager functionality.
// <i> Enable/disable central-specific Peer Manager functionality.
#ifndef PM_CENTRAL_ENABLED
#define PM_CENTRAL_ENABLED 1
#endif
// <q> PM_SERVICE_CHANGED_ENABLED - Enable/disable the service changed management for GATT server in Peer Manager.
// <i> If not using a GATT server, or using a server wihout a service changed characteristic,
// <i> disable this to save code space.
#ifndef PM_SERVICE_CHANGED_ENABLED
#define PM_SERVICE_CHANGED_ENABLED 1
#endif
// <q> PM_PEER_RANKS_ENABLED - Enable/disable the peer rank management in Peer Manager.
// <i> Set this to false to save code space if not using the peer rank API.
#ifndef PM_PEER_RANKS_ENABLED
#define PM_PEER_RANKS_ENABLED 1
#endif
// <q> PM_LESC_ENABLED - Enable/disable LESC support in Peer Manager.
// <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.
#ifndef PM_LESC_ENABLED
#define PM_LESC_ENABLED 0
#endif
// <e> PM_RA_PROTECTION_ENABLED - Enable/disable protection against repeated pairing attempts in Peer Manager.
//==========================================================
#ifndef PM_RA_PROTECTION_ENABLED
#define PM_RA_PROTECTION_ENABLED 0
#endif
// <o> PM_RA_PROTECTION_TRACKED_PEERS_NUM - Maximum number of peers whose authorization status can be tracked.
#ifndef PM_RA_PROTECTION_TRACKED_PEERS_NUM
#define PM_RA_PROTECTION_TRACKED_PEERS_NUM 8
#endif
// <o> PM_RA_PROTECTION_MIN_WAIT_INTERVAL - Minimum waiting interval (in ms) before a new pairing attempt can be initiated.
#ifndef PM_RA_PROTECTION_MIN_WAIT_INTERVAL
#define PM_RA_PROTECTION_MIN_WAIT_INTERVAL 4000
#endif
// <o> PM_RA_PROTECTION_MAX_WAIT_INTERVAL - Maximum waiting interval (in ms) before a new pairing attempt can be initiated.
#ifndef PM_RA_PROTECTION_MAX_WAIT_INTERVAL
#define PM_RA_PROTECTION_MAX_WAIT_INTERVAL 64000
#endif
// <o> PM_RA_PROTECTION_REWARD_PERIOD - Reward period (in ms).
// <i> The waiting interval is gradually decreased when no new failed pairing attempts are made during reward period.
#ifndef PM_RA_PROTECTION_REWARD_PERIOD
#define PM_RA_PROTECTION_REWARD_PERIOD 10000
#endif
// </e>
// <o> PM_HANDLER_SEC_DELAY_MS - Delay before starting security.
// <i> This might be necessary for interoperability reasons, especially as peripheral.
#ifndef PM_HANDLER_SEC_DELAY_MS
#define PM_HANDLER_SEC_DELAY_MS 0
#endif
// </e>
// </h>
//==========================================================
// <h> nRF_BLE_Services
//==========================================================
// <q> BLE_ANCS_C_ENABLED - ble_ancs_c - Apple Notification Service Client
#ifndef BLE_ANCS_C_ENABLED
#define BLE_ANCS_C_ENABLED 0
#endif
// <q> BLE_ANS_C_ENABLED - ble_ans_c - Alert Notification Service Client
#ifndef BLE_ANS_C_ENABLED
#define BLE_ANS_C_ENABLED 0
#endif
// <q> BLE_BAS_C_ENABLED - ble_bas_c - Battery Service Client
#ifndef BLE_BAS_C_ENABLED
#define BLE_BAS_C_ENABLED 0
#endif
// <e> BLE_BAS_ENABLED - ble_bas - Battery Service
//==========================================================
#ifndef BLE_BAS_ENABLED
#define BLE_BAS_ENABLED 0
#endif
// <e> BLE_BAS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef BLE_BAS_CONFIG_LOG_ENABLED
#define BLE_BAS_CONFIG_LOG_ENABLED 0
#endif
// <o> BLE_BAS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef BLE_BAS_CONFIG_LOG_LEVEL
#define BLE_BAS_CONFIG_LOG_LEVEL 3
#endif
// <o> BLE_BAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_BAS_CONFIG_INFO_COLOR
#define BLE_BAS_CONFIG_INFO_COLOR 0
#endif
// <o> BLE_BAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_BAS_CONFIG_DEBUG_COLOR
#define BLE_BAS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <q> BLE_CSCS_ENABLED - ble_cscs - Cycling Speed and Cadence Service
#ifndef BLE_CSCS_ENABLED
#define BLE_CSCS_ENABLED 0
#endif
// <q> BLE_CTS_C_ENABLED - ble_cts_c - Current Time Service Client
#ifndef BLE_CTS_C_ENABLED
#define BLE_CTS_C_ENABLED 0
#endif
// <q> BLE_DIS_ENABLED - ble_dis - Device Information Service
#ifndef BLE_DIS_ENABLED
#define BLE_DIS_ENABLED 0
#endif
// <q> BLE_GLS_ENABLED - ble_gls - Glucose Service
#ifndef BLE_GLS_ENABLED
#define BLE_GLS_ENABLED 0
#endif
// <q> BLE_HIDS_ENABLED - ble_hids - Human Interface Device Service
#ifndef BLE_HIDS_ENABLED
#define BLE_HIDS_ENABLED 0
#endif
// <q> BLE_HRS_C_ENABLED - ble_hrs_c - Heart Rate Service Client
#ifndef BLE_HRS_C_ENABLED
#define BLE_HRS_C_ENABLED 0
#endif
// <q> BLE_HRS_ENABLED - ble_hrs - Heart Rate Service
#ifndef BLE_HRS_ENABLED
#define BLE_HRS_ENABLED 0
#endif
// <q> BLE_HTS_ENABLED - ble_hts - Health Thermometer Service
#ifndef BLE_HTS_ENABLED
#define BLE_HTS_ENABLED 0
#endif
// <q> BLE_IAS_C_ENABLED - ble_ias_c - Immediate Alert Service Client
#ifndef BLE_IAS_C_ENABLED
#define BLE_IAS_C_ENABLED 0
#endif
// <e> BLE_IAS_ENABLED - ble_ias - Immediate Alert Service
//==========================================================
#ifndef BLE_IAS_ENABLED
#define BLE_IAS_ENABLED 0
#endif
// <e> BLE_IAS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef BLE_IAS_CONFIG_LOG_ENABLED
#define BLE_IAS_CONFIG_LOG_ENABLED 0
#endif
// <o> BLE_IAS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef BLE_IAS_CONFIG_LOG_LEVEL
#define BLE_IAS_CONFIG_LOG_LEVEL 3
#endif
// <o> BLE_IAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_IAS_CONFIG_INFO_COLOR
#define BLE_IAS_CONFIG_INFO_COLOR 0
#endif
// <o> BLE_IAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_IAS_CONFIG_DEBUG_COLOR
#define BLE_IAS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <q> BLE_LBS_C_ENABLED - ble_lbs_c - Nordic LED Button Service Client
#ifndef BLE_LBS_C_ENABLED
#define BLE_LBS_C_ENABLED 0
#endif
// <q> BLE_LBS_ENABLED - ble_lbs - LED Button Service
#ifndef BLE_LBS_ENABLED
#define BLE_LBS_ENABLED 0
#endif
// <q> BLE_LLS_ENABLED - ble_lls - Link Loss Service
#ifndef BLE_LLS_ENABLED
#define BLE_LLS_ENABLED 0
#endif
// <q> BLE_NUS_C_ENABLED - ble_nus_c - Nordic UART Central Service
#ifndef BLE_NUS_C_ENABLED
#define BLE_NUS_C_ENABLED 0
#endif
// <e> BLE_NUS_ENABLED - ble_nus - Nordic UART Service
//==========================================================
#ifndef BLE_NUS_ENABLED
#define BLE_NUS_ENABLED 0
#endif
// <e> BLE_NUS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef BLE_NUS_CONFIG_LOG_ENABLED
#define BLE_NUS_CONFIG_LOG_ENABLED 0
#endif
// <o> BLE_NUS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef BLE_NUS_CONFIG_LOG_LEVEL
#define BLE_NUS_CONFIG_LOG_LEVEL 3
#endif
// <o> BLE_NUS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_NUS_CONFIG_INFO_COLOR
#define BLE_NUS_CONFIG_INFO_COLOR 0
#endif
// <o> BLE_NUS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef BLE_NUS_CONFIG_DEBUG_COLOR
#define BLE_NUS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <q> BLE_RSCS_C_ENABLED - ble_rscs_c - Running Speed and Cadence Client
#ifndef BLE_RSCS_C_ENABLED
#define BLE_RSCS_C_ENABLED 0
#endif
// <q> BLE_RSCS_ENABLED - ble_rscs - Running Speed and Cadence Service
#ifndef BLE_RSCS_ENABLED
#define BLE_RSCS_ENABLED 0
#endif
// <q> BLE_TPS_ENABLED - ble_tps - TX Power Service
#ifndef BLE_TPS_ENABLED
#define BLE_TPS_ENABLED 0
#endif
// </h>
//==========================================================
// <h> nRF_Core
//==========================================================
// <e> NRF_MPU_ENABLED - nrf_mpu - Module for MPU
//==========================================================
#ifndef NRF_MPU_ENABLED
#define NRF_MPU_ENABLED 0
#endif
// <q> NRF_MPU_CLI_CMDS - Enable CLI commands specific to the module.
#ifndef NRF_MPU_CLI_CMDS
#define NRF_MPU_CLI_CMDS 0
#endif
// </e>
// <e> NRF_STACK_GUARD_ENABLED - nrf_stack_guard - Stack guard
//==========================================================
#ifndef NRF_STACK_GUARD_ENABLED
#define NRF_STACK_GUARD_ENABLED 0
#endif
// <o> NRF_STACK_GUARD_CONFIG_SIZE - Size of the stack guard.
// <5=> 32 bytes
// <6=> 64 bytes
// <7=> 128 bytes
// <8=> 256 bytes
// <9=> 512 bytes
// <10=> 1024 bytes
// <11=> 2048 bytes
// <12=> 4096 bytes
#ifndef NRF_STACK_GUARD_CONFIG_SIZE
#define NRF_STACK_GUARD_CONFIG_SIZE 7
#endif
// </e>
// </h>
//==========================================================
// <h> nRF_Crypto
//==========================================================
// <e> NRF_CRYPTO_ENABLED - nrf_crypto - Cryptography library.
//==========================================================
#ifndef NRF_CRYPTO_ENABLED
#define NRF_CRYPTO_ENABLED 1
#endif
// <o> NRF_CRYPTO_ALLOCATOR - Memory allocator
// <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.
// <0=> Default
// <1=> User macros
// <2=> On stack (alloca)
// <3=> C dynamic memory (malloc)
// <4=> SDK Memory Manager (nrf_malloc)
#ifndef NRF_CRYPTO_ALLOCATOR
#define NRF_CRYPTO_ALLOCATOR 0
#endif
// <e> NRF_CRYPTO_BACKEND_CC310_BL_ENABLED - Enable the ARM Cryptocell CC310 reduced backend.
// <i> The CC310 hardware-accelerated cryptography backend with reduced functionality and footprint (only available on nRF52840).
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310_BL.
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310_BL.
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED - CC310_BL SHA-256 hash functionality.
// <i> CC310_BL backend implementation for hardware-accelerated SHA-256.
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED - nrf_cc310_bl buffers to RAM before running hash operation
// <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
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED 0
#endif
// <o> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE - nrf_cc310_bl hash outputs digests in little endian
// <i> Makes the nrf_cc310_bl hash functions output digests in little endian format. Only for use in nRF SDK DFU!
#ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
#define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE 4096
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_CC310_ENABLED - Enable the ARM Cryptocell CC310 backend.
// <i> The CC310 hardware-accelerated cryptography backend (only available on nRF52840).
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_CC310_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED - Enable the AES CBC mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED - Enable the AES CTR mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED - Enable the AES ECB mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED - Enable the AES CBC_MAC mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED - Enable the AES CMAC mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED - Enable the AES CCM mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED - Enable the AES CCM* mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED - Enable the secp160r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED - Enable the secp160r2 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED - Enable the secp192r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED - Enable the secp384r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED - Enable the secp521r1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED - Enable the secp160k1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED - Enable the secp192k1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED - Enable the secp224k1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED - Enable the secp256k1 elliptic curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED - CC310 SHA-256 hash functionality.
// <i> CC310 backend implementation for hardware-accelerated SHA-256.
#ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED - CC310 SHA-512 hash functionality
// <i> CC310 backend implementation for SHA-512 (in software).
#ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED - CC310 HMAC using SHA-256
// <i> CC310 backend implementation for HMAC using hardware-accelerated SHA-256.
#ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED - CC310 HMAC using SHA-512
// <i> CC310 backend implementation for HMAC using SHA-512 (in software).
#ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED - Enable RNG support using CC310.
#ifndef NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED
#define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_CIFRA_ENABLED - Enable the Cifra backend.
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_CIFRA_ENABLED
#define NRF_CRYPTO_BACKEND_CIFRA_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED - Enable the AES EAX mode using Cifra.
#ifndef NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED
#define NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED - Enable the mbed TLS backend.
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED - Enable the AES CBC mode mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED - Enable the AES CTR mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED - Enable the AES CFB mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED - Enable the AES ECB mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED - Enable the AES CBC MAC mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED - Enable the AES CMAC mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED - Enable the AES CCM mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED - Enable the AES GCM mode using mbed TLS.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
// <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
// <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
// <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED - Enable secp384r1 (NIST 384-bit) curve
// <i> Enable this setting if you need secp384r1 (NIST 384-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED - Enable secp521r1 (NIST 521-bit) curve
// <i> Enable this setting if you need secp521r1 (NIST 521-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED - Enable secp192k1 (Koblitz 192-bit) curve
// <i> Enable this setting if you need secp192k1 (Koblitz 192-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED - Enable secp224k1 (Koblitz 224-bit) curve
// <i> Enable this setting if you need secp224k1 (Koblitz 224-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
// <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED - Enable bp256r1 (Brainpool 256-bit) curve
// <i> Enable this setting if you need bp256r1 (Brainpool 256-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED - Enable bp384r1 (Brainpool 384-bit) curve
// <i> Enable this setting if you need bp384r1 (Brainpool 384-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED - Enable bp512r1 (Brainpool 512-bit) curve
// <i> Enable this setting if you need bp512r1 (Brainpool 512-bit) support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED - Enable Curve25519 curve
// <i> Enable this setting if you need Curve25519 support using MBEDTLS
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED - Enable mbed TLS SHA-256 hash functionality.
// <i> mbed TLS backend implementation for SHA-256.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED - Enable mbed TLS SHA-512 hash functionality.
// <i> mbed TLS backend implementation for SHA-512.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED - Enable mbed TLS HMAC using SHA-256.
// <i> mbed TLS backend implementation for HMAC using SHA-256.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED - Enable mbed TLS HMAC using SHA-512.
// <i> mbed TLS backend implementation for HMAC using SHA-512.
#ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED - Enable the micro-ecc backend.
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED
#define NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
// <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using micro-ecc
#ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED
#define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
// <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using micro-ecc
#ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED
#define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
// <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using micro-ecc
#ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
// <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using micro-ecc
#ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED
#define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED - Enable the nRF HW RNG backend.
// <i> The nRF HW backend provide access to RNG peripheral in nRF5x devices.
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED
#define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED - Enable mbed TLS CTR-DRBG algorithm.
// <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.
#ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED
#define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_NRF_SW_ENABLED - Enable the legacy nRFx sw for crypto.
// <i> The nRF SW cryptography backend (only used in bootloader context).
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_NRF_SW_ENABLED
#define NRF_CRYPTO_BACKEND_NRF_SW_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED - nRF SW hash backend support for SHA-256
// <i> The nRF SW backend provide access to nRF SDK legacy hash implementation of SHA-256.
#ifndef NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED 1
#endif
// </e>
// <e> NRF_CRYPTO_BACKEND_OBERON_ENABLED - Enable the Oberon backend
// <i> The Oberon backend
//==========================================================
#ifndef NRF_CRYPTO_BACKEND_OBERON_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_ENABLED 0
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using Oberon.
#ifndef NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED - Enable secp256r1 curve
// <i> Enable this setting if you need secp256r1 curve support using Oberon library
#ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED - Enable Curve25519 ECDH
// <i> Enable this setting if you need Curve25519 ECDH support using Oberon library
#ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED - Enable Ed25519 signature scheme
// <i> Enable this setting if you need Ed25519 support using Oberon library
#ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED - Oberon SHA-256 hash functionality
// <i> Oberon backend implementation for SHA-256.
#ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED - Oberon SHA-512 hash functionality
// <i> Oberon backend implementation for SHA-512.
#ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED - Oberon HMAC using SHA-256
// <i> Oberon backend implementation for HMAC using SHA-256.
#ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED 1
#endif
// <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED - Oberon HMAC using SHA-512
// <i> Oberon backend implementation for HMAC using SHA-512.
#ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED
#define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED 1
#endif
// </e>
// <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data
// <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0.
#ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED
#define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0
#endif
// </e>
// </h>
//==========================================================
// <h> nRF_DFU
//==========================================================
// <h> ble_dfu - Device Firmware Update
//==========================================================
// <q> BLE_DFU_ENABLED - Enable DFU Service.
#ifndef BLE_DFU_ENABLED
#define BLE_DFU_ENABLED 0
#endif
// <q> NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS - Buttonless DFU supports bonds.
#ifndef NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS
#define NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS 0
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// <h> nRF_Drivers
//==========================================================
// <e> COMP_ENABLED - nrf_drv_comp - COMP peripheral driver - legacy layer
//==========================================================
#ifndef COMP_ENABLED
#define COMP_ENABLED 0
#endif
// <o> COMP_CONFIG_REF - Reference voltage
// <0=> Internal 1.2V
// <1=> Internal 1.8V
// <2=> Internal 2.4V
// <4=> VDD
// <7=> ARef
#ifndef COMP_CONFIG_REF
#define COMP_CONFIG_REF 1
#endif
// <o> COMP_CONFIG_MAIN_MODE - Main mode
// <0=> Single ended
// <1=> Differential
#ifndef COMP_CONFIG_MAIN_MODE
#define COMP_CONFIG_MAIN_MODE 0
#endif
// <o> COMP_CONFIG_SPEED_MODE - Speed mode
// <0=> Low power
// <1=> Normal
// <2=> High speed
#ifndef COMP_CONFIG_SPEED_MODE
#define COMP_CONFIG_SPEED_MODE 2
#endif
// <o> COMP_CONFIG_HYST - Hystheresis
// <0=> No
// <1=> 50mV
#ifndef COMP_CONFIG_HYST
#define COMP_CONFIG_HYST 0
#endif
// <o> COMP_CONFIG_ISOURCE - Current Source
// <0=> Off
// <1=> 2.5 uA
// <2=> 5 uA
// <3=> 10 uA
#ifndef COMP_CONFIG_ISOURCE
#define COMP_CONFIG_ISOURCE 0
#endif
// <o> COMP_CONFIG_INPUT - Analog input
// <0=> 0
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef COMP_CONFIG_INPUT
#define COMP_CONFIG_INPUT 0
#endif
// <o> COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef COMP_CONFIG_IRQ_PRIORITY
#define COMP_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <q> EGU_ENABLED - nrf_drv_swi - SWI(EGU) peripheral driver - legacy layer
#ifndef EGU_ENABLED
#define EGU_ENABLED 0
#endif
// <e> GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver - legacy layer
//==========================================================
#ifndef GPIOTE_ENABLED
#define GPIOTE_ENABLED 1
#endif
// <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
#ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4
#endif
// <o> GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef GPIOTE_CONFIG_IRQ_PRIORITY
#define GPIOTE_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> I2S_ENABLED - nrf_drv_i2s - I2S peripheral driver - legacy layer
//==========================================================
#ifndef I2S_ENABLED
#define I2S_ENABLED 0
#endif
// <o> I2S_CONFIG_SCK_PIN - SCK pin <0-31>
#ifndef I2S_CONFIG_SCK_PIN
#define I2S_CONFIG_SCK_PIN 31
#endif
// <o> I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
#ifndef I2S_CONFIG_LRCK_PIN
#define I2S_CONFIG_LRCK_PIN 30
#endif
// <o> I2S_CONFIG_MCK_PIN - MCK pin
#ifndef I2S_CONFIG_MCK_PIN
#define I2S_CONFIG_MCK_PIN 255
#endif
// <o> I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
#ifndef I2S_CONFIG_SDOUT_PIN
#define I2S_CONFIG_SDOUT_PIN 29
#endif
// <o> I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
#ifndef I2S_CONFIG_SDIN_PIN
#define I2S_CONFIG_SDIN_PIN 28
#endif
// <o> I2S_CONFIG_MASTER - Mode
// <0=> Master
// <1=> Slave
#ifndef I2S_CONFIG_MASTER
#define I2S_CONFIG_MASTER 0
#endif
// <o> I2S_CONFIG_FORMAT - Format
// <0=> I2S
// <1=> Aligned
#ifndef I2S_CONFIG_FORMAT
#define I2S_CONFIG_FORMAT 0
#endif
// <o> I2S_CONFIG_ALIGN - Alignment
// <0=> Left
// <1=> Right
#ifndef I2S_CONFIG_ALIGN
#define I2S_CONFIG_ALIGN 0
#endif
// <o> I2S_CONFIG_SWIDTH - Sample width (bits)
// <0=> 8
// <1=> 16
// <2=> 24
#ifndef I2S_CONFIG_SWIDTH
#define I2S_CONFIG_SWIDTH 1
#endif
// <o> I2S_CONFIG_CHANNELS - Channels
// <0=> Stereo
// <1=> Left
// <2=> Right
#ifndef I2S_CONFIG_CHANNELS
#define I2S_CONFIG_CHANNELS 1
#endif
// <o> I2S_CONFIG_MCK_SETUP - MCK behavior
// <0=> Disabled
// <2147483648=> 32MHz/2
// <1342177280=> 32MHz/3
// <1073741824=> 32MHz/4
// <805306368=> 32MHz/5
// <671088640=> 32MHz/6
// <536870912=> 32MHz/8
// <402653184=> 32MHz/10
// <369098752=> 32MHz/11
// <285212672=> 32MHz/15
// <268435456=> 32MHz/16
// <201326592=> 32MHz/21
// <184549376=> 32MHz/23
// <142606336=> 32MHz/30
// <138412032=> 32MHz/31
// <134217728=> 32MHz/32
// <100663296=> 32MHz/42
// <68157440=> 32MHz/63
// <34340864=> 32MHz/125
#ifndef I2S_CONFIG_MCK_SETUP
#define I2S_CONFIG_MCK_SETUP 536870912
#endif
// <o> I2S_CONFIG_RATIO - MCK/LRCK ratio
// <0=> 32x
// <1=> 48x
// <2=> 64x
// <3=> 96x
// <4=> 128x
// <5=> 192x
// <6=> 256x
// <7=> 384x
// <8=> 512x
#ifndef I2S_CONFIG_RATIO
#define I2S_CONFIG_RATIO 2000
#endif
// <o> I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef I2S_CONFIG_IRQ_PRIORITY
#define I2S_CONFIG_IRQ_PRIORITY 6
#endif
// <e> I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef I2S_CONFIG_LOG_ENABLED
#define I2S_CONFIG_LOG_ENABLED 0
#endif
// <o> I2S_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef I2S_CONFIG_LOG_LEVEL
#define I2S_CONFIG_LOG_LEVEL 3
#endif
// <o> I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef I2S_CONFIG_INFO_COLOR
#define I2S_CONFIG_INFO_COLOR 0
#endif
// <o> I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef I2S_CONFIG_DEBUG_COLOR
#define I2S_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> LPCOMP_ENABLED - nrf_drv_lpcomp - LPCOMP peripheral driver - legacy layer
//==========================================================
#ifndef LPCOMP_ENABLED
#define LPCOMP_ENABLED 0
#endif
// <o> LPCOMP_CONFIG_REFERENCE - Reference voltage
// <0=> Supply 1/8
// <1=> Supply 2/8
// <2=> Supply 3/8
// <3=> Supply 4/8
// <4=> Supply 5/8
// <5=> Supply 6/8
// <6=> Supply 7/8
// <8=> Supply 1/16 (nRF52)
// <9=> Supply 3/16 (nRF52)
// <10=> Supply 5/16 (nRF52)
// <11=> Supply 7/16 (nRF52)
// <12=> Supply 9/16 (nRF52)
// <13=> Supply 11/16 (nRF52)
// <14=> Supply 13/16 (nRF52)
// <15=> Supply 15/16 (nRF52)
// <7=> External Ref 0
// <65543=> External Ref 1
#ifndef LPCOMP_CONFIG_REFERENCE
#define LPCOMP_CONFIG_REFERENCE 3
#endif
// <o> LPCOMP_CONFIG_DETECTION - Detection
// <0=> Crossing
// <1=> Up
// <2=> Down
#ifndef LPCOMP_CONFIG_DETECTION
#define LPCOMP_CONFIG_DETECTION 2
#endif
// <o> LPCOMP_CONFIG_INPUT - Analog input
// <0=> 0
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef LPCOMP_CONFIG_INPUT
#define LPCOMP_CONFIG_INPUT 0
#endif
// <q> LPCOMP_CONFIG_HYST - Hysteresis
#ifndef LPCOMP_CONFIG_HYST
#define LPCOMP_CONFIG_HYST 0
#endif
// <o> LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef LPCOMP_CONFIG_IRQ_PRIORITY
#define LPCOMP_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
//==========================================================
#ifndef NRFX_CLOCK_ENABLED
#define NRFX_CLOCK_ENABLED 1
#endif
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
// <0=> RC
// <1=> XTAL
// <2=> Synth
// <131073=> External Low Swing
// <196609=> External Full Swing
#ifndef NRFX_CLOCK_CONFIG_LF_SRC
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#endif
// <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
//==========================================================
#ifndef NRFX_COMP_ENABLED
#define NRFX_COMP_ENABLED 0
#endif
// <o> NRFX_COMP_CONFIG_REF - Reference voltage
// <0=> Internal 1.2V
// <1=> Internal 1.8V
// <2=> Internal 2.4V
// <4=> VDD
// <7=> ARef
#ifndef NRFX_COMP_CONFIG_REF
#define NRFX_COMP_CONFIG_REF 1
#endif
// <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
// <0=> Single ended
// <1=> Differential
#ifndef NRFX_COMP_CONFIG_MAIN_MODE
#define NRFX_COMP_CONFIG_MAIN_MODE 0
#endif
// <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
// <0=> Low power
// <1=> Normal
// <2=> High speed
#ifndef NRFX_COMP_CONFIG_SPEED_MODE
#define NRFX_COMP_CONFIG_SPEED_MODE 2
#endif
// <o> NRFX_COMP_CONFIG_HYST - Hystheresis
// <0=> No
// <1=> 50mV
#ifndef NRFX_COMP_CONFIG_HYST
#define NRFX_COMP_CONFIG_HYST 0
#endif
// <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
// <0=> Off
// <1=> 2.5 uA
// <2=> 5 uA
// <3=> 10 uA
#ifndef NRFX_COMP_CONFIG_ISOURCE
#define NRFX_COMP_CONFIG_ISOURCE 0
#endif
// <o> NRFX_COMP_CONFIG_INPUT - Analog input
// <0=> 0
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_COMP_CONFIG_INPUT
#define NRFX_COMP_CONFIG_INPUT 0
#endif
// <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
#define NRFX_COMP_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_COMP_CONFIG_LOG_ENABLED
#define NRFX_COMP_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_COMP_CONFIG_LOG_LEVEL
#define NRFX_COMP_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_COMP_CONFIG_INFO_COLOR
#define NRFX_COMP_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
#define NRFX_COMP_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
//==========================================================
#ifndef NRFX_GPIOTE_ENABLED
#define NRFX_GPIOTE_ENABLED 1
#endif
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif
// <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver
//==========================================================
#ifndef NRFX_I2S_ENABLED
#define NRFX_I2S_ENABLED 0
#endif
// <o> NRFX_I2S_CONFIG_SCK_PIN - SCK pin <0-31>
#ifndef NRFX_I2S_CONFIG_SCK_PIN
#define NRFX_I2S_CONFIG_SCK_PIN 31
#endif
// <o> NRFX_I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
#ifndef NRFX_I2S_CONFIG_LRCK_PIN
#define NRFX_I2S_CONFIG_LRCK_PIN 30
#endif
// <o> NRFX_I2S_CONFIG_MCK_PIN - MCK pin
#ifndef NRFX_I2S_CONFIG_MCK_PIN
#define NRFX_I2S_CONFIG_MCK_PIN 255
#endif
// <o> NRFX_I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
#ifndef NRFX_I2S_CONFIG_SDOUT_PIN
#define NRFX_I2S_CONFIG_SDOUT_PIN 29
#endif
// <o> NRFX_I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
#ifndef NRFX_I2S_CONFIG_SDIN_PIN
#define NRFX_I2S_CONFIG_SDIN_PIN 28
#endif
// <o> NRFX_I2S_CONFIG_MASTER - Mode
// <0=> Master
// <1=> Slave
#ifndef NRFX_I2S_CONFIG_MASTER
#define NRFX_I2S_CONFIG_MASTER 0
#endif
// <o> NRFX_I2S_CONFIG_FORMAT - Format
// <0=> I2S
// <1=> Aligned
#ifndef NRFX_I2S_CONFIG_FORMAT
#define NRFX_I2S_CONFIG_FORMAT 0
#endif
// <o> NRFX_I2S_CONFIG_ALIGN - Alignment
// <0=> Left
// <1=> Right
#ifndef NRFX_I2S_CONFIG_ALIGN
#define NRFX_I2S_CONFIG_ALIGN 0
#endif
// <o> NRFX_I2S_CONFIG_SWIDTH - Sample width (bits)
// <0=> 8
// <1=> 16
// <2=> 24
#ifndef NRFX_I2S_CONFIG_SWIDTH
#define NRFX_I2S_CONFIG_SWIDTH 1
#endif
// <o> NRFX_I2S_CONFIG_CHANNELS - Channels
// <0=> Stereo
// <1=> Left
// <2=> Right
#ifndef NRFX_I2S_CONFIG_CHANNELS
#define NRFX_I2S_CONFIG_CHANNELS 1
#endif
// <o> NRFX_I2S_CONFIG_MCK_SETUP - MCK behavior
// <0=> Disabled
// <2147483648=> 32MHz/2
// <1342177280=> 32MHz/3
// <1073741824=> 32MHz/4
// <805306368=> 32MHz/5
// <671088640=> 32MHz/6
// <536870912=> 32MHz/8
// <402653184=> 32MHz/10
// <369098752=> 32MHz/11
// <285212672=> 32MHz/15
// <268435456=> 32MHz/16
// <201326592=> 32MHz/21
// <184549376=> 32MHz/23
// <142606336=> 32MHz/30
// <138412032=> 32MHz/31
// <134217728=> 32MHz/32
// <100663296=> 32MHz/42
// <68157440=> 32MHz/63
// <34340864=> 32MHz/125
#ifndef NRFX_I2S_CONFIG_MCK_SETUP
#define NRFX_I2S_CONFIG_MCK_SETUP 536870912
#endif
// <o> NRFX_I2S_CONFIG_RATIO - MCK/LRCK ratio
// <0=> 32x
// <1=> 48x
// <2=> 64x
// <3=> 96x
// <4=> 128x
// <5=> 192x
// <6=> 256x
// <7=> 384x
// <8=> 512x
#ifndef NRFX_I2S_CONFIG_RATIO
#define NRFX_I2S_CONFIG_RATIO 2000
#endif
// <o> NRFX_I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_I2S_CONFIG_IRQ_PRIORITY
#define NRFX_I2S_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_I2S_CONFIG_LOG_ENABLED
#define NRFX_I2S_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_I2S_CONFIG_LOG_LEVEL
#define NRFX_I2S_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_I2S_CONFIG_INFO_COLOR
#define NRFX_I2S_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_I2S_CONFIG_DEBUG_COLOR
#define NRFX_I2S_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
//==========================================================
#ifndef NRFX_LPCOMP_ENABLED
#define NRFX_LPCOMP_ENABLED 0
#endif
// <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage
// <0=> Supply 1/8
// <1=> Supply 2/8
// <2=> Supply 3/8
// <3=> Supply 4/8
// <4=> Supply 5/8
// <5=> Supply 6/8
// <6=> Supply 7/8
// <8=> Supply 1/16 (nRF52)
// <9=> Supply 3/16 (nRF52)
// <10=> Supply 5/16 (nRF52)
// <11=> Supply 7/16 (nRF52)
// <12=> Supply 9/16 (nRF52)
// <13=> Supply 11/16 (nRF52)
// <14=> Supply 13/16 (nRF52)
// <15=> Supply 15/16 (nRF52)
// <7=> External Ref 0
// <65543=> External Ref 1
#ifndef NRFX_LPCOMP_CONFIG_REFERENCE
#define NRFX_LPCOMP_CONFIG_REFERENCE 3
#endif
// <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection
// <0=> Crossing
// <1=> Up
// <2=> Down
#ifndef NRFX_LPCOMP_CONFIG_DETECTION
#define NRFX_LPCOMP_CONFIG_DETECTION 2
#endif
// <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input
// <0=> 0
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_LPCOMP_CONFIG_INPUT
#define NRFX_LPCOMP_CONFIG_INPUT 0
#endif
// <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis
#ifndef NRFX_LPCOMP_CONFIG_HYST
#define NRFX_LPCOMP_CONFIG_HYST 0
#endif
// <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY
#define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
#define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
#define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR
#define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
#define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
//==========================================================
#ifndef NRFX_PDM_ENABLED
#define NRFX_PDM_ENABLED 0
#endif
// <o> NRFX_PDM_CONFIG_MODE - Mode
// <0=> Stereo
// <1=> Mono
#ifndef NRFX_PDM_CONFIG_MODE
#define NRFX_PDM_CONFIG_MODE 1
#endif
// <o> NRFX_PDM_CONFIG_EDGE - Edge
// <0=> Left falling
// <1=> Left rising
#ifndef NRFX_PDM_CONFIG_EDGE
#define NRFX_PDM_CONFIG_EDGE 0
#endif
// <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
// <134217728=> 1000k
// <138412032=> 1032k (default)
// <142606336=> 1067k
#ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
#define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
#endif
// <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
#define NRFX_PDM_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_PDM_CONFIG_LOG_ENABLED
#define NRFX_PDM_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_PDM_CONFIG_LOG_LEVEL
#define NRFX_PDM_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PDM_CONFIG_INFO_COLOR
#define NRFX_PDM_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
#define NRFX_PDM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
//==========================================================
#ifndef NRFX_POWER_ENABLED
#define NRFX_POWER_ENABLED 0
#endif
// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
#define NRFX_POWER_CONFIG_IRQ_PRIORITY 6
#endif
// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
#endif
// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
#endif
// </e>
// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
//==========================================================
#ifndef NRFX_PPI_ENABLED
#define NRFX_PPI_ENABLED 0
#endif
// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_PPI_CONFIG_LOG_ENABLED
#define NRFX_PPI_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_PPI_CONFIG_LOG_LEVEL
#define NRFX_PPI_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PPI_CONFIG_INFO_COLOR
#define NRFX_PPI_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
#define NRFX_PPI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
//==========================================================
#ifndef NRFX_PRS_ENABLED
#define NRFX_PRS_ENABLED 1
#endif
// <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
#ifndef NRFX_PRS_BOX_0_ENABLED
#define NRFX_PRS_BOX_0_ENABLED 0
#endif
// <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
#ifndef NRFX_PRS_BOX_1_ENABLED
#define NRFX_PRS_BOX_1_ENABLED 0
#endif
// <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module.
#ifndef NRFX_PRS_BOX_2_ENABLED
#define NRFX_PRS_BOX_2_ENABLED 0
#endif
// <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module.
#ifndef NRFX_PRS_BOX_3_ENABLED
#define NRFX_PRS_BOX_3_ENABLED 0
#endif
// <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module.
#ifndef NRFX_PRS_BOX_4_ENABLED
#define NRFX_PRS_BOX_4_ENABLED 1
#endif
// <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
#define NRFX_PRS_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
#define NRFX_PRS_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PRS_CONFIG_INFO_COLOR
#define NRFX_PRS_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
//==========================================================
#ifndef NRFX_PWM_ENABLED
#define NRFX_PWM_ENABLED 0
#endif
// <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
#ifndef NRFX_PWM0_ENABLED
#define NRFX_PWM0_ENABLED 0
#endif
// <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
#ifndef NRFX_PWM1_ENABLED
#define NRFX_PWM1_ENABLED 0
#endif
// <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
#ifndef NRFX_PWM2_ENABLED
#define NRFX_PWM2_ENABLED 0
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
#define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
#define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
#define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
#define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
// <0=> 16 MHz
// <1=> 8 MHz
// <2=> 4 MHz
// <3=> 2 MHz
// <4=> 1 MHz
// <5=> 500 kHz
// <6=> 250 kHz
// <7=> 125 kHz
#ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
#define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
// <0=> Up
// <1=> Up and Down
#ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
#define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
#ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
#define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
// <0=> Common
// <1=> Grouped
// <2=> Individual
// <3=> Waveform
#ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
#define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
// <0=> Auto
// <1=> Triggered
#ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
#define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
#endif
// <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_PWM_CONFIG_LOG_ENABLED
#define NRFX_PWM_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_PWM_CONFIG_LOG_LEVEL
#define NRFX_PWM_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PWM_CONFIG_INFO_COLOR
#define NRFX_PWM_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
#define NRFX_PWM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for PWM.
// <i> The workaround uses interrupts to wake up the CPU and ensure
// <i> it is active when PWM is about to start a DMA transfer. For
// <i> initial transfer, done when a playback is started via PPI,
// <i> a specific EGU instance is used to generate the interrupt.
// <i> During the playback, the PWM interrupt triggered on SEQEND
// <i> event of a preceding sequence is used to protect the transfer
// <i> done for the next sequence to be played.
//==========================================================
#ifndef NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// <o> NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE - EGU instance used by the nRF52 Anomaly 109 workaround for PWM.
// <0=> EGU0
// <1=> EGU1
// <2=> EGU2
// <3=> EGU3
// <4=> EGU4
// <5=> EGU5
#ifndef NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE
#define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5
#endif
// </e>
// </e>
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
//==========================================================
#ifndef NRFX_QDEC_ENABLED
#define NRFX_QDEC_ENABLED 0
#endif
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
// <0=> 10 Samples
// <1=> 40 Samples
// <2=> 80 Samples
// <3=> 120 Samples
// <4=> 160 Samples
// <5=> 200 Samples
// <6=> 240 Samples
// <7=> 280 Samples
#ifndef NRFX_QDEC_CONFIG_REPORTPER
#define NRFX_QDEC_CONFIG_REPORTPER 0
#endif
// <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
// <0=> 128 us
// <1=> 256 us
// <2=> 512 us
// <3=> 1024 us
// <4=> 2048 us
// <5=> 4096 us
// <6=> 8192 us
// <7=> 16384 us
#ifndef NRFX_QDEC_CONFIG_SAMPLEPER
#define NRFX_QDEC_CONFIG_SAMPLEPER 7
#endif
// <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
#ifndef NRFX_QDEC_CONFIG_PIO_A
#define NRFX_QDEC_CONFIG_PIO_A 31
#endif
// <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
#ifndef NRFX_QDEC_CONFIG_PIO_B
#define NRFX_QDEC_CONFIG_PIO_B 31
#endif
// <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
#ifndef NRFX_QDEC_CONFIG_PIO_LED
#define NRFX_QDEC_CONFIG_PIO_LED 31
#endif
// <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
#ifndef NRFX_QDEC_CONFIG_LEDPRE
#define NRFX_QDEC_CONFIG_LEDPRE 511
#endif
// <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
// <0=> Active low
// <1=> Active high
#ifndef NRFX_QDEC_CONFIG_LEDPOL
#define NRFX_QDEC_CONFIG_LEDPOL 1
#endif
// <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
#ifndef NRFX_QDEC_CONFIG_DBFEN
#define NRFX_QDEC_CONFIG_DBFEN 0
#endif
// <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
#ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
#define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
#endif
// <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
#define NRFX_QDEC_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
#define NRFX_QDEC_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
#define NRFX_QDEC_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_QDEC_CONFIG_INFO_COLOR
#define NRFX_QDEC_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
//==========================================================
#ifndef NRFX_RNG_ENABLED
#define NRFX_RNG_ENABLED 0
#endif
// <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
#ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
#define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
#endif
// <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
#define NRFX_RNG_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_RNG_CONFIG_LOG_ENABLED
#define NRFX_RNG_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_RNG_CONFIG_LOG_LEVEL
#define NRFX_RNG_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_RNG_CONFIG_INFO_COLOR
#define NRFX_RNG_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
#define NRFX_RNG_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
//==========================================================
#ifndef NRFX_RTC_ENABLED
#define NRFX_RTC_ENABLED 0
#endif
// <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
#ifndef NRFX_RTC0_ENABLED
#define NRFX_RTC0_ENABLED 0
#endif
// <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
#ifndef NRFX_RTC1_ENABLED
#define NRFX_RTC1_ENABLED 0
#endif
// <q> NRFX_RTC2_ENABLED - Enable RTC2 instance
#ifndef NRFX_RTC2_ENABLED
#define NRFX_RTC2_ENABLED 0
#endif
// <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
#ifndef NRFX_RTC_MAXIMUM_LATENCY_US
#define NRFX_RTC_MAXIMUM_LATENCY_US 2000
#endif
// <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
#ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
#define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
#endif
// <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
#ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
#define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
#endif
// <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_RTC_CONFIG_LOG_ENABLED
#define NRFX_RTC_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_RTC_CONFIG_LOG_LEVEL
#define NRFX_RTC_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_RTC_CONFIG_INFO_COLOR
#define NRFX_RTC_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
#define NRFX_RTC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
//==========================================================
#ifndef NRFX_SAADC_ENABLED
#define NRFX_SAADC_ENABLED 0
#endif
// <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
// <0=> 8 bit
// <1=> 10 bit
// <2=> 12 bit
// <3=> 14 bit
#ifndef NRFX_SAADC_CONFIG_RESOLUTION
#define NRFX_SAADC_CONFIG_RESOLUTION 1
#endif
// <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
// <0=> Disabled
// <1=> 2x
// <2=> 4x
// <3=> 8x
// <4=> 16x
// <5=> 32x
// <6=> 64x
// <7=> 128x
// <8=> 256x
#ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
#define NRFX_SAADC_CONFIG_OVERSAMPLE 0
#endif
// <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
#ifndef NRFX_SAADC_CONFIG_LP_MODE
#define NRFX_SAADC_CONFIG_LP_MODE 0
#endif
// <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
#define NRFX_SAADC_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
#define NRFX_SAADC_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SAADC_CONFIG_INFO_COLOR
#define NRFX_SAADC_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
//==========================================================
#ifndef NRFX_SPIM_ENABLED
#define NRFX_SPIM_ENABLED 0
#endif
// <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
#ifndef NRFX_SPIM0_ENABLED
#define NRFX_SPIM0_ENABLED 0
#endif
// <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance
#ifndef NRFX_SPIM1_ENABLED
#define NRFX_SPIM1_ENABLED 0
#endif
// <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance
#ifndef NRFX_SPIM2_ENABLED
#define NRFX_SPIM2_ENABLED 0
#endif
// <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
// <0=> NRF_GPIO_PIN_NOPULL
// <1=> NRF_GPIO_PIN_PULLDOWN
// <3=> NRF_GPIO_PIN_PULLUP
#ifndef NRFX_SPIM_MISO_PULL_CFG
#define NRFX_SPIM_MISO_PULL_CFG 1
#endif
// <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
#define NRFX_SPIM_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
#define NRFX_SPIM_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPIM_CONFIG_INFO_COLOR
#define NRFX_SPIM_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <q> NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for SPIM.
// <i> The workaround uses interrupts to wake up the CPU by catching
// <i> a start event of zero-length transmission to start the clock. This
// <i> ensures that the DMA transfer will be executed without issues and
// <i> that the proper transfer will be started. See more in the Errata
// <i> document or Anomaly 109 Addendum located at
// <i> https://infocenter.nordicsemi.com/
#ifndef NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
//==========================================================
#ifndef NRFX_SPIS_ENABLED
#define NRFX_SPIS_ENABLED 0
#endif
// <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
#ifndef NRFX_SPIS0_ENABLED
#define NRFX_SPIS0_ENABLED 0
#endif
// <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
#ifndef NRFX_SPIS1_ENABLED
#define NRFX_SPIS1_ENABLED 0
#endif
// <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance
#ifndef NRFX_SPIS2_ENABLED
#define NRFX_SPIS2_ENABLED 0
#endif
// <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
#ifndef NRFX_SPIS_DEFAULT_DEF
#define NRFX_SPIS_DEFAULT_DEF 255
#endif
// <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
#ifndef NRFX_SPIS_DEFAULT_ORC
#define NRFX_SPIS_DEFAULT_ORC 255
#endif
// <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
#define NRFX_SPIS_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
#define NRFX_SPIS_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPIS_CONFIG_INFO_COLOR
#define NRFX_SPIS_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <q> NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for SPIS.
// <i> The workaround uses a GPIOTE channel to generate interrupts
// <i> on falling edges detected on the CSN line. This will make
// <i> the CPU active for the moment when SPIS starts DMA transfers,
// <i> and this way the transfers will be protected.
// <i> This workaround uses GPIOTE driver, so this driver must be
// <i> enabled as well.
#ifndef NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
//==========================================================
#ifndef NRFX_SPI_ENABLED
#define NRFX_SPI_ENABLED 0
#endif
// <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
#ifndef NRFX_SPI0_ENABLED
#define NRFX_SPI0_ENABLED 0
#endif
// <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
#ifndef NRFX_SPI1_ENABLED
#define NRFX_SPI1_ENABLED 0
#endif
// <q> NRFX_SPI2_ENABLED - Enable SPI2 instance
#ifndef NRFX_SPI2_ENABLED
#define NRFX_SPI2_ENABLED 0
#endif
// <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
// <0=> NRF_GPIO_PIN_NOPULL
// <1=> NRF_GPIO_PIN_PULLDOWN
// <3=> NRF_GPIO_PIN_PULLUP
#ifndef NRFX_SPI_MISO_PULL_CFG
#define NRFX_SPI_MISO_PULL_CFG 1
#endif
// <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_SPI_CONFIG_LOG_ENABLED
#define NRFX_SPI_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_SPI_CONFIG_LOG_LEVEL
#define NRFX_SPI_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPI_CONFIG_INFO_COLOR
#define NRFX_SPI_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
#define NRFX_SPI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
//==========================================================
#ifndef NRFX_SWI_ENABLED
#define NRFX_SWI_ENABLED 0
#endif
// <q> NRFX_EGU_ENABLED - Enable EGU support
#ifndef NRFX_EGU_ENABLED
#define NRFX_EGU_ENABLED 0
#endif
// <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
#ifndef NRFX_SWI0_DISABLED
#define NRFX_SWI0_DISABLED 0
#endif
// <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
#ifndef NRFX_SWI1_DISABLED
#define NRFX_SWI1_DISABLED 0
#endif
// <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
#ifndef NRFX_SWI2_DISABLED
#define NRFX_SWI2_DISABLED 0
#endif
// <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
#ifndef NRFX_SWI3_DISABLED
#define NRFX_SWI3_DISABLED 0
#endif
// <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
#ifndef NRFX_SWI4_DISABLED
#define NRFX_SWI4_DISABLED 0
#endif
// <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
#ifndef NRFX_SWI5_DISABLED
#define NRFX_SWI5_DISABLED 0
#endif
// <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_SWI_CONFIG_LOG_ENABLED
#define NRFX_SWI_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_SWI_CONFIG_LOG_LEVEL
#define NRFX_SWI_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SWI_CONFIG_INFO_COLOR
#define NRFX_SWI_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
#define NRFX_SWI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
//==========================================================
#ifndef NRFX_TIMER_ENABLED
#define NRFX_TIMER_ENABLED 0
#endif
// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
#ifndef NRFX_TIMER0_ENABLED
#define NRFX_TIMER0_ENABLED 0
#endif
// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
#ifndef NRFX_TIMER1_ENABLED
#define NRFX_TIMER1_ENABLED 0
#endif
// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
#ifndef NRFX_TIMER2_ENABLED
#define NRFX_TIMER2_ENABLED 0
#endif
// <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
#ifndef NRFX_TIMER3_ENABLED
#define NRFX_TIMER3_ENABLED 0
#endif
// <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
#ifndef NRFX_TIMER4_ENABLED
#define NRFX_TIMER4_ENABLED 0
#endif
// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
// <0=> 16 MHz
// <1=> 8 MHz
// <2=> 4 MHz
// <3=> 2 MHz
// <4=> 1 MHz
// <5=> 500 kHz
// <6=> 250 kHz
// <7=> 125 kHz
// <8=> 62.5 kHz
// <9=> 31.25 kHz
#ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
#define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
#endif
// <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
// <0=> Timer
// <1=> Counter
#ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
#define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
#endif
// <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
// <0=> 16 bit
// <1=> 8 bit
// <2=> 24 bit
// <3=> 32 bit
#ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
#define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
#endif
// <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
#define NRFX_TIMER_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
#define NRFX_TIMER_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TIMER_CONFIG_INFO_COLOR
#define NRFX_TIMER_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
//==========================================================
#ifndef NRFX_TWIM_ENABLED
#define NRFX_TWIM_ENABLED 0
#endif
// <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
#ifndef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED 0
#endif
// <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
#ifndef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED 0
#endif
// <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
// <26738688=> 100k
// <67108864=> 250k
// <104857600=> 400k
#ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
#endif
// <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
#ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif
// <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
#define NRFX_TWIM_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
#define NRFX_TWIM_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWIM_CONFIG_INFO_COLOR
#define NRFX_TWIM_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <q> NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for TWIM.
// <i> The workaround uses interrupts to wake up the CPU by catching
// <i> the start event of zero-frequency transmission, clear the
// <i> peripheral, set desired frequency, start the peripheral, and
// <i> the proper transmission. See more in the Errata document or
// <i> Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/
#ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
//==========================================================
#ifndef NRFX_TWIS_ENABLED
#define NRFX_TWIS_ENABLED 0
#endif
// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
#ifndef NRFX_TWIS0_ENABLED
#define NRFX_TWIS0_ENABLED 0
#endif
// <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
#ifndef NRFX_TWIS1_ENABLED
#define NRFX_TWIS1_ENABLED 0
#endif
// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
// <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.
#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
#endif
// <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
// <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.
#ifndef NRFX_TWIS_NO_SYNC_MODE
#define NRFX_TWIS_NO_SYNC_MODE 0
#endif
// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
#define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
#endif
// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
#define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
#endif
// <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
// <0=> Disabled
// <1=> Pull down
// <3=> Pull up
#ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
#define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
#endif
// <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
// <0=> Disabled
// <1=> Pull down
// <3=> Pull up
#ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
#define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
#endif
// <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
#define NRFX_TWIS_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
#define NRFX_TWIS_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWIS_CONFIG_INFO_COLOR
#define NRFX_TWIS_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
//==========================================================
#ifndef NRFX_TWI_ENABLED
#define NRFX_TWI_ENABLED 0
#endif
// <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
#ifndef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED 0
#endif
// <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
#ifndef NRFX_TWI1_ENABLED
#define NRFX_TWI1_ENABLED 0
#endif
// <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
// <26738688=> 100k
// <67108864=> 250k
// <104857600=> 400k
#ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
#endif
// <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
#ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif
// <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_TWI_CONFIG_LOG_ENABLED
#define NRFX_TWI_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_TWI_CONFIG_LOG_LEVEL
#define NRFX_TWI_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWI_CONFIG_INFO_COLOR
#define NRFX_TWI_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
#define NRFX_TWI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
//==========================================================
#ifndef NRFX_UARTE_ENABLED
#define NRFX_UARTE_ENABLED 1
#endif
// <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
#ifndef NRFX_UARTE0_ENABLED
#define NRFX_UARTE0_ENABLED 0
#endif
// <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
// <0=> Disabled
// <1=> Enabled
#ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
#endif
// <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
// <0=> Excluded
// <14=> Included
#ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
#define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
#endif
// <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
// <323584=> 1200 baud
// <643072=> 2400 baud
// <1290240=> 4800 baud
// <2576384=> 9600 baud
// <3862528=> 14400 baud
// <5152768=> 19200 baud
// <7716864=> 28800 baud
// <8388608=> 31250 baud
// <10289152=> 38400 baud
// <15007744=> 56000 baud
// <15400960=> 57600 baud
// <20615168=> 76800 baud
// <30801920=> 115200 baud
// <61865984=> 230400 baud
// <67108864=> 250000 baud
// <121634816=> 460800 baud
// <251658240=> 921600 baud
// <268435456=> 1000000 baud
#ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
#endif
// <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
#define NRFX_UARTE_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
#define NRFX_UARTE_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_UARTE_CONFIG_INFO_COLOR
#define NRFX_UARTE_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
//==========================================================
#ifndef NRFX_UART_ENABLED
#define NRFX_UART_ENABLED 1
#endif
// <o> NRFX_UART0_ENABLED - Enable UART0 instance
#ifndef NRFX_UART0_ENABLED
#define NRFX_UART0_ENABLED 0
#endif
// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
// <0=> Disabled
// <1=> Enabled
#ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
#define NRFX_UART_DEFAULT_CONFIG_HWFC 0
#endif
// <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
// <0=> Excluded
// <14=> Included
#ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
#define NRFX_UART_DEFAULT_CONFIG_PARITY 0
#endif
// <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
// <323584=> 1200 baud
// <643072=> 2400 baud
// <1290240=> 4800 baud
// <2576384=> 9600 baud
// <3866624=> 14400 baud
// <5152768=> 19200 baud
// <7729152=> 28800 baud
// <8388608=> 31250 baud
// <10309632=> 38400 baud
// <15007744=> 56000 baud
// <15462400=> 57600 baud
// <20615168=> 76800 baud
// <30924800=> 115200 baud
// <61845504=> 230400 baud
// <67108864=> 250000 baud
// <123695104=> 460800 baud
// <247386112=> 921600 baud
// <268435456=> 1000000 baud
#ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
#endif
// <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_UART_CONFIG_LOG_ENABLED
#define NRFX_UART_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_UART_CONFIG_LOG_LEVEL
#define NRFX_UART_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_UART_CONFIG_INFO_COLOR
#define NRFX_UART_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_UART_CONFIG_DEBUG_COLOR
#define NRFX_UART_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
//==========================================================
#ifndef NRFX_WDT_ENABLED
#define NRFX_WDT_ENABLED 0
#endif
// <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
// <1=> Run in SLEEP, Pause in HALT
// <8=> Pause in SLEEP, Run in HALT
// <9=> Run in SLEEP and HALT
// <0=> Pause in SLEEP and HALT
#ifndef NRFX_WDT_CONFIG_BEHAVIOUR
#define NRFX_WDT_CONFIG_BEHAVIOUR 1
#endif
// <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
#ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
#endif
// <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
#define NRFX_WDT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_WDT_CONFIG_LOG_ENABLED
#define NRFX_WDT_CONFIG_LOG_ENABLED 0
#endif
// <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRFX_WDT_CONFIG_LOG_LEVEL
#define NRFX_WDT_CONFIG_LOG_LEVEL 3
#endif
// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_WDT_CONFIG_INFO_COLOR
#define NRFX_WDT_CONFIG_INFO_COLOR 0
#endif
// <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
#define NRFX_WDT_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </e>
// <e> NRF_CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver - legacy layer
//==========================================================
#ifndef NRF_CLOCK_ENABLED
#define NRF_CLOCK_ENABLED 1
#endif
// <o> CLOCK_CONFIG_LF_SRC - LF Clock Source
// <0=> RC
// <1=> XTAL
// <2=> Synth
// <131073=> External Low Swing
// <196609=> External Full Swing
#ifndef CLOCK_CONFIG_LF_SRC
#define CLOCK_CONFIG_LF_SRC 1
#endif
// <o> CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef CLOCK_CONFIG_IRQ_PRIORITY
#define CLOCK_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> PDM_ENABLED - nrf_drv_pdm - PDM peripheral driver - legacy layer
//==========================================================
#ifndef PDM_ENABLED
#define PDM_ENABLED 0
#endif
// <o> PDM_CONFIG_MODE - Mode
// <0=> Stereo
// <1=> Mono
#ifndef PDM_CONFIG_MODE
#define PDM_CONFIG_MODE 1
#endif
// <o> PDM_CONFIG_EDGE - Edge
// <0=> Left falling
// <1=> Left rising
#ifndef PDM_CONFIG_EDGE
#define PDM_CONFIG_EDGE 0
#endif
// <o> PDM_CONFIG_CLOCK_FREQ - Clock frequency
// <134217728=> 1000k
// <138412032=> 1032k (default)
// <142606336=> 1067k
#ifndef PDM_CONFIG_CLOCK_FREQ
#define PDM_CONFIG_CLOCK_FREQ 138412032
#endif
// <o> PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef PDM_CONFIG_IRQ_PRIORITY
#define PDM_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver - legacy layer
//==========================================================
#ifndef POWER_ENABLED
#define POWER_ENABLED 0
#endif
// <o> POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef POWER_CONFIG_IRQ_PRIORITY
#define POWER_CONFIG_IRQ_PRIORITY 6
#endif
// <q> POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef POWER_CONFIG_DEFAULT_DCDCEN
#define POWER_CONFIG_DEFAULT_DCDCEN 0
#endif
// <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
#ifndef POWER_CONFIG_DEFAULT_DCDCENHV
#define POWER_CONFIG_DEFAULT_DCDCENHV 0
#endif
// </e>
// <q> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver - legacy layer
#ifndef PPI_ENABLED
#define PPI_ENABLED 0
#endif
// <e> PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver - legacy layer
//==========================================================
#ifndef PWM_ENABLED
#define PWM_ENABLED 0
#endif
// <o> PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
#ifndef PWM_DEFAULT_CONFIG_OUT0_PIN
#define PWM_DEFAULT_CONFIG_OUT0_PIN 31
#endif
// <o> PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
#ifndef PWM_DEFAULT_CONFIG_OUT1_PIN
#define PWM_DEFAULT_CONFIG_OUT1_PIN 31
#endif
// <o> PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
#ifndef PWM_DEFAULT_CONFIG_OUT2_PIN
#define PWM_DEFAULT_CONFIG_OUT2_PIN 31
#endif
// <o> PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
#ifndef PWM_DEFAULT_CONFIG_OUT3_PIN
#define PWM_DEFAULT_CONFIG_OUT3_PIN 31
#endif
// <o> PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
// <0=> 16 MHz
// <1=> 8 MHz
// <2=> 4 MHz
// <3=> 2 MHz
// <4=> 1 MHz
// <5=> 500 kHz
// <6=> 250 kHz
// <7=> 125 kHz
#ifndef PWM_DEFAULT_CONFIG_BASE_CLOCK
#define PWM_DEFAULT_CONFIG_BASE_CLOCK 4
#endif
// <o> PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
// <0=> Up
// <1=> Up and Down
#ifndef PWM_DEFAULT_CONFIG_COUNT_MODE
#define PWM_DEFAULT_CONFIG_COUNT_MODE 0
#endif
// <o> PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
#ifndef PWM_DEFAULT_CONFIG_TOP_VALUE
#define PWM_DEFAULT_CONFIG_TOP_VALUE 1000
#endif
// <o> PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
// <0=> Common
// <1=> Grouped
// <2=> Individual
// <3=> Waveform
#ifndef PWM_DEFAULT_CONFIG_LOAD_MODE
#define PWM_DEFAULT_CONFIG_LOAD_MODE 0
#endif
// <o> PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
// <0=> Auto
// <1=> Triggered
#ifndef PWM_DEFAULT_CONFIG_STEP_MODE
#define PWM_DEFAULT_CONFIG_STEP_MODE 0
#endif
// <o> PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef PWM_DEFAULT_CONFIG_IRQ_PRIORITY
#define PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <q> PWM0_ENABLED - Enable PWM0 instance
#ifndef PWM0_ENABLED
#define PWM0_ENABLED 0
#endif
// <q> PWM1_ENABLED - Enable PWM1 instance
#ifndef PWM1_ENABLED
#define PWM1_ENABLED 0
#endif
// <q> PWM2_ENABLED - Enable PWM2 instance
#ifndef PWM2_ENABLED
#define PWM2_ENABLED 0
#endif
// <e> PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for PWM.
// <i> The workaround uses interrupts to wake up the CPU and ensure
// <i> it is active when PWM is about to start a DMA transfer. For
// <i> initial transfer, done when a playback is started via PPI,
// <i> a specific EGU instance is used to generate the interrupt.
// <i> During the playback, the PWM interrupt triggered on SEQEND
// <i> event of a preceding sequence is used to protect the transfer
// <i> done for the next sequence to be played.
//==========================================================
#ifndef PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// <o> PWM_NRF52_ANOMALY_109_EGU_INSTANCE - EGU instance used by the nRF52 Anomaly 109 workaround for PWM.
// <0=> EGU0
// <1=> EGU1
// <2=> EGU2
// <3=> EGU3
// <4=> EGU4
// <5=> EGU5
#ifndef PWM_NRF52_ANOMALY_109_EGU_INSTANCE
#define PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5
#endif
// </e>
// </e>
// <e> QDEC_ENABLED - nrf_drv_qdec - QDEC peripheral driver - legacy layer
//==========================================================
#ifndef QDEC_ENABLED
#define QDEC_ENABLED 0
#endif
// <o> QDEC_CONFIG_REPORTPER - Report period
// <0=> 10 Samples
// <1=> 40 Samples
// <2=> 80 Samples
// <3=> 120 Samples
// <4=> 160 Samples
// <5=> 200 Samples
// <6=> 240 Samples
// <7=> 280 Samples
#ifndef QDEC_CONFIG_REPORTPER
#define QDEC_CONFIG_REPORTPER 0
#endif
// <o> QDEC_CONFIG_SAMPLEPER - Sample period
// <0=> 128 us
// <1=> 256 us
// <2=> 512 us
// <3=> 1024 us
// <4=> 2048 us
// <5=> 4096 us
// <6=> 8192 us
// <7=> 16384 us
#ifndef QDEC_CONFIG_SAMPLEPER
#define QDEC_CONFIG_SAMPLEPER 7
#endif
// <o> QDEC_CONFIG_PIO_A - A pin <0-31>
#ifndef QDEC_CONFIG_PIO_A
#define QDEC_CONFIG_PIO_A 31
#endif
// <o> QDEC_CONFIG_PIO_B - B pin <0-31>
#ifndef QDEC_CONFIG_PIO_B
#define QDEC_CONFIG_PIO_B 31
#endif
// <o> QDEC_CONFIG_PIO_LED - LED pin <0-31>
#ifndef QDEC_CONFIG_PIO_LED
#define QDEC_CONFIG_PIO_LED 31
#endif
// <o> QDEC_CONFIG_LEDPRE - LED pre
#ifndef QDEC_CONFIG_LEDPRE
#define QDEC_CONFIG_LEDPRE 511
#endif
// <o> QDEC_CONFIG_LEDPOL - LED polarity
// <0=> Active low
// <1=> Active high
#ifndef QDEC_CONFIG_LEDPOL
#define QDEC_CONFIG_LEDPOL 1
#endif
// <q> QDEC_CONFIG_DBFEN - Debouncing enable
#ifndef QDEC_CONFIG_DBFEN
#define QDEC_CONFIG_DBFEN 0
#endif
// <q> QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
#ifndef QDEC_CONFIG_SAMPLE_INTEN
#define QDEC_CONFIG_SAMPLE_INTEN 0
#endif
// <o> QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef QDEC_CONFIG_IRQ_PRIORITY
#define QDEC_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> QSPI_ENABLED - nrf_drv_qspi - QSPI peripheral driver - legacy layer
//==========================================================
#ifndef QSPI_ENABLED
#define QSPI_ENABLED 0
#endif
// <o> QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
#ifndef QSPI_CONFIG_SCK_DELAY
#define QSPI_CONFIG_SCK_DELAY 1
#endif
// <o> QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
#ifndef QSPI_CONFIG_XIP_OFFSET
#define QSPI_CONFIG_XIP_OFFSET 0
#endif
// <o> QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
// <0=> FastRead
// <1=> Read2O
// <2=> Read2IO
// <3=> Read4O
// <4=> Read4IO
#ifndef QSPI_CONFIG_READOC
#define QSPI_CONFIG_READOC 0
#endif
// <o> QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
// <0=> PP
// <1=> PP2O
// <2=> PP4O
// <3=> PP4IO
#ifndef QSPI_CONFIG_WRITEOC
#define QSPI_CONFIG_WRITEOC 0
#endif
// <o> QSPI_CONFIG_ADDRMODE - Addressing mode.
// <0=> 24bit
// <1=> 32bit
#ifndef QSPI_CONFIG_ADDRMODE
#define QSPI_CONFIG_ADDRMODE 0
#endif
// <o> QSPI_CONFIG_MODE - SPI mode.
// <0=> Mode 0
// <1=> Mode 1
#ifndef QSPI_CONFIG_MODE
#define QSPI_CONFIG_MODE 0
#endif
// <o> QSPI_CONFIG_FREQUENCY - Frequency divider.
// <0=> 32MHz/1
// <1=> 32MHz/2
// <2=> 32MHz/3
// <3=> 32MHz/4
// <4=> 32MHz/5
// <5=> 32MHz/6
// <6=> 32MHz/7
// <7=> 32MHz/8
// <8=> 32MHz/9
// <9=> 32MHz/10
// <10=> 32MHz/11
// <11=> 32MHz/12
// <12=> 32MHz/13
// <13=> 32MHz/14
// <14=> 32MHz/15
// <15=> 32MHz/16
#ifndef QSPI_CONFIG_FREQUENCY
#define QSPI_CONFIG_FREQUENCY 15
#endif
// <s> QSPI_PIN_SCK - SCK pin value.
#ifndef QSPI_PIN_SCK
#define QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <s> QSPI_PIN_CSN - CSN pin value.
#ifndef QSPI_PIN_CSN
#define QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <s> QSPI_PIN_IO0 - IO0 pin value.
#ifndef QSPI_PIN_IO0
#define QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <s> QSPI_PIN_IO1 - IO1 pin value.
#ifndef QSPI_PIN_IO1
#define QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <s> QSPI_PIN_IO2 - IO2 pin value.
#ifndef QSPI_PIN_IO2
#define QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <s> QSPI_PIN_IO3 - IO3 pin value.
#ifndef QSPI_PIN_IO3
#define QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
#endif
// <o> QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef QSPI_CONFIG_IRQ_PRIORITY
#define QSPI_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> RNG_ENABLED - nrf_drv_rng - RNG peripheral driver - legacy layer
//==========================================================
#ifndef RNG_ENABLED
#define RNG_ENABLED 0
#endif
// <q> RNG_CONFIG_ERROR_CORRECTION - Error correction
#ifndef RNG_CONFIG_ERROR_CORRECTION
#define RNG_CONFIG_ERROR_CORRECTION 1
#endif
// <o> RNG_CONFIG_POOL_SIZE - Pool size
#ifndef RNG_CONFIG_POOL_SIZE
#define RNG_CONFIG_POOL_SIZE 64
#endif
// <o> RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef RNG_CONFIG_IRQ_PRIORITY
#define RNG_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver - legacy layer
//==========================================================
#ifndef RTC_ENABLED
#define RTC_ENABLED 0
#endif
// <o> RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
#ifndef RTC_DEFAULT_CONFIG_FREQUENCY
#define RTC_DEFAULT_CONFIG_FREQUENCY 32768
#endif
// <q> RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
#ifndef RTC_DEFAULT_CONFIG_RELIABLE
#define RTC_DEFAULT_CONFIG_RELIABLE 0
#endif
// <o> RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef RTC_DEFAULT_CONFIG_IRQ_PRIORITY
#define RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <q> RTC0_ENABLED - Enable RTC0 instance
#ifndef RTC0_ENABLED
#define RTC0_ENABLED 0
#endif
// <q> RTC1_ENABLED - Enable RTC1 instance
#ifndef RTC1_ENABLED
#define RTC1_ENABLED 0
#endif
// <q> RTC2_ENABLED - Enable RTC2 instance
#ifndef RTC2_ENABLED
#define RTC2_ENABLED 0
#endif
// <o> NRF_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
#ifndef NRF_MAXIMUM_LATENCY_US
#define NRF_MAXIMUM_LATENCY_US 2000
#endif
// </e>
// <e> SAADC_ENABLED - nrf_drv_saadc - SAADC peripheral driver - legacy layer
//==========================================================
#ifndef SAADC_ENABLED
#define SAADC_ENABLED 0
#endif
// <o> SAADC_CONFIG_RESOLUTION - Resolution
// <0=> 8 bit
// <1=> 10 bit
// <2=> 12 bit
// <3=> 14 bit
#ifndef SAADC_CONFIG_RESOLUTION
#define SAADC_CONFIG_RESOLUTION 1
#endif
// <o> SAADC_CONFIG_OVERSAMPLE - Sample period
// <0=> Disabled
// <1=> 2x
// <2=> 4x
// <3=> 8x
// <4=> 16x
// <5=> 32x
// <6=> 64x
// <7=> 128x
// <8=> 256x
#ifndef SAADC_CONFIG_OVERSAMPLE
#define SAADC_CONFIG_OVERSAMPLE 0
#endif
// <q> SAADC_CONFIG_LP_MODE - Enabling low power mode
#ifndef SAADC_CONFIG_LP_MODE
#define SAADC_CONFIG_LP_MODE 0
#endif
// <o> SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef SAADC_CONFIG_IRQ_PRIORITY
#define SAADC_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> SPIS_ENABLED - nrf_drv_spis - SPIS peripheral driver - legacy layer
//==========================================================
#ifndef SPIS_ENABLED
#define SPIS_ENABLED 0
#endif
// <o> SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
#define SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <o> SPIS_DEFAULT_MODE - Mode
// <0=> MODE_0
// <1=> MODE_1
// <2=> MODE_2
// <3=> MODE_3
#ifndef SPIS_DEFAULT_MODE
#define SPIS_DEFAULT_MODE 0
#endif
// <o> SPIS_DEFAULT_BIT_ORDER - SPIS default bit order
// <0=> MSB first
// <1=> LSB first
#ifndef SPIS_DEFAULT_BIT_ORDER
#define SPIS_DEFAULT_BIT_ORDER 0
#endif
// <o> SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
#ifndef SPIS_DEFAULT_DEF
#define SPIS_DEFAULT_DEF 255
#endif
// <o> SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
#ifndef SPIS_DEFAULT_ORC
#define SPIS_DEFAULT_ORC 255
#endif
// <q> SPIS0_ENABLED - Enable SPIS0 instance
#ifndef SPIS0_ENABLED
#define SPIS0_ENABLED 0
#endif
// <q> SPIS1_ENABLED - Enable SPIS1 instance
#ifndef SPIS1_ENABLED
#define SPIS1_ENABLED 0
#endif
// <q> SPIS2_ENABLED - Enable SPIS2 instance
#ifndef SPIS2_ENABLED
#define SPIS2_ENABLED 0
#endif
// <q> SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for SPIS.
// <i> The workaround uses a GPIOTE channel to generate interrupts
// <i> on falling edges detected on the CSN line. This will make
// <i> the CPU active for the moment when SPIS starts DMA transfers,
// <i> and this way the transfers will be protected.
// <i> This workaround uses GPIOTE driver, so this driver must be
// <i> enabled as well.
#ifndef SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer
//==========================================================
#ifndef SPI_ENABLED
#define SPI_ENABLED 0
#endif
// <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY
#define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <o> NRF_SPI_DRV_MISO_PULLUP_CFG - MISO PIN pull-up configuration.
// <0=> NRF_GPIO_PIN_NOPULL
// <1=> NRF_GPIO_PIN_PULLDOWN
// <3=> NRF_GPIO_PIN_PULLUP
#ifndef NRF_SPI_DRV_MISO_PULLUP_CFG
#define NRF_SPI_DRV_MISO_PULLUP_CFG 1
#endif
// <e> SPI0_ENABLED - Enable SPI0 instance
//==========================================================
#ifndef SPI0_ENABLED
#define SPI0_ENABLED 0
#endif
// <q> SPI0_USE_EASY_DMA - Use EasyDMA
#ifndef SPI0_USE_EASY_DMA
#define SPI0_USE_EASY_DMA 1
#endif
// </e>
// <e> SPI1_ENABLED - Enable SPI1 instance
//==========================================================
#ifndef SPI1_ENABLED
#define SPI1_ENABLED 0
#endif
// <q> SPI1_USE_EASY_DMA - Use EasyDMA
#ifndef SPI1_USE_EASY_DMA
#define SPI1_USE_EASY_DMA 1
#endif
// </e>
// <e> SPI2_ENABLED - Enable SPI2 instance
//==========================================================
#ifndef SPI2_ENABLED
#define SPI2_ENABLED 0
#endif
// <q> SPI2_USE_EASY_DMA - Use EasyDMA
#ifndef SPI2_USE_EASY_DMA
#define SPI2_USE_EASY_DMA 1
#endif
// </e>
// <q> SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for SPIM.
// <i> The workaround uses interrupts to wake up the CPU by catching
// <i> a start event of zero-length transmission to start the clock. This
// <i> ensures that the DMA transfer will be executed without issues and
// <i> that the proper transfer will be started. See more in the Errata
// <i> document or Anomaly 109 Addendum located at
// <i> https://infocenter.nordicsemi.com/
#ifndef SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer
//==========================================================
#ifndef TIMER_ENABLED
#define TIMER_ENABLED 0
#endif
// <o> TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
// <0=> 16 MHz
// <1=> 8 MHz
// <2=> 4 MHz
// <3=> 2 MHz
// <4=> 1 MHz
// <5=> 500 kHz
// <6=> 250 kHz
// <7=> 125 kHz
// <8=> 62.5 kHz
// <9=> 31.25 kHz
#ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
#define TIMER_DEFAULT_CONFIG_FREQUENCY 0
#endif
// <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
// <0=> Timer
// <1=> Counter
#ifndef TIMER_DEFAULT_CONFIG_MODE
#define TIMER_DEFAULT_CONFIG_MODE 0
#endif
// <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
// <0=> 16 bit
// <1=> 8 bit
// <2=> 24 bit
// <3=> 32 bit
#ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
#define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
#endif
// <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
#define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <q> TIMER0_ENABLED - Enable TIMER0 instance
#ifndef TIMER0_ENABLED
#define TIMER0_ENABLED 0
#endif
// <q> TIMER1_ENABLED - Enable TIMER1 instance
#ifndef TIMER1_ENABLED
#define TIMER1_ENABLED 0
#endif
// <q> TIMER2_ENABLED - Enable TIMER2 instance
#ifndef TIMER2_ENABLED
#define TIMER2_ENABLED 0
#endif
// <q> TIMER3_ENABLED - Enable TIMER3 instance
#ifndef TIMER3_ENABLED
#define TIMER3_ENABLED 0
#endif
// <q> TIMER4_ENABLED - Enable TIMER4 instance
#ifndef TIMER4_ENABLED
#define TIMER4_ENABLED 0
#endif
// </e>
// <e> TWIS_ENABLED - nrf_drv_twis - TWIS peripheral driver - legacy layer
//==========================================================
#ifndef TWIS_ENABLED
#define TWIS_ENABLED 0
#endif
// <q> TWIS0_ENABLED - Enable TWIS0 instance
#ifndef TWIS0_ENABLED
#define TWIS0_ENABLED 0
#endif
// <q> TWIS1_ENABLED - Enable TWIS1 instance
#ifndef TWIS1_ENABLED
#define TWIS1_ENABLED 0
#endif
// <q> TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
// <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.
#ifndef TWIS_ASSUME_INIT_AFTER_RESET_ONLY
#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
#endif
// <q> TWIS_NO_SYNC_MODE - Remove support for synchronous mode
// <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.
#ifndef TWIS_NO_SYNC_MODE
#define TWIS_NO_SYNC_MODE 0
#endif
// <o> TWIS_DEFAULT_CONFIG_ADDR0 - Address0
#ifndef TWIS_DEFAULT_CONFIG_ADDR0
#define TWIS_DEFAULT_CONFIG_ADDR0 0
#endif
// <o> TWIS_DEFAULT_CONFIG_ADDR1 - Address1
#ifndef TWIS_DEFAULT_CONFIG_ADDR1
#define TWIS_DEFAULT_CONFIG_ADDR1 0
#endif
// <o> TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
// <0=> Disabled
// <1=> Pull down
// <3=> Pull up
#ifndef TWIS_DEFAULT_CONFIG_SCL_PULL
#define TWIS_DEFAULT_CONFIG_SCL_PULL 0
#endif
// <o> TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
// <0=> Disabled
// <1=> Pull down
// <3=> Pull up
#ifndef TWIS_DEFAULT_CONFIG_SDA_PULL
#define TWIS_DEFAULT_CONFIG_SDA_PULL 0
#endif
// <o> TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
#define TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
//==========================================================
#ifndef TWI_ENABLED
#define TWI_ENABLED 0
#endif
// <o> TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
// <26738688=> 100k
// <67108864=> 250k
// <104857600=> 400k
#ifndef TWI_DEFAULT_CONFIG_FREQUENCY
#define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
#endif
// <q> TWI_DEFAULT_CONFIG_CLR_BUS_INIT - Enables bus clearing procedure during init
#ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
#define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
#endif
// <q> TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
#ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif
// <o> TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
#define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> TWI0_ENABLED - Enable TWI0 instance
//==========================================================
#ifndef TWI0_ENABLED
#define TWI0_ENABLED 0
#endif
// <q> TWI0_USE_EASY_DMA - Use EasyDMA (if present)
#ifndef TWI0_USE_EASY_DMA
#define TWI0_USE_EASY_DMA 0
#endif
// </e>
// <e> TWI1_ENABLED - Enable TWI1 instance
//==========================================================
#ifndef TWI1_ENABLED
#define TWI1_ENABLED 0
#endif
// <q> TWI1_USE_EASY_DMA - Use EasyDMA (if present)
#ifndef TWI1_USE_EASY_DMA
#define TWI1_USE_EASY_DMA 0
#endif
// </e>
// <q> TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for TWIM.
// <i> The workaround uses interrupts to wake up the CPU by catching
// <i> the start event of zero-frequency transmission, clear the
// <i> peripheral, set desired frequency, start the peripheral, and
// <i> the proper transmission. See more in the Errata document or
// <i> Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/
#ifndef TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif
// </e>
// <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
//==========================================================
#ifndef UART_ENABLED
#define UART_ENABLED 1
#endif
// <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
// <0=> Disabled
// <1=> Enabled
#ifndef UART_DEFAULT_CONFIG_HWFC
#define UART_DEFAULT_CONFIG_HWFC 0
#endif
// <o> UART_DEFAULT_CONFIG_PARITY - Parity
// <0=> Excluded
// <14=> Included
#ifndef UART_DEFAULT_CONFIG_PARITY
#define UART_DEFAULT_CONFIG_PARITY 0
#endif
// <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
// <323584=> 1200 baud
// <643072=> 2400 baud
// <1290240=> 4800 baud
// <2576384=> 9600 baud
// <3862528=> 14400 baud
// <5152768=> 19200 baud
// <7716864=> 28800 baud
// <10289152=> 38400 baud
// <15400960=> 57600 baud
// <20615168=> 76800 baud
// <30801920=> 115200 baud
// <61865984=> 230400 baud
// <67108864=> 250000 baud
// <121634816=> 460800 baud
// <251658240=> 921600 baud
// <268435456=> 1000000 baud
#ifndef UART_DEFAULT_CONFIG_BAUDRATE
#define UART_DEFAULT_CONFIG_BAUDRATE 30801920
#endif
// <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif
// <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA
#ifndef UART_EASY_DMA_SUPPORT
#define UART_EASY_DMA_SUPPORT 1
#endif
// <q> UART_LEGACY_SUPPORT - Driver supporting Legacy mode
#ifndef UART_LEGACY_SUPPORT
#define UART_LEGACY_SUPPORT 1
#endif
// <e> UART0_ENABLED - Enable UART0 instance
//==========================================================
#ifndef UART0_ENABLED
#define UART0_ENABLED 1
#endif
// <q> UART0_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA
#ifndef UART0_CONFIG_USE_EASY_DMA
#define UART0_CONFIG_USE_EASY_DMA 1
#endif
// </e>
// </e>
// <e> USBD_ENABLED - nrf_drv_usbd - USB driver
//==========================================================
#ifndef USBD_ENABLED
#define USBD_ENABLED 0
#endif
// <o> USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef USBD_CONFIG_IRQ_PRIORITY
#define USBD_CONFIG_IRQ_PRIORITY 6
#endif
// <o> USBD_CONFIG_DMASCHEDULER_MODE - USBD SMA scheduler working scheme
// <0=> Prioritized access
// <1=> Round Robin
#ifndef USBD_CONFIG_DMASCHEDULER_MODE
#define USBD_CONFIG_DMASCHEDULER_MODE 0
#endif
// <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
// <i> This option gives priority to isochronous transfers.
// <i> Enabling it assures that isochronous transfers are always processed,
// <i> even if multiple other transfers are pending.
// <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
// <i> function is called, so the option is independent of the algorithm chosen.
#ifndef USBD_CONFIG_DMASCHEDULER_ISO_BOOST
#define USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
#endif
// <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
// <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
// <i> Else, there will be no response.
#ifndef USBD_CONFIG_ISO_IN_ZLP
#define USBD_CONFIG_ISO_IN_ZLP 0
#endif
// </e>
// <e> WDT_ENABLED - nrf_drv_wdt - WDT peripheral driver - legacy layer
//==========================================================
#ifndef WDT_ENABLED
#define WDT_ENABLED 0
#endif
// <o> WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
// <1=> Run in SLEEP, Pause in HALT
// <8=> Pause in SLEEP, Run in HALT
// <9=> Run in SLEEP and HALT
// <0=> Pause in SLEEP and HALT
#ifndef WDT_CONFIG_BEHAVIOUR
#define WDT_CONFIG_BEHAVIOUR 1
#endif
// <o> WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
#ifndef WDT_CONFIG_RELOAD_VALUE
#define WDT_CONFIG_RELOAD_VALUE 2000
#endif
// <o> WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef WDT_CONFIG_IRQ_PRIORITY
#define WDT_CONFIG_IRQ_PRIORITY 6
#endif
// </e>
// <h> nrfx_qspi - QSPI peripheral driver
//==========================================================
// </h>
//==========================================================
// </h>
//==========================================================
// <h> nRF_Drivers_External
//==========================================================
// <q> NRF_TWI_SENSOR_ENABLED - nrf_twi_sensor - nRF TWI Sensor module
#ifndef NRF_TWI_SENSOR_ENABLED
#define NRF_TWI_SENSOR_ENABLED 0
#endif
// </h>
//==========================================================
// <h> nRF_Libraries
//==========================================================
// <q> APP_GPIOTE_ENABLED - app_gpiote - GPIOTE events dispatcher
#ifndef APP_GPIOTE_ENABLED
#define APP_GPIOTE_ENABLED 0
#endif
// <q> APP_PWM_ENABLED - app_pwm - PWM functionality
#ifndef APP_PWM_ENABLED
#define APP_PWM_ENABLED 0
#endif
// <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
//==========================================================
#ifndef APP_SCHEDULER_ENABLED
#define APP_SCHEDULER_ENABLED 1
#endif
// <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
#ifndef APP_SCHEDULER_WITH_PAUSE
#define APP_SCHEDULER_WITH_PAUSE 0
#endif
// <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
#ifndef APP_SCHEDULER_WITH_PROFILER
#define APP_SCHEDULER_WITH_PROFILER 0
#endif
// </e>
// <e> APP_SDCARD_ENABLED - app_sdcard - SD/MMC card support using SPI
//==========================================================
#ifndef APP_SDCARD_ENABLED
#define APP_SDCARD_ENABLED 0
#endif
// <o> APP_SDCARD_SPI_INSTANCE - SPI instance used
// <0=> 0
// <1=> 1
// <2=> 2
#ifndef APP_SDCARD_SPI_INSTANCE
#define APP_SDCARD_SPI_INSTANCE 0
#endif
// <o> APP_SDCARD_FREQ_INIT - SPI frequency
// <33554432=> 125 kHz
// <67108864=> 250 kHz
// <134217728=> 500 kHz
// <268435456=> 1 MHz
// <536870912=> 2 MHz
// <1073741824=> 4 MHz
// <2147483648=> 8 MHz
#ifndef APP_SDCARD_FREQ_INIT
#define APP_SDCARD_FREQ_INIT 67108864
#endif
// <o> APP_SDCARD_FREQ_DATA - SPI frequency
// <33554432=> 125 kHz
// <67108864=> 250 kHz
// <134217728=> 500 kHz
// <268435456=> 1 MHz
// <536870912=> 2 MHz
// <1073741824=> 4 MHz
// <2147483648=> 8 MHz
#ifndef APP_SDCARD_FREQ_DATA
#define APP_SDCARD_FREQ_DATA 1073741824
#endif
// </e>
// <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
//==========================================================
#ifndef APP_TIMER_ENABLED
#define APP_TIMER_ENABLED 1
#endif
// <o> APP_TIMER_CONFIG_RTC_FREQUENCY - Configure RTC prescaler.
// <0=> 32768 Hz
// <1=> 16384 Hz
// <3=> 8192 Hz
// <7=> 4096 Hz
// <15=> 2048 Hz
// <31=> 1024 Hz
#ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
#define APP_TIMER_CONFIG_RTC_FREQUENCY 0
#endif
// <o> APP_TIMER_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef APP_TIMER_CONFIG_IRQ_PRIORITY
#define APP_TIMER_CONFIG_IRQ_PRIORITY 6
#endif
// <o> APP_TIMER_CONFIG_OP_QUEUE_SIZE - Capacity of timer requests queue.
// <i> Size of the queue depends on how many timers are used
// <i> in the system, how often timers are started and overall
// <i> system latency. If queue size is too small app_timer calls
// <i> will fail.
#ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
#define APP_TIMER_CONFIG_OP_QUEUE_SIZE 10
#endif
// <q> APP_TIMER_CONFIG_USE_SCHEDULER - Enable scheduling app_timer events to app_scheduler
#ifndef APP_TIMER_CONFIG_USE_SCHEDULER
#define APP_TIMER_CONFIG_USE_SCHEDULER 0
#endif
// <q> APP_TIMER_KEEPS_RTC_ACTIVE - Enable RTC always on
// <i> If option is enabled RTC is kept running even if there is no active timers.
// <i> This option can be used when app_timer is used for timestamping.
#ifndef APP_TIMER_KEEPS_RTC_ACTIVE
#define APP_TIMER_KEEPS_RTC_ACTIVE 0
#endif
// <o> APP_TIMER_SAFE_WINDOW_MS - Maximum possible latency (in milliseconds) of handling app_timer event.
// <i> Maximum possible timeout that can be set is reduced by safe window.
// <i> Example: RTC frequency 16384 Hz, maximum possible timeout 1024 seconds - APP_TIMER_SAFE_WINDOW_MS.
// <i> Since RTC is not stopped when processor is halted in debugging session, this value
// <i> must cover it if debugging is needed. It is possible to halt processor for APP_TIMER_SAFE_WINDOW_MS
// <i> without corrupting app_timer behavior.
#ifndef APP_TIMER_SAFE_WINDOW_MS
#define APP_TIMER_SAFE_WINDOW_MS 300000
#endif
// <h> App Timer Legacy configuration - Legacy configuration.
//==========================================================
// <q> APP_TIMER_WITH_PROFILER - Enable app_timer profiling
#ifndef APP_TIMER_WITH_PROFILER
#define APP_TIMER_WITH_PROFILER 0
#endif
// <q> APP_TIMER_CONFIG_SWI_NUMBER - Configure SWI instance used.
#ifndef APP_TIMER_CONFIG_SWI_NUMBER
#define APP_TIMER_CONFIG_SWI_NUMBER 0
#endif
// </h>
//==========================================================
// </e>
// <q> APP_USBD_AUDIO_ENABLED - app_usbd_audio - USB AUDIO class
#ifndef APP_USBD_AUDIO_ENABLED
#define APP_USBD_AUDIO_ENABLED 0
#endif
// <e> APP_USBD_ENABLED - app_usbd - USB Device library
//==========================================================
#ifndef APP_USBD_ENABLED
#define APP_USBD_ENABLED 0
#endif
// <o> APP_USBD_VID - Vendor ID. <0x0000-0xFFFF>
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/
#ifndef APP_USBD_VID
#define APP_USBD_VID 0
#endif
// <o> APP_USBD_PID - Product ID. <0x0000-0xFFFF>
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Selected Product ID
#ifndef APP_USBD_PID
#define APP_USBD_PID 0
#endif
// <o> APP_USBD_DEVICE_VER_MAJOR - Device version, major part. <0-99>
// <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
#ifndef APP_USBD_DEVICE_VER_MAJOR
#define APP_USBD_DEVICE_VER_MAJOR 1
#endif
// <o> APP_USBD_DEVICE_VER_MINOR - Device version, minor part. <0-99>
// <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
#ifndef APP_USBD_DEVICE_VER_MINOR
#define APP_USBD_DEVICE_VER_MINOR 0
#endif
// <q> APP_USBD_CONFIG_SELF_POWERED - Self-powered device, as opposed to bus-powered.
#ifndef APP_USBD_CONFIG_SELF_POWERED
#define APP_USBD_CONFIG_SELF_POWERED 1
#endif
// <o> APP_USBD_CONFIG_MAX_POWER - MaxPower field in configuration descriptor in milliamps. <0-500>
#ifndef APP_USBD_CONFIG_MAX_POWER
#define APP_USBD_CONFIG_MAX_POWER 500
#endif
// <q> APP_USBD_CONFIG_POWER_EVENTS_PROCESS - Process power events.
// <i> Enable processing power events in USB event handler.
#ifndef APP_USBD_CONFIG_POWER_EVENTS_PROCESS
#define APP_USBD_CONFIG_POWER_EVENTS_PROCESS 1
#endif
// <e> APP_USBD_CONFIG_EVENT_QUEUE_ENABLE - Enable event queue.
// <i> This is the default configuration when all the events are placed into internal queue.
// <i> Disable it when an external queue is used like app_scheduler or if you wish to process all events inside interrupts.
// <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.
// <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable, and disable.
//==========================================================
#ifndef APP_USBD_CONFIG_EVENT_QUEUE_ENABLE
#define APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 1
#endif
// <o> APP_USBD_CONFIG_EVENT_QUEUE_SIZE - The size of the event queue. <16-64>
// <i> The size of the queue for the events that would be processed in the main loop.
#ifndef APP_USBD_CONFIG_EVENT_QUEUE_SIZE
#define APP_USBD_CONFIG_EVENT_QUEUE_SIZE 32
#endif
// <o> APP_USBD_CONFIG_SOF_HANDLING_MODE - Change SOF events handling mode.
// <i> Normal queue - SOF events are pushed normally into the event queue.
// <i> Compress queue - SOF events are counted and binded with other events or executed when the queue is empty.
// <i> This prevents the queue from filling up with SOF events.
// <i> Interrupt - SOF events are processed in interrupt.
// <0=> Normal queue
// <1=> Compress queue
// <2=> Interrupt
#ifndef APP_USBD_CONFIG_SOF_HANDLING_MODE
#define APP_USBD_CONFIG_SOF_HANDLING_MODE 1
#endif
// </e>
// <q> APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE - Provide a function that generates timestamps for logs based on the current SOF.
// <i> The function app_usbd_sof_timestamp_get is implemented if the logger is enabled.
// <i> Use it when initializing the logger.
// <i> SOF processing is always enabled when this configuration parameter is active.
// <i> Note: This option is configured outside of APP_USBD_CONFIG_LOG_ENABLED.
// <i> This means that it works even if the logging in this very module is disabled.
#ifndef APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE
#define APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE 0
#endif
// <o> APP_USBD_CONFIG_DESC_STRING_SIZE - Maximum size of the NULL-terminated string of the string descriptor. <31-254>
// <i> 31 characters can be stored in the internal USB buffer used for transfers.
// <i> Any value higher than 31 creates an additional buffer just for descriptor strings.
#ifndef APP_USBD_CONFIG_DESC_STRING_SIZE
#define APP_USBD_CONFIG_DESC_STRING_SIZE 31
#endif
// <q> APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED - Enable UTF8 conversion.
// <i> Enable UTF8-encoded characters. In normal processing, only ASCII characters are available.
#ifndef APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED
#define APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED 0
#endif
// <s> APP_USBD_STRINGS_LANGIDS - Supported languages identifiers.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Comma-separated list of supported languages.
#ifndef APP_USBD_STRINGS_LANGIDS
#define APP_USBD_STRINGS_LANGIDS APP_USBD_LANG_AND_SUBLANG(APP_USBD_LANG_ENGLISH, APP_USBD_SUBLANG_ENGLISH_US)
#endif
// <e> APP_USBD_STRING_ID_MANUFACTURER - Define manufacturer string ID.
// <i> Setting ID to 0 disables the string.
//==========================================================
#ifndef APP_USBD_STRING_ID_MANUFACTURER
#define APP_USBD_STRING_ID_MANUFACTURER 1
#endif
// <q> APP_USBD_STRINGS_MANUFACTURER_EXTERN - Define whether @ref APP_USBD_STRINGS_MANUFACTURER is created by macro or declared as a global variable.
#ifndef APP_USBD_STRINGS_MANUFACTURER_EXTERN
#define APP_USBD_STRINGS_MANUFACTURER_EXTERN 0
#endif
// <s> APP_USBD_STRINGS_MANUFACTURER - String descriptor for the manufacturer name.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Comma-separated list of manufacturer names for each defined language.
// <i> Use @ref APP_USBD_STRING_DESC macro to create string descriptor from a NULL-terminated string.
// <i> Use @ref APP_USBD_STRING_RAW8_DESC macro to create string descriptor from comma-separated uint8_t values.
// <i> Use @ref APP_USBD_STRING_RAW16_DESC macro to create string descriptor from comma-separated uint16_t values.
// <i> Alternatively, configure the macro to point to any internal variable pointer that already contains the descriptor.
// <i> Setting string to NULL disables that string.
// <i> The order of manufacturer names must be the same like in @ref APP_USBD_STRINGS_LANGIDS.
#ifndef APP_USBD_STRINGS_MANUFACTURER
#define APP_USBD_STRINGS_MANUFACTURER APP_USBD_STRING_DESC("Nordic Semiconductor")
#endif
// </e>
// <e> APP_USBD_STRING_ID_PRODUCT - Define product string ID.
// <i> Setting ID to 0 disables the string.
//==========================================================
#ifndef APP_USBD_STRING_ID_PRODUCT
#define APP_USBD_STRING_ID_PRODUCT 2
#endif
// <q> APP_USBD_STRINGS_PRODUCT_EXTERN - Define whether @ref APP_USBD_STRINGS_PRODUCT is created by macro or declared as a global variable.
#ifndef APP_USBD_STRINGS_PRODUCT_EXTERN
#define APP_USBD_STRINGS_PRODUCT_EXTERN 0
#endif
// <s> APP_USBD_STRINGS_PRODUCT - String descriptor for the product name.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> List of product names that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
#ifndef APP_USBD_STRINGS_PRODUCT
#define APP_USBD_STRINGS_PRODUCT APP_USBD_STRING_DESC("nRF52 USB Product")
#endif
// </e>
// <e> APP_USBD_STRING_ID_SERIAL - Define serial number string ID.
// <i> Setting ID to 0 disables the string.
//==========================================================
#ifndef APP_USBD_STRING_ID_SERIAL
#define APP_USBD_STRING_ID_SERIAL 3
#endif
// <q> APP_USBD_STRING_SERIAL_EXTERN - Define whether @ref APP_USBD_STRING_SERIAL is created by macro or declared as a global variable.
#ifndef APP_USBD_STRING_SERIAL_EXTERN
#define APP_USBD_STRING_SERIAL_EXTERN 0
#endif
// <s> APP_USBD_STRING_SERIAL - String descriptor for the serial number.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Serial number that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
#ifndef APP_USBD_STRING_SERIAL
#define APP_USBD_STRING_SERIAL APP_USBD_STRING_DESC("000000000000")
#endif
// </e>
// <e> APP_USBD_STRING_ID_CONFIGURATION - Define configuration string ID.
// <i> Setting ID to 0 disables the string.
//==========================================================
#ifndef APP_USBD_STRING_ID_CONFIGURATION
#define APP_USBD_STRING_ID_CONFIGURATION 4
#endif
// <q> APP_USBD_STRING_CONFIGURATION_EXTERN - Define whether @ref APP_USBD_STRINGS_CONFIGURATION is created by macro or declared as global variable.
#ifndef APP_USBD_STRING_CONFIGURATION_EXTERN
#define APP_USBD_STRING_CONFIGURATION_EXTERN 0
#endif
// <s> APP_USBD_STRINGS_CONFIGURATION - String descriptor for the device configuration.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> Configuration string that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
#ifndef APP_USBD_STRINGS_CONFIGURATION
#define APP_USBD_STRINGS_CONFIGURATION APP_USBD_STRING_DESC("Default configuration")
#endif
// </e>
// <s> APP_USBD_STRINGS_USER - Default values for user strings.
// <i> Note: This value is not editable in Configuration Wizard.
// <i> This value stores all application specific user strings with the default initialization.
// <i> The setup is done by X-macros.
// <i> Expected macro parameters:
// <i> @code
// <i> X(mnemonic, [=str_idx], ...)
// <i> @endcode
// <i> - @c mnemonic: Mnemonic of the string descriptor that would be added to
// <i> @ref app_usbd_string_desc_idx_t enumerator.
// <i> - @c str_idx : String index value, can be set or left empty.
// <i> For example, WinUSB driver requires descriptor to be present on 0xEE index.
// <i> Then use X(USBD_STRING_WINUSB, =0xEE, (APP_USBD_STRING_DESC(...)))
// <i> - @c ... : List of string descriptors for each defined language.
#ifndef APP_USBD_STRINGS_USER
#define APP_USBD_STRINGS_USER X(APP_USER_1, , APP_USBD_STRING_DESC("User 1"))
#endif
// </e>
// <e> APP_USBD_HID_ENABLED - app_usbd_hid - USB HID class
//==========================================================
#ifndef APP_USBD_HID_ENABLED
#define APP_USBD_HID_ENABLED 0
#endif
// <o> APP_USBD_HID_DEFAULT_IDLE_RATE - Default idle rate for HID class. <0-255>
// <i> 0 means indefinite duration, any other value is multiplied by 4 milliseconds. Refer to Chapter 7.2.4 of HID 1.11 Specification.
#ifndef APP_USBD_HID_DEFAULT_IDLE_RATE
#define APP_USBD_HID_DEFAULT_IDLE_RATE 0
#endif
// <o> APP_USBD_HID_REPORT_IDLE_TABLE_SIZE - Size of idle rate table. <1-255>
// <i> Must be higher than the highest report ID used.
#ifndef APP_USBD_HID_REPORT_IDLE_TABLE_SIZE
#define APP_USBD_HID_REPORT_IDLE_TABLE_SIZE 4
#endif
// </e>
// <q> APP_USBD_HID_GENERIC_ENABLED - app_usbd_hid_generic - USB HID generic
#ifndef APP_USBD_HID_GENERIC_ENABLED
#define APP_USBD_HID_GENERIC_ENABLED 0
#endif
// <q> APP_USBD_HID_KBD_ENABLED - app_usbd_hid_kbd - USB HID keyboard
#ifndef APP_USBD_HID_KBD_ENABLED
#define APP_USBD_HID_KBD_ENABLED 0
#endif
// <q> APP_USBD_HID_MOUSE_ENABLED - app_usbd_hid_mouse - USB HID mouse
#ifndef APP_USBD_HID_MOUSE_ENABLED
#define APP_USBD_HID_MOUSE_ENABLED 0
#endif
// <q> APP_USBD_MSC_ENABLED - app_usbd_msc - USB MSC class
#ifndef APP_USBD_MSC_ENABLED
#define APP_USBD_MSC_ENABLED 0
#endif
// <q> CRC16_ENABLED - crc16 - CRC16 calculation routines
#ifndef CRC16_ENABLED
#define CRC16_ENABLED 0
#endif
// <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
#ifndef CRC32_ENABLED
#define CRC32_ENABLED 0
#endif
// <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
#ifndef ECC_ENABLED
#define ECC_ENABLED 0
#endif
// <e> FDS_ENABLED - fds - Flash data storage module
//==========================================================
#ifndef FDS_ENABLED
#define FDS_ENABLED 0
#endif
// <h> Pages - Virtual page settings
// <i> Configure the number of virtual pages to use and their size.
//==========================================================
// <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use.
// <i> One of the virtual pages is reserved by the system for garbage collection.
// <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.
// <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.
#ifndef FDS_VIRTUAL_PAGES
#define FDS_VIRTUAL_PAGES 3
#endif
// <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual flash page.
// <i> Expressed in number of 4-byte words.
// <i> By default, a virtual page is the same size as a physical page.
// <i> The size of a virtual page must be a multiple of the size of a physical page.
// <1024=> 1024
// <2048=> 2048
#ifndef FDS_VIRTUAL_PAGE_SIZE
#define FDS_VIRTUAL_PAGE_SIZE 1024
#endif
// </h>
//==========================================================
// <h> Backend - Backend configuration
// <i> Configure which nrf_fstorage backend is used by FDS to write to flash.
//==========================================================
// <o> FDS_BACKEND - FDS flash backend.
// <i> NRF_FSTORAGE_SD uses the nrf_fstorage_sd backend implementation using the SoftDevice API. Use this if you have a SoftDevice present.
// <i> NRF_FSTORAGE_NVMC uses the nrf_fstorage_nvmc implementation. Use this setting if you don't use the SoftDevice.
// <1=> NRF_FSTORAGE_NVMC
// <2=> NRF_FSTORAGE_SD
#ifndef FDS_BACKEND
#define FDS_BACKEND 2
#endif
// </h>
//==========================================================
// <h> Queue - Queue settings
//==========================================================
// <o> FDS_OP_QUEUE_SIZE - Size of the internal queue.
// <i> Increase this value if you frequently get synchronous FDS_ERR_NO_SPACE_IN_QUEUES errors.
#ifndef FDS_OP_QUEUE_SIZE
#define FDS_OP_QUEUE_SIZE 4
#endif
// </h>
//==========================================================
// <h> CRC - CRC functionality
//==========================================================
// <e> FDS_CRC_CHECK_ON_READ - Enable CRC checks.
// <i> Save a record's CRC when it is written to flash and check it when the record is opened.
// <i> Records with an incorrect CRC can still be 'seen' by the user using FDS functions, but they cannot be opened.
// <i> Additionally, they will not be garbage collected until they are deleted.
//==========================================================
#ifndef FDS_CRC_CHECK_ON_READ
#define FDS_CRC_CHECK_ON_READ 0
#endif
// <o> FDS_CRC_CHECK_ON_WRITE - Perform a CRC check on newly written records.
// <i> Perform a CRC check on newly written records.
// <i> This setting can be used to make sure that the record data was not altered while being written to flash.
// <1=> Enabled
// <0=> Disabled
#ifndef FDS_CRC_CHECK_ON_WRITE
#define FDS_CRC_CHECK_ON_WRITE 0
#endif
// </e>
// </h>
//==========================================================
// <h> Users - Number of users
//==========================================================
// <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered.
#ifndef FDS_MAX_USERS
#define FDS_MAX_USERS 4
#endif
// </h>
//==========================================================
// </e>
// <q> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release
#ifndef HARDFAULT_HANDLER_ENABLED
#define HARDFAULT_HANDLER_ENABLED 0
#endif
// <e> HCI_MEM_POOL_ENABLED - hci_mem_pool - memory pool implementation used by HCI
//==========================================================
#ifndef HCI_MEM_POOL_ENABLED
#define HCI_MEM_POOL_ENABLED 0
#endif
// <o> HCI_TX_BUF_SIZE - TX buffer size in bytes.
#ifndef HCI_TX_BUF_SIZE
#define HCI_TX_BUF_SIZE 600
#endif
// <o> HCI_RX_BUF_SIZE - RX buffer size in bytes.
#ifndef HCI_RX_BUF_SIZE
#define HCI_RX_BUF_SIZE 600
#endif
// <o> HCI_RX_BUF_QUEUE_SIZE - RX buffer queue size.
#ifndef HCI_RX_BUF_QUEUE_SIZE
#define HCI_RX_BUF_QUEUE_SIZE 4
#endif
// </e>
// <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI
//==========================================================
#ifndef HCI_SLIP_ENABLED
#define HCI_SLIP_ENABLED 0
#endif
// <o> HCI_UART_BAUDRATE - Default Baudrate
// <323584=> 1200 baud
// <643072=> 2400 baud
// <1290240=> 4800 baud
// <2576384=> 9600 baud
// <3862528=> 14400 baud
// <5152768=> 19200 baud
// <7716864=> 28800 baud
// <10289152=> 38400 baud
// <15400960=> 57600 baud
// <20615168=> 76800 baud
// <30801920=> 115200 baud
// <61865984=> 230400 baud
// <67108864=> 250000 baud
// <121634816=> 460800 baud
// <251658240=> 921600 baud
// <268435456=> 1000000 baud
#ifndef HCI_UART_BAUDRATE
#define HCI_UART_BAUDRATE 30801920
#endif
// <o> HCI_UART_FLOW_CONTROL - Hardware Flow Control
// <0=> Disabled
// <1=> Enabled
#ifndef HCI_UART_FLOW_CONTROL
#define HCI_UART_FLOW_CONTROL 0
#endif
// <o> HCI_UART_RX_PIN - UART RX pin
#ifndef HCI_UART_RX_PIN
#define HCI_UART_RX_PIN 19
#endif
// <o> HCI_UART_TX_PIN - UART TX pin
#ifndef HCI_UART_TX_PIN
#define HCI_UART_TX_PIN 20
#endif
// <o> HCI_UART_RTS_PIN - UART RTS pin
#ifndef HCI_UART_RTS_PIN
#define HCI_UART_RTS_PIN 5
#endif
// <o> HCI_UART_CTS_PIN - UART CTS pin
#ifndef HCI_UART_CTS_PIN
#define HCI_UART_CTS_PIN 7
#endif
// </e>
// <e> HCI_TRANSPORT_ENABLED - hci_transport - HCI transport
//==========================================================
#ifndef HCI_TRANSPORT_ENABLED
#define HCI_TRANSPORT_ENABLED 0
#endif
// <o> HCI_MAX_PACKET_SIZE_IN_BITS - Maximum size of a single application packet in bits.
#ifndef HCI_MAX_PACKET_SIZE_IN_BITS
#define HCI_MAX_PACKET_SIZE_IN_BITS 8000
#endif
// </e>
// <q> LED_SOFTBLINK_ENABLED - led_softblink - led_softblink module
#ifndef LED_SOFTBLINK_ENABLED
#define LED_SOFTBLINK_ENABLED 0
#endif
// <q> LOW_POWER_PWM_ENABLED - low_power_pwm - low_power_pwm module
#ifndef LOW_POWER_PWM_ENABLED
#define LOW_POWER_PWM_ENABLED 0
#endif
// <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
//==========================================================
#ifndef MEM_MANAGER_ENABLED
#define MEM_MANAGER_ENABLED 0
#endif
// <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
#ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
#define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
#endif
// <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
// <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
#define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
#endif
// <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
#ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
#define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
// <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
#define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
#endif
// <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
#ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
#define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
// <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
#define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
#endif
// <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
#ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
#define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
// <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
#define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
#endif
// <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
#ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
#define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
// <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
#define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
#endif
// <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
#ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
#define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
// <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
#define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
#endif
// <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
#ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
#define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
#endif
// <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
// <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
#ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
#define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
#endif
// <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
#define MEM_MANAGER_CONFIG_LOG_ENABLED 0
#endif
// <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
#define MEM_MANAGER_CONFIG_LOG_LEVEL 3
#endif
// <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef MEM_MANAGER_CONFIG_INFO_COLOR
#define MEM_MANAGER_CONFIG_INFO_COLOR 0
#endif
// <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
#define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
#ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
#define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
#endif
// </e>
// <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
//==========================================================
#ifndef NRF_BALLOC_ENABLED
#define NRF_BALLOC_ENABLED 1
#endif
// <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
//==========================================================
#ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
#define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
#endif
// <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
#ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
#define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
#endif
// <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
#ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
#define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
#endif
// <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
#ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
#define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
#endif
// <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
#ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
#define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
#endif
// <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
#ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
#define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
#endif
// <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
#ifndef NRF_BALLOC_CLI_CMDS
#define NRF_BALLOC_CLI_CMDS 0
#endif
// </e>
// </e>
// <e> NRF_CSENSE_ENABLED - nrf_csense - Capacitive sensor module
//==========================================================
#ifndef NRF_CSENSE_ENABLED
#define NRF_CSENSE_ENABLED 0
#endif
// <o> NRF_CSENSE_PAD_HYSTERESIS - Minimum value of change required to determine that a pad was touched.
#ifndef NRF_CSENSE_PAD_HYSTERESIS
#define NRF_CSENSE_PAD_HYSTERESIS 15
#endif
// <o> NRF_CSENSE_PAD_DEVIATION - Minimum value measured on a pad required to take it into account while calculating the step.
#ifndef NRF_CSENSE_PAD_DEVIATION
#define NRF_CSENSE_PAD_DEVIATION 70
#endif
// <o> NRF_CSENSE_MIN_PAD_VALUE - Minimum normalized value on a pad required to take its value into account.
#ifndef NRF_CSENSE_MIN_PAD_VALUE
#define NRF_CSENSE_MIN_PAD_VALUE 20
#endif
// <o> NRF_CSENSE_MAX_PADS_NUMBER - Maximum number of pads used for one instance.
#ifndef NRF_CSENSE_MAX_PADS_NUMBER
#define NRF_CSENSE_MAX_PADS_NUMBER 20
#endif
// <o> NRF_CSENSE_MAX_VALUE - Maximum normalized value obtained from measurement.
#ifndef NRF_CSENSE_MAX_VALUE
#define NRF_CSENSE_MAX_VALUE 1000
#endif
// <o> NRF_CSENSE_OUTPUT_PIN - Output pin used by the low-level module.
// <i> This is used when capacitive sensor does not use COMP.
#ifndef NRF_CSENSE_OUTPUT_PIN
#define NRF_CSENSE_OUTPUT_PIN 26
#endif
// </e>
// <e> NRF_DRV_CSENSE_ENABLED - nrf_drv_csense - Capacitive sensor low-level module
//==========================================================
#ifndef NRF_DRV_CSENSE_ENABLED
#define NRF_DRV_CSENSE_ENABLED 0
#endif
// <e> USE_COMP - Use the comparator to implement the capacitive sensor driver.
// <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation.
//==========================================================
#ifndef USE_COMP
#define USE_COMP 0
#endif
// <o> TIMER0_FOR_CSENSE - First TIMER instance used by the driver (not used on nRF51).
#ifndef TIMER0_FOR_CSENSE
#define TIMER0_FOR_CSENSE 1
#endif
// <o> TIMER1_FOR_CSENSE - Second TIMER instance used by the driver (not used on nRF51).
#ifndef TIMER1_FOR_CSENSE
#define TIMER1_FOR_CSENSE 2
#endif
// <o> MEASUREMENT_PERIOD - Single measurement period.
// <i> Time of a single measurement can be calculated as
// <i> T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ).
// <i> I_SOURCE, VUP, and VDOWN are values used to initialize COMP and C is the capacitance of the used pad.
#ifndef MEASUREMENT_PERIOD
#define MEASUREMENT_PERIOD 20
#endif
// </e>
// </e>
// <q> NRF_FPRINTF_ENABLED - nrf_fprintf - fprintf function.
#ifndef NRF_FPRINTF_ENABLED
#define NRF_FPRINTF_ENABLED 1
#endif
// <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
//==========================================================
#ifndef NRF_FSTORAGE_ENABLED
#define NRF_FSTORAGE_ENABLED 0
#endif
// <h> nrf_fstorage - Common settings
// <i> Common settings to all fstorage implementations
//==========================================================
// <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
// <i> If selected, use ASSERT to validate user input.
// <i> This effectively removes user input validation in production code.
// <i> Recommended setting: OFF, only enable this setting if size is a major concern.
#ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
#define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
#endif
// </h>
//==========================================================
// <h> nrf_fstorage_sd - Implementation using the SoftDevice
// <i> Configuration options for the fstorage implementation using the SoftDevice
//==========================================================
// <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
// <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
#ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
#define NRF_FSTORAGE_SD_QUEUE_SIZE 4
#endif
// <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
// <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
// <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
#ifndef NRF_FSTORAGE_SD_MAX_RETRIES
#define NRF_FSTORAGE_SD_MAX_RETRIES 8
#endif
// <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
// <i> This value must be a multiple of four.
// <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
// <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.
// <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
#ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
#define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
#endif
// </h>
//==========================================================
// </e>
// <q> NRF_GFX_ENABLED - nrf_gfx - GFX module
#ifndef NRF_GFX_ENABLED
#define NRF_GFX_ENABLED 0
#endif
// <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
#ifndef NRF_MEMOBJ_ENABLED
#define NRF_MEMOBJ_ENABLED 1
#endif
// <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
//==========================================================
#ifndef NRF_PWR_MGMT_ENABLED
#define NRF_PWR_MGMT_ENABLED 1
#endif
// <e> NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
// <i> Selected pin will be set when CPU is in sleep mode.
//==========================================================
#ifndef NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
#define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED 0
#endif
// <o> NRF_PWR_MGMT_SLEEP_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef NRF_PWR_MGMT_SLEEP_DEBUG_PIN
#define NRF_PWR_MGMT_SLEEP_DEBUG_PIN 31
#endif
// </e>
// <q> NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED - Enables CPU usage monitor.
// <i> Module will trace percentage of CPU usage in one second intervals.
#ifndef NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED
#define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED 0
#endif
// <e> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED - Enable standby timeout.
//==========================================================
#ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
#define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED 0
#endif
// <o> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S - Standby timeout (in seconds).
// <i> Shutdown procedure will begin no earlier than after this number of seconds.
#ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S
#define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S 3
#endif
// </e>
// <q> NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED - Enables FPU event cleaning.
#ifndef NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED
#define NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED 1
#endif
// <q> NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY - Blocked shutdown procedure will be retried every second.
#ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
#define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 0
#endif
// <q> NRF_PWR_MGMT_CONFIG_USE_SCHEDULER - Module will use @ref app_scheduler.
#ifndef NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
#define NRF_PWR_MGMT_CONFIG_USE_SCHEDULER 0
#endif
// <o> NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT - The number of priorities for module handlers.
// <i> The number of stages of the shutdown process.
#ifndef NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT
#define NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT 3
#endif
// </e>
// <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
//==========================================================
#ifndef NRF_QUEUE_ENABLED
#define NRF_QUEUE_ENABLED 0
#endif
// <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
#ifndef NRF_QUEUE_CLI_CMDS
#define NRF_QUEUE_CLI_CMDS 0
#endif
// </e>
// <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
#ifndef NRF_SECTION_ITER_ENABLED
#define NRF_SECTION_ITER_ENABLED 1
#endif
// <q> NRF_SORTLIST_ENABLED - nrf_sortlist - Sorted list
#ifndef NRF_SORTLIST_ENABLED
#define NRF_SORTLIST_ENABLED 0
#endif
// <q> NRF_SPI_MNGR_ENABLED - nrf_spi_mngr - SPI transaction manager
#ifndef NRF_SPI_MNGR_ENABLED
#define NRF_SPI_MNGR_ENABLED 0
#endif
// <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
#ifndef NRF_STRERROR_ENABLED
#define NRF_STRERROR_ENABLED 1
#endif
// <q> NRF_TWI_MNGR_ENABLED - nrf_twi_mngr - TWI transaction manager
#ifndef NRF_TWI_MNGR_ENABLED
#define NRF_TWI_MNGR_ENABLED 0
#endif
// <q> SLIP_ENABLED - slip - SLIP encoding and decoding
#ifndef SLIP_ENABLED
#define SLIP_ENABLED 0
#endif
// <e> TASK_MANAGER_ENABLED - task_manager - Task manager.
//==========================================================
#ifndef TASK_MANAGER_ENABLED
#define TASK_MANAGER_ENABLED 0
#endif
// <q> TASK_MANAGER_CLI_CMDS - Enable CLI commands specific to the module
#ifndef TASK_MANAGER_CLI_CMDS
#define TASK_MANAGER_CLI_CMDS 0
#endif
// <o> TASK_MANAGER_CONFIG_MAX_TASKS - Maximum number of tasks which can be created
#ifndef TASK_MANAGER_CONFIG_MAX_TASKS
#define TASK_MANAGER_CONFIG_MAX_TASKS 2
#endif
// <o> TASK_MANAGER_CONFIG_STACK_SIZE - Stack size for every task (power of 2)
#ifndef TASK_MANAGER_CONFIG_STACK_SIZE
#define TASK_MANAGER_CONFIG_STACK_SIZE 1024
#endif
// <q> TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED - Enable stack profiling.
#ifndef TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED
#define TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED 1
#endif
// <o> TASK_MANAGER_CONFIG_STACK_GUARD - Configures stack guard.
// <0=> Disabled
// <4=> 32 bytes
// <5=> 64 bytes
// <6=> 128 bytes
// <7=> 256 bytes
// <8=> 512 bytes
#ifndef TASK_MANAGER_CONFIG_STACK_GUARD
#define TASK_MANAGER_CONFIG_STACK_GUARD 7
#endif
// </e>
// <h> app_button - buttons handling module
//==========================================================
// <q> BUTTON_ENABLED - Enables Button module
#ifndef BUTTON_ENABLED
#define BUTTON_ENABLED 1
#endif
// <q> BUTTON_HIGH_ACCURACY_ENABLED - Enables GPIOTE high accuracy for buttons
#ifndef BUTTON_HIGH_ACCURACY_ENABLED
#define BUTTON_HIGH_ACCURACY_ENABLED 0
#endif
// </h>
//==========================================================
// <h> app_usbd_cdc_acm - USB CDC ACM class
//==========================================================
// <q> APP_USBD_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library
#ifndef APP_USBD_CDC_ACM_ENABLED
#define APP_USBD_CDC_ACM_ENABLED 0
#endif
// <q> APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE - Send ZLP on write with same size as endpoint
// <i> If enabled, CDC ACM class will automatically send a zero length packet after transfer which has the same size as endpoint.
// <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.
#ifndef APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE
#define APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE 1
#endif
// </h>
//==========================================================
// <h> nrf_cli - Command line interface
//==========================================================
// <q> NRF_CLI_ENABLED - Enable/disable the CLI module.
#ifndef NRF_CLI_ENABLED
#define NRF_CLI_ENABLED 0
#endif
// <o> NRF_CLI_ARGC_MAX - Maximum number of parameters passed to the command handler.
#ifndef NRF_CLI_ARGC_MAX
#define NRF_CLI_ARGC_MAX 12
#endif
// <q> NRF_CLI_BUILD_IN_CMDS_ENABLED - CLI built-in commands.
#ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
#define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
#endif
// <o> NRF_CLI_CMD_BUFF_SIZE - Maximum buffer size for a single command.
#ifndef NRF_CLI_CMD_BUFF_SIZE
#define NRF_CLI_CMD_BUFF_SIZE 128
#endif
// <q> NRF_CLI_ECHO_STATUS - CLI echo status. If set, echo is ON.
#ifndef NRF_CLI_ECHO_STATUS
#define NRF_CLI_ECHO_STATUS 1
#endif
// <q> NRF_CLI_WILDCARD_ENABLED - Enable wildcard functionality for CLI commands.
#ifndef NRF_CLI_WILDCARD_ENABLED
#define NRF_CLI_WILDCARD_ENABLED 0
#endif
// <q> NRF_CLI_METAKEYS_ENABLED - Enable additional control keys for CLI commands like ctrl+a, ctrl+e, ctrl+w, ctrl+u
#ifndef NRF_CLI_METAKEYS_ENABLED
#define NRF_CLI_METAKEYS_ENABLED 0
#endif
// <o> NRF_CLI_PRINTF_BUFF_SIZE - Maximum print buffer size.
#ifndef NRF_CLI_PRINTF_BUFF_SIZE
#define NRF_CLI_PRINTF_BUFF_SIZE 23
#endif
// <e> NRF_CLI_HISTORY_ENABLED - Enable CLI history mode.
//==========================================================
#ifndef NRF_CLI_HISTORY_ENABLED
#define NRF_CLI_HISTORY_ENABLED 1
#endif
// <o> NRF_CLI_HISTORY_ELEMENT_SIZE - Size of one memory object reserved for CLI history.
#ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
#define NRF_CLI_HISTORY_ELEMENT_SIZE 32
#endif
// <o> NRF_CLI_HISTORY_ELEMENT_COUNT - Number of history memory objects.
#ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
#define NRF_CLI_HISTORY_ELEMENT_COUNT 8
#endif
// </e>
// <q> NRF_CLI_VT100_COLORS_ENABLED - CLI VT100 colors.
#ifndef NRF_CLI_VT100_COLORS_ENABLED
#define NRF_CLI_VT100_COLORS_ENABLED 1
#endif
// <q> NRF_CLI_STATISTICS_ENABLED - Enable CLI statistics.
#ifndef NRF_CLI_STATISTICS_ENABLED
#define NRF_CLI_STATISTICS_ENABLED 1
#endif
// <q> NRF_CLI_LOG_BACKEND - Enable logger backend interface.
#ifndef NRF_CLI_LOG_BACKEND
#define NRF_CLI_LOG_BACKEND 1
#endif
// <q> NRF_CLI_USES_TASK_MANAGER_ENABLED - Enable CLI to use task_manager
#ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
#define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// <h> nRF_Log
//==========================================================
// <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
//==========================================================
#ifndef NRF_LOG_BACKEND_RTT_ENABLED
#define NRF_LOG_BACKEND_RTT_ENABLED 0
#endif
// <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
// <i> Size of the buffer is a trade-off between RAM usage and processing.
// <i> if buffer is smaller then strings will often be fragmented.
// <i> It is recommended to use size which will fit typical log and only the
// <i> longer one will be fragmented.
#ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
#define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
#endif
// <o> NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT
#ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
#define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
#endif
// <o> NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries.
// <i> If RTT fails to accept any new data after retries
// <i> module assumes that host is not active and on next
// <i> request it will perform only one write attempt.
// <i> On successful writing, module assumes that host is active
// <i> and scheme with retry is applied again.
#ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
#define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
#endif
// </e>
// <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
//==========================================================
#ifndef NRF_LOG_BACKEND_UART_ENABLED
#define NRF_LOG_BACKEND_UART_ENABLED 1
#endif
// <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin
#ifndef NRF_LOG_BACKEND_UART_TX_PIN
#define NRF_LOG_BACKEND_UART_TX_PIN 20
#endif
// <o> NRF_LOG_BACKEND_UART_BAUDRATE - Default Baudrate
// <323584=> 1200 baud
// <643072=> 2400 baud
// <1290240=> 4800 baud
// <2576384=> 9600 baud
// <3862528=> 14400 baud
// <5152768=> 19200 baud
// <7716864=> 28800 baud
// <10289152=> 38400 baud
// <15400960=> 57600 baud
// <20615168=> 76800 baud
// <30801920=> 115200 baud
// <61865984=> 230400 baud
// <67108864=> 250000 baud
// <121634816=> 460800 baud
// <251658240=> 921600 baud
// <268435456=> 1000000 baud
#ifndef NRF_LOG_BACKEND_UART_BAUDRATE
#define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
#endif
// <o> NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
// <i> Size of the buffer is a trade-off between RAM usage and processing.
// <i> if buffer is smaller then strings will often be fragmented.
// <i> It is recommended to use size which will fit typical log and only the
// <i> longer one will be fragmented.
#ifndef NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
#define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
#endif
// </e>
// <e> NRF_LOG_ENABLED - nrf_log - Logger
//==========================================================
#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1
#endif
// <h> Log message pool - Configuration of log message pool
//==========================================================
// <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
// <i> If a small value is set, then performance of logs processing
// <i> is degraded because data is fragmented. Bigger value impacts
// <i> RAM memory utilization. The size is set to fit a message with
// <i> a timestamp and up to 2 arguments in a single memory object.
#ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
#define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
#endif
// <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
// <i> If a small value is set, then it may lead to a deadlock
// <i> in certain cases if backend has high latency and holds
// <i> multiple messages for long time. Bigger value impacts
// <i> RAM memory usage.
#ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
#define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
#endif
// </h>
//==========================================================
// <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
// <i> If set then oldest logs are overwritten. Otherwise a
// <i> marker is injected informing about overflow.
#ifndef NRF_LOG_ALLOW_OVERFLOW
#define NRF_LOG_ALLOW_OVERFLOW 1
#endif
// <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
// <i> Must be power of 2 and multiple of 4.
// <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
// <128=> 128
// <256=> 256
// <512=> 512
// <1024=> 1024
// <2048=> 2048
// <4096=> 4096
// <8192=> 8192
// <16384=> 16384
#ifndef NRF_LOG_BUFSIZE
#define NRF_LOG_BUFSIZE 1024
#endif
// <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
#ifndef NRF_LOG_CLI_CMDS
#define NRF_LOG_CLI_CMDS 0
#endif
// <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_LOG_DEFAULT_LEVEL
#define NRF_LOG_DEFAULT_LEVEL 3
#endif
// <q> NRF_LOG_DEFERRED - Enable deffered logger.
// <i> Log data is buffered and can be processed in idle.
#ifndef NRF_LOG_DEFERRED
#define NRF_LOG_DEFERRED 1
#endif
// <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
#ifndef NRF_LOG_FILTERS_ENABLED
#define NRF_LOG_FILTERS_ENABLED 0
#endif
// <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
// <16=> 16
// <32=> 32
// <64=> 64
// <128=> 128
// <256=> 256
// <512=> 512
// <1024=> 1024
#ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
#define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
#endif
// <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
// <16=> 16
// <32=> 32
// <64=> 64
// <128=> 128
// <256=> 256
// <512=> 512
// <1024=> 1024
#ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
#define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
#endif
// <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
//==========================================================
#ifndef NRF_LOG_USES_COLORS
#define NRF_LOG_USES_COLORS 0
#endif
// <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_LOG_COLOR_DEFAULT
#define NRF_LOG_COLOR_DEFAULT 0
#endif
// <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_LOG_ERROR_COLOR
#define NRF_LOG_ERROR_COLOR 2
#endif
// <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_LOG_WARNING_COLOR
#define NRF_LOG_WARNING_COLOR 4
#endif
// </e>
// <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
// <i> Function for getting the timestamp is provided by the user
//==========================================================
#ifndef NRF_LOG_USES_TIMESTAMP
#define NRF_LOG_USES_TIMESTAMP 0
#endif
// <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
#ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
#define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
#endif
// </e>
// <h> nrf_log module configuration
//==========================================================
// <h> nrf_log in nRF_Core
//==========================================================
// <e> NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_MPU_CONFIG_LOG_ENABLED
#define NRF_MPU_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_MPU_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_MPU_CONFIG_LOG_LEVEL
#define NRF_MPU_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_MPU_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_MPU_CONFIG_INFO_COLOR
#define NRF_MPU_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_MPU_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_MPU_CONFIG_DEBUG_COLOR
#define NRF_MPU_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
#define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
#define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
#define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
#define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
#define TASK_MANAGER_CONFIG_LOG_ENABLED 0
#endif
// <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
#define TASK_MANAGER_CONFIG_LOG_LEVEL 3
#endif
// <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TASK_MANAGER_CONFIG_INFO_COLOR
#define TASK_MANAGER_CONFIG_INFO_COLOR 0
#endif
// <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
#define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </h>
//==========================================================
// <h> nrf_log in nRF_Drivers
//==========================================================
// <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef CLOCK_CONFIG_LOG_ENABLED
#define CLOCK_CONFIG_LOG_ENABLED 0
#endif
// <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef CLOCK_CONFIG_LOG_LEVEL
#define CLOCK_CONFIG_LOG_LEVEL 3
#endif
// <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef CLOCK_CONFIG_INFO_COLOR
#define CLOCK_CONFIG_INFO_COLOR 0
#endif
// <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef CLOCK_CONFIG_DEBUG_COLOR
#define CLOCK_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef COMP_CONFIG_LOG_ENABLED
#define COMP_CONFIG_LOG_ENABLED 0
#endif
// <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef COMP_CONFIG_LOG_LEVEL
#define COMP_CONFIG_LOG_LEVEL 3
#endif
// <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef COMP_CONFIG_INFO_COLOR
#define COMP_CONFIG_INFO_COLOR 0
#endif
// <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef COMP_CONFIG_DEBUG_COLOR
#define COMP_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef GPIOTE_CONFIG_LOG_ENABLED
#define GPIOTE_CONFIG_LOG_ENABLED 0
#endif
// <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef GPIOTE_CONFIG_LOG_LEVEL
#define GPIOTE_CONFIG_LOG_LEVEL 3
#endif
// <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef GPIOTE_CONFIG_INFO_COLOR
#define GPIOTE_CONFIG_INFO_COLOR 0
#endif
// <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef GPIOTE_CONFIG_DEBUG_COLOR
#define GPIOTE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef LPCOMP_CONFIG_LOG_ENABLED
#define LPCOMP_CONFIG_LOG_ENABLED 0
#endif
// <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef LPCOMP_CONFIG_LOG_LEVEL
#define LPCOMP_CONFIG_LOG_LEVEL 3
#endif
// <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef LPCOMP_CONFIG_INFO_COLOR
#define LPCOMP_CONFIG_INFO_COLOR 0
#endif
// <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef LPCOMP_CONFIG_DEBUG_COLOR
#define LPCOMP_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
//==========================================================
#ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
#define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
#endif
// <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
#define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
#endif
// <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
#define MAX3421E_HOST_CONFIG_INFO_COLOR 0
#endif
// <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
#define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef PDM_CONFIG_LOG_ENABLED
#define PDM_CONFIG_LOG_ENABLED 0
#endif
// <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef PDM_CONFIG_LOG_LEVEL
#define PDM_CONFIG_LOG_LEVEL 3
#endif
// <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PDM_CONFIG_INFO_COLOR
#define PDM_CONFIG_INFO_COLOR 0
#endif
// <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PDM_CONFIG_DEBUG_COLOR
#define PDM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef PPI_CONFIG_LOG_ENABLED
#define PPI_CONFIG_LOG_ENABLED 0
#endif
// <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef PPI_CONFIG_LOG_LEVEL
#define PPI_CONFIG_LOG_LEVEL 3
#endif
// <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PPI_CONFIG_INFO_COLOR
#define PPI_CONFIG_INFO_COLOR 0
#endif
// <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PPI_CONFIG_DEBUG_COLOR
#define PPI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef PWM_CONFIG_LOG_ENABLED
#define PWM_CONFIG_LOG_ENABLED 0
#endif
// <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef PWM_CONFIG_LOG_LEVEL
#define PWM_CONFIG_LOG_LEVEL 3
#endif
// <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PWM_CONFIG_INFO_COLOR
#define PWM_CONFIG_INFO_COLOR 0
#endif
// <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PWM_CONFIG_DEBUG_COLOR
#define PWM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef QDEC_CONFIG_LOG_ENABLED
#define QDEC_CONFIG_LOG_ENABLED 0
#endif
// <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef QDEC_CONFIG_LOG_LEVEL
#define QDEC_CONFIG_LOG_LEVEL 3
#endif
// <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef QDEC_CONFIG_INFO_COLOR
#define QDEC_CONFIG_INFO_COLOR 0
#endif
// <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef QDEC_CONFIG_DEBUG_COLOR
#define QDEC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef RNG_CONFIG_LOG_ENABLED
#define RNG_CONFIG_LOG_ENABLED 0
#endif
// <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef RNG_CONFIG_LOG_LEVEL
#define RNG_CONFIG_LOG_LEVEL 3
#endif
// <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef RNG_CONFIG_INFO_COLOR
#define RNG_CONFIG_INFO_COLOR 0
#endif
// <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef RNG_CONFIG_DEBUG_COLOR
#define RNG_CONFIG_DEBUG_COLOR 0
#endif
// <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
#ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
#define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
#endif
// </e>
// <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef RTC_CONFIG_LOG_ENABLED
#define RTC_CONFIG_LOG_ENABLED 0
#endif
// <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef RTC_CONFIG_LOG_LEVEL
#define RTC_CONFIG_LOG_LEVEL 3
#endif
// <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef RTC_CONFIG_INFO_COLOR
#define RTC_CONFIG_INFO_COLOR 0
#endif
// <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef RTC_CONFIG_DEBUG_COLOR
#define RTC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef SAADC_CONFIG_LOG_ENABLED
#define SAADC_CONFIG_LOG_ENABLED 0
#endif
// <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef SAADC_CONFIG_LOG_LEVEL
#define SAADC_CONFIG_LOG_LEVEL 3
#endif
// <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SAADC_CONFIG_INFO_COLOR
#define SAADC_CONFIG_INFO_COLOR 0
#endif
// <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SAADC_CONFIG_DEBUG_COLOR
#define SAADC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef SPIS_CONFIG_LOG_ENABLED
#define SPIS_CONFIG_LOG_ENABLED 0
#endif
// <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef SPIS_CONFIG_LOG_LEVEL
#define SPIS_CONFIG_LOG_LEVEL 3
#endif
// <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SPIS_CONFIG_INFO_COLOR
#define SPIS_CONFIG_INFO_COLOR 0
#endif
// <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SPIS_CONFIG_DEBUG_COLOR
#define SPIS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef SPI_CONFIG_LOG_ENABLED
#define SPI_CONFIG_LOG_ENABLED 0
#endif
// <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef SPI_CONFIG_LOG_LEVEL
#define SPI_CONFIG_LOG_LEVEL 3
#endif
// <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SPI_CONFIG_INFO_COLOR
#define SPI_CONFIG_INFO_COLOR 0
#endif
// <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SPI_CONFIG_DEBUG_COLOR
#define SPI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef TIMER_CONFIG_LOG_ENABLED
#define TIMER_CONFIG_LOG_ENABLED 0
#endif
// <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef TIMER_CONFIG_LOG_LEVEL
#define TIMER_CONFIG_LOG_LEVEL 3
#endif
// <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TIMER_CONFIG_INFO_COLOR
#define TIMER_CONFIG_INFO_COLOR 0
#endif
// <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TIMER_CONFIG_DEBUG_COLOR
#define TIMER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef TWIS_CONFIG_LOG_ENABLED
#define TWIS_CONFIG_LOG_ENABLED 0
#endif
// <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef TWIS_CONFIG_LOG_LEVEL
#define TWIS_CONFIG_LOG_LEVEL 3
#endif
// <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TWIS_CONFIG_INFO_COLOR
#define TWIS_CONFIG_INFO_COLOR 0
#endif
// <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TWIS_CONFIG_DEBUG_COLOR
#define TWIS_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef TWI_CONFIG_LOG_ENABLED
#define TWI_CONFIG_LOG_ENABLED 0
#endif
// <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef TWI_CONFIG_LOG_LEVEL
#define TWI_CONFIG_LOG_LEVEL 3
#endif
// <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TWI_CONFIG_INFO_COLOR
#define TWI_CONFIG_INFO_COLOR 0
#endif
// <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef TWI_CONFIG_DEBUG_COLOR
#define TWI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef UART_CONFIG_LOG_ENABLED
#define UART_CONFIG_LOG_ENABLED 0
#endif
// <o> UART_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef UART_CONFIG_LOG_LEVEL
#define UART_CONFIG_LOG_LEVEL 3
#endif
// <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef UART_CONFIG_INFO_COLOR
#define UART_CONFIG_INFO_COLOR 0
#endif
// <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef UART_CONFIG_DEBUG_COLOR
#define UART_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
//==========================================================
#ifndef USBD_CONFIG_LOG_ENABLED
#define USBD_CONFIG_LOG_ENABLED 0
#endif
// <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef USBD_CONFIG_LOG_LEVEL
#define USBD_CONFIG_LOG_LEVEL 3
#endif
// <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef USBD_CONFIG_INFO_COLOR
#define USBD_CONFIG_INFO_COLOR 0
#endif
// <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef USBD_CONFIG_DEBUG_COLOR
#define USBD_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef WDT_CONFIG_LOG_ENABLED
#define WDT_CONFIG_LOG_ENABLED 0
#endif
// <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef WDT_CONFIG_LOG_LEVEL
#define WDT_CONFIG_LOG_LEVEL 3
#endif
// <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef WDT_CONFIG_INFO_COLOR
#define WDT_CONFIG_INFO_COLOR 0
#endif
// <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef WDT_CONFIG_DEBUG_COLOR
#define WDT_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </h>
//==========================================================
// <h> nrf_log in nRF_Libraries
//==========================================================
// <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_TIMER_CONFIG_LOG_ENABLED
#define APP_TIMER_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_TIMER_CONFIG_LOG_LEVEL
#define APP_TIMER_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
// <i> If module generates a lot of logs, initial log level can
// <i> be decreased to prevent flooding. Severity level can be
// <i> increased on instance basis.
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
#define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
#endif
// <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_TIMER_CONFIG_INFO_COLOR
#define APP_TIMER_CONFIG_INFO_COLOR 0
#endif
// <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_TIMER_CONFIG_DEBUG_COLOR
#define APP_TIMER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
#define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
#define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
#define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
#endif
// <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
#define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
//==========================================================
#ifndef APP_USBD_CONFIG_LOG_ENABLED
#define APP_USBD_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_USBD_CONFIG_LOG_LEVEL
#define APP_USBD_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_CONFIG_INFO_COLOR
#define APP_USBD_CONFIG_INFO_COLOR 0
#endif
// <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_CONFIG_DEBUG_COLOR
#define APP_USBD_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
#define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
#define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
#define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
#endif
// <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
#define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
#define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
#define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
#define APP_USBD_MSC_CONFIG_INFO_COLOR 0
#endif
// <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
#define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
#define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
#endif
// <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
#define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
#endif
// <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
#define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
#endif
// <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
#define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
#define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
#define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
#define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
#endif
// <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
#define NRF_ATFIFO_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
#define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
#define NRF_BALLOC_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
#define NRF_BALLOC_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
// <i> If module generates a lot of logs, initial log level can
// <i> be decreased to prevent flooding. Severity level can be
// <i> increased on instance basis.
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
#define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
#endif
// <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BALLOC_CONFIG_INFO_COLOR
#define NRF_BALLOC_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
#define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
#define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
#define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
#define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
#define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
#define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
#define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
#define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
#define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
#define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
#define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
#endif
// <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
#define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
#define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
#define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
#define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
#define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
#define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
#define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
#define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
#define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
#define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
#define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
#define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
#define NRF_CLI_UART_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
#define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
#define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
#define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
#define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
#define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
#define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
#define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
#define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
#define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
#define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
#define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
#define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
#define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
#define NRF_QUEUE_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
#define NRF_QUEUE_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
#define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
#endif
// <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_QUEUE_CONFIG_INFO_COLOR
#define NRF_QUEUE_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
#define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
//==========================================================
#ifndef NRF_SDH_ANT_LOG_ENABLED
#define NRF_SDH_ANT_LOG_ENABLED 0
#endif
// <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_SDH_ANT_LOG_LEVEL
#define NRF_SDH_ANT_LOG_LEVEL 3
#endif
// <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_ANT_INFO_COLOR
#define NRF_SDH_ANT_INFO_COLOR 0
#endif
// <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_ANT_DEBUG_COLOR
#define NRF_SDH_ANT_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
//==========================================================
#ifndef NRF_SDH_BLE_LOG_ENABLED
#define NRF_SDH_BLE_LOG_ENABLED 1
#endif
// <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_SDH_BLE_LOG_LEVEL
#define NRF_SDH_BLE_LOG_LEVEL 3
#endif
// <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_BLE_INFO_COLOR
#define NRF_SDH_BLE_INFO_COLOR 0
#endif
// <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_BLE_DEBUG_COLOR
#define NRF_SDH_BLE_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
//==========================================================
#ifndef NRF_SDH_LOG_ENABLED
#define NRF_SDH_LOG_ENABLED 1
#endif
// <o> NRF_SDH_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_SDH_LOG_LEVEL
#define NRF_SDH_LOG_LEVEL 3
#endif
// <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_INFO_COLOR
#define NRF_SDH_INFO_COLOR 0
#endif
// <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_DEBUG_COLOR
#define NRF_SDH_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
//==========================================================
#ifndef NRF_SDH_SOC_LOG_ENABLED
#define NRF_SDH_SOC_LOG_ENABLED 1
#endif
// <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_SDH_SOC_LOG_LEVEL
#define NRF_SDH_SOC_LOG_LEVEL 3
#endif
// <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_SOC_INFO_COLOR
#define NRF_SDH_SOC_INFO_COLOR 0
#endif
// <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SDH_SOC_DEBUG_COLOR
#define NRF_SDH_SOC_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
#define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
#define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
#define NRF_SORTLIST_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
#define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
#define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
#endif
// <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
#define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
#endif
// <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
#define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
#endif
// <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
#define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
//==========================================================
#ifndef PM_LOG_ENABLED
#define PM_LOG_ENABLED 1
#endif
// <o> PM_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef PM_LOG_LEVEL
#define PM_LOG_LEVEL 3
#endif
// <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PM_LOG_INFO_COLOR
#define PM_LOG_INFO_COLOR 0
#endif
// <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef PM_LOG_DEBUG_COLOR
#define PM_LOG_DEBUG_COLOR 0
#endif
// </e>
// </h>
//==========================================================
// <h> nrf_log in nRF_Serialization
//==========================================================
// <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
#define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
#endif
// <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
#define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
#endif
// <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
#define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
#endif
// <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
#define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// </h>
//==========================================================
// </h>
//==========================================================
// </e>
// <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
#ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
#define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
#endif
// </h>
//==========================================================
// <h> nRF_NFC
//==========================================================
// <q> NFC_AC_REC_ENABLED - nfc_ac_rec - NFC NDEF Alternative Carrier record encoder
#ifndef NFC_AC_REC_ENABLED
#define NFC_AC_REC_ENABLED 0
#endif
// <q> NFC_AC_REC_PARSER_ENABLED - nfc_ac_rec_parser - Alternative Carrier record parser
#ifndef NFC_AC_REC_PARSER_ENABLED
#define NFC_AC_REC_PARSER_ENABLED 0
#endif
// <e> NFC_BLE_OOB_ADVDATA_ENABLED - nfc_ble_oob_advdata - AD data for OOB pairing encoder
//==========================================================
#ifndef NFC_BLE_OOB_ADVDATA_ENABLED
#define NFC_BLE_OOB_ADVDATA_ENABLED 0
#endif
// <o> ADVANCED_ADVDATA_SUPPORT - Non-mandatory AD types for BLE OOB pairing are encoded inside the NDEF message (e.g. service UUIDs)
// <1=> Enabled
// <0=> Disabled
#ifndef ADVANCED_ADVDATA_SUPPORT
#define ADVANCED_ADVDATA_SUPPORT 0
#endif
// </e>
// <q> NFC_BLE_OOB_ADVDATA_PARSER_ENABLED - nfc_ble_oob_advdata_parser - BLE OOB pairing AD data parser
#ifndef NFC_BLE_OOB_ADVDATA_PARSER_ENABLED
#define NFC_BLE_OOB_ADVDATA_PARSER_ENABLED 0
#endif
// <e> NFC_BLE_PAIR_LIB_ENABLED - nfc_ble_pair_lib - Library parameters
//==========================================================
#ifndef NFC_BLE_PAIR_LIB_ENABLED
#define NFC_BLE_PAIR_LIB_ENABLED 0
#endif
// <e> NFC_BLE_PAIR_LIB_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_BLE_PAIR_LIB_LOG_ENABLED
#define NFC_BLE_PAIR_LIB_LOG_ENABLED 0
#endif
// <o> NFC_BLE_PAIR_LIB_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_BLE_PAIR_LIB_LOG_LEVEL
#define NFC_BLE_PAIR_LIB_LOG_LEVEL 3
#endif
// <o> NFC_BLE_PAIR_LIB_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_BLE_PAIR_LIB_INFO_COLOR
#define NFC_BLE_PAIR_LIB_INFO_COLOR 0
#endif
// <o> NFC_BLE_PAIR_LIB_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_BLE_PAIR_LIB_DEBUG_COLOR
#define NFC_BLE_PAIR_LIB_DEBUG_COLOR 0
#endif
// </e>
// <h> NFC_BLE_PAIR_LIB_SECURITY_PARAMETERS - Common Peer Manager security parameters.
//==========================================================
// <e> BLE_NFC_SEC_PARAM_BOND - Enables device bonding.
// <i> If bonding is enabled at least one of the BLE_NFC_SEC_PARAM_KDIST options must be enabled.
//==========================================================
#ifndef BLE_NFC_SEC_PARAM_BOND
#define BLE_NFC_SEC_PARAM_BOND 1
#endif
// <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ENC - Enables Long Term Key and Master Identification distribution by device.
#ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ENC
#define BLE_NFC_SEC_PARAM_KDIST_OWN_ENC 1
#endif
// <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ID - Enables Identity Resolving Key and Identity Address Information distribution by device.
#ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ID
#define BLE_NFC_SEC_PARAM_KDIST_OWN_ID 1
#endif
// <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ENC - Enables Long Term Key and Master Identification distribution by peer.
#ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ENC
#define BLE_NFC_SEC_PARAM_KDIST_PEER_ENC 1
#endif
// <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ID - Enables Identity Resolving Key and Identity Address Information distribution by peer.
#ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ID
#define BLE_NFC_SEC_PARAM_KDIST_PEER_ID 1
#endif
// </e>
// <o> BLE_NFC_SEC_PARAM_MIN_KEY_SIZE - Minimal size of a security key.
// <7=> 7
// <8=> 8
// <9=> 9
// <10=> 10
// <11=> 11
// <12=> 12
// <13=> 13
// <14=> 14
// <15=> 15
// <16=> 16
#ifndef BLE_NFC_SEC_PARAM_MIN_KEY_SIZE
#define BLE_NFC_SEC_PARAM_MIN_KEY_SIZE 7
#endif
// <o> BLE_NFC_SEC_PARAM_MAX_KEY_SIZE - Maximal size of a security key.
// <7=> 7
// <8=> 8
// <9=> 9
// <10=> 10
// <11=> 11
// <12=> 12
// <13=> 13
// <14=> 14
// <15=> 15
// <16=> 16
#ifndef BLE_NFC_SEC_PARAM_MAX_KEY_SIZE
#define BLE_NFC_SEC_PARAM_MAX_KEY_SIZE 16
#endif
// </h>
//==========================================================
// </e>
// <q> NFC_BLE_PAIR_MSG_ENABLED - nfc_ble_pair_msg - NDEF message for OOB pairing encoder
#ifndef NFC_BLE_PAIR_MSG_ENABLED
#define NFC_BLE_PAIR_MSG_ENABLED 0
#endif
// <q> NFC_CH_COMMON_ENABLED - nfc_ble_pair_common - OOB pairing common data
#ifndef NFC_CH_COMMON_ENABLED
#define NFC_CH_COMMON_ENABLED 0
#endif
// <q> NFC_EP_OOB_REC_ENABLED - nfc_ep_oob_rec - EP record for BLE pairing encoder
#ifndef NFC_EP_OOB_REC_ENABLED
#define NFC_EP_OOB_REC_ENABLED 0
#endif
// <q> NFC_HS_REC_ENABLED - nfc_hs_rec - Handover Select NDEF record encoder
#ifndef NFC_HS_REC_ENABLED
#define NFC_HS_REC_ENABLED 0
#endif
// <q> NFC_LE_OOB_REC_ENABLED - nfc_le_oob_rec - LE record for BLE pairing encoder
#ifndef NFC_LE_OOB_REC_ENABLED
#define NFC_LE_OOB_REC_ENABLED 0
#endif
// <q> NFC_LE_OOB_REC_PARSER_ENABLED - nfc_le_oob_rec_parser - LE record parser
#ifndef NFC_LE_OOB_REC_PARSER_ENABLED
#define NFC_LE_OOB_REC_PARSER_ENABLED 0
#endif
// <q> NFC_NDEF_LAUNCHAPP_MSG_ENABLED - nfc_launchapp_msg - Encoding data for NDEF Application Launching message for NFC Tag
#ifndef NFC_NDEF_LAUNCHAPP_MSG_ENABLED
#define NFC_NDEF_LAUNCHAPP_MSG_ENABLED 0
#endif
// <q> NFC_NDEF_LAUNCHAPP_REC_ENABLED - nfc_launchapp_rec - Encoding data for NDEF Application Launching record for NFC Tag
#ifndef NFC_NDEF_LAUNCHAPP_REC_ENABLED
#define NFC_NDEF_LAUNCHAPP_REC_ENABLED 0
#endif
// <e> NFC_NDEF_MSG_ENABLED - nfc_ndef_msg - NFC NDEF Message generator module
//==========================================================
#ifndef NFC_NDEF_MSG_ENABLED
#define NFC_NDEF_MSG_ENABLED 0
#endif
// <o> NFC_NDEF_MSG_TAG_TYPE - NFC Tag Type
// <2=> Type 2 Tag
// <4=> Type 4 Tag
#ifndef NFC_NDEF_MSG_TAG_TYPE
#define NFC_NDEF_MSG_TAG_TYPE 2
#endif
// </e>
// <e> NFC_NDEF_MSG_PARSER_ENABLED - nfc_ndef_msg_parser - NFC NDEF message parser module
//==========================================================
#ifndef NFC_NDEF_MSG_PARSER_ENABLED
#define NFC_NDEF_MSG_PARSER_ENABLED 0
#endif
// <e> NFC_NDEF_MSG_PARSER_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_NDEF_MSG_PARSER_LOG_ENABLED
#define NFC_NDEF_MSG_PARSER_LOG_ENABLED 0
#endif
// <o> NFC_NDEF_MSG_PARSER_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_NDEF_MSG_PARSER_LOG_LEVEL
#define NFC_NDEF_MSG_PARSER_LOG_LEVEL 3
#endif
// <o> NFC_NDEF_MSG_PARSER_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_NDEF_MSG_PARSER_INFO_COLOR
#define NFC_NDEF_MSG_PARSER_INFO_COLOR 0
#endif
// </e>
// </e>
// <q> NFC_NDEF_RECORD_ENABLED - nfc_ndef_record - NFC NDEF Record generator module
#ifndef NFC_NDEF_RECORD_ENABLED
#define NFC_NDEF_RECORD_ENABLED 0
#endif
// <e> NFC_NDEF_RECORD_PARSER_ENABLED - nfc_ndef_record_parser - NFC NDEF Record parser module
//==========================================================
#ifndef NFC_NDEF_RECORD_PARSER_ENABLED
#define NFC_NDEF_RECORD_PARSER_ENABLED 0
#endif
// <e> NFC_NDEF_RECORD_PARSER_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_NDEF_RECORD_PARSER_LOG_ENABLED
#define NFC_NDEF_RECORD_PARSER_LOG_ENABLED 0
#endif
// <o> NFC_NDEF_RECORD_PARSER_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_NDEF_RECORD_PARSER_LOG_LEVEL
#define NFC_NDEF_RECORD_PARSER_LOG_LEVEL 3
#endif
// <o> NFC_NDEF_RECORD_PARSER_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_NDEF_RECORD_PARSER_INFO_COLOR
#define NFC_NDEF_RECORD_PARSER_INFO_COLOR 0
#endif
// </e>
// </e>
// <q> NFC_NDEF_TEXT_RECORD_ENABLED - nfc_text_rec - Encoding data for a text record for NFC Tag
#ifndef NFC_NDEF_TEXT_RECORD_ENABLED
#define NFC_NDEF_TEXT_RECORD_ENABLED 0
#endif
// <q> NFC_NDEF_URI_MSG_ENABLED - nfc_uri_msg - Encoding data for NDEF message with URI record for NFC Tag
#ifndef NFC_NDEF_URI_MSG_ENABLED
#define NFC_NDEF_URI_MSG_ENABLED 0
#endif
// <q> NFC_NDEF_URI_REC_ENABLED - nfc_uri_rec - Encoding data for a URI record for NFC Tag
#ifndef NFC_NDEF_URI_REC_ENABLED
#define NFC_NDEF_URI_REC_ENABLED 0
#endif
// <e> NFC_T2T_HAL_ENABLED - nfc_t2t_hal - Hardware Abstraction Layer for NFC library.
//==========================================================
#ifndef NFC_T2T_HAL_ENABLED
#define NFC_T2T_HAL_ENABLED 0
#endif
// <o> NFCT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NFCT_CONFIG_IRQ_PRIORITY
#define NFCT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> HAL_NFC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef HAL_NFC_CONFIG_LOG_ENABLED
#define HAL_NFC_CONFIG_LOG_ENABLED 0
#endif
// <o> HAL_NFC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef HAL_NFC_CONFIG_LOG_LEVEL
#define HAL_NFC_CONFIG_LOG_LEVEL 3
#endif
// <o> HAL_NFC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_INFO_COLOR
#define HAL_NFC_CONFIG_INFO_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_DEBUG_COLOR
#define HAL_NFC_CONFIG_DEBUG_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef HAL_NFC_CONFIG_LOG_LEVEL
#define HAL_NFC_CONFIG_LOG_LEVEL 3
#endif
// <o> HAL_NFC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_INFO_COLOR
#define HAL_NFC_CONFIG_INFO_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_DEBUG_COLOR
#define HAL_NFC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> HAL_NFC_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
//==========================================================
#ifndef HAL_NFC_CONFIG_DEBUG_PIN_ENABLED
#define HAL_NFC_CONFIG_DEBUG_PIN_ENABLED 0
#endif
// <o> HAL_NFC_HCLOCK_ON_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_ON_DEBUG_PIN
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN 11
#endif
// <o> HAL_NFC_HCLOCK_OFF_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_OFF_DEBUG_PIN
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN 12
#endif
// <o> HAL_NFC_NFC_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_NFC_EVENT_DEBUG_PIN
#define HAL_NFC_NFC_EVENT_DEBUG_PIN 24
#endif
// <o> HAL_NFC_DETECT_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_DETECT_EVENT_DEBUG_PIN
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN 25
#endif
// <o> HAL_NFC_TIMER4_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_TIMER4_EVENT_DEBUG_PIN
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN 28
#endif
// <o> HAL_NFC_HCLOCK_ON_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_ON_DEBUG_PIN
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN 31
#endif
// <o> HAL_NFC_HCLOCK_OFF_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_OFF_DEBUG_PIN
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN 31
#endif
// <o> HAL_NFC_NFC_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_NFC_EVENT_DEBUG_PIN
#define HAL_NFC_NFC_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_DETECT_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_DETECT_EVENT_DEBUG_PIN
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_TIMER4_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_TIMER4_EVENT_DEBUG_PIN
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN 31
#endif
// </e>
// <o> HAL_NFC_FIELD_TIMER_PERIOD - TIMER4 period in us (used for workaround). <100-10000>
// <i> This value is used as a timeout for polling NFC field to detect FIELDLOST event.
// <i> This value can affect Tag behavior.
#ifndef HAL_NFC_FIELD_TIMER_PERIOD
#define HAL_NFC_FIELD_TIMER_PERIOD 100
#endif
// </e>
// <e> NFC_T2T_PARSER_ENABLED - nfc_type_2_tag_parser - Parser for decoding Type 2 Tag data
//==========================================================
#ifndef NFC_T2T_PARSER_ENABLED
#define NFC_T2T_PARSER_ENABLED 0
#endif
// <e> NFC_T2T_PARSER_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_T2T_PARSER_LOG_ENABLED
#define NFC_T2T_PARSER_LOG_ENABLED 0
#endif
// <o> NFC_T2T_PARSER_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_T2T_PARSER_LOG_LEVEL
#define NFC_T2T_PARSER_LOG_LEVEL 3
#endif
// <o> NFC_T2T_PARSER_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_T2T_PARSER_INFO_COLOR
#define NFC_T2T_PARSER_INFO_COLOR 0
#endif
// </e>
// </e>
// <e> NFC_T4T_APDU_ENABLED - nfc_t4t_apdu - APDU encoder/decoder for Type 4 Tag
//==========================================================
#ifndef NFC_T4T_APDU_ENABLED
#define NFC_T4T_APDU_ENABLED 0
#endif
// <e> NFC_T4T_APDU_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_T4T_APDU_LOG_ENABLED
#define NFC_T4T_APDU_LOG_ENABLED 0
#endif
// <o> NFC_T4T_APDU_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_T4T_APDU_LOG_LEVEL
#define NFC_T4T_APDU_LOG_LEVEL 3
#endif
// <o> NFC_T4T_APDU_LOG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_T4T_APDU_LOG_COLOR
#define NFC_T4T_APDU_LOG_COLOR 0
#endif
// </e>
// </e>
// <e> NFC_T4T_CC_FILE_PARSER_ENABLED - nfc_t4t_cc_file - Capability Container file for Type 4 Tag
//==========================================================
#ifndef NFC_T4T_CC_FILE_PARSER_ENABLED
#define NFC_T4T_CC_FILE_PARSER_ENABLED 0
#endif
// <e> NFC_T4T_CC_FILE_PARSER_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_T4T_CC_FILE_PARSER_LOG_ENABLED
#define NFC_T4T_CC_FILE_PARSER_LOG_ENABLED 0
#endif
// <o> NFC_T4T_CC_FILE_PARSER_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_T4T_CC_FILE_PARSER_LOG_LEVEL
#define NFC_T4T_CC_FILE_PARSER_LOG_LEVEL 3
#endif
// <o> NFC_T4T_CC_FILE_PARSER_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_T4T_CC_FILE_PARSER_INFO_COLOR
#define NFC_T4T_CC_FILE_PARSER_INFO_COLOR 0
#endif
// </e>
// </e>
// <e> NFC_T4T_HAL_ENABLED - nfc_t4t_hal - Hardware Abstraction Layer for NFC library.
//==========================================================
#ifndef NFC_T4T_HAL_ENABLED
#define NFC_T4T_HAL_ENABLED 0
#endif
// <o> NFCT_CONFIG_IRQ_PRIORITY - Interrupt priority
// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7
#ifndef NFCT_CONFIG_IRQ_PRIORITY
#define NFCT_CONFIG_IRQ_PRIORITY 6
#endif
// <e> HAL_NFC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef HAL_NFC_CONFIG_LOG_ENABLED
#define HAL_NFC_CONFIG_LOG_ENABLED 0
#endif
// <o> HAL_NFC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef HAL_NFC_CONFIG_LOG_LEVEL
#define HAL_NFC_CONFIG_LOG_LEVEL 3
#endif
// <o> HAL_NFC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_INFO_COLOR
#define HAL_NFC_CONFIG_INFO_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_DEBUG_COLOR
#define HAL_NFC_CONFIG_DEBUG_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef HAL_NFC_CONFIG_LOG_LEVEL
#define HAL_NFC_CONFIG_LOG_LEVEL 3
#endif
// <o> HAL_NFC_CONFIG_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_INFO_COLOR
#define HAL_NFC_CONFIG_INFO_COLOR 0
#endif
// <o> HAL_NFC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef HAL_NFC_CONFIG_DEBUG_COLOR
#define HAL_NFC_CONFIG_DEBUG_COLOR 0
#endif
// </e>
// <e> HAL_NFC_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
//==========================================================
#ifndef HAL_NFC_CONFIG_DEBUG_PIN_ENABLED
#define HAL_NFC_CONFIG_DEBUG_PIN_ENABLED 0
#endif
// <o> HAL_NFC_HCLOCK_ON_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_ON_DEBUG_PIN
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN 31
#endif
// <o> HAL_NFC_HCLOCK_OFF_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_OFF_DEBUG_PIN
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN 31
#endif
// <o> HAL_NFC_NFC_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_NFC_EVENT_DEBUG_PIN
#define HAL_NFC_NFC_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_DETECT_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_DETECT_EVENT_DEBUG_PIN
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_TIMER4_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_TIMER4_EVENT_DEBUG_PIN
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_HCLOCK_ON_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_ON_DEBUG_PIN
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN 31
#endif
// <o> HAL_NFC_HCLOCK_OFF_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_HCLOCK_OFF_DEBUG_PIN
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN 31
#endif
// <o> HAL_NFC_NFC_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_NFC_EVENT_DEBUG_PIN
#define HAL_NFC_NFC_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_DETECT_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_DETECT_EVENT_DEBUG_PIN
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN 31
#endif
// <o> HAL_NFC_TIMER4_EVENT_DEBUG_PIN - Pin number
// <0=> 0 (P0.0)
// <1=> 1 (P0.1)
// <2=> 2 (P0.2)
// <3=> 3 (P0.3)
// <4=> 4 (P0.4)
// <5=> 5 (P0.5)
// <6=> 6 (P0.6)
// <7=> 7 (P0.7)
// <8=> 8 (P0.8)
// <9=> 9 (P0.9)
// <10=> 10 (P0.10)
// <11=> 11 (P0.11)
// <12=> 12 (P0.12)
// <13=> 13 (P0.13)
// <14=> 14 (P0.14)
// <15=> 15 (P0.15)
// <16=> 16 (P0.16)
// <17=> 17 (P0.17)
// <18=> 18 (P0.18)
// <19=> 19 (P0.19)
// <20=> 20 (P0.20)
// <21=> 21 (P0.21)
// <22=> 22 (P0.22)
// <23=> 23 (P0.23)
// <24=> 24 (P0.24)
// <25=> 25 (P0.25)
// <26=> 26 (P0.26)
// <27=> 27 (P0.27)
// <28=> 28 (P0.28)
// <29=> 29 (P0.29)
// <30=> 30 (P0.30)
// <31=> 31 (P0.31)
// <4294967295=> Not connected
#ifndef HAL_NFC_TIMER4_EVENT_DEBUG_PIN
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN 31
#endif
// </e>
// <o> HAL_NFC_FIELD_TIMER_PERIOD - TIMER4 period in us (used for workaround). <100-10000>
// <i> This value is used as a timeout for polling NFC field to detect FIELDLOST event.
// <i> This value can affect Tag behavior.
#ifndef HAL_NFC_FIELD_TIMER_PERIOD
#define HAL_NFC_FIELD_TIMER_PERIOD 100
#endif
// </e>
// <e> NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED - nfc_t4t_hl_detection_procedures - NDEF Detection Procedure for Type 4 Tag
//==========================================================
#ifndef NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED
#define NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED 0
#endif
// <e> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED
#define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED 0
#endif
// <o> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL
#define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL 3
#endif
// <o> NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR
#define NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR 0
#endif
// </e>
// <o> APDU_BUFF_SIZE - Size (in bytes) of the buffer for APDU storage
#ifndef APDU_BUFF_SIZE
#define APDU_BUFF_SIZE 250
#endif
// <o> CC_STORAGE_BUFF_SIZE - Size (in bytes) of the buffer for CC file storage
#ifndef CC_STORAGE_BUFF_SIZE
#define CC_STORAGE_BUFF_SIZE 64
#endif
// </e>
// <e> NFC_T4T_TLV_BLOCK_PARSER_ENABLED - nfc_t4t_tlv_block - TLV block for Type 4 Tag
//==========================================================
#ifndef NFC_T4T_TLV_BLOCK_PARSER_ENABLED
#define NFC_T4T_TLV_BLOCK_PARSER_ENABLED 0
#endif
// <e> NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED
#define NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED 0
#endif
// <o> NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL - Default Severity level
// <0=> Off
// <1=> Error
// <2=> Warning
// <3=> Info
// <4=> Debug
#ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL
#define NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL 3
#endif
// <o> NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR - ANSI escape code prefix.
// <0=> Default
// <1=> Black
// <2=> Red
// <3=> Green
// <4=> Yellow
// <5=> Blue
// <6=> Magenta
// <7=> Cyan
// <8=> White
#ifndef NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR
#define NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR 0
#endif
// </e>
// </e>
// </h>
//==========================================================
// <h> nRF_Segger_RTT
//==========================================================
// <h> segger_rtt - SEGGER RTT
//==========================================================
// <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
// <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
// <i> or this value is actually used. It depends on which one is bigger.
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512
#endif
// <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer.
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
#endif
// <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of upstream buffer.
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
#endif
// <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of upstream buffer.
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
#endif
// <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
// <i> The following modes are supported:
// <i> - SKIP - Do not block, output nothing.
// <i> - TRIM - Do not block, output as much as fits.
// <i> - BLOCK - Wait until there is space in the buffer.
// <0=> SKIP
// <1=> TRIM
// <2=> BLOCK_IF_FIFO_FULL
#ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
#define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// <h> nRF_SoftDevice
//==========================================================
// <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
//==========================================================
#ifndef NRF_SDH_BLE_ENABLED
#define NRF_SDH_BLE_ENABLED 1
#endif
// <h> BLE Stack configuration - Stack configuration parameters
// <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
// <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.
//==========================================================
// <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
// <i> Requested BLE GAP data length to be negotiated.
#ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
#define NRF_SDH_BLE_GAP_DATA_LENGTH 27
#endif
// <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
#ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
#define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 0
#endif
// <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
#ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
#endif
// <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
// <i> Maximum number of total concurrent connections using the default configuration.
#ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
#define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
#endif
// <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
// <i> The time set aside for this connection on every connection interval in 1.25 ms units.
#ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
#define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
#endif
// <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
#ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 23
#endif
// <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
#ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
#define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 248
#endif
// <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
#ifndef NRF_SDH_BLE_VS_UUID_COUNT
#define NRF_SDH_BLE_VS_UUID_COUNT 0
#endif
// <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
#ifndef NRF_SDH_BLE_SERVICE_CHANGED
#define NRF_SDH_BLE_SERVICE_CHANGED 0
#endif
// </h>
//==========================================================
// <h> BLE Observers - Observers and priority levels
//==========================================================
// <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
// <i> This setting configures the number of priority levels available for BLE event handlers.
// <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
#ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
#define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
#endif
// <h> BLE Observers priorities - Invididual priorities
//==========================================================
// <o> BLE_ADV_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Advertising module.
#ifndef BLE_ADV_BLE_OBSERVER_PRIO
#define BLE_ADV_BLE_OBSERVER_PRIO 1
#endif
// <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
#ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
#define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_ANS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
#ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
#define BLE_ANS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_BAS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Battery Service.
#ifndef BLE_BAS_BLE_OBSERVER_PRIO
#define BLE_BAS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_BAS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Battery Service Client.
#ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
#define BLE_BAS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_BPS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
#ifndef BLE_BPS_BLE_OBSERVER_PRIO
#define BLE_BPS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Connection parameters module.
#ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
#define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
#endif
// <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Connection State module.
#ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
#define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
#endif
// <o> BLE_CSCS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
#ifndef BLE_CSCS_BLE_OBSERVER_PRIO
#define BLE_CSCS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_CTS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Current Time Service Client.
#ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
#define BLE_CTS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Database Discovery module.
#ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
#define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
#endif
// <o> BLE_DFU_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the DFU Service.
#ifndef BLE_DFU_BLE_OBSERVER_PRIO
#define BLE_DFU_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_DIS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Device Information Client.
#ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
#define BLE_DIS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_GLS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Glucose Service.
#ifndef BLE_GLS_BLE_OBSERVER_PRIO
#define BLE_GLS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_HIDS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
#ifndef BLE_HIDS_BLE_OBSERVER_PRIO
#define BLE_HIDS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_HRS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Heart Rate Service.
#ifndef BLE_HRS_BLE_OBSERVER_PRIO
#define BLE_HRS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_HRS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
#ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
#define BLE_HRS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_HTS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
#ifndef BLE_HTS_BLE_OBSERVER_PRIO
#define BLE_HTS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_IAS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
#ifndef BLE_IAS_BLE_OBSERVER_PRIO
#define BLE_IAS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_IAS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
#ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
#define BLE_IAS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_LBS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the LED Button Service.
#ifndef BLE_LBS_BLE_OBSERVER_PRIO
#define BLE_LBS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_LBS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the LED Button Service Client.
#ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
#define BLE_LBS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_LLS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Link Loss Service.
#ifndef BLE_LLS_BLE_OBSERVER_PRIO
#define BLE_LLS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_LNS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Location Navigation Service.
#ifndef BLE_LNS_BLE_OBSERVER_PRIO
#define BLE_LNS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_NUS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the UART Service.
#ifndef BLE_NUS_BLE_OBSERVER_PRIO
#define BLE_NUS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_NUS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the UART Central Service.
#ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
#define BLE_NUS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_OTS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Object transfer service.
#ifndef BLE_OTS_BLE_OBSERVER_PRIO
#define BLE_OTS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_OTS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Object transfer service client.
#ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
#define BLE_OTS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_RSCS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
#ifndef BLE_RSCS_BLE_OBSERVER_PRIO
#define BLE_RSCS_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
#ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
#define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> BLE_TPS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the TX Power Service.
#ifndef BLE_TPS_BLE_OBSERVER_PRIO
#define BLE_TPS_BLE_OBSERVER_PRIO 2
#endif
// <o> BSP_BTN_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Button Control module.
#ifndef BSP_BTN_BLE_OBSERVER_PRIO
#define BSP_BTN_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the NFC pairing library.
#ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
#define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
#endif
// <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Bond Management Service.
#ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
#define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
#endif
// <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
#ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
#define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
#endif
// <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Eddystone module.
#ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
#define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
#endif
// <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the GATT Service Client.
#ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
#define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
#endif
// <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the GATT module.
#ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
#define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
#endif
// <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the Queued writes module.
#ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
#define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
#endif
// <o> NRF_BLE_SCAN_OBSERVER_PRIO
// <i> Priority for dispatching the BLE events to the Scanning Module.
#ifndef NRF_BLE_SCAN_OBSERVER_PRIO
#define NRF_BLE_SCAN_OBSERVER_PRIO 1
#endif
// <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
#ifndef PM_BLE_OBSERVER_PRIO
#define PM_BLE_OBSERVER_PRIO 1
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// </e>
// <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
//==========================================================
#ifndef NRF_SDH_ENABLED
#define NRF_SDH_ENABLED 1
#endif
// <h> Dispatch model
// <i> This setting configures how Stack events are dispatched to the application.
//==========================================================
// <o> NRF_SDH_DISPATCH_MODEL
// <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
// <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
// <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
// <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
// <1=> NRF_SDH_DISPATCH_MODEL_APPSH
// <2=> NRF_SDH_DISPATCH_MODEL_POLLING
#ifndef NRF_SDH_DISPATCH_MODEL
#define NRF_SDH_DISPATCH_MODEL 0
#endif
// </h>
//==========================================================
// <h> Clock - SoftDevice clock configuration
//==========================================================
// <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
// <0=> NRF_CLOCK_LF_SRC_RC
// <1=> NRF_CLOCK_LF_SRC_XTAL
// <2=> NRF_CLOCK_LF_SRC_SYNTH
#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 1
#endif
// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
#endif
// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
// <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
// <i> if the temperature has not changed.
#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#endif
// <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
// <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
// <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
// <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
// <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
// <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
// <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
// <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
// <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
// <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
// <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
// <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
// <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 7
#endif
// </h>
//==========================================================
// <h> SDH Observers - Observers and priority levels
//==========================================================
// <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
// <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
// <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
#ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
#define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
#endif
// <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
// <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
// <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
#ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
#define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
#endif
// <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
// <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
// <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
#ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
#define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
#endif
// <h> State Observers priorities - Invididual priorities
//==========================================================
// <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
// <i> Priority with which state events are dispatched to the Clock driver.
#ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
#define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
#endif
// <o> POWER_CONFIG_STATE_OBSERVER_PRIO
// <i> Priority with which state events are dispatched to the Power driver.
#ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
#define POWER_CONFIG_STATE_OBSERVER_PRIO 0
#endif
// <o> RNG_CONFIG_STATE_OBSERVER_PRIO
// <i> Priority with which state events are dispatched to this module.
#ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
#define RNG_CONFIG_STATE_OBSERVER_PRIO 0
#endif
// </h>
//==========================================================
// <h> Stack Event Observers priorities - Invididual priorities
//==========================================================
// <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
// <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
// <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
// <i> Zero is the highest priority.
#ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
#define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
#endif
// <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
// <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
// <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
// <i> Zero is the highest priority.
#ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
#define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
#endif
// <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
// <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
// <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
// <i> Zero is the highest priority.
#ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
#define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// </e>
// <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
//==========================================================
#ifndef NRF_SDH_SOC_ENABLED
#define NRF_SDH_SOC_ENABLED 1
#endif
// <h> SoC Observers - Observers and priority levels
//==========================================================
// <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
// <i> This setting configures the number of priority levels available for the SoC event handlers.
// <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
#ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
#define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
#endif
// <h> SoC Observers priorities - Invididual priorities
//==========================================================
// <o> BLE_ADV_SOC_OBSERVER_PRIO
// <i> Priority with which SoC events are dispatched to the Advertising module.
#ifndef BLE_ADV_SOC_OBSERVER_PRIO
#define BLE_ADV_SOC_OBSERVER_PRIO 1
#endif
// <o> BLE_DFU_SOC_OBSERVER_PRIO
// <i> Priority with which BLE events are dispatched to the DFU Service.
#ifndef BLE_DFU_SOC_OBSERVER_PRIO
#define BLE_DFU_SOC_OBSERVER_PRIO 1
#endif
// <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
// <i> Priority with which SoC events are dispatched to the Clock driver.
#ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
#define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
#endif
// <o> POWER_CONFIG_SOC_OBSERVER_PRIO
// <i> Priority with which SoC events are dispatched to the Power driver.
#ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
#define POWER_CONFIG_SOC_OBSERVER_PRIO 0
#endif
// </h>
//==========================================================
// </h>
//==========================================================
// </e>
// </h>
//==========================================================
// <<< end of configuration section >>>
#endif //SDK_CONFIG_H
|
makerdiary/nrf52832-mdk
|
examples/nrf5-sdk/ble_app_beacon/config/sdk_config.h
|
C
|
mit
| 311,161
|
!function(e,t,n){"use strict";var r=n.map("map",{center:[33.7527,-84.4095],zoom:12});new n.tileLayer("http://{s}.sm.mapstack.stamen.com/($ff5f00[@p],(parks,$126600[source-in]),(mapbox-water,$00b688[source-in]),(terrain-lines,$99000f[source-in]),(terrain-labels,$662600[source-in])[soft-light])/{z}/{x}/{y}.png",{minZoom:0,maxZoom:18,attribution:'Tiles by <a href="http://stamen.com/">Stamen Design</a>, under CC-BY 3.0. Data © <a href="http://www.openstreetmap.org">OpenStreetMap contributors</a>'}).addTo(r);var r=t.getElementById("map"),a=t.getElementById("stencil"),o=t.getElementById("stencil-print"),i=t.querySelectorAll(".leaflet-control-container")[0];r.insertBefore(a,i),r.insertBefore(o,i)}(window,document,L);
|
cbupp/mapolantern
|
dist/scripts/main.js
|
JavaScript
|
mit
| 720
|
const readline = require('readline');
const constants = require('./constants.js');
const authenticate = require('./functions/authenticate.js');
const getMetadata = require('./functions/getMetadata.js');
const downloadRemote = require('./functions/downloadRemote.js');
const error = require('./functions/error.js');
const checkbox = require('./functions/checkbox.js');
const checkNewVersion = require('./functions/checkNewVersion.js');
const findInProject = require('./functions/findInProject.js');
/**
* Link a remote Google Apps Script project to the current folder
*
* @param {String} identifier - Identifier of the remote project to link to the current folder.
* @returns {void}
*/
module.exports = async (identifier) => {
let auth;
try {
const checkedVersion = await checkNewVersion();
process.stdout.write('Linking to this folder...');
auth = await authenticate([]);
const projectRoot = await findInProject('.', constants.META_DIR);
if (projectRoot.found && projectRoot.folder !== '.') {
throw {
message: `You seem to be linking a project inside another project. Cowardly chose not to do that.\n` +
`If you are sure you are not in another project you can execute 'gas unlink' to unlink the remote project.\n`,
print: true,
};
}
const metadata = await getMetadata(auth, identifier);
readline.clearLine(process.stdout);
readline.cursorTo(process.stdout, 0);
process.stdout.write(`Linking '${metadata.name}' to this folder...`);
const downloaded = await downloadRemote(auth, metadata.projectId, '.', 'link');
checkbox.display('green');
process.exit(0);
} catch (err) {
checkbox.display('red');
await error.log(err, auth);
process.exit(1);
}
};
|
MaartenDesnouck/google-apps-script
|
lib/link.js
|
JavaScript
|
mit
| 1,876
|
import { RECORD_DATA_TABLE_STATE_UPDATE, RESET_RECORD_DATA_TABLE_STATE } from './actions'
import { recordDataTableDefaultState, updateRecordDataTableState, updateRecordLockState } from './state'
import { ACTIVE_SURVEY_FETCHED } from 'actions/activeSurvey'
import { RECORD_LOCKED, RECORD_UNLOCKED } from '../actions'
export default function recordDataTable(state = recordDataTableDefaultState, action) {
const { type, ...otherProps } = action
switch (type) {
case RECORD_DATA_TABLE_STATE_UPDATE:
return updateRecordDataTableState(state, { ...otherProps })
case ACTIVE_SURVEY_FETCHED:
case RESET_RECORD_DATA_TABLE_STATE:
return { ...recordDataTableDefaultState }
case RECORD_LOCKED:
return updateRecordLockState(state, action.recordId, action.lockedBy)
case RECORD_UNLOCKED:
return updateRecordLockState(state, action.recordId, null)
default:
return state
}
}
|
openforis/collect
|
collect-webapp/frontend/src/datamanagement/recordDataTable/reducer.js
|
JavaScript
|
mit
| 919
|
/*globals Foo:true $foo:true */
var obj, moduleOpts = {
setup: function() {
obj = {
foo: {
bar: {
baz: { biff: 'BIFF' }
}
}
};
Foo = {
bar: {
baz: { biff: 'FooBiff' }
}
};
$foo = {
bar: {
baz: { biff: '$FOOBIFF' }
}
};
},
teardown: function() {
obj = null;
Foo = null;
$foo = null;
}
};
module('Ember.get with path', moduleOpts);
// ..........................................................
// LOCAL PATHS
//
test('[obj, foo] -> obj.foo', function() {
deepEqual(Ember.get(obj, 'foo'), obj.foo);
});
test('[obj, foo.bar] -> obj.foo.bar', function() {
deepEqual(Ember.get(obj, 'foo.bar'), obj.foo.bar);
});
test('[obj, this.foo] -> obj.foo', function() {
deepEqual(Ember.get(obj, 'this.foo'), obj.foo);
});
test('[obj, this.foo.bar] -> obj.foo.bar', function() {
deepEqual(Ember.get(obj, 'this.foo.bar'), obj.foo.bar);
});
test('[obj, this.Foo.bar] -> (null)', function() {
deepEqual(Ember.get(obj, 'this.Foo.bar'), undefined);
});
// ..........................................................
// NO TARGET
//
test('[null, Foo] -> Foo', function() {
deepEqual(Ember.get('Foo'), Foo);
});
test('[null, Foo.bar] -> Foo.bar', function() {
deepEqual(Ember.get('Foo.bar'), Foo.bar);
});
|
garth/ember.js
|
packages/ember-metal/tests/accessors/getPath_test.js
|
JavaScript
|
mit
| 1,333
|
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目 </b></th><td class="std2">驚弓之鳥</td></tr>
<tr><th class="std1"><b>注音 </b></th><td class="std2">ㄐ|ㄥ ㄍㄨㄥ ㄓ ㄋ|ㄠ<sup class="subfont">ˇ</sup></td></tr>
<tr><th class="std1"><b>漢語拼音 </b></th><td class="std2"><font class="english_word">jīng gōng zhī niǎo</font></td></tr>
<tr><th class="std1"><b>釋義 </b></th><td class="std2">魏國射箭能手更羸僅是拉動弓弦,不用箭,一隻受過箭傷的大雁便因過度驚懼而落下的故事。典出戰國策˙楚策四。比喻曾受打擊或驚嚇,心有餘悸,稍有動靜就害怕的人。晉書˙卷七十一˙王鑒傳:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>黷武之眾易動,驚弓之鳥難安。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>歧路燈˙第八十一回:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>紹是驚弓之鳥,嚇了一跳。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>亦作<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>傷弓之鳥<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>。</td></tr>
<tr><th class="std1"><b><font class="fltypefont">附錄</font> </b></th><td class="std2">修訂本參考資料</td></tr>
</td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
|
BuzzAcademy/idioms-moe-unformatted-data
|
all-data/5000-5999/5170-22.html
|
HTML
|
mit
| 1,868
|
<?php
namespace Test\Integration;
require_once dirname(__DIR__) . '/Setup.php';
use DateTime;
use Test;
use Test\Setup;
use Braintree;
class TestTransactionTest extends Setup
{
public function setUp(): void
{
parent::setUp();
Braintree\Configuration::environment('development');
}
/**
* @after
*/
public function tearDownResetBraintreeEnvironment()
{
Braintree\Configuration::environment('development');
}
/**
* @expectException Exception\TestOperationPerformedInProduction
*/
public function testThrowingExceptionWhenProduction()
{
Braintree\Configuration::environment('production');
$this->expectException('Braintree\Exception\TestOperationPerformedInProduction');
$transaction = Braintree\Test\Transaction::settle('foo');
}
public function testSettle()
{
$transaction = Braintree\Transaction::saleNoValidate([
'amount' => '100.00',
'creditCard' => [
'number' => '5105105105105100',
'expirationDate' => '05/12'
],
'options' => ['submitForSettlement' => true]
]);
$transaction = Braintree\Test\Transaction::settle($transaction->id);
$this->assertEquals('settled', $transaction->status);
}
public function testSettlementConfirmed()
{
$transaction = Braintree\Transaction::saleNoValidate([
'amount' => '100.00',
'creditCard' => [
'number' => '5105105105105100',
'expirationDate' => '05/12'
],
'options' => ['submitForSettlement' => true]
]);
$transaction = Braintree\Test\Transaction::settlementConfirm($transaction->id);
$this->assertEquals('settlement_confirmed', $transaction->status);
}
public function testSettlementDeclined()
{
$transaction = Braintree\Transaction::saleNoValidate([
'amount' => '100.00',
'creditCard' => [
'number' => '5105105105105100',
'expirationDate' => '05/12'
],
'options' => ['submitForSettlement' => true]
]);
$transaction = Braintree\Test\Transaction::settlementDecline($transaction->id);
$this->assertEquals('settlement_declined', $transaction->status);
}
public function testSettlementPending()
{
$transaction = Braintree\Transaction::saleNoValidate([
'amount' => '100.00',
'creditCard' => [
'number' => '5105105105105100',
'expirationDate' => '05/12'
],
'options' => ['submitForSettlement' => true]
]);
$transaction = Braintree\Test\Transaction::settlementPending($transaction->id);
$this->assertEquals('settlement_pending', $transaction->status);
}
}
|
braintree/braintree_php
|
tests/integration/TestTransactionTest.php
|
PHP
|
mit
| 2,915
|
#pragma once
#include <boost/noncopyable.hpp>
#include "../OpenGLInclude.h"
class LightFactory: boost::noncopyable {
public:
LightFactory() :
m_currentLight(GL_LIGHT0) {
}
GLenum getNextLight() {
m_currentLight++;
return m_currentLight;
}
void returnLight(GLenum light) {
// todo
}
private:
int m_currentLight;
};
|
poseidn/KungFoo-legacy
|
src/DescentEngine/src/Visuals/LightFactory.h
|
C
|
mit
| 336
|
<?php
namespace Todstoychev\CalendarEvents\Models;
use Illuminate\Database\Eloquent\Model;
/**
* RepeatDates model
*
* @package Todstoychev\CalendarEvents\Models
* @author Todor Todorov <todstoychev@gmail.com>
*/
class CalendarEventRepeatDate extends Model
{
/**
* @var string
*/
protected $table = 'calendar_events_repeat_dates';
/**
* @var bool
*/
public $timestamps = false;
protected $fillable = [
'start',
'end',
'all_day'
];
/**
* CalendarEvents relation
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function calendarEvent()
{
return $this->belongsTo(CalendarEvent::class, 'calendar_event_id');
}
}
|
todstoychev/calendar-events
|
src/Models/CalendarEventRepeatDate.php
|
PHP
|
mit
| 754
|
FROM ubuntu:xenial
MAINTAINER Peter Evans <pete.evans@gmail.com>
ENV OSRM_VERSION 5.13.0
# Let the container know that there is no TTY
ENV DEBIAN_FRONTEND noninteractive
# Install packages
RUN apt-get -y update \
&& apt-get install -y -qq --no-install-recommends \
build-essential \
cmake \
curl \
ca-certificates \
libbz2-dev \
libstxxl-dev \
libstxxl1v5 \
libxml2-dev \
libzip-dev \
libboost-all-dev \
lua5.2 \
liblua5.2-dev \
libtbb-dev \
libluabind-dev \
pkg-config \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/*
# Build osrm-backend
RUN mkdir /osrm-src \
&& cd /osrm-src \
&& curl --silent -L https://github.com/Project-OSRM/osrm-backend/archive/v$OSRM_VERSION.tar.gz -o v$OSRM_VERSION.tar.gz \
&& tar xzf v$OSRM_VERSION.tar.gz \
&& cd osrm-backend-$OSRM_VERSION \
&& mkdir build \
&& cd build \
&& cmake .. -DCMAKE_BUILD_TYPE=Release \
&& cmake --build . \
&& cmake --build . --target install \
&& mkdir /osrm-data \
&& mkdir /osrm-profiles \
&& cp -r /osrm-src/osrm-backend-$OSRM_VERSION/profiles/* /osrm-profiles \
&& rm -rf /osrm-src
# Set the entrypoint
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 5000
|
peter-evans/osrm-backend-docker
|
archive/1.10/Dockerfile
|
Dockerfile
|
mit
| 1,295
|
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("FileConverterSample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FileConverterSample")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから
// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、
// その型の ComVisible 属性を true に設定してください。
[assembly: ComVisible(false)]
//ローカライズ可能なアプリケーションのビルドを開始するには、
//.csproj ファイルの <UICulture>CultureYouAreCodingWith</UICulture> を
//<PropertyGroup> 内部で設定します。たとえば、
//ソース ファイルで英語を使用している場合、<UICulture> を en-US に設定します。次に、
//下の NeutralResourceLanguage 属性のコメントを解除します。下の行の "en-US" を
//プロジェクト ファイルの UICulture 設定と一致するよう更新します。
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //テーマ固有のリソース ディクショナリが置かれている場所
//(リソースがページ、
//またはアプリケーション リソース ディクショナリに見つからない場合に使用されます)
ResourceDictionaryLocation.SourceAssembly //汎用リソース ディクショナリが置かれている場所
//(リソースがページ、
//アプリケーション、またはいずれのテーマ固有のリソース ディクショナリにも見つからない場合に使用されます)
)]
// アセンブリのバージョン情報は次の 4 つの値で構成されています:
//
// メジャー バージョン
// マイナー バージョン
// ビルド番号
// Revision
//
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
malaybaku/ChoregrapheProjectIO
|
FileConverterSample/Properties/AssemblyInfo.cs
|
C#
|
mit
| 2,939
|
{% extends "layout.html" %}
{% block page_title %}
Apprenticeships
{% endblock %}
{% block content %}
<link href="/public/stylesheets/filtering.css" media="screen" rel="stylesheet" type="text/css" />
<style>
.apprentice-nav a {
{% include "includes/nav-on-state-css.html" %}
}
</style>
<main id="content" role="main">
{% include "includes/phase_banner_beta.html" %}
{% include "includes/secondary-nav-people.html" %}
<div class="breadcrumbs">
<ol role="breadcrumbs">
<li><a href="/{% include "includes/sprint-link.html" %}/balance">Account home</a></li>
<li><a href="/{% include "includes/sprint-link.html" %}/apprentice-view/people">Apprentices</a></li>
<li id="removeWithNav">Your apprentices</li>
</ol>
</div>
<!--h1 class="heading-large">Levy account</h1-->
<!--h2 class="bold-medium">Acme Ltd Levy Account</h2-->
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge" >{% include "includes/account-name-number.html" %}Your apprentices</h1>
<!--p class="lede">All apprentices who are currently on your programme and need no action.</p-->
</div>
</div>
<div class="grid-row">
<div class="column-one-third">
<div class="filter-form filtering ">
<div id="finder-frontend" class="inner-block">
<form method="get" action="/" class="js-live-search-form">
<div class="filter text-filter">
<label class="legend" for="finder-keyword-search">Search</label>
<input value="" type="text" name="keywords" id="finder-keyword-search" aria-controls="js-search-results-info" class="text">
</div>
<!--div class="govuk-option-select js-collapsible" >
<button class="js-container-head" type="button" aria-expanded="false" aria-controls="case_state">
<div class="option-select-label">Commitment status</div>
<div class="js-selected-counter"></div></button>
<div class="options-container" id="case_state">
<div class="js-auto-height-inner">
<label for="new">
<input name="case_type[]" value="acme-cov" id="status-new" type="checkbox" aria-controls="js-search-results-info">
New (1)
</label>
<label for="Awaiting - Provider input">
<input name="case_type[]" value="Cyberdyne" id="Cyberdyne" type="checkbox" aria-controls="js-search-results-info">
Needs your input (1)
</label>
<label for="Awaiting - Employer input">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
In progress with employer (1)
</label>
<label for="Approved by employer">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Approved by employer (1)
</label>
</div>
</div>
</div-->
<div class="govuk-option-select js-collapsible" >
<button class="js-container-head" type="button" aria-expanded="false" aria-controls="case_state">
<div class="option-select-label">Status</div>
<div class="js-selected-counter"></div></button>
<div class="options-container" id="case_state">
<div class="js-auto-height-inner">
<label for="Approval needed">
<input name="case_type[]" value="acme-cov" id="acme-cov" type="checkbox" aria-controls="js-search-results-info">
Approval needed
</label>
<label for="epa-update">
<input name="case_type[]" value="acme-cov" id="acme-cov" type="checkbox" aria-controls="js-search-results-info">
EPA update required
</label>
<label for="Paused">
<input name="case_type[]" value="Cyberdyne" id="Cyberdyne" type="checkbox" aria-controls="js-search-results-info">
Paused
</label>
<label for="Stopped">
<input name="case_type[]" value="Cyberdyne" id="Cyberdyne" type="checkbox" aria-controls="js-search-results-info">
Stopped
</label>
<label for="Finished">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Finished
</label>
<label for="Live">
<input name="case_type[]" value="acme-cov" id="acme-cov" type="checkbox" aria-controls="js-search-results-info">
Live
</label>
</div>
</div>
</div>
<div class="govuk-option-select js-collapsible" >
<button class="js-container-head" type="button" aria-expanded="false" aria-controls="case_state">
<div class="option-select-label">Training</div>
<div class="js-selected-counter"></div></button>
<div class="options-container" id="case_state">
<div class="js-auto-height-inner">
<label for="Acme Coventry Ltd">
<input name="case_type[]" value="acme-cov" id="acme-cov" type="checkbox" aria-controls="js-search-results-info">
Mechatronics engineers
</label>
<label for="Cyberdyne Systems Inc">
<input name="case_type[]" value="Cyberdyne" id="Cyberdyne" type="checkbox" aria-controls="js-search-results-info">
Manufacturing engineers
</label>
<label for="Tyrell Corp">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Survival equipment fitter
</label>
<label for="Tyrell Corp">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Network engineer
</label>
<label for="Tyrell Corp">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Cyber intrusion analyst
</label>
<label for="Tyrell Corp">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Cyber security technologist
</label>
<label for="Tyrell Corp">
<input name="case_type[]" value="Tyrell" id="Tyrell" type="checkbox" aria-controls="js-search-results-info">
Embedded Electronic Systems Design and Development Engineer
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="column-two-thirds">
<table class="">
<thead>
<tr>
<th scope="col" style="padding-top:0">Name</th>
<th scope="col" style="padding-top:0">Date of birth</th>
<th scope="col" style="padding-top:0">Status</th>
<th scope="col" style="padding-top:0"></th>
</tr>
</thead>
<tbody>
<tr>
<!--quick hack, will fix -->
<td class="rjTabWidth">Rob Edwards</td>
<td class="">03/06/97</td>
<td class="">On programme</td>
<td><a href="/{% include "includes/sprint-link.html" %}/apprentice-view/individual-apprentice">View</a></td>
</tr>
<tr>
<td class="rjTabWidth">Susan Hamazaki</td>
<td class="">12/10/95</td>
<td class="">Paused</td>
<td><a href="/{% include "includes/sprint-link.html" %}/apprentice-view/individual-apprentice-authorise-amends">View</a></td>
</tr>
<tr>
<td class="rjTabWidth">David Jenkins</td>
<td class="">05/09/99</td>
<td class="">Approval needed</td>
<td class="looks-like-a-link-underline">View</td>
</tr>
<tr>
<td class="rjTabWidth">Mel O'Connor</td>
<td class="">01/05/98</td>
<td class="">Stopped</td>
<td class="looks-like-a-link-underline">View</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
{% endblock %}
|
SkillsFundingAgency/das-alpha-ui
|
app/views/programmeTwo/apprentice-view/index.html
|
HTML
|
mit
| 10,250
|
exports.register = (server, options, next) => {
let routes = [
{
method: 'GET',
path: '/{param*}',
handler: { directory: {
path: './web', listing: false, index: true
} }
}, {
method: 'GET',
path: '/client.bundle.js',
handler: (request, reply) => {
reply.file('./web/build/client.bundle.js');
}
}, {
method: 'GET',
path: '/client.bundle.js.map',
handler: (request, reply) => {
reply.file('./web/build/client.bundle.js.map');
}
}, {
method: 'GET',
path: '/main.css',
handler: (request, reply) => {
reply.file('./web/build/main.css');
}
}, {
method: 'GET',
path: '/main.css.map',
handler: (request, reply) => {
reply.file('./web/build/main.css.map');
}
}
];
server.route(routes);
next();
};
exports.register.attributes = { name: 'web' };
|
ParthaBoocha/service-registry
|
server/web/routes/web.js
|
JavaScript
|
mit
| 930
|
<link rel="stylesheet" type="text/css" href="/Public/Home/Css/showOrder.css?v=0.2">
<div class="container">
<div class="suibian">
<ul class="middle_nav">
<li><a href="/User/showUser">我的资料</a></li>
<li><a href="/Good/getUserList">商品管理</a></li>
<li><a href="/Beg/getUserList">求购管理</a></li>
<li><a href="/Lost/getUserList">招领管理</a></li>
<li><a href="/User/showCollect">收藏管理</a></li>
<li><a href="/User/showAddress">地址管理</a></li>
<li class="personalhover"><a href="/Order/showOrder">订单管理</a></li>
<li><a href="/Switch/showSwitch">换购管理</a></li>
<li><a href="/Message/showMessage">消息管理</a></li>
<li><a href="/User/showReal">认证管理</a></li>
</ul>
<div class="clear"></div>
</div>
<div id="container">
<div class="w">
<div id="content">
<div id="main">
<div id="order01" class="mod-main mod-comm mod-order">
<div class="mt">
<h3 onclick="showOrderType(0);" class="<neq name="Think.get.type" value="1">curr</neq>">买家订单</h3>
<h3 onclick="showOrderType(1);" class="<eq name="Think.get.type" value="1">curr</eq>">卖家订单</h3>
<div class="extra-r"></div>
</div>
</div>
<div id="order02" class="mod-main mod-comm lefta-box">
<div class="mt">
<ul class="extra-l">
<li class="fore1"><a class="txt <neq name="Think.get.status" value="0">curr</neq>" onclick="showNotFull(0);">全部订单</a></li>
<!-- <li>
<a class="txt" clstag="click|keycount|orderinfo|waitPay" id="ordertoPay" href="//order.jd.com/center/list.action?s=1">待付款</a>
</li> -->
<li>
<a class="txt <eq name="Think.get.status" value="0">curr</eq>" clstag="" id="ordertoReceive" href="#" onclick="showNotFull(1);">待完成<em>{$notFull}</em></a>
</li>
<li>
<!-- <a clstag="click|keycount|orderinfo|daipingjia" class="txt" target="_blank" id="ordertoComment" href="//club.jd.com/mycomments.aspx">待评价</a><a href="http://club.jd.com/mycomments.aspx"><em>25</em></a> -->
</li>
<!-- <li class="fore2">
<a id="ordertoRecycle" class="ftx-03" clstag="click|keycount|orderlist|dingdanhuishouzhan" href="//order.jd.com/center/recycle.action?d=1">订单回收站</a>
</li> -->
</ul>
<div class="extra-r">
<div class="search">
<input type="text" placeholder="商品名称/订单号" class="itxt" id="ip_keyword" style="color: rgb(204, 204, 204);" name="keyword">
<a clstag="click|keycount|orderinfo|search" class="search-btn" onclick="searchOrder(this);">搜索<b></b></a>
<!-- <a class="default-btn high-search" clstag="click|keycount|orderlist|gaoji" href="#none">高级<b></b></a> -->
</div>
</div>
</div>
<div class="mc">
<table class="td-void order-tb">
<colgroup>
<col class="number-col">
<col class="consignee-col">
<col class="amount-col">
<col class="status-col">
<col class="operate-col">
</colgroup>
<thead>
<tr>
<th>
<div class="ordertime-cont" onclick="showTimeOrder(event);">
<div class="time-txt">近三个月订单<b></b><span class="blank"></span> </div>
<div class="time-list">
<ul>
<li><a class="curr" clstag="click|keycount|orderlist|zuijinsangeyue" _val="1" href="#none"><b></b>近三个月订单</a></li>
<li><a clstag="click|keycount|orderlist|jinniannei" _val="2" href="#none"><b></b>今年内订单</a></li>
<li><a clstag="click|keycount|orderlist|2015" _val="3" href="#none"><b></b>2015年订单</a></li>
<li><a clstag="click|keycount|orderlist|2014" _val="4" href="#none"><b></b>2014年订单</a></li>
<li><a clstag="click|keycount|orderlist|2013" _val="5" href="#none"><b></b>2013年订单</a></li>
<li><a clstag="click|ke ycount|orderlist|before_2013" _val="6" href="#none"><b></b>2013年以前订单</a></li>
</ul>
</div>
</div>
<div class="order-detail-txt ac">订单详情</div>
</th>
<th>收货人</th>
<th>金额</th>
<th>
<div>
<div>状态<!-- <b></b> --><span class="blank"></span></div>
<!-- <div class="state-list">
<ul>
<li value="4096">
<a class="curr" clstag="click|keycount|orderlist|quanbuzhuangtai" href="#none"><b></b>全部状态</a>
</li>
<li value="1">
<a clstag="click|keycount|orderlist|dengdaifukuan" href="#none"><b></b>等待付款</a>
</li>
<li clstag="click|keycount|orderlist|dengdaishouhuo" value="128">
<a href="#none"><b></b>等待收货</a>
</li>
<li value="1024">
<a clstag="click|keycount|orderlist|yiwancheng" href="#none"><b></b>已完成</a>
</li>
<li value="-1">
<a clstag="click|keycount|orderlist|yiquxiao" href="#none"><b></b>已取消</a>
</li>
</ul>
</div> -->
</div>
</th>
<th>操作</th>
</tr>
</thead>
<!-- 一个订单一个tbody -->
<foreach name="orderList" item="order" key="key">
<tbody id="tb-12251082074">
<tr class="sep-row"><td colspan="5"></td></tr>
<tr class="tr-th">
<td colspan="5">
<span class="gap"></span>
<span title="{$order.add_time|date="Y-m-d H:i:s",###}" class="dealtime">{$order.add_time|date="Y-m-d H:i:s",###}</span>
<input type="hidden" value="2016-02-29 23:00:47" id="datasubmit-12251082074">
<span class="number">订单号:<a clstag="click|keycount|orderinfo|order_num" target="_blank" id="idUrl12251082074" name="orderIdLinks">{$order.order_sn}</a></span>
<div class="tr-operate">
<span class="order-shop">
<span>卖家:</span>
<span class="shop-txt"><a href="/User/showUser/user_id/{$order.seller_id}">{$order.seller_name}</a></span>
<a clstag="click|keycount|orderlist|ziyingchatim" title="联系他/她" href="#none" class="btn-im btn-im-jd" onclick="addLetter({$order.seller_id}, '{$order.seller_name}', {$Think.session.shop.user|default=-1});"></a>
</span>
<span class="order-shop">
<span>买家:</span>
<span class="shop-txt"><a href="/User/showUser/user_id/{$order.user_id}">{$order.user_name}</a></span>
<a clstag="click|keycount|orderlist|ziyingchatim" title="联系他/她" href="#none" class="btn-im btn-im-jd" onclick="addLetter({$order.user_id}, '{$order.seller_name}', {$Think.session.shop.user|default=-1});"></a>
</span>
<!-- <a _passkey="25D65818AA427ED48B8CB7B385AC42DB" _orderid="12251082074" class="order-del" clstag="click|keycount|orderlist|dingdanshanchu" href="#none" style="display: none;" title="删除"></a> -->
</div>
</td>
</tr>
<!-- 一个商品一个tr -->
<foreach name="goodList[$key]" item="good" key="key2">
<eq name="key2" value="0">
<!-- 仅第一个进入 -->
<tr oty="0,4,70" id="track12251082074" class="tr-bd">
<td>
<div class="goods-item p-188078">
<div class="p-img">
<a target="_blank" clstag="click|keycount|orderinfo|order_product" href="/{$good.good_id}.html">
<img width="60" height="60" data-lazy-img="done" title="{$good.good_name}" src="{$good.thumb_img}" class="">
</a>
</div>
<div class="p-msg">
<div class="p-name"><a title="{$good.good_name}" target="_blank" clstag="click|keycount|orderinfo|order_product" class="a-link" href="/{$good.good_id}.html">{$good.good_name}</a></div>
</div>
</div>
<div class="goods-number">
x{$good.num}
</div>
<div class="clr"></div>
</td>
<td rowspan="{$goodList.$key|count=###}">
<div class="consignee tooltip">
<span class="txt">{$order.address_name}</span><b></b>
<div class="prompt-01 prompt-02">
<div class="pc">
<strong>{$order.address_name}</strong>
<p>{$order.address_location}</p>
<p>{$order.phone}</p>
</div>
<div class="p-arrow p-arrow-left"></div>
</div>
</div>
</td>
<td rowspan="{$goodList.$key|count=###}">
<div class="amount">
<span>总额 ¥{$order.total_price}</span>
</div>
</td>
<td rowspan="{$goodList.$key|count=###}">
<div class="status">
<span class="order-status ftx-03">
<eq name="order.status" value="1">
已完成
<else />
未完成
</eq>
</span>
<br>
<!-- <a target="_blank" clstag="click|keycount|orderlist|dingdanxiangqing" href="//order.jd.com/normal/item.action?orderid=12251082074&PassKey=5A96D671ADFB10FDD0E03545550AD4CB">订单详情</a> -->
</div>
</td>
<td id="operate12251082074" rowspan="{$goodList.$key|count=###}">
<div class="operate">
<div _baina="0" id="pay-button-12251082074"></div>
<neq name="order.status" value="1">
<span target="_blank" class="btn-again" onclick="fullOrder({$order.order_id})"><b></b>完成</span>
</neq>
<br>
</div>
</td>
</tr>
<else />
<!-- 仅在不是第一个进入 -->
<tr oty="0,4,70" id="track12251082074" class="tr-bd">
<td>
<div class="goods-item p-830486">
<div class="p-img">
<a target="_blank" clstag="click|keycount|orderinfo|order_product" href="{$good.good_name}">
<img width="60" height="60" data-lazy-img="done" title="{$good.good_name}" src="{$good.thumb_img}" class="">
</a>
</div>
<div class="p-msg">
<div class="p-name"><a title="{$good.good_name}" target="_blank" clstag="click|keycount|orderinfo|order_product" class="a-link" href="/{$good.good_id}.html">{$good.good_name}</a>
</div>
</div>
</div>
<div class="goods-number">
x1
</div>
<div class="clr"></div>
</td>
</tr>
</eq>
</foreach>
</tbody>
</foreach>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mt20">
<div class="pagin fr">
<div>{$page}</div>
</div>
<div class="clr"></div>
</div>
<script type="text/javascript">
var _status = {$Think.get.status|default=2}; // 0:未完成,1:已完成
var _type = {$Think.get.type|default=0}; // 0:买家订单
// 自动选中正确的时间类别
var _timeType = {$Think.get.timeType|default=1}; // 查看一定时间范围内的订单
if (_timeType) {
var _obj = $('.time-list ul li').eq(_timeType-1);
_obj.find('a').addClass('curr');
_obj.siblings().find('a').removeClass('curr');
$('.ordertime-cont .time-txt').html(_obj.text() + '<b></b>');
}
// 收货人信息的查看和隐藏
$('.consignee').mouseenter(function () {
$(this).find('.prompt-01').show();
}).mouseleave(function () {
$(this).find('.prompt-01').hide();
});
function fullOrder (order_id) {
if (confirm('确定执行该操作?')) {
$.post('/Order/fullOrder', {'order_id': order_id}, function (msg) {
backAppend(msg);
});
}
return false;
}
function showNotFull (status) {
var type = {$Think.get.type|default=0}; // 0:买家订单
status = status ? 0 : 1; // 为1,说明要查看未完成订单,所以status=0
location.href = '/Order/showOrder/status/' + status + '/type/' + type;
}
function searchOrder (e) {
var _this = $(e);
var val = _this.prev().val();
location.href = '/Order/showOrder/keyword/' + val;
}
function showOrderType (type) {
location.href = '/Order/showOrder/type/' + type;
}
function showTimeOrder(e, timeType) {
var status = {$Think.get.status|default=2}; // 0:未完成,1:已完成
var type = {$Think.get.type|default=0}; // 0:买家订单
var timeType = {$Think.get.timeType|default=1}; // 查看一定时间范围内的订单
$('.ordertime-cont .time-list').toggle();
var target = $(e.target);
var timeType = target.attr('_val');
$('.ordertime-cont .time-txt').html(target.text() + '<b></b>');
if (timeType) {
location.href = "/Order/showOrder/timeType/" + timeType + '/type/' + type + '/status/' + status;
}
}
</script>
|
hookidea/yiwukongjian
|
Application/Home/View/Order/showOrder.html
|
HTML
|
mit
| 15,806
|
# CMPGeniusPicker
# Demo

## Installation
To install it, simply add the following line to your Podfile:
```ruby
pod 'CMPGeniusPicker', :git => 'git@github.com:qeychon/CMPGeniusPicker.git'
```
or copy the sources files in to the project folder.
## Usage
#### 1. Modify storyboard
First you have to modify the storyboard. The class of the desired UIView has to be replaced by the class `CMPGeniusPickerView`.
#### 2. Delegate and DataSource
Then you have to implement the `Delegate` and `DataSource` of the class `CMPGeniusPickerView`. The concept should be known of UITableView.
```objective-c
@interface ViewController : UIViewController <CMPGeniusPickerDelegate, CMPGeniusPickerDataSource>
@end
```
#### 3. DataSource
With the help of the `DataSource` the content of CMPGeniusPicker is defined. The `CMPGeniusPickerView` has steps and items. A step contains several items. It will automatically switch to the next level, if an item has been selected.
Therefore, the following data must be defined:
+ Maximal number of the steps.
+ Number of the items in the specified step.
+ The selected item at the beginning in a step.
```objective-c
- (NSInteger)numberOfSteps;
- (NSInteger)numberOfItemsInStep: (NSInteger)step;
- (NSInteger)selectItemOfStep: (NSInteger)step;
```
In addition, the appearance of the items can be defined. In each stage, an item can be designed according to your requirements.
```objective-c
- (UIColor *)itemColorOfStepPath: (CMPStepPath *)stepPath;
- (CGFloat)itemBorderOfStepPath: (CMPStepPath *)stepPath;
- (UIColor *)itemBorderColorOfStepPath: (CMPStepPath *)stepPath;
- (NSString *)itemTitleOfStepPath: (CMPStepPath *)stepPath;
- (UIFont *)itemFontOfStepPath: (CMPStepPath *)stepPath;
- (UIColor *)itemFontColorOfStepPath: (CMPStepPath *)stepPath;
```
The definition are optional.
#### 4. Delegate
There exists two events:
+ The selection of the item.
+ The change to the next step.
```objective-c
- (void)itemDidSelectAtStepPath: (CMPStepPath *)stepPath;
@optional
- (void)nextStepDidSelect: (NSInteger)step;
```
#### 5. Additional
The change to the respective stages is performed automatically after selecting an item. However, it can be changed directly on the stage.
With the following functions:
+ `backStep`: Go back to the last step.
+ `nextStep`: Go to the next step.
+ `goToStep: (NSInteger)step `: Go to the specified step.
## License
CMPGeniusPicker is available under the MIT license. See the LICENSE file for more info.
|
qeychon/CMPGeniusPicker
|
README.md
|
Markdown
|
mit
| 2,577
|
///**
//* Forgot Component Spec Test
//*/
//
//
//'use strict';
//
//var React = require('react');
//var ForgotComponent = React.createFactory(require('../../../../client/scripts/components/account/forgot.jsx'));
//
//describe('Forgot Component', function() {
//
// var ReactTestUtils;
// var reactRender;
//
// beforeEach(function() {
// ReactTestUtils = require('react/addons').addons.TestUtils;
// reactRender = ReactTestUtils.renderIntoDocument;
// this.forgotComponent = new ForgotComponent();
// });
//
// it('provides the "Forgot Component" instance', function() {
// // Expect it to exist
// expect(this.forgotComponent).toBeDefined();
// });
//
//});
|
shalomeir/generator-snippod-hackathon
|
test/spec/components/account/forgot.spec.js
|
JavaScript
|
mit
| 683
|
<!DOCTYPE html>
<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">
<script src="/lib/pace/pace.min.js?v=1.0.2"></script>
<link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">
<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" sizes="180x180" href="/images/logo.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="32x32" href="/images/logo.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.icon?v=5.1.4">
<link rel="mask-icon" href="/images/logo.png?v=5.1.4" color="#222">
<meta name="keywords" content="StefanJi, China, Android, Codeing, 纪阳">
<link rel="alternate" href="/atom.xml" title="Stefan Blog" type="application/atom+xml">
<meta name="description" content="Don't be evil.">
<meta name="keywords" content="Android, Python, Coding">
<meta property="og:type" content="website">
<meta property="og:title" content="Stefan Blog">
<meta property="og:url" content="https://stefanji.github.io/tags/哈希/index.html">
<meta property="og:site_name" content="Stefan Blog">
<meta property="og:description" content="Don't be evil.">
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Stefan Blog">
<meta name="twitter:description" content="Don't be evil.">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Gemini',
version: '5.1.4',
sidebar: {"position":"right","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
fancybox: true,
tabs: true,
motion: {"enable":true,"async":true,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="https://stefanji.github.io/tags/哈希/">
<title>标签: 哈希 | Stefan Blog</title>
<link rel="stylesheet" href="/css/prism.css" type="text/css">
<link rel="stylesheet" href="/css/prism-line-numbers.css" type="text/css"></head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container sidebar-position-right ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Stefan Blog</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<h1 class="site-subtitle" itemprop="description">A android developer who wants to learn more.</h1>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br>
首页
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
归档
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section">
<i class="menu-item-icon fa fa-fw fa-user"></i> <br>
关于
</a>
</li>
<li class="menu-item menu-item-search">
<a href="javascript:;" class="popup-trigger">
<i class="menu-item-icon fa fa-search fa-fw"></i> <br>
搜索
</a>
</li>
</ul>
<div class="site-search">
<div class="popup search-popup local-search-popup">
<div class="local-search-header clearfix">
<span class="search-icon">
<i class="fa fa-search"></i>
</span>
<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
<div class="local-search-input-wrapper">
<input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input">
</div>
</div>
<div id="local-search-result"></div>
</div>
</div>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div class="post-block tag">
<div id="posts" class="posts-collapse">
<div class="collection-title">
<h2>哈希<small>标签</small>
</h2>
</div>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h3 class="post-title">
<a class="post-title-link" href="/2017/07/27/HashCode作用/" itemprop="url">
<span itemprop="name">HashCode作用.md</span>
</a>
</h3>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated" datetime="2017-07-27T13:00:00+08:00" content="2017-07-27">
07-27
</time>
</div>
</header>
</article>
</div>
</div>
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview-wrap sidebar-panel sidebar-panel-active">
<div class="site-overview">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" src="/images/logo.png" alt="Stefanji">
<p class="site-author-name" itemprop="name">Stefanji</p>
<p class="site-description motion-element" itemprop="description"></p>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">108</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/index.html">
<span class="site-state-item-count">14</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/index.html">
<span class="site-state-item-count">69</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="feed-link motion-element">
<a href="/atom.xml" rel="alternate">
<i class="fa fa-rss"></i>
RSS
</a>
</div>
<div class="links-of-author motion-element">
<span class="links-of-author-item">
<a href="https://github.com/stefanji" target="_blank" title="GitHub">
<i class="fa fa-fw fa-github"></i>GitHub</a>
</span>
<span class="links-of-author-item">
<a href="mailto:jidaoyang@gmail.com" target="_blank" title="E-Mail">
<i class="fa fa-fw fa-envelope"></i>E-Mail</a>
</span>
</div>
</div>
</section>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span id="scrollpercent"><span>0</span>%</span>
</div>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="copyright">© 2016 — <span itemprop="copyrightYear">2019</span>
<span class="with-love">
<i class="fa fa-user"></i>
</span>
<span class="author" itemprop="copyrightHolder">Stefanji</span>
</div>
<div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>
</div>
</footer>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>
<script type="text/javascript">
// Popup Window;
var isfetched = false;
var isXml = true;
// Search DB path;
var search_path = "search.json";
if (search_path.length === 0) {
search_path = "search.xml";
} else if (/json$/i.test(search_path)) {
isXml = false;
}
var path = "/" + search_path;
// monitor main search box;
var onPopupClose = function (e) {
$('.popup').hide();
$('#local-search-input').val('');
$('.search-result-list').remove();
$('#no-result').remove();
$(".local-search-pop-overlay").remove();
$('body').css('overflow', '');
}
function proceedsearch() {
$("body")
.append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
.css('overflow', 'hidden');
$('.search-popup-overlay').click(onPopupClose);
$('.popup').toggle();
var $localSearchInput = $('#local-search-input');
$localSearchInput.attr("autocapitalize", "none");
$localSearchInput.attr("autocorrect", "off");
$localSearchInput.focus();
}
// search function;
var searchFunc = function(path, search_id, content_id) {
'use strict';
// start loading animation
$("body")
.append('<div class="search-popup-overlay local-search-pop-overlay">' +
'<div id="search-loading-icon">' +
'<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
'</div>' +
'</div>')
.css('overflow', 'hidden');
$("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');
$.ajax({
url: path,
dataType: isXml ? "xml" : "json",
async: true,
success: function(res) {
// get the contents from search data
isfetched = true;
$('.popup').detach().appendTo('.header-inner');
var datas = isXml ? $("entry", res).map(function() {
return {
title: $("title", this).text(),
content: $("content",this).text(),
url: $("url" , this).text()
};
}).get() : res;
var input = document.getElementById(search_id);
var resultContent = document.getElementById(content_id);
var inputEventFunction = function() {
var searchText = input.value.trim().toLowerCase();
var keywords = searchText.split(/[\s\-]+/);
if (keywords.length > 1) {
keywords.push(searchText);
}
var resultItems = [];
if (searchText.length > 0) {
// perform local searching
datas.forEach(function(data) {
var isMatch = false;
var hitCount = 0;
var searchTextCount = 0;
var title = data.title.trim();
var titleInLowerCase = title.toLowerCase();
var content = data.content.trim().replace(/<[^>]+>/g,"");
var contentInLowerCase = content.toLowerCase();
var articleUrl = decodeURIComponent(data.url);
var indexOfTitle = [];
var indexOfContent = [];
// only match articles with not empty titles
if(title != '') {
keywords.forEach(function(keyword) {
function getIndexByWord(word, text, caseSensitive) {
var wordLen = word.length;
if (wordLen === 0) {
return [];
}
var startPosition = 0, position = [], index = [];
if (!caseSensitive) {
text = text.toLowerCase();
word = word.toLowerCase();
}
while ((position = text.indexOf(word, startPosition)) > -1) {
index.push({position: position, word: word});
startPosition = position + wordLen;
}
return index;
}
indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
});
if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
isMatch = true;
hitCount = indexOfTitle.length + indexOfContent.length;
}
}
// show search results
if (isMatch) {
// sort index by position of keyword
[indexOfTitle, indexOfContent].forEach(function (index) {
index.sort(function (itemLeft, itemRight) {
if (itemRight.position !== itemLeft.position) {
return itemRight.position - itemLeft.position;
} else {
return itemLeft.word.length - itemRight.word.length;
}
});
});
// merge hits into slices
function mergeIntoSlice(text, start, end, index) {
var item = index[index.length - 1];
var position = item.position;
var word = item.word;
var hits = [];
var searchTextCountInSlice = 0;
while (position + word.length <= end && index.length != 0) {
if (word === searchText) {
searchTextCountInSlice++;
}
hits.push({position: position, length: word.length});
var wordEnd = position + word.length;
// move to next position of hit
index.pop();
while (index.length != 0) {
item = index[index.length - 1];
position = item.position;
word = item.word;
if (wordEnd > position) {
index.pop();
} else {
break;
}
}
}
searchTextCount += searchTextCountInSlice;
return {
hits: hits,
start: start,
end: end,
searchTextCount: searchTextCountInSlice
};
}
var slicesOfTitle = [];
if (indexOfTitle.length != 0) {
slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
}
var slicesOfContent = [];
while (indexOfContent.length != 0) {
var item = indexOfContent[indexOfContent.length - 1];
var position = item.position;
var word = item.word;
// cut out 100 characters
var start = position - 20;
var end = position + 80;
if(start < 0){
start = 0;
}
if (end < position + word.length) {
end = position + word.length;
}
if(end > content.length){
end = content.length;
}
slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
}
// sort slices in content by search text's count and hits' count
slicesOfContent.sort(function (sliceLeft, sliceRight) {
if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
return sliceRight.searchTextCount - sliceLeft.searchTextCount;
} else if (sliceLeft.hits.length !== sliceRight.hits.length) {
return sliceRight.hits.length - sliceLeft.hits.length;
} else {
return sliceLeft.start - sliceRight.start;
}
});
// select top N slices in content
var upperBound = parseInt('1');
if (upperBound >= 0) {
slicesOfContent = slicesOfContent.slice(0, upperBound);
}
// highlight title and content
function highlightKeyword(text, slice) {
var result = '';
var prevEnd = slice.start;
slice.hits.forEach(function (hit) {
result += text.substring(prevEnd, hit.position);
var end = hit.position + hit.length;
result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
prevEnd = end;
});
result += text.substring(prevEnd, slice.end);
return result;
}
var resultItem = '';
if (slicesOfTitle.length != 0) {
resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
} else {
resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
}
slicesOfContent.forEach(function (slice) {
resultItem += "<a href='" + articleUrl + "'>" +
"<p class=\"search-result\">" + highlightKeyword(content, slice) +
"...</p>" + "</a>";
});
resultItem += "</li>";
resultItems.push({
item: resultItem,
searchTextCount: searchTextCount,
hitCount: hitCount,
id: resultItems.length
});
}
})
};
if (keywords.length === 1 && keywords[0] === "") {
resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
} else if (resultItems.length === 0) {
resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
} else {
resultItems.sort(function (resultLeft, resultRight) {
if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
return resultRight.searchTextCount - resultLeft.searchTextCount;
} else if (resultLeft.hitCount !== resultRight.hitCount) {
return resultRight.hitCount - resultLeft.hitCount;
} else {
return resultRight.id - resultLeft.id;
}
});
var searchResultList = '<ul class=\"search-result-list\">';
resultItems.forEach(function (result) {
searchResultList += result.item;
})
searchResultList += "</ul>";
resultContent.innerHTML = searchResultList;
}
}
if ('auto' === 'auto') {
input.addEventListener('input', inputEventFunction);
} else {
$('.search-icon').click(inputEventFunction);
input.addEventListener('keypress', function (event) {
if (event.keyCode === 13) {
inputEventFunction();
}
});
}
// remove loading animation
$(".local-search-pop-overlay").remove();
$('body').css('overflow', '');
proceedsearch();
}
});
}
// handle and trigger popup window;
$('.popup-trigger').click(function(e) {
e.stopPropagation();
if (isfetched === false) {
searchFunc(path, 'local-search-input', 'local-search-result');
} else {
proceedsearch();
};
});
$('.popup-btn-close').click(onPopupClose);
$('.popup').click(function(e){
e.stopPropagation();
});
$(document).on('keyup', function (event) {
var shouldDismissSearchPopup = event.which === 27 &&
$('.search-popup').is(':visible');
if (shouldDismissSearchPopup) {
onPopupClose();
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for (i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="//cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
</body>
</html>
|
jiyangg/jiyangg.github.io
|
tags/哈希/index.html
|
HTML
|
mit
| 25,385
|
//
// WBLeaderBoardFavoriteDataSource.h
// WestBlueGolf
//
// Created by Mike Harlow on 3/6/14.
// Copyright (c) 2014 Mike Harlow. All rights reserved.
//
#import "WBLeaderBoardDataSource.h"
@interface WBLeaderBoardFavoriteDataSource : WBLeaderBoardDataSource
@end
|
tahoeWolverine/WestBlueGolfLeague
|
WestBlueGolf/WestBlueGolf/WBLeaderBoardFavoriteDataSource.h
|
C
|
mit
| 272
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error
define('CONSUMERKEY', 'HB0fMz1BajBg1QhLHeBQxkjjk');
define('CONSUMERSECRET', 'dHfWIgyJP7njjhB1A3PCTCHvltHZkeCo1lOaz70Qgc4j5LdnV2');
define('ACCESTOKEN','108997918-2OJjkexR99fwfHzB1FPwqAmt5S2uKxbNDgASUZYY');
define('ACCESTOKENSECRET','7lMFOWk0HC977wDvhufogduZv6Bq3aR5jcSHSBrjpGNv9');
|
mogurbon/searchtweetdeck
|
application/config/constants.php
|
PHP
|
mit
| 4,600
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.11.4: v8::AssertNoGCScope Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.11.4
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_assert_no_g_c_scope.html">AssertNoGCScope</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="classv8_1_1_assert_no_g_c_scope-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::AssertNoGCScope Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="v8_8h_source.html">v8.h</a>></code></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Asserts that no action is performed that could cause a handle's value to be modified. Useful when otherwise unsafe handle operations need to be performed. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="v8_8h_source.html">v8.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:46:01 for V8 API Reference Guide for node.js v0.11.4 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|
v8-dox/v8-dox.github.io
|
588040d/html/classv8_1_1_assert_no_g_c_scope.html
|
HTML
|
mit
| 4,948
|
<?php
namespace Bukoli;
use Bukoli\Exception\ServicePasswordException;
use DateTimeZone;
class Bukoli
{
private static $defaultUrl = 'https://bukoli.borusan.com/IntegrationServiceTest/JetonOrderService.asmx?wsdl';
/**
* WSDL url
*
* @var string
*/
protected static $url;
/**
* Size özel verdiğimiz şifre
*
* @var string
*/
protected static $servicePassword;
/**
* Timezone
*
* @var DateTimeZone
*/
protected static $dateTimeZone;
/**
* Bukoli Apisini başlatmak için gereklidir.
*
* @param $servicePassword string Size özel verdiğimiz şifre
* @param null|string $url WSDL Url
*/
public static function init($servicePassword, $url = null)
{
self::$servicePassword = $servicePassword;
if (!is_null($url)) {
self::setUrl($url);
}
}
/**
* WSDL url
*
* @return string
*/
public static function getUrl()
{
return self::$url ?: self::$defaultUrl;
}
/**
* WSDL url
*
* @param string $url
*/
public static function setUrl($url)
{
self::$url = $url;
}
/**
* Size özel verdiğimiz şifre
*
* @return string
* @throws ServicePasswordException
*/
public static function getServicePassword()
{
if (is_null(self::$servicePassword)) {
throw new ServicePasswordException();
}
return self::$servicePassword;
}
/**
* Size özel verdiğimiz şifre
*
* @param string $servicePassword
*/
public static function setServicePassword($servicePassword)
{
self::$servicePassword = $servicePassword;
}
/**
* Timezone
*
* @return DateTimeZone
*/
public static function getDateTimeZone()
{
return self::$dateTimeZone ?: new DateTimeZone('Europe/Istanbul');
}
/**
* Timezone
*
* @param DateTimeZone $dateTimeZone
*/
public static function setDateTimeZone($dateTimeZone)
{
self::$dateTimeZone = $dateTimeZone;
}
}
|
bukoli/bukoli-php
|
src/Bukoli.php
|
PHP
|
mit
| 2,164
|
# Example ServerSpec to InSpec Migration
[](https://circleci.com/gh/bonusbits/example_serverspec_to_inspec)
[](https://gitter.im/bonusbits/example_serverspec_to_inspec?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Purpose
The purpose of this project is to demonstrate migrating ServerSpec to InSpec automated integration tests in a Chef Cookbook. The process is split into three different *[HowTo](https://www.youtube.com/playlist?list=PLy2eDDzDOIEpf6obkRNB_Eikx32b68f8I)* videos I've created and linked below. A git branch for each corresponding training video has been created for easy reference.
## Environment
| Software | Version |
| :-------------------- | :------------- |
| macOS | 10.12.4 |
| Docker | 17.05.0-ce-rc1 |
| Chef Development Kit | 1.3.40 |
| kitchen-docker | 2.6.0 |
| CircleCi | 2.0 |
| Amazon Linux Docker Image | 2017.03 |
# Part 1 - Create a ServerSpec Tested Cookbook
The first step is to create and example Chef cookbook that uses ServerSpec integration testing. We'll be setting it up with kitchen-docker Test Kitchen driver.
#### Links
* [Reference Git Branch](https://github.com/bonusbits/example_serverspec_to_inspec/tree/01_serverspec)
* [Written Instructions](https://www.bonusbits.com/wiki/HowTo:Migrate_ServerSpec_to_InSpec_-_Part_1)
* [Walkthrough Video](https://youtu.be/fn_GV9Ejnqc)<br>
[](https://youtu.be/fn_GV9Ejnqc)
# Part 2 - Convert ServerSpec to InSpec Local Tests
Next, we take the previously created Chef Cookbook from [Part 1 Git Branch](https://github.com/bonusbits/example_serverspec_to_inspec/tree/01_serverspec) in our new 02_inspec_local branch and convert the ServerSpec tests to InSpec local tests.
#### Links
* [Reference Git Branch](https://github.com/bonusbits/example_serverspec_to_inspec/tree/02_inspec_local)
* [Written Instructions](https://www.bonusbits.com/wiki/HowTo:Migrate_ServerSpec_to_InSpec_-_Part_2)
* [Walkthrough Video](https://youtu.be/jLJu2fi2z4g)<br>
[](https://youtu.be/jLJu2fi2z4g)
# Part 3 - Convert Local InSpec Tests to Shared InSpec Profile
Next, we create a new git repository for our new shared InSpec profile and add the local InSpec tests to it from [Part 2 Git Branch](https://github.com/bonusbits/example_serverspec_to_inspec/tree/02_inspec_local). Finally, we demonstrate calling our remote InSpec Profile suite of tests from out Chef Cookbook Test Kitchen configuration.
#### Links
* [Cookbook Reference Git Branch](https://github.com/bonusbits/example_serverspec_to_inspec/tree/03_inspec_remote)
* [Shared InSpec Profile Git Repo](https://github.com/bonusbits/example_shared_inspec)
* [Written Instructions](https://www.bonusbits.com/wiki/HowTo:Migrate_ServerSpec_to_InSpec_-_Part_3)
* [Walkthrough Video](https://youtu.be/S0RvMnQpjXg)<br>
[](https://youtu.be/S0RvMnQpjXg)
## Other Links
* [YouTube Playlist](https://www.youtube.com/playlist?list=PLy2eDDzDOIEpf6obkRNB_Eikx32b68f8I)
* [Written Instructions Root Article](https://www.bonusbits.com/wiki/HowTo:Migrate_ServerSpec_Integration_Tests_to_InSpec_for_Chef_Cookbook)
|
bonusbits/example_serverspec_to_inspec
|
README.md
|
Markdown
|
mit
| 3,559
|
require "adequack/version"
require "adequack/core"
require "adequack/proxy"
require "adequack/integration/rspec_proxy"
require "adequack/integration/rspec_setup"
require "adequack/integration/expect_syntax_support"
module Adequack
InterfaceImplementationError = Class.new(::StandardError)
def self.check_implementation(duck, interface)
Core.implements duck, interface
end
def self.double(core, interfaces)
RspecProxy.new core, interfaces
end
end
|
somebody32/adequack
|
lib/adequack.rb
|
Ruby
|
mit
| 468
|
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _____ _
// / ____| (_)
// | (___ ___ __ _ _ _ ___ _ __ _
// \___ \ / _ \/ _` | | | |/ _ \| |/ _` |
// ____) | __/ (_| | |_| | (_) | | (_| |
// |_____/ \___|\__, |\__,_|\___/|_|\__,_| - Game Engine (2016-2017)
// | |
// |_|
//
// This file is distributed under the MIT License (MIT).
// See LICENSE.txt for details.
//
//===------------------------------------------------------------------------------------------===//
#ifndef SEQUOIA_ENGINE_RENDER_RENDERRESSOURCE_H
#define SEQUOIA_ENGINE_RENDER_RENDERRESSOURCE_H
#include "sequoia-engine/Core/Export.h"
#include "sequoia-engine/Core/Mutex.h"
#include "sequoia-engine/Core/NonCopyable.h"
#include "sequoia-engine/Render/RenderSystemObject.h"
#include <atomic>
#include <exception>
namespace sequoia {
namespace render {
/// @brief Ressource used by the RenderSystem such as Textures, Shaders and Programs
///
/// @note All render ressources have a single invariant: *Once a Ressource is made valid, it remains
/// valid throughout the lifetime of any object which references it*.
///
/// @ingroup render
class SEQUOIA_API RenderRessource : public RenderSystemObject, public NonCopyable {
/// Is the ressource is valid? - Once a ressource has been declared valid, it remains valid
/// throughout the lifetime of the object
std::atomic<bool> valid_;
/// Mutex used to modify the state of the object
Mutex mutex_;
/// Caught exception (if any) during the construction of the object
std::exception_ptr exception_;
public:
RenderRessource(RenderSystemKind renderSystemKind)
: RenderSystemObject(renderSystemKind), valid_(false), exception_(nullptr) {}
virtual ~RenderRessource() {}
/// @brief Check if the ressource is valid
///
/// Once a ressource has been declared valid, it remains valid throughout the lifetime of
/// the object. It is safe to call this function from any thread.
///
/// @remark Thread-safe
inline bool isValid() const noexcept { return valid_.load(); }
/// @brief Make the ressource valid
///
/// This converts the ressource into a valid state s.t `isValid() == true`. Any exceptions caught
/// during the execution are stored and can be rethrown via `rethrowException()`.
///
/// @remark Thread-safe
void makeValid();
/// @brief Rethrow any stored exception
///
/// It no exception was captured, this function does nothing.
///
/// @remark Thread-safe
void rethrowException();
/// @brief Check if an exception was captured
inline bool hasException() const { return exception_ != nullptr; }
protected:
/// @brief Make the ressource ready
virtual void makeValidImpl() = 0;
};
} // namespace render
} // namespace sequoia
#endif
|
thfabian/sequoia
|
sequoia-engine/src/sequoia-engine/Render/RenderRessource.h
|
C
|
mit
| 3,055
|
/*
* Copyright 2017 Hewlett-Packard Development Company, L.P.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.hpe.application.automation.tools.octane.actions.dto;
import com.hpe.application.automation.tools.octane.actions.UftTestType;
import javax.xml.bind.annotation.*;
/**
* This file represents automated test for sending to Octane
*/
@XmlRootElement(name = "test")
@XmlAccessorType(XmlAccessType.FIELD)
public class AutomatedTest {
@XmlTransient
private Long id;
@XmlTransient
private String type = "test_automated";
@XmlTransient
private ListNodeEntity testingToolType;
@XmlTransient
private ListNodeEntity framework;
@XmlTransient
private ListNodeEntityCollection testTypes;
//don't serialized to server, used to set testType property
@XmlAttribute
private UftTestType uftTestType;
@XmlAttribute
private String name;
@XmlAttribute
private String packageName;
@XmlAttribute
private Boolean executable;
private String description;
@XmlTransient
private BaseRefEntity scmRepository;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ListNodeEntity getFramework() {
return framework;
}
public void setFramework(ListNodeEntity framework) {
this.framework = framework;
}
public String getPackage() {
return packageName;
}
public void setPackage(String packageName) {
this.packageName = packageName;
}
public ListNodeEntity getTestingToolType() {
return testingToolType;
}
public void setTestingToolType(ListNodeEntity testingToolType) {
this.testingToolType = testingToolType;
}
public BaseRefEntity getScmRepository() {
return scmRepository;
}
public void setScmRepository(BaseRefEntity scmRepository) {
this.scmRepository = scmRepository;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public void setUftTestType(UftTestType uftTestType) {
this.uftTestType = uftTestType;
}
public UftTestType getUftTestType() {
return uftTestType;
}
public ListNodeEntityCollection getTestTypes() {
return testTypes;
}
public void setTestTypes(ListNodeEntityCollection testTypes) {
this.testTypes = testTypes;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Boolean getExecutable() {
return executable;
}
public void setExecutable(Boolean executable) {
this.executable = executable;
}
@Override
public String toString() {
return "#" + getId() == null ? "0" : getId() + " - " + getPackage() + "@" + getName();
}
}
|
bamh/hpe-application-automation-tools-plugin
|
src/main/java/com/hpe/application/automation/tools/octane/actions/dto/AutomatedTest.java
|
Java
|
mit
| 3,641
|
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content=" ">
<title>Get Default Predefined Content Items | LivePerson Technical Documentation</title>
<link rel="stylesheet" href="css/syntax.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">-->
<link rel="stylesheet" href="css/modern-business.css">
<link rel="stylesheet" href="css/lavish-bootstrap.css">
<link rel="stylesheet" href="css/customstyles.css">
<link rel="stylesheet" href="css/theme-blue.css">
<!-- <script src="assets/js/jsoneditor.js"></script> -->
<script src="assets/js/jquery-3.1.0.min.js"></script>
<!-- <link rel='stylesheet' id='theme_stylesheet' href='//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css'> -->
<!-- <link rel='stylesheet' id='theme_stylesheet' href='//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css'>
-->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> -->
<script src="assets/js/jquery.cookie-1.4.1.min.js"></script>
<script src="js/jquery.navgoco.min.js"></script>
<script src="assets/js/bootstrap-3.3.4.min.js"></script>
<script src="assets/js/anchor-2.0.0.min.js"></script>
<script src="js/toc.js"></script>
<script src="js/customscripts.js"></script>
<link rel="shortcut icon" href="images/favicon.ico">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="" href="http://0.0.0.0:4005feed.xml">
<script>
$(document).ready(function() {
// Initialize navgoco with default options
$("#mysidebar").navgoco({
caretHtml: '',
accordion: true,
openClass: 'active', // open
save: false, // leave false or nav highlighting doesn't work right
cookie: {
name: 'navgoco',
expires: false,
path: '/'
},
slide: {
duration: 400,
easing: 'swing'
}
});
$("#collapseAll").click(function(e) {
e.preventDefault();
$("#mysidebar").navgoco('toggle', false);
});
$("#expandAll").click(function(e) {
e.preventDefault();
$("#mysidebar").navgoco('toggle', true);
});
});
</script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container topnavlinks">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="fa fa-home fa-lg navbar-brand" href="index.html"> <span class="projectTitle"> LivePerson Technical Documentation</span></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<!-- entries without drop-downs appear here -->
<!-- entries with drop-downs appear here -->
<!-- conditional logic to control which topnav appears for the audience defined in the configuration file.-->
<li><a class="email" title="Submit feedback" href="https://github.com/LivePersonInc/dev-hub/issues" ><i class="fa fa-github"></i> Issues</a><li>
<!--comment out this block if you want to hide search-->
<li>
<!--start search-->
<div id="search-demo-container">
<input type="text" id="search-input" placeholder="search...">
<ul id="results-container"></ul>
</div>
<script src="js/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: 'search.json',
searchResultTemplate: '<li><a href="{url}" title="Get Default Predefined Content Items">{title}</a></li>',
noResultsText: 'No results found.',
limit: 10,
fuzzy: true,
})
</script>
<!--end search-->
</li>
</ul>
</div>
</div>
<!-- /.container -->
</nav>
<!-- Page Content -->
<div class="container">
<div class="col-lg-12"> </div>
<!-- Content Row -->
<div class="row">
<!-- Sidebar Column -->
<div class="col-md-3">
<ul id="mysidebar" class="nav">
<li class="sidebarTitle"> </li>
<li>
<a href="#">Common Guidelines</a>
<ul>
<li class="subfolders">
<a href="#">Introduction</a>
<ul>
<li class="thirdlevel"><a href="index.html">Home</a></li>
<li class="thirdlevel"><a href="getting-started.html">Getting Started with LiveEngage APIs</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Guides</a>
<ul>
<li class="thirdlevel"><a href="guides-customizedchat.html">Customized Chat Windows</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Account Configuration</a>
<ul>
<li class="subfolders">
<a href="#">Predefined Content API</a>
<ul>
<li class="thirdlevel"><a href="account-configuration-predefined-content-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-get-items.html">Get Predefined Content Items</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-get-by-id.html">Get Predefined Content by ID</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-query-delta.html">Predefined Content Query Delta</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-create-content.html">Create Predefined Content</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-update-content.html">Update Predefined Content</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-update-content-items.html">Update Predefined Content Items</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-delete-content.html">Delete Predefined Content</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-delete-content-items.html">Delete Predefined Content Items</a></li>
<li class="active thirdlevel"><a href="account-configuration-predefined-content-get-default-items.html">Get Default Predefined Content Items</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-get-default-items-by-id.html">Get Default Predefined Content by ID</a></li>
<li class="thirdlevel"><a href="account-configuration-predefined-content-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Automatic Messages API</a>
<ul>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-get-automatic-messages.html">Get Automatic Messages</a></li>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-get-automatic-message-by-id.html">Get Automatic Message by ID</a></li>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-update-an-automatic-message.html">Update an Automatic Message</a></li>
<li class="thirdlevel"><a href="account-configuration-automatic-messages-appendix.html">Appendix</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Administration</a>
<ul>
<li class="subfolders">
<a href="#">Users API</a>
<ul>
<li class="thirdlevel"><a href="administration-users-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="administration-users-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="administration-get-all-users.html">Get all users</a></li>
<li class="thirdlevel"><a href="administration-get-user-by-id.html">Get user by ID</a></li>
<li class="thirdlevel"><a href="administration-create-users.html">Create users</a></li>
<li class="thirdlevel"><a href="administration-update-users.html">Update users</a></li>
<li class="thirdlevel"><a href="administration-update-user.html">Update user</a></li>
<li class="thirdlevel"><a href="administration-delete-users.html">Delete users</a></li>
<li class="thirdlevel"><a href="administration-delete-user.html">Delete user</a></li>
<li class="thirdlevel"><a href="administration-change-users-password.html">Change user's password</a></li>
<li class="thirdlevel"><a href="administration-reset-users-password.html">Reset user's password</a></li>
<li class="thirdlevel"><a href="administration-user-query-delta.html">User query delta</a></li>
<li class="thirdlevel"><a href="administration-users-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Skills API</a>
<ul>
<li class="thirdlevel"><a href="administration-skills-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="administration-skills-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="administration-get-all-skills.html">Get all skills</a></li>
<li class="thirdlevel"><a href="administration-get-skill-by-id.html">Get skill by ID</a></li>
<li class="thirdlevel"><a href="administration-create-skills.html">Create skills</a></li>
<li class="thirdlevel"><a href="administration.update-skills.html">Update skills</a></li>
<li class="thirdlevel"><a href="administration-update-skill.html">Update skill</a></li>
<li class="thirdlevel"><a href="administration-delete-skills.html">Delete skills</a></li>
<li class="thirdlevel"><a href="administration-delete-skill.html">Delete skill</a></li>
<li class="thirdlevel"><a href="administration-skills-query-delta.html">Skills Query Delta</a></li>
<li class="thirdlevel"><a href="administration-skills-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Agent Groups API</a>
<ul>
<li class="thirdlevel"><a href="administration-agent-groups-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="administration-agent-groups-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="administration-get-all-agent-groups.html">Get all agent groups</a></li>
<li class="thirdlevel"><a href="administration-get-agent-groups-by-id.html">Get agent group by ID</a></li>
<li class="thirdlevel"><a href="administration-create-agent-groups.html">Create agent groups</a></li>
<li class="thirdlevel"><a href="administration-update-agent-groups.html">Update agent groups</a></li>
<li class="thirdlevel"><a href="administration-update-agent-group.html">Update agent group</a></li>
<li class="thirdlevel"><a href="administration-delete-agent-groups.html">Delete agent groups</a></li>
<li class="thirdlevel"><a href="administration-delete-agent-group.html">Delete agent group</a></li>
<li class="thirdlevel"><a href="administration-get-subgroups-and-members.html">Get subgroups and members of an agent group</a></li>
<li class="thirdlevel"><a href="administration-agent-groups-query-delta.html">Agent Groups Query Delta</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Consumer Experience</a>
<ul>
<li class="subfolders">
<a href="#">JavaScript Chat SDK</a>
<ul>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-chat-states.html">Chat States</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-surveys.html">Surveys</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-creating-an-instance.html">Creating an Instance</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getestimatedwaittime.html">getEstimatedWaitTime</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getprechatsurvey.html">getPreChatSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getengagement.html">getEngagement</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-requestchat.html">requestChat</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-addline.html">addLine</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-setvisitortyping.html">setVisitorTyping</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-setvisitorname.html">setVisitorName</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-endchat.html">endChat</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-requesttranscript.html">requestTranscript</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getexitsurvey.html">getExitSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-submitexitsurvey.html">submitExitSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getofflinesurvey.html">getOfflineSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-submitofflinesurvey.html">submitOfflineSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getstate.html">getState</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagentloginname.html">getAgentLoginName</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getvisitorname.html">getVisitorName</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagentid.html">getAgentId</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getrtsessionid.html">getRtSessionId</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getsessionkey.html">getSessionKey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagenttyping.html">getAgentTyping</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-events.html">Events</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onload.html">onLoad</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-oninit.html">onInit</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onestimatedwaittime.html">onEstimatedWaitTime</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onengagement.html">onEngagement</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onprechatsurvey.html">onPreChatSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstart.html">onStart</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstop.html">onStop</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onrequestchat.html">onRequestChat</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-ontranscript.html">onTranscript</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-online.html">onLine</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstate.html">onState</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-oninfo.html">onInfo</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onagenttyping.html">onAgentTyping</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onexitsurvey.html">onExitSurvey</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-onaccounttoaccounttransfer.html">onAccountToAccountTransfer</a></li>
<li class="thirdlevel"><a href="rt-interactions-example.html">Engagement Attributes Body Example</a></li>
<li class="thirdlevel"><a href="consumer-experience-javascript-chat-demo.html">Demo App</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Server Chat API</a>
<ul>
<li class="thirdlevel"><a href="consumer-experience-server-chat-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-availability.html">Retrieve Availability</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-available-slots.html">Retrieve Available Slots</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-estimated-wait-time.html">Retrieve Estimated Wait Time</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-offline-survey.html">Retrieve an Offline Survey</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-start-chat.html">Start a Chat</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-resources.html">Retrieve Chat Resources, Events and Information</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-events.html">Retrieve Chat Events</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-add-lines.html">Add Lines / End Chat</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-information.html">Retrieve Chat Information</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-visitor-name.html">Retrieve the Visitor's Name</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-set-visitor-name.html">Set the Visitor's Name</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-agent-typing-status.html">Retrieve the Agent's Typing Status</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-visitor-typing-status.html">Retrieve the Visitor's Typing Status</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-set-visitor-typing-status.html">Set the Visitor's Typing Status</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-exit-survey-structure.html">Retrieve Exit Survey Structure</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-submit-survey-data.html">Submit Survey Data</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-send-transcript.html">Send a Transcript</a></li>
<li class="thirdlevel"><a href="consumer-experience-server-chat-sample.html">Sample Postman Collection</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Push Service API</a>
<ul>
<li class="thirdlevel"><a href="push-service-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="push-service-tls-html">TLS Authentication</a></li>
<li class="thirdlevel"><a href="push-service-codes-html">HTTP Response Codes</a></li>
<li class="thirdlevel"><a href="push-service-configuration-html">Configuration of Push Proxy</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">In-App Messaging SDK iOS (2.0)</a>
<ul>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-quick-start.html">Quick Start</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-advanced-configurations.html">Advanced Configurations</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-initialize.html">initialize</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-showconversation.html">showConversation</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-removeconversation.html">removeConversation</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-reconnect.html">reconnect</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-togglechatactions.html">toggleChatActions</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-checkactiveconversation.html">checkActiveConversation</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-markasurgent.html">markAsUrgent</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-isurgent.html">isUrgent</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-dismissurgent.html">dismissUrgent</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-resolveconversation.html">resolveConversation</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-clearhistory.html">clearHistory</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-logout.html">logout</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-destruct.html">destruct</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-handlepush.html">handlePush</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-registerpushnotifications.html">registerPushNotifications</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-setuserprofile.html">setUserProfile</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-getassignedagent.html">getAssignedAgent</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-subscribelogevents.html">subscribeLogEvents</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-getsdkversion.html">getSDKVersion</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-printalllocalizedkeys.html">printAllLocalizedKeys</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-printsupportedlanguages.html">printSupportedLanguages</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-getallsupportedlanguages.html">getAllSupportedLanguages</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-interfacedefinitions.html">Interface and Class Definitions</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-callbacks-index.html">Callbacks index</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-configuring-the-sdk.html">Configuring the SDK</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-attributes.html">Attributes</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-deprecated-attributes.html">Deprecated Attributes</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-stringlocalization.html">String localization in SDK</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-localizationkeys.html">Localization Keys</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-timestamps.html">Timestamps Formatting</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-createcertificate.html">OS Certificate Creation</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-advanced-csat.html">CSAT UI Content</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-photosharing.html">Photo Sharing (Beta)</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-pushnotifications.html">Configuring Push Notifications</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-opensource.html">Open Source List</a></li>
<li class="thirdlevel"><a href="consumer-experience-ios-sdk-security.html">Security</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">In-App Messaging SDK Android (2.0)</a>
<ul>
<li class="thirdlevel"><a href="android-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="android-prerequisites.html">Prerequisites</a></li>
<li class="thirdlevel"><a href="android-download-and-unzip.html">Step 1: Download and Unzip the SDK</a></li>
<li class="thirdlevel"><a href="android-configure-project-settings.html">Step 2: Configure project settings to connect LiveEngage SDK</a></li>
<li class="thirdlevel"><a href="android-code-integration.html">Step 3: Code integration for basic deployment</a></li>
<li class="thirdlevel"><a href="android-initialization.html">SDK Initialization and Lifecycle</a></li>
<li class="thirdlevel"><a href="android-authentication.html">Authentication</a></li>
<li class="thirdlevel"><a href="android-conversations-lifecycle.html">Conversations Lifecycle</a></li>
<li class="thirdlevel"><a href="android-callbacks-interface.html">LivePerson Callbacks Interface</a></li>
<li class="thirdlevel"><a href="android-notifications.html">Notifications</a></li>
<li class="thirdlevel"><a href="android-user-data.html">User Data</a></li>
<li class="thirdlevel"><a href="android-logs.html">Logs and Info</a></li>
<li class="thirdlevel"><a href="android-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="android-initializedeprecated.html">initialize (Deprecated)</a></li>
<li class="thirdlevel"><a href="android-initializeproperties.html">initialize (with SDK properties object)</a></li>
<li class="thirdlevel"><a href="android-showconversation.html">showConversation</a></li>
<li class="thirdlevel"><a href="android-showconversationauth.html">showConversation (with authentication support)</a></li>
<li class="thirdlevel"><a href="android-hideconversation.html">hideConversation</a></li>
<li class="thirdlevel"><a href="android-getconversationfrag.html">getConversationFragment</a></li>
<li class="thirdlevel"><a href="android-getconversationfragauth.html">getConversationFragment with authentication support</a></li>
<li class="thirdlevel"><a href="android-reconnect.html">reconnect</a></li>
<li class="thirdlevel"><a href="android-setuserprofile.html">setUserProfile</a></li>
<li class="thirdlevel"><a href="android-setuserprofiledeprecated.html">setUserProfile (Deprecated)</a></li>
<li class="thirdlevel"><a href="android-registerlppusher.html">registerLPPusher</a></li>
<li class="thirdlevel"><a href="android-unregisterlppusher.html">unregisterLPPusher</a></li>
<li class="thirdlevel"><a href="android-handlepush.html">handlePush</a></li>
<li class="thirdlevel"><a href="android-getsdkversion.html">getSDKVersion</a></li>
<li class="thirdlevel"><a href="android-setcallback.html">setCallback</a></li>
<li class="thirdlevel"><a href="android-removecallback.html">removeCallBack</a></li>
<li class="thirdlevel"><a href="android-checkactiveconversation.html">checkActiveConversation</a></li>
<li class="thirdlevel"><a href="android-checkagentid.html">checkAgentID</a></li>
<li class="thirdlevel"><a href="android-markurgent.html">markConversationAsUrgent</a></li>
<li class="thirdlevel"><a href="android-marknormal.html">markConversationAsNormal</a></li>
<li class="thirdlevel"><a href="android-checkurgent.html">checkConversationIsMarkedAsUrgent</a></li>
<li class="thirdlevel"><a href="android-resolveconversation.html">resolveConversation</a></li>
<li class="thirdlevel"><a href="android-shutdown.html">shutDown</a></li>
<li class="thirdlevel"><a href="android-shutdowndeprecated.html">shutDown (Deprecated)</a></li>
<li class="thirdlevel"><a href="android-clearhistory.html">clearHistory</a></li>
<li class="thirdlevel"><a href="android-logout.html">logOut</a></li>
<li class="thirdlevel"><a href="android-callbacks-index.html">Callbacks Index</a></li>
<li class="thirdlevel"><a href="android-configuring-sdk.html">Configuring the SDK</a></li>
<li class="thirdlevel"><a href="android-attributes.html">Attributes</a></li>
<li class="thirdlevel"><a href="android-configuring-edittext.html">Configuring the message’s EditText</a></li>
<li class="thirdlevel"><a href="android-proguard.html">Proguard Configuration</a></li>
<li class="thirdlevel"><a href="android-modifying-string.html">Modifying Strings</a></li>
<li class="thirdlevel"><a href="android-modifying-resources.html">Modifying Resources</a></li>
<li class="thirdlevel"><a href="android-plural-string.html">Plural String Resource Example</a></li>
<li class="thirdlevel"><a href="android-timestamps.html">Timestamps Formatting</a></li>
<li class="thirdlevel"><a href="android-off-hours.html">Date and Time</a></li>
<li class="thirdlevel"><a href="android-bubble.html">Bubble Timestamp</a></li>
<li class="thirdlevel"><a href="android-separator.html">Separator Timestamp</a></li>
<li class="thirdlevel"><a href="android-resolve.html">Resolve Message</a></li>
<li class="thirdlevel"><a href="android-csat.html">CSAT Behavior</a></li>
<li class="thirdlevel"><a href="android-photo-sharing.html">Photo Sharing - Beta</a></li>
<li class="thirdlevel"><a href="android-push-notifications.html">Enable Push Notifications</a></li>
<li class="thirdlevel"><a href="android-appendix.html">Appendix</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Real-time Interactions</a>
<ul>
<li class="subfolders">
<a href="#">Visit Information API</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-visit-information-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-visit-information-visit-information.html">Visit Information</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">App Engagement API</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-app-engagement-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-app-engagement-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="rt-interactions-create-session.html">Create Session</a></li>
<li class="thirdlevel"><a href="rt-interactions-update-session.html">Update Session</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Engagement Attributes</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-engagement-attributes-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-engagement-attributes-engagement-attributes.html">Engagement Attributes</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">IVR Engagement API</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-ivr-engagement-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-ivr-engagement-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="rt-interactions-ivr-engagement-external engagement.html">External Engagement</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Validate Engagement</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-validate-engagement-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-validate-engagement-validate-engagement.html">Validate Engagement API</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Engagement Trigger API</a>
<ul>
<li class="thirdlevel"><a href="trigger-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="trigger-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="trigger-click.html">Click</a></li>
<li class="thirdlevel"><a href="trigger-getinfo.html">getEngagementInfo</a></li>
<li class="thirdlevel"><a href="trigger-getstate.html">getEngagementState</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Engagement Window Widget SDK</a>
<ul>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-limitations.html">Limitations</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-configuration.html">Configuration</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-how-to-use.html">How to use the SDK</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-code-examples.html">Code Examples</a></li>
<li class="thirdlevel"><a href="rt-interactions-window-sdk-event-structure.html">Event Structure</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Agent</a>
<ul>
<li class="subfolders">
<a href="#">Agent Workspace Widget SDK</a>
<ul>
<li class="thirdlevel"><a href="agent-workspace-sdk-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-limitations.html">Limitations</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-how-to-use.html">How to use the SDK</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-public-model.html">Public Model Structure</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-public-properties.html">Public Properties</a></li>
<li class="thirdlevel"><a href="agent-workspace-sdk-code-examples.html">Code Examples</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">LivePerson Domain API</a>
<ul>
<li class="thirdlevel"><a href="agent-domain-domain-api.html">Domain API</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Login Service API</a>
<ul>
<li class="thirdlevel"><a href="login-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="agent-login-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="agent-login.html">Login</a></li>
<li class="thirdlevel"><a href="agent-refresh.html">Refresh</a></li>
<li class="thirdlevel"><a href="agent-refresh.html">Logout</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Chat Agent API</a>
<ul>
<li class="thirdlevel"><a href="chat-agent-getting-started.html">Getting Started</a></li>
<li class="thirdlevel"><a href="agent-chat-agent-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="agent-start-agent-session.html">Start Agent Session</a></li>
<li class="thirdlevel"><a href="agent-retrieve-current-availability.html">Retrieve Current Availability</a></li>
<li class="thirdlevel"><a href="agent-set-agent-availability.html">Set Agent Availability</a></li>
<li class="thirdlevel"><a href="agent-retrieve-available-agents.html">Retrieve Available Agents</a></li>
<li class="thirdlevel"><a href="agent-retrieve-available-slots.html">Retrieve Available Slots</a></li>
<li class="thirdlevel"><a href="agent-retrieve-agent-information.html">Retrieve Agent Information</a></li>
<li class="thirdlevel"><a href="agent-determine-incoming.html">Determine Incoming Chat Requests</a></li>
<li class="thirdlevel"><a href="agent-accept-chat.html">Accept a Chat</a></li>
<li class="thirdlevel"><a href="agent-retrieve-chat-sessions.html">Retrieve Chat Sessions</a></li>
<li class="thirdlevel"><a href="agent-retrieve-chat-resources.html">Retrieve Chat Resources, Events and Information</a></li>
<li class="thirdlevel"><a href="agent-retrieve-data.html">Retrieve Data for Multiple Chats</a></li>
<li class="thirdlevel"><a href="agent-retrieve-chat-events.html">Retrieve Chat Events</a></li>
<li class="thirdlevel"><a href="agent-add-lines.html">Add Lines</a></li>
<li class="thirdlevel"><a href="agent-end-chat.html">End Chat</a></li>
<li class="thirdlevel"><a href="agent-retrieve-chat-info.html">Retrieve Chat Information</a></li>
<li class="thirdlevel"><a href="">Retrieve Visitor’s Name</a></li>
<li class="thirdlevel"><a href="agent-retrieve-agent-typing.html">Retrieve Agent's Typing Status</a></li>
<li class="thirdlevel"><a href="agent-set-agent-typing.html">Set Agent’s Typing Status</a></li>
<li class="thirdlevel"><a href="agent-retrieve-visitor-typing.html">Retrieve Visitor's Typing Status</a></li>
<li class="thirdlevel"><a href="agent-chat-agent-retrieve-skills.html">Retrieve Available Skills</a></li>
<li class="thirdlevel"><a href="agent-transfer-chat.html">Transfer a Chat</a></li>
<li class="thirdlevel"><a href="agent-retrieve-survey-structure.html">Retrieve Agent Survey Structure</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Messaging Agent SDK</a>
<ul>
<li class="thirdlevel"><a href="messaging-agent-sdk-overview.html">Overview</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Data</a>
<ul>
<li class="subfolders">
<a href="#">Data Access API (Beta)</a>
<ul>
<li class="thirdlevel"><a href="data-data-access-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="data-data-access-architecture.html">Architecture</a></li>
<li class="thirdlevel"><a href="data-data-access-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="data-data-access-base-resource.html">Base Resource</a></li>
<li class="thirdlevel"><a href="data-data-access-agent-activity.html">Agent Activity</a></li>
<li class="thirdlevel"><a href="data-data-access-web-session.html">Web Session</a></li>
<li class="thirdlevel"><a href="data-data-access-engagement.html">Engagement</a></li>
<li class="thirdlevel"><a href="data-data-access-survey.html">Survey</a></li>
<li class="thirdlevel"><a href="data-data-access-schema.html">Schema</a></li>
<li class="thirdlevel"><a href="data-data-access-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Messaging Operations API</a>
<ul>
<li class="thirdlevel"><a href="data-messaging-operations-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="data-messaging-operations-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="data-messaging-operations-messaging-conversation.html">Messaging Conversation</a></li>
<li class="thirdlevel"><a href="data-messaging-operations-messaging-csat-distribution.html">Messaging CSAT Distribution</a></li>
<li class="thirdlevel"><a href="data-messaging-operations-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Messaging Interactions API (Beta)</a>
<ul>
<li class="thirdlevel"><a href="data-messaging-interactions-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-conversations.html">Conversations</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-get-conversation-by-conversation-id.html">Get conversation by conversation ID</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-get-conversations-by-consumer-id.html">Get Conversations by Consumer ID</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-sample-code.html">Sample Code</a></li>
<li class="thirdlevel"><a href="data-messaging-interactions-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Engagement History API</a>
<ul>
<li class="thirdlevel"><a href="data-engagement-history-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="data-engagement-history-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="data-engagement-history-retrieve-engagement-list-by-criteria.html">Retrieve Engagement List by Criteria</a></li>
<li class="thirdlevel"><a href="data-engagement-history-sample-code.html">Sample Code</a></li>
<li class="thirdlevel"><a href="data-engagement-history-appendix.html">Appendix</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Operational Real-time API</a>
<ul>
<li class="thirdlevel"><a href="data-operational-realtime-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-methods.html">Methods</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-queue-health.html">Queue Health</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-engagement-activity.html">Engagement Activity</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-agent-activity.html">Agent Activity</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-current-queue-state.html">Current Queue State</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-sla-histogram.html">SLA Histogram</a></li>
<li class="thirdlevel"><a href="data-operational-realtime-sample-code.html">Sample Code</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">LiveEngage Tag</a>
<ul>
<li class="subfolders">
<a href="#">LE Tag Events</a>
<ul>
<li class="thirdlevel"><a href="lp-tag-tag-events-overview.html">Overview</a></li>
<li class="thirdlevel"><a href="lp-tag-tag-events-how.html">How to use these Events</a></li>
<li class="thirdlevel"><a href="lp-tag-tag-events-events.html">Events</a></li>
<li class="thirdlevel"><a href="lp-tag-visitor-flow.html">Visitor Flow Events</a></li>
<li class="thirdlevel"><a href="lp-tag-engagement.html">Engagement Events</a></li>
<li class="thirdlevel"><a href="lp-tag-engagement-window.html">Engagement Window Events</a></li>
</ul>
</li>
</ul>
<li>
<a href="#">Messaging Window API</a>
<ul>
<li class="subfolders">
<a href="#">Introduction</a>
<ul>
<li class="thirdlevel"><a href="consumer-interation-index.html">Home</a></li>
<li class="thirdlevel"><a href="consumer-int-protocol-overview.html">Protocol Overview</a></li>
<li class="thirdlevel"><a href="consumer-int-getting-started.html">Getting Started</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Tutorials</a>
<ul>
<li class="thirdlevel"><a href="consumer-int-get-msg.html">Get Messages</a></li>
<li class="thirdlevel"><a href="consumer-int-conversation-md.html">Conversation Metadata</a></li>
<li class="thirdlevel"><a href="consumer-int-readaccept-events.html">Read/Accept events</a></li>
<li class="thirdlevel"><a href="consumer-int-authentication.html">Authentication</a></li>
<li class="thirdlevel"><a href="consumer-int-agent-profile.html">Agent Profile</a></li>
<li class="thirdlevel"><a href="consumer-int-post-survey.html">Post Conversation Survey</a></li>
<li class="thirdlevel"><a href="consumer-int-client-props.html">Client Properties</a></li>
<li class="thirdlevel"><a href="consumer-int-no-headers.html">Avoid Webqasocket Headers</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">Samples</a>
<ul>
<li class="thirdlevel"><a href="consumer-int-js-sample.html">JavaScript Messenger</a></li>
</ul>
</li>
<li class="subfolders">
<a href="#">API Reference</a>
<ul>
<li class="thirdlevel"><a href="consumer-int-api-reference.html">Overview</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-reqs.html">Request Builder</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-resps.html">Response Builder</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-notifications.html">Notification Builder</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-req-conv.html">New Conversation</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-close-conv.html">Close Conversation</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-conv-ttr.html">Urgent Conversation</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-csat-conv.html">Update CSAT</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-sub-conv.html">Subscribe Conversations Metadata</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-unsub-conv.html">Unsubscribe Conversations Metadata</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-text-cont.html">Publish Content</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-sub-events.html">Subscribe Conversation Content</a></li>
<li class="thirdlevel"><a href="consumer-int-msg-init-con.html">Browser Init Connection</a></li>
</ul>
</li>
</ul>
<!-- if you aren't using the accordion, uncomment this block:
<p class="external">
<a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
</p>
-->
</li>
</ul>
</div>
<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
<script>$("li.active").parents('li').toggleClass("active");</script>
<!-- Content Column -->
<div class="col-md-9">
<div class="post-header">
<h1 class="post-title-main">Get Default Predefined Content Items</h1>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96175782-1', 'auto');
ga('send', 'pageview');
</script>
<div class="post-content">
<p>Retrieves default Predefined Content items from a specific account.</p>
<h2 id="request">Request</h2>
<table>
<thead>
<tr>
<th style="text-align: left">Method</th>
<th style="text-align: left">URL</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left">GET</td>
<td style="text-align: left">/api/configuration/defaults/engagement-window/canned-responses/</td>
</tr>
</tbody>
</table>
<h2 id="response">Response</h2>
<p><strong>Response Codes</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left">Code</th>
<th style="text-align: left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left">200</td>
<td style="text-align: left">OK</td>
</tr>
<tr>
<td style="text-align: left">404</td>
<td style="text-align: left">Data Not Found</td>
</tr>
</tbody>
</table>
<p><strong>Response Body</strong></p>
<div class="highlighter-rouge"><pre class="highlight"><code>[
{
"templateId": "canned-response-template-1",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Introduction",
"msg": "Allow me to introduce myself as your chat agent.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-2",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Hello",
"msg": "Hello, How may I assist you?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-3",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Welcome",
"msg": "Welcome to our live chat service. My name is $!{operator.nickname} and I am here to assist you.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-4",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Help",
"msg": "Hello, you're chatting with $!{operator.nickname}. How may I help you?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-5",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Welcome to website",
"msg": "Welcome to COMPANY name, what brings you to our website today?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-6",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Question",
"msg": "Is there a specific question I can help you with?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-7",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Staller",
"msg": "Your patience is appreciated. I will be with you shortly.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-8",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Non Responsive",
"msg": "Was there something in particular that you were looking for?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-9",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Happy to Help",
"msg": "I will be happy to help you with that!",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-10",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "One moment please",
"msg": "Can you please wait for a moment while I find that information for you.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-11",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Thanks for waiting",
"msg": "Thank you for waiting. I have some information for you.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-12",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Good-bye",
"msg": "Thank you for chatting. Good-bye.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-13",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Chat Again",
"msg": "Thank you for visiting. Please contact us at anytime.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-14",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Have I answered all of your questions today?",
"msg": "Have I answered all of your questions today?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-15",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "FAIR Warning",
"msg": "I haven't heard from you for a while. Are you still there?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-16",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "FINAL Warning",
"msg": "Sorry we couldn't finish our chat. As I haven't heard from you for some time, I'm going to close this chat. If you need any help in future, please do not hesitate to chat with us again.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-17",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Goodbye with option to fill survey",
"msg": "Thank you for chatting with me today. We really value your feedback. Please click the \"Close\" button at top right to answer a few questions about your experience with us. Thanks and have a good day!",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-18",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Transfer to alternate chat group",
"msg": "I can certainly help you with that. I would be happy to transfer you to the appropriate group so they can answer your question as quickly as possible. Is that OK?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-19",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Transfer to Manager",
"msg": "I can transfer you to my manager who can better assist you. Is that OK?",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-20",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Abusive Fair Warning",
"msg": "Our company considers that content and language to be inappropriate. If you continue to send improper messages, I will have to end our chat session.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-21",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Abusive Final Warning",
"msg": "We will not tolerate the use of inappropriate language. I am required to terminate our chat session immediately.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
},
{
"templateId": "canned-response-template-22",
"templateDeleted": false,
"deleted": false,
"enabled": true,
"data": [
{
"title": "Permission Based Service",
"msg": "This chat service is permission based. Before a chat begins, no data is collected about you beyond the information which websites usually collect. Once an invitation is accepted, all chats are monitored for quality assurance purposes. Any information gathered is for internal use only.",
"lang": "en-US",
"isDefault": true
}
],
"type": 0
}
]
</code></pre>
</div>
<div class="tags">
</div>
</div>
<hr class="shaded"/>
<footer>
<div class="row">
<div class="col-lg-12 footer">
©2017 LivePerson. All rights reserved.<br />This documentation is subject to change without notice.<br />
Site last generated: Mar 27, 2017 <br />
<p><img src="img/company_logo.png" alt="Company logo"/></p>
</div>
</div>
</footer>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</div>
</body>
</html>
|
LivePersonInc/dev-hub
|
content_ga3/account-configuration-predefined-content-get-default-items.html
|
HTML
|
mit
| 175,353
|
---
layout: page
title: Últimos Posts
excerpt: "A simple and clean responsive Jekyll theme for words and photos."
---
<ul class="post-list">
{% for post in site.posts limit:10 %}
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time></span></a></article></li>
{% endfor %}
</ul>
|
robsonbittencourt/rbittencourt.com
|
index.html
|
HTML
|
mit
| 417
|
ShayganAffiliateBundle
===================
A simple **Symfony Affiliate Bundle**.
This ~~FOSUserBundle compatible~~ Bundle tracks referrals with query string
parameter and detect referred registrations via cookie. You can easil ask
the bundle for commission amount (if there is any referrer) and apply the amount
to referrer's user account.
Your Order Object needs to implements \Shaygan\AffiliateBundle\Model\OrderInterface.
## Install
Via Composer
``` bash
$ composer require shaygan/affiliate-bundle
```
Edit your app/AppKernel.php to register the bundle in the registerBundles() method as above:
```php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
// register the bundle here
new \Shaygan\AffiliateBundle\ShayganAffiliateBundle()
);
}
}
```
## Configure the bundle
This bundle was designed to just work out of the box. The only thing you have to configure in order to get this bundle up and running is your commission type amount and count.
```yaml
# app/config/config.yml
shaygan_affiliate:
programs:
membership_upgrade:
type: fixed-amount
first_commission_amount: 3
commission_amount: 1
max_count: 10
purchase:
type: percentage
first_commission_percent: 15
commission_percent: 10
max_count: 10
```
By default it look for ?ref=REFERRER_ID in URLs the *ref* is configurable
## Usage
ShayganAffiliateBundel tracks FOSUserBundle registrations automatically and after every purchase you just need to ask the bundle for the commission payment if the referrer eligible for commission the bundle with return a commission Entity that contain the amount you have to pay to the referrer, othervise returns null.
```php
// ...
// MyOrder SHOULD implements \Shaygan\AffiliateBundle\Model\OrderInterface
$order = new \AppBundle\Entity\MyOrder();
$order->setOwnerUser($this->getUser());
$em = $this->getDoctrine()->getManager();
$em->persist($order);
$em->flush();
$affiliate = $this->get("shaygan_affiliate");
$commission = $affiliate->getPurchaseCommission($order);
if(null !== $commission){
$commissionAmount = $commission->getCommissionAmount();
$referrer = $commission->getReferrer();
$referrerUserId = $referrer->getId();
// You can apply the commission amount to the accont of referrer User here
// ...
}
//...
```
## Testing
Not implemented yet
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
Shaygan/AffiliateBundle
|
README.md
|
Markdown
|
mit
| 2,637
|
# Tools Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## 2.0.0 - 2018-08-02
### Added
- Initial Craft CMS 3 release
## 2.1.0 - 2018-11-13
### Added
- Added a grid field type which is going to be used as a width field
## 2.2.0 - 2020-09-24
### Added
- Support for craft 3.5
## 2.2.1 - 2021-19-01
### Changed
- Settings and UI for grid field
## 2.2.1.1 - 2021-20-01
### Fixed
- Validation error when grid data was typecasted to int
|
supercool/Tools
|
CHANGELOG.md
|
Markdown
|
mit
| 611
|
---
layout: post
title: "Adding unit tests to an MVP project, for fake internet points"
comments: true
categories: former-life
published: true
disqus: y
tags: android testing
---
You know what's worse than creating a demo project about MVP and testing without actual tests? Posting said project to [/r/androiddev](https://www.reddit.com/r/androiddev/comments/526gds/stepbystep_introduction_to_mvp_on_android/). The only way I found to redeem myself after that mistake was to, not only add some tests to the project, but also write a post about the process. Hopefully, it will help other people out there, and will teach me a lesson never to try to fish for easy fake internet points.
The app under test
------------------
The app was developed to demonstrate how to use mosby, an [MVP library](http://hannesdorfmann.com/mosby/) developed by [Hannes Dorfmann](https://twitter.com/sockeqwe). It emphasizes simplicity, so it includes as few libraries as possible (sorry for the over-achievers out there: no Rx for today). It displays a list of books (title, author name and a preview image) in a recyclerview, and then, upon selection of an item, shows a more detailed view. See for yourself:
<div class="img-center"><img class="half" src="/images/MosbyBooksSampleApp/animation_phone.gif" /></div>
On tablet landscape (yes, because [#configurationchangematters](https://teespring.com/enumsmatter#pid=6&cid=639&sid=front)), it will look like this:
<div class="img-center"><img class="half" src="/images/MosbyBooksSampleApp/tablet_view.png" /></div>
Applying MVP
------------
<div class="img-center"><img class="half three-quarters" src="/images/MosbyBooksSampleApp/mvp_view.png" /></div>
We apply MVP by introducing two views: **BooksListView** and **BookDetailsView**.
The first view, responsible of displaying the books, will delegate the task to **BooksListPresenter**. The presenter, after instructing the view to set itself in the loading state, delegates the job of fetching the data to the **DataFetcher**, and passes itself for callback. Once a response is received, and the callbacks propagate, the presenter decide whether to show the error or the data it received.
The second view, however, doesn't need to do much. Since we already have all the data we need, there is no task to perform.
So, here are a few things to note from the diagram:
1. My drawing skills are amazing.
2. Once we delegate to the presenter, all the work is done in pure Java code<sup>1</sup>. This is arguably the *only* reason we go through all this hassle: to be able to run all this code on the JVM, including its unit tests. (If you are wondering why that's a big deal, I suggest you look at this [presentation](http://slides.com/anasambri/mvp-android), by yours truly. I'll wait).
Unit testing the presenter
--------------------------
The basic idea behind unit tests can be summarized into [Arrange-Act-Assert](http://c2.com/cgi/wiki?ArrangeActAssert) (or AAA). First, you arrange the conditions to execute what you want to do. Then, comes the time to act by performing the function we want to test. Finally, assert that the results match what we expect.
In the case of our app, the **BooksListPresenter** depends on two things:
- The **DataFetcher**: this is the component that the presenter uses to get the data.
- The **BooksListView**: this is the view that the presenter has to "act upon". In our AAA cycle, this is the point where we want to assert.
Pulling out dependencies
------------------------
It is important, at this point, to take a look at the code. I promise to show as little as needed, but, if you wanna have a more complete view (that compiles), I made a [git tag just for you](https://github.com/anas-ambri/MosbyBooksSampleApp/tree/before-tests).
The code of the presenter:
```java
public interface DataCallback<T> {
void onSuccess(T data);
void onFailure(String reason);
}
public class BooksListPresenter {
private WeakReference<BooksListView> viewRef;
public void attachView(BooksListView view) {
viewRef = new WeakReference<BooksListView>(view);
}
public void detachView() {
if (viewRef != null) {
viewRef.clear();
viewRef = null;
}
}
public BooksListView getView() { return viewRef == null ? null : viewRef.get(); }
public void loadBooks(final boolean pullToRefresh) {
if (getView() != null) { getView().showLoading(pullToRefresh); }
DataFetcher.getBooks(new DataCallback<Book[]>() {
public void onSuccess(Book[] books) {
if(getView() != null) {
getView().setData(books);
getView.showContent();
}
}
public void onFailure(String reason) {
Throwable t = new Throwable("Failed to load books: " + reason);
if(getView() != null) {
getView().showError(t, pullToRefresh);
}
});
}
}
```
When looking for dependencies, it is very important to understand how they affect our code.
The first dependency, on **BooksListView**, is pretty obvious to spot. Because we need to wrap the reference in a **WeakReference**, we have introduced two methods **attachView()/detachView()** that allow us to easily swap it in and out painlessly.
The second dependency on **DataFetcher** is a bit harder to untangle, because we are using a static method. While unit testing a [static method is possible](https://blog.codecentric.de/en/2011/11/testing-and-mocking-of-static-methods-in-java/), it comes at a great expense on Android (due to its [byte-manipulating nature](https://lkrnac.net/blog/2014/01/using-powermock/)). It is almost always cheaper to transform the code to make it more testable (and, consequently, better).
The solution, in this case, is to simply transform the static method into an instance call. We inject a **DataFetcher** instance at construction, and just call the same code.
```java
public class BooksListPresenter<V> {
private WeakReference<V> viewRef;
private final DataFetcher dataFetcher;
public BooksListPresenter(DataFetcher dataFetcher) {
this.dataFetcher = dataFetcher;
}
//attachView(),detachView() & getView() don't change
public void loadBooks(final boolean pullToRefresh) {
//No changes
dataFetcher.getBooks(new DataCallback<Book[]>() {
//No changes here
});
}
}
```
Fake it until you make it
-------------------------
Because we want to run our tests on the smallest amount of untested code possible, we would like to surround the presenter with classes whose behavior is simple and predictable. This is where [Test Doubles](http://www.martinfowler.com/bliki/TestDouble.html) come in. Like stunt doubles in movies, they will replace the current implementation, but still expose the same interface. The easiest kind of test doubles are Fakes (and no, I didn't just make up this name). According to [Martin Fowler](http://martinfowler.com/articles/mocksArentStubs.html):
> Fake objects actually have working implementations, but usually take some shortcut which makes them not suitable for production (an InMemoryTestDatabase is a good example).
This is perfect for the case of our network calls, because we already have an idea of what we want to return as shortcut. In this case, we convert our **DataFetcher** class into an interface, and simply define a **FakeDataFetcher** class that implements it (in the laziest way possible):
```java
public interface DataFetcher {
void getBooks(final DataCallback<Book[]> callback);
}
public class FakeDataFetcher implements DataFetcher {
private String reason;
private Book[] data;
public FakeDataFetcher(String reason) {
this.reason = reason;
}
public FakeDataFetcher(Book[] data) {
this.data = data;
}
public void getBooks(DataCallback<Book[]> callback) {
if (reason != null) {
callback.onFailure(reason);
} else {
callback.onSuccess(data);
}
}
}
```
Now, when creating a **DataFetcher**, we can just tell it exactly what data to return, without having to make a single HTTP call, and it will oblige.
Testing the fake
----------------
Yep, I know, it sounds ludicrous, but you still gotta do: we need to ensure that the fake does behave according to specification. We want to build confidence in our code and the only way to do so is to write tests.
First, we need to add two libraries to our project: **JUnit** and **Mockito**. In your **app/build.gradle**, add this to your dependencies (as of September 15th):
```java
dependencies {
//...
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
}
```
Then, go ahead, create a new folder called **test** under your main **src** folder. And create your **FakeDataFetcherTest** class (it is usually advised to put these under the same package as the class under test):
```java
public class FakeDataFetcherTest {
private static final Book[] data;
private static final String reason = "Could not fetch books"; //Arrange
static {
Book b1 = new Book();
b1.id = 1; b1.author = "Paula Hawkins"; b1.name = "The Girl on the Train";
b1.imgUrl = "http://ecx.images-amazon.com/images/I/51-VcOHdoFL."
+ "_SL160_PIsitb-sticker-arrow-dp,TopRight,12,-18_SH30_OU15_SL150_.jpg";
data = new Book[]{ b1 }; //Arrange
}
@Test
public void dataFetcher_SuccessReturnsData() {
DataFetcher dataFetcher = new FakeDataFetcher(data); //Arrange
dataFetcher.getBooks(new DataCallback<Book[]>() { //Act
public void onSuccess(Book[] data) {
assertArrayEquals(data, FakeDataFetcherTest.data); //Assert
}
public void onFailure(String reason) {
assertTrue("Callback returned unexpected data", true); //Assert
}
});
}
@Test
public void dataFetcher_FailureReturnsErrorMessage() {
DataFetcher dataFetcher = new FakeDataFetcher(reason); //Arrange
dataFetcher.getBooks(new DataCallback<Book[]>() { //Act
@Override
public void onSuccess(Book[] data) {
assertTrue("Callback returned unexpected data", true); //Assert
}
@Override
public void onFailure(String reason) {
assertEquals(reason, FakeDataFetcherTest.reason); //Assert
}
});
}
}
```
So, we are testing both the success and the failure cases. When dealing with callbacks with multiple "returns", it is necessary to guard against the callback we don't expect. For example, when we are expecting a successful reponse in the first test, we need to ensure that the **onFailure** callback is never executed, and the best way to do that is to assert it.
Given our file structure, we can right-click > "Run 'FakeDataFetcherTest', or select it among the run configurations.
<div class="img-center"><img class="three-quarters" src="/images/MosbyBooksSampleApp/run_unit_tests_view.png" /></div>
Surely enough, our tests pass, which means, we can finally move on to testing the presenter.
<div class="img-center"><img class="half" src="/images/MosbyBooksSampleApp/unit_tests_results_1.png" /></div>
One last obstacle
-----------------
Now that we know that our fake behaves correctly, we can test against it. Our second dependency **BooksListView**, however, is just an interface:
```java
public interface BooksListView {
public void showLoading(boolean pullToRefresh);
public void showContent();
public void showError(Throwable e, boolean pullToRefresh);
public void setData(Book[] data);
```
We can't use the same strategy here. First, we can't instantiate interfaces. Plus, even if we wanted to implement it, there isn't<sup>2</sup> really a possible implementation that is fast, simple, and doesn't depend on the Android framework. Finally, we only care about what methods the presenter called on our view, and not how the view behaves (at least for the scope of unit tests). What we really need is... a mock. [Martin Fowler](http://www.martinfowler.com/bliki/TestDouble.html), again:
> Mocks are pre-programmed with expectations which form a specification of the calls they are expected to receive. They can throw an exception if they receive a call they don't expect and are checked during verification to ensure they got all the calls they were expecting.
And it turns out that **Mockito** does exactly that. Who would've guessed?
At last
-------
Here is our **BooksListPresenterTest** class (it needs to go in the same **app/src/test** folder as the previous tests):
```java
@RunWith(MockitoJUnitRunner.class) //(1)
@SmallTest //(2)
public class BooksListPresenterTest {
private static final String ERROR_DATA_FETCH = "Could not find data";
private static final Book[] data;
static {
Book b1 = new Book();
b1.id = 1; b1.author = "Paula Hawkins"; b1.name = "The Girl on the Train";
b1.imgUrl = "http://ecx.images-amazon.com/images/I/51-VcOHdoFL."
+ "_SL160_PIsitb-sticker-arrow-dp,TopRight,12,-18_SH30_OU15_SL150_.jpg";
data = new Book[]{ b1 }; //Arrange
}
@Mock BooksListView view; //(3)
@Test
public void failureDataFetcher_showError() {
DataFetcher dataFetcher = new FakeDataFetcher(ERROR_DATA_FETCH); //Arrange
BooksListPresenter presenter = new BooksListPresenter(dataFetcher);
presenter.attachView(view);
boolean pullToRefresh = true;
presenter.loadBooks(pullToRefresh); //Act
ArgumentCaptor<Throwable> throwable = //(4)
ArgumentCaptor.forClass(Throwable.class);
ArgumentCaptor<Boolean> flag =
ArgumentCaptor.forClass(Boolean.class);
verify(view).showLoading(pullToRefresh); //(5) //Assert
verify(view).showError(throwable.capture(), flag.capture());
assertEquals(ERROR_DATA_FETCH, throwable.getValue().getMessage());
assertEquals(pullToRefresh, flag.getValue());
}
@Test
public void successDataFetcher_showContent() {
DataFetcher dataFetcher = new FakeDataFetcher(data); //Arrange
BooksListPresenter presenter = new BooksListPresenter(dataFetcher);
presenter.attachView(view);
boolean pullToRefresh = true;
presenter.loadBooks(pullToRefresh); //Act
verify(view).showLoading(pullToRefresh); //Assert
ArgumentCaptor<Book[]> books =
ArgumentCaptor.forClass(Book[].class);
verify(view).setData(books.capture());
verify(view).showContent();
assertArrayEquals(data, books.getValue());
}
}
```
This is way too much code for a single shot, so you would have to bear with me here.
1. The [**MockitoJUnitRunner**](http://site.mockito.org/mockito/docs/current/org/mockito/runners/MockitoJUnitRunner.html): this is the part that runs your tests. We didn't need to specify one in our **FakeDataFetcherTest** class because JUnit uses **BlockJUnit4ClassRunner** by default. However, because we want to use it along with **Mockito** it is necessary to make the switch explicit. Test runners sometimes feel like magic, so it is necessary to read on them:[this article](http://www.codeaffine.com/2014/09/03/junit-nutshell-test-runners/) is a fantastic explanation of how JUnit test runners work.
2. An annotation that states that these tests [should run under 200ms, and don't access any external resources](https://developer.android.com/reference/android/support/test/filters/SmallTest.html). Other such annotations are **@MediumTest** (<1sec) and **@LargeTest** (>1sec).
3. Where all the magic happens: **Mockito** creates an object that not only abide by the **BooksListView** interface, but is capable of keeping track of the execution of its methods. We can basically question it on which methods were called, how many times it happened, etc. Think of it as a replay functionality.
4. **ArgumentCaptor** are used to capture argument values, thus allows us to further assert on the arguments.
5. The syntax necessary to verify on our mock. We can then verify that the presenter did exactly what it is supposed to do, given the original conditions.
Here are the results:
Of course, in this case, we only tested for the two obvious test cases. In a real-world application, you would want to verify for edge cases (**view == null**), all combinations of input parameters (**pullToRefresh = false**), or guard against the framework (**detachView()** called before the callback propagates). It is easy to see how we could achieve the Holy Grail of software development, also known as 100% test coverage, at least on non-Android stuff. (I know, just thinking about it, I get chills down my spine).
Bonus paragraph (because this isn't long enough, already)
--------------------------------------------------------
For those of you who were paying attention, you will notice that I really didn't have to fake the **DataFetcher** object, and that I could've used a mock here as well (Really, if you did notice, please leave a comment: I would love to meet you and thank you for being so diligent). And you would be absolutely right<sup>3</sup>. It's just that I find it easier to fake objects when dealing with callbacks. See for yourself.
We rewrite the presenter tests to mock **DataFetcher** as well (and yes, I am only showing one test):
```java
RunWith(MockitoJUnitRunner.class)
@SmallTest
public class BooksListPresenterTest {
private static final String ERROR_DATA_FETCH = "Could not find data";
private static final Book[] data;
static {
Book b1 = new Book();
b1.id = 1; b1.author = "Paula Hawkins"; b1.name = "The Girl on the Train";
b1.imgUrl = "http://ecx.images-amazon.com/images/I/51-VcOHdoFL."
+ "_SL160_PIsitb-sticker-arrow-dp,TopRight,12,-18_SH30_OU15_SL150_.jpg";
data = new Book[]{ b1 }; //Arrange
}
@Mock
BooksListView view;
@Mock
DataFetcher dataFetcher;
@Test
public void successDataFetcher_showContent() {
BooksListPresenter presenter
= new BooksListPresenter(dataFetcher); //Arrange
presenter.attachView(view);
boolean pullToRefresh = true;
presenter.loadBooks(pullToRefresh); //Act
ArgumentCaptor<DataCallback> callback = //Assert
ArgumentCaptor.forClass(DataCallback.class);
verify(view).showLoading(pullToRefresh);
verify(dataFetcher, times(1)).getBooks(callback.capture());
callback.getValue().onSuccess(data); //Act
verify(view).showLoading(pullToRefresh); //Assert
ArgumentCaptor<Book[]> booksArgument =
ArgumentCaptor.forClass(Book[].class);
verify(view).setData(booksArgument.capture());
verify(view).showContent();
assertArrayEquals(data, booksArgument.getValue());
}
}
```
In this case, we end having to act twice: first, on the object under test, and second, on the callback object that we capture. This makes the test much longer, and opens up the black box of the method we are testing. But it is important to understand that it is also feasible.
Epilogue
--------
I have compiled some interesting resources for further reading, but, you've already been through ~3000 words, so I am not gonna force them on you.
Writing tests has truly become a much more streamlined process on Android now. Don't miss out on the 100% test coverage spiritual experience.
- [Step-by-step answer to why MVP on Android](https://slides.com/anasambri/mvp-android)
- [Source code used in this article](https://github.com/anas-ambri/MosbyBooksSampleApp/tags)
- [Mosby, a library to implement MVP on Android](http://hannesdorfmann.com/mosby/)
- [ArrangeActAssert](http://c2.com/cgi/wiki?ArrangeActAssert)
- [Mocking static methods in Java with PowerMock](https://blog.codecentric.de/en/2011/11/testing-and-mocking-of-static-methods-in-java/)
- [Against using PowerMock](https://lkrnac.net/blog/2014/01/using-powermock/)
- [Test Doubles](http://www.martinfowler.com/bliki/TestDouble.html)
- [Mocks aren't stubs](http://martinfowler.com/articles/mocksArentStubs.html)
- [JUnit in a nutshell: Test Runners](http://www.codeaffine.com/2014/09/03/junit-nutshell-test-runners/)
- [Test sizes (Small, Medium & Large annotations)](https://testing.googleblog.com/2010/12/test-sizes.html)
- [Unit testing asynchronous methods with Mockito](http://fernandocejas.com/2014/04/08/unit-testing-asynchronous-methods-with-mockito/)
Notes
-----
<sup>1</sup>This is not entirely true. One can argue that the HttpClient still has to rely on **HttpUrlConnection**, which is implemented somewhere in the OS.
<sup>2</sup>Actually, there is. We could go with a [dummy](http://www.martinfowler.com/bliki/TestDouble.html), but why bother when there is a better solution.
<sup>3</sup>We can stub the implementation too. Have a look at this [blog post](http://fernandocejas.com/2014/04/08/unit-testing-asynchronous-methods-with-mockito/) on how to do so.
|
anas-ambri/anas-ambri.github.io
|
_posts/former-life/2016-09-15-adding-unit-tests-to-MVP-project.md
|
Markdown
|
mit
| 21,722
|
require 'test_helper'
class DevEventTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
|
istvan-antal/open-data-certificate
|
test/unit/dev_event_test.rb
|
Ruby
|
mit
| 122
|
import re
import functools
from slackbot.bot import respond_to
from app.modules.shogi_input import ShogiInput, UserDifferentException, KomaCannotMoveException
from app.modules.shogi_output import ShogiOutput
from app.slack_utils.user import User
from app.helper import channel_info, should_exist_shogi
@respond_to('start with <?@?([\d\w_-]+)>?')
@channel_info
def start_shogi(channel, message, opponent_name):
slacker = message._client.webapi
user = User(slacker)
opponent_id = user.username_to_id(opponent_name)
if opponent_id is None:
# In case of mention. In mention, slack transform username to userid
# like @username to <@UOIFJ83F>
opponent_id = opponent_name
if not user.user_in_channel(opponent_id, channel.channel_id):
message.reply("Error, sorry. Opponent is not found in this channel")
return
shogi = ShogiInput.init(channel_id=channel.channel_id, users=[{
"id": channel.own_id,
"name": user.id_to_username(channel.own_id),
}, {
"id": opponent_id,
"name": user.id_to_username(opponent_id),
}])
if shogi is None:
message.reply("Shogi started already by a user. Sorry.\nIf you want to quit shogi which already exists, please say this command `resign`")
else:
message.reply("Shogi started: " + shogi.id)
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji(board)
message.send(board_str)
koma_names = [
"歩兵?",
"と金?",
"成?香車?",
"成?桂馬?",
"成?銀将?",
"金将?",
"角行?",
"馬",
"飛車?",
"龍",
"王将?",
"玉将?",
]
koma_names_string_regex = "|".join(koma_names)
@respond_to("^([一二三四五六七八九123456789123456789]{2})?(同)?(" + koma_names_string_regex + ")([上右下左引寄直打]{1,2})?つ?(成)?")
@channel_info
@should_exist_shogi
def koma_move(channel, message, position, dou, koma, sub_position=None, promote=None):
movement_str = "".join(
[x for x in [position, dou, koma, sub_position, promote] if x is not None])
try:
ShogiInput.move(movement_str, channel.channel_id, channel.own_id)
except UserDifferentException:
message.reply("You cannot move this because *it's not your turn*")
except KomaCannotMoveException:
message.reply("You cannot move this with your message *{}*".format(movement_str))
finally:
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji(board)
message.send(board_str)
@respond_to("set (all) mode")
@channel_info
@should_exist_shogi
def set_mode(channel, message, arg):
if arg == "all":
ShogiInput.setAllMode(channel.channel_id)
message.reply("Done! All member can move now!")
@respond_to("今?.*の?.*状態.*を?教.*え?て?")
@respond_to("now")
@respond_to("局面.*")
@respond_to("board")
@channel_info
@should_exist_shogi
def board_info(channel, message):
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji(board)
message.send(board_str)
@respond_to(".*降参.*")
@respond_to(".*resign.*")
@respond_to(".*負けました.*")
@respond_to(".*まけました.*")
@respond_to(".*まいりました.*")
@respond_to(".*参りました.*")
@respond_to(".*ありません.*")
@channel_info
@should_exist_shogi
def resign(channel, message):
message.send("最終局面")
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji(board)
message.send(board_str)
ShogiInput.clear(channel.channel_id)
@respond_to("待った")
@channel_info
@should_exist_shogi
def matta(channel, message):
try:
ShogiInput.matta(channel.channel_id, channel.own_id)
message.send("mattaed")
except UserDifferentException:
message.reply("You cannot matta because *it's not your turn*")
except KomaCannotMoveException:
message.reply("You cannot matta because koma not moved")
finally:
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji(board)
message.send(board_str)
@respond_to(".*ひふみん[eye, アイ, あい]?")
@respond_to(".*反転.*")
@channel_info
@should_exist_shogi
def hifumin(channel, message):
board = ShogiInput.get_shogi_board(channel.channel_id)
board_str = ShogiOutput.make_board_emoji_reverse(board)
message.send(board_str)
|
setokinto/slack-shogi
|
app/shogi.py
|
Python
|
mit
| 4,557
|
<?php
namespace Opensearch;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* opensearch应用接口.
*
* 主要功能、创建应用、查看应用内容、删除应用和修改应用名称。
*
*/
class CloudsearchIndex {
const STATUS_OK = 'OK';
const STATUS_FAIL = 'FAIL';
/**
* 应用名称。
* @var string
*/
private $indexName;
/**
* CloudsearchClient实例。
* @var CloudsearchClient
*/
private $client;
/**
* 请求的API的URI。
* @var string
*/
private $path;
/**
* 构造函数
* @param string $indexName 指定操作的应用名称。
* @param CloudsearchClient $client cloudsearch客户端
*/
public function __construct($indexName, $client) {
$this->client = $client;
$this->indexName = $indexName;
$this->_setPath($indexName);
}
/**
* 通过模板名称创建应用
*
* 用指定的模板名称创建一个新的应用。
* @param string $templateName 模板名称(可以使系统内置模板,也可以是自定义模板)
* @param array $opts 包含应用的备注信息。
*
* @return string 返回api返回的结果。
*/
public function createByTemplateName($templateName, $opts = array()) {
$params = array(
'action' => "create",
'template' => $templateName,
);
if (isset($opts['desc']) && !empty($opts['desc'])) {
$params['index_des'] = $opts['desc'];
}
return $this->client->call($this->path, $params);
}
/**
* 通过模板创建应用
*
* 用指定的模板创建一个新的应用。模版是一个格式化数组,用于描述应用的结构,可以在控制台中通过创建应用->保存模板->导出模板来获得json结构的模板;也可以自己生成,格式见控制台模板管理。
* @param string $template 使用的模板
* @param array $opts 包含应用的备注信息。
*
* @return string 返回api返回的正确或错误的结果。
*/
public function createByTemplate($template,$opts = array()) {
$params = array(
'action' => "create",
'template' => $template,
);
if (isset($opts['desc']) && !empty($opts['desc'])) {
$params['index_des'] = $opts['desc'];
}
$params['template_type'] = 2;
return $this->client->call($this->path, $params);
}
/**
* 修改应用名称和备注
*
* 更新当前应用的应用名称和备注信息。
* @param string $toIndexName 更改后的新名字
* @param array $opts 可选参数,包含: desc 应用备注信息
* @return string API返回的操作结果
*/
public function rename($toIndexName, $opts = array()) {
$params = array(
'action' => "update",
'new_index_name' => $toIndexName
);
if (isset($opts['desc']) && !empty($opts['desc'])) {
$params['description'] = $opts['desc'];
}
$result = $this->client->call($this->path, $params);
$json = json_decode($result, true);
if (isset($json['status']) && $json['status'] == 'OK') {
$this->indexName = $toIndexName;
$this->_setPath($toIndexName);
}
return $result;
}
private function _setPath($indexName) {
$this->path = '/index/' . $indexName;
}
/**
* 删除应用
*
* @return string API返回的操作结果
*/
public function delete() {
return $this->client->call($this->path, array('action' => "delete"));
}
/**
* 查看应用状态
*
* @return string API返回的操作结果
*/
public function status() {
return $this->client->call($this->path, array('action' => "status"));
}
/**
* 列出所有应用
*
* @param int $page 页码
* @param int $pageSize 每页的记录条数
*/
public function listIndexes($page = 1, $pageSize = 10) {
$params = array(
'page' => $page,
'page_size' => $pageSize,
);
return $this->client->call('/index', $params);
}
/**
* 获取应用名称
*
* 获取当前应用的名称。
*
* @return string 当前应用的名称
*/
public function getIndexName() {
return $this->indexName;
}
/**
* 获取应用的最近错误列表
*
* @param int $page 指定获取第几页的错误信息。默认值:1
* @param int $pageSize 指定每页显示的错误条数。默认值:10
*
* @return array 返回指定页数的错误信息列表。
*/
public function getErrorMessage($page = 1, $pageSize = 10) {
$this->_checkPageClause($page);
$this->_checkPageSizeClause($pageSize);
$params = array(
'page' => $page,
'page_size' => $pageSize
);
return $this->client->call('/index/error/' . $this->indexName, $params);
}
/**
* 检查$page参数是否合法。
*
* @param int $page 指定的页码。
*
* @throws Exception 如果参数不正确,则抛出此异常。
*
* @access private
*/
private function _checkPageClause($page) {
if (NULL == $page || !is_int($page)) {
throw new Exception('$page is not an integer.');
}
if ($page <= 0) {
throw new Exception('$page is not greater than or equal to 0.');
}
}
/**
* 检查$pageSize参数是否合法。
*
* @param int $pageSize 每页显示的记录条数。
*
* @throws Exception 参数不合法
*
* @access private
*/
private function _checkPageSizeClause($pageSize) {
if (NULL == $pageSize || !is_int($pageSize)) {
throw new Exception('$pageSize is not an integer.');
}
if ($pageSize <= 0) {
throw new Exception('$pageSize is not greater than 0.');
}
}
}
|
xkxk1248/opensearch
|
CloudsearchIndex.php
|
PHP
|
mit
| 6,626
|
version https://git-lfs.github.com/spec/v1
oid sha256:3174031dbf1b5143f26c5323bd5b2f0e6845efabf494ae2ed9641bbb2c186e85
size 1053
|
yogeshsaroya/new-cdnjs
|
ajax/libs/codemirror/3.19.0/addon/fold/indent-fold.js
|
JavaScript
|
mit
| 129
|
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using Mileage.Server.Contracts.Commands;
using Mileage.Server.Contracts.Commands.Users;
using Mileage.Server.Infrastructure.Api.Filters;
using Mileage.Server.Infrastructure.Commands.Users;
using Mileage.Server.Infrastructure.Extensions;
using Mileage.Shared.Entities;
using Mileage.Shared.Entities.Users;
using Mileage.Shared.Extensions;
using Mileage.Shared.Results;
using Raven.Client;
using Raven.Client.FileSystem;
namespace Mileage.Server.Infrastructure.Api.Controllers
{
[RoutePrefix("Users")]
public class UsersController : BaseController
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="UsersController"/> class.
/// </summary>
/// <param name="commandExecutor">The command executor.</param>
public UsersController(ICommandExecutor commandExecutor)
: base(commandExecutor)
{
}
#endregion
#region Methods
/// <summary>
/// Returns the currently authenticated <see cref="User"/>.
/// </summary>
/// <returns>
/// 302 - Found: The user was found.
/// 500 - InternalServerError: An error occured.
/// </returns>
[Route("Me")]
[HttpGet]
[MileageAuthentication]
public async Task<HttpResponseMessage> GetMe()
{
Result<User> result = await this.CommandExecutor
.Execute(new GetCurrentUserCommand())
.WithCurrentCulture();
return this.Request.GetMessageWithResult(HttpStatusCode.Found, HttpStatusCode.InternalServerError, result);
}
#endregion
}
}
|
haefele/Mileage
|
src/03 Server/Mileage.Server.Infrastructure/Api/Controllers/UsersController.cs
|
C#
|
mit
| 1,760
|
{% extends "base.html" %}
{% load static %}
{% block extra_head %}
<style>
#chart_zoom g.stack._0 > rect.bar {
stroke: none;
fill: blue;
}
#chart_zoom g.stack._1 > rect.bar {
stroke: none;
fill: red;
}
#chart_zoom g.stack._2 > rect.bar {
stroke: none;
fill: green;
}
#chart_zoom g.dc-legend-item:nth-child(1) > rect:nth-child(1) {
stroke: none;
fill: blue;
}
#chart_zoom g.dc-legend-item:nth-child(2) > rect:nth-child(1) {
stroke: none;
fill: red;
}
#chart_zoom g.dc-legend-item:nth-child(3) > rect:nth-child(1) {
stroke: none;
fill: green;
}
</style>
{% endblock %}
{% block navbar_right %}
<li><a href="{% url 'stats_dashboard' %}">All</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">By Origin <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{% for origin in origins %}
<li><a href="{% url 'stats_dashboard_origin' origin.name %}">{{ origin.name }}</a></li>
{% endfor %}
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">By Source <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{% for source in sources %}
<li><a href="{% url 'stats_dashboard_source' source.name %}">{{ source.name }}</a></li>
{% endfor %}
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">By Date <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{% for date in dates %}
<li><a href="{% url 'stats_dashboard_date' date %}">{{ date }}</a></li>
{% endfor %}
</ul>
</li>
{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<div class="page-header" style="padding-left:10px;"><h3>Dashboard
{% if origin %}: {{ origin.name }}{% endif %}
{% if source %}: {{ source.name }}{% endif %}
{% if date %}: {{ date }}{% endif %}
</h3></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li class="active"><a href="#overview" data-toggle="tab"><i class=""></i>Overview</a></li>
<li><a href="#cache" data-toggle="tab"><i class="fa fa-square-o rotate-45"></i>Cache Performance</a></li>
</ul>
<div class="tab-content">
<div id="overview" class="tab-pane active">
<div class="col-md-8">
<div><h4>Tile Requests by Date</h4></div>
<div id="chart_dates"></div>
</div>
<div class="col-md-4">
<div style="margin-bottom:8px;"><a class="btn btn-primary" href="{% url 'stats_map' %}">Map: All</a></div>
{% if origin %}
<div style="margin-bottom:8px;"><a class="btn btn-primary" href="{% url 'stats_map_origin' origin.name %}">Map: {{ origin.name }}</a></div>
{% endif %}
{% if source %}
<div style="margin-bottom:8px;"><a class="btn btn-primary" href="{% url 'stats_map_source' source.name %}">Map: {{ source.name }}</a></div>
{% endif %}
{% if date %}
<div style="margin-bottom:8px;"><a class="btn btn-primary" href="{% url 'stats_map_date' date %}">Map for Date {{ date }}</a></div>
{% endif %}
</div>
</div>
<div id="cache" class="tab-pane">
<div class="col-md-4">
<div><h4>Overall Cache Ratio</h4></div>
<div id="chart_status"></div>
</div>
<div class="col-md-8">
<div><h4>Cache Ratio by Zoom Level</h4></div>
<div id="chart_zoom"></div>
</div>
</div>
</div>
<script>
var origin = {% if origin %}"{{ origin }}"{% else %}undefined{% endif %};
var source = {% if source %}"{{ source }}"{% else %}undefined{% endif %};
var date = {% if date %}"{{ date }}"{% else %}undefined{% endif %};
//////////////////////////////////
var initPieChart = function(pieChart, stats)
{
var data_by_status = []
if(origin!=undefined)
{
for (var k in stats.by_origin_status[origin])
{
data_by_status.push({'status':k,'count':stats.by_origin_status[origin][k]})
}
}
else if(source!=undefined)
{
for (var k in stats.by_source_status[source])
{
data_by_status.push({'status':k,'count':stats.by_source_status[source][k]})
}
}
else
{
for (var k in stats.by_status)
{
data_by_status.push({'status':k,'count':stats.by_status[k]})
}
}
var ndx = crossfilter(data_by_status);
var dim = ndx.dimension(function(d) {return d.status;});
var group = dim.group().reduceSum(function(d) {return d.count;});
var colors = ["red","green","blue","gray"];
pieChart
//.margins({top: 50, right: 20, left: 50, bottom: 50})
.width(240)
.height(240)
.slicesCap(4)
.innerRadius(40)
.dimension(dim)
.group(group)
//.xAxisLabel("Request Status")
.legend(dc.legend())
.colors(colors)
.colorAccessor(function(d, i)
{
if(d.data.key=="miss")
return 0;
else if(d.data.key=="hit")
return 1
else if(d.data.key=="bypass")
return 2;
else
return 3;
});
}
var initLineChart = function(lineChart, stats)
{
var parseDate = d3.time.format("%Y-%m-%d").parse;
var data_by_date = [];
if(origin!=undefined)
{
for (var k in stats.by_date_origin)
{
if(origin in stats.by_date_origin[k])
{
data_by_date.push({'date':parseDate(k), 'count':stats.by_date_origin[k][origin]*1.0});
}
else
{
data_by_date.push({'date':parseDate(k), 'count':0.0});
}
}
}
else if(source!=undefined)
{
for (var k in stats.by_date_source)
{
if(source in stats.by_date_source[k])
{
data_by_date.push({'date':parseDate(k), 'count':stats.by_date_source[k][source]*1.0});
}
else
{
data_by_date.push({'date':parseDate(k), 'count':0.0});
}
}
}
else
{
for (var k in stats.by_date)
{
data_by_date.push({'date':parseDate(k), 'count':stats.by_date[k]*1.0})
}
}
var ndx = crossfilter(data_by_date);
var dim = ndx.dimension(function(d) {return d.date;});
var group = dim.group().reduceSum(function(d) {return d.count;});
//var colors = ["red","green","blue","gray"];
var width = 660;
var height = 300;
var x = d3.time.scale().range([0, width]);
var y = d3.scale.linear().range([height, 0]);
x.domain(d3.extent(data_by_date, function(d) { return d.date; }));
y.domain(d3.extent(data_by_date, function(d) { return d.count; }));
lineChart
.margins({top: 50, right: 20, left: 50, bottom: 50})
.width(width)
.height(height)
.renderArea(true)
//.chart(function(c) { return dc.lineChart(c).interpolate('basis');})
.interpolate('basis')
.x(x)
.y(y)
//.brushOn(false)
.yAxisLabel("Tile Requests")
.xAxisLabel("Date")
//.clipPadding(10)
//.elasticY(true)
.dimension(dim)
.group(group)
.legend(dc.legend());
};
var initColumnChart = function(columnChart, stats)
{
var data_by_zoom = []
if(origin!=undefined)
{
for (var z in stats.by_origin_zoom_status[origin])
{
var obj = stats.by_origin_zoom_status[origin][z];
var out = {'zoom': parseInt(z,10)};
var statuses = ["miss","hit","bypass"];
for(var i = 0; i < statuses.length; i++)
{
var status = statuses[i];
if(status in obj)
{
out[status] = obj[status];
}
else
{
out[status] = 0;
}
}
data_by_zoom.push(out);
}
}
else if(source!=undefined)
{
for (var z in stats.by_source_zoom_status[source])
{
var obj = stats.by_source_zoom_status[source][z];
var out = {'zoom': parseInt(z,10)};
var statuses = ["miss","hit","bypass"];
for(var i = 0; i < statuses.length; i++)
{
var status = statuses[i];
if(status in obj)
{
out[status] = obj[status];
}
else
{
out[status] = 0;
}
}
data_by_zoom.push(out);
}
}
else
{
for (var z in stats.by_zoom_status)
{
var obj = stats.by_zoom_status[z];
var out = {'zoom': parseInt(z,10)};
var statuses = ["miss","hit","bypass"];
for(var i = 0; i < statuses.length; i++)
{
var status = statuses[i];
if(status in obj)
{
out[status] = obj[status];
}
else
{
out[status] = 0;
}
}
data_by_zoom.push(out);
}
}
var ndx = crossfilter(data_by_zoom);
var dim = ndx.dimension(function(d) {return d.zoom;});
//var group = dim.group().reduceSum(function(d) {return d});
var group = dim.group().reduce(
function (p, v) {
p.miss += v.miss;
p.hit += v.hit;
p.bypass += v.bypass;
return p;
},
function (p, v) {
p.miss -= v.miss;
p.hit -= v.hit;
p.bypass -= v.bypass;
return p;
},
function () {
return {
miss: 0,
hit: 0,
bypass: 0
};
}
);
//var colors = ["red","green","blue","gray"];
var width = 660;
var height = 240;
var x = d3.scale.linear().range([0, width]);
x.domain([0,22.5]);
//var y = d3.scale.linear().range([height, 0]);
//x.domain(d3.extent(data_by_date, function(d) { return d.date; }));
//y.domain(d3.extent(data_by_date, function(d) { return d.count; }));
var colorRenderlet = function (_chart) {
_chart.selectAll("rect.bar")
.on("click", function (d) {
function setAttr(selection, keyName) {
selection.style("fill", function (d) {
if (d[keyName] == "miss") return "red";
else if (d[keyName] == "bypass") return "blue";
else if (d[keyName] == "hit") return "green";
});
};
setAttr(_chart.selectAll("g.stack").selectAll("rect.bar"), "layer")
setAttr(_chart.selectAll("g.dc-legend-item").selectAll("rect"), "name")
});
};
columnChart
.margins({top: 50, right: 20, left: 50, bottom: 50})
.width(width)
.height(height)
.gap(4)
.x(x)
.centerBar(true)
.elasticY(true)
.dimension(dim)
.group(group, "bypass")
.valueAccessor(function(d){
return d.value.bypass;
})
.stack(group, "miss", function(d){
return d.value.miss;
})
.stack(group, "hit", function(d){
return d.value.hit;
})
.renderlet(colorRenderlet)
.legend(dc.legend());
}
var pieChart = dc.pieChart("#chart_status");
var lineChart = dc.lineChart("#chart_dates");
var columnChart = dc.barChart("#chart_zoom");
d3.json("{% url 'stats_json' %}", function(error, stats)
{
initPieChart(pieChart, stats)
initLineChart(lineChart, stats)
initColumnChart(columnChart, stats)
pieChart.render();
lineChart.render();
columnChart.render();
});
</script>
{% endblock %}
{% block footer %}
{% endblock %}
|
state-hiu/ittc-server-django
|
ittc/cache/templates/cache/stats_dashboard.html
|
HTML
|
mit
| 11,900
|
Article 46
Ti=Supervisory authority
1.sec=Each Member State shall provide that one or more public authorities are responsible for monitoring the application of this Regulation and for contributing to its consistent application throughout the Union, in order to protect the fundamental rights and freedoms of natural persons in relation to the processing of their personal data and to facilitate the free flow of personal data within the Union. For these purposes, the supervisory authorities shall co-operate with each other and the Commission.
2.sec=Where in a Member State more than one supervisory authority are established, that Member State shall designate the supervisory authority which functions as a single contact point for the effective participation of those authorities in the European Data Protection Board and shall set out the mechanism to ensure compliance by the other authorities with the rules relating to the consistency mechanism referred to in Article 57.
3.sec=Each Member State shall notify to the Commission those provisions of its law which it adopts pursuant to this Chapter, by the date specified in Article 91(2) at the latest and, without delay, any subsequent amendment affecting them.
=[G/Z/ol/s3]
|
CommonAccord/Cmacc-Org
|
Doc/Wx/eu/europa/europarl/2012-0011/Article/46_v0.md
|
Markdown
|
mit
| 1,236
|
//
// XYO Build
//
// Copyright (c) 2014 Grigore Stefan, <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// The MIT License (MIT) <http://opensource.org/licenses/MIT>
//
function Solution() {
.name_="";
.project_= {};
.option_= {};
.dependencyOption_= {};
.projectBasePath_=null;
.projectBasePathStack_=[];
.projectBasePathStackIndex_=0;
.projectBasePathStack_[.projectBasePathStackIndex_]=null;
.solutionPath_=Shell.getcwd();
.name=function(name) {
.name_=name;
};
.project=function(name,type,proc) {
var typeX;
typeX=Platform.projectTypeX(type);
.project_[name+"."+typeX]=new Project();
.project_[name+"."+typeX].name(name);
.project_[name+"."+typeX].type(type);
.project_[name+"."+typeX].basePath_=.projectBasePath_;
var restorePath_=null;
if(.projectBasePath_) {
restorePath_=Shell.getcwd();
Shell.chdir(.projectBasePath_);
};
proc.apply(.project_[name+"."+typeX]);
if(restorePath_) {
Shell.chdir(restorePath_);
};
};
.option=function(category,name,value) {
if(Script.isNil(.option_[category])) {
.option_[category]= {};
};
.option_[category][name]=value;
};
.dependencyOption=function(category,name,value) {
if(Script.isNil(.dependencyOption_[category])) {
.dependencyOption_[category]= {};
};
.dependencyOption_[category][name]=value;
};
.pushProjectPath_=function(path) {
.projectBasePathStackIndex_++;
if(Script.isNil(.projectBasePath_)) {
.projectBasePath_=path;
} else {
.projectBasePath_+="/"+path;
};
.projectBasePathStack_[.projectBasePathStackIndex_]=.projectBasePath_;
};
.popProjectPath_=function() {
.projectBasePathStackIndex_--;
.projectBasePath_=.projectBasePathStack_[.projectBasePathStackIndex_];
};
.projectFromPath=function(path,name) {
.pushProjectPath_(path);
if(Script.isNil(name)) {
name="project.xyo-build.js";
};
Script.include.call(this,path+"/"+name);
.popProjectPath_();
};
.withPath=function(path,proc) {
.pushProjectPath_(path);
proc.apply(this);
.popProjectPath_();
};
};
|
kidaa/xyo-build
|
xyo-build.include/solution.js
|
JavaScript
|
mit
| 2,065
|
# Azure Hybrid Worker Management
## Add-HybridWorker.ps1
The Add-HybridWorker cmdlet registers a system as a Hybrid worker, this
script requires that the OMS Agent is already installed on the system.
## Remove-HybridWorker.ps1
The Remove-HybridWorker cmdlet removes a system as a Hybrid worker. This
script requires that the OMS Agent is already installed on the system.
## New-OnPremiseHybridWorker
Script Source: https://www.powershellgallery.com/packages/New-OnPremiseHybridWorker/1.1/DisplayScript
This Azure/OMS Automation runbook onboards a local machine as a hybrid worker
This script does not require that the OMS Agent is already installed. The script
will download and install the agent prior registering it as a hybrid worker.
Important: Ensure that you provide correct Automation account parameters, otherwise
the script will create a new one.
|
alexverboon/posh
|
Azure/Automation/Hybrid/readme.md
|
Markdown
|
mit
| 872
|
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import collections
import os
import re
import torch
from fairseq.file_io import PathManager
def average_checkpoints(inputs):
"""Loads checkpoints from inputs and returns a model with averaged weights.
Args:
inputs: An iterable of string paths of checkpoints to load from.
Returns:
A dict of string keys mapping to various values. The 'model' key
from the returned dict should correspond to an OrderedDict mapping
string parameter names to torch Tensors.
"""
params_dict = collections.OrderedDict()
params_keys = None
new_state = None
num_models = len(inputs)
for fpath in inputs:
with PathManager.open(fpath, "rb") as f:
state = torch.load(
f,
map_location=(
lambda s, _: torch.serialization.default_restore_location(s, "cpu")
),
)
# Copies over the settings from the first checkpoint
if new_state is None:
new_state = state
model_params = state["model"]
model_params_keys = list(model_params.keys())
if params_keys is None:
params_keys = model_params_keys
elif params_keys != model_params_keys:
raise KeyError(
"For checkpoint {}, expected list of params: {}, "
"but found: {}".format(f, params_keys, model_params_keys)
)
for k in params_keys:
p = model_params[k]
if isinstance(p, torch.HalfTensor):
p = p.float()
if k not in params_dict:
params_dict[k] = p.clone()
# NOTE: clone() is needed in case of p is a shared parameter
else:
params_dict[k] += p
averaged_params = collections.OrderedDict()
for k, v in params_dict.items():
averaged_params[k] = v
if averaged_params[k].is_floating_point():
averaged_params[k].div_(num_models)
else:
averaged_params[k] //= num_models
new_state["model"] = averaged_params
return new_state
def last_n_checkpoints(paths, n, update_based, upper_bound=None):
assert len(paths) == 1
path = paths[0]
if update_based:
pt_regexp = re.compile(r"checkpoint_\d+_(\d+)\.pt")
else:
pt_regexp = re.compile(r"checkpoint(\d+)\.pt")
files = PathManager.ls(path)
entries = []
for f in files:
m = pt_regexp.fullmatch(f)
if m is not None:
sort_key = int(m.group(1))
if upper_bound is None or sort_key <= upper_bound:
entries.append((sort_key, m.group(0)))
if len(entries) < n:
raise Exception(
"Found {} checkpoint files but need at least {}", len(entries), n
)
return [os.path.join(path, x[1]) for x in sorted(entries, reverse=True)[:n]]
def main():
parser = argparse.ArgumentParser(
description="Tool to average the params of input checkpoints to "
"produce a new checkpoint",
)
# fmt: off
parser.add_argument('--inputs', required=True, nargs='+',
help='Input checkpoint file paths.')
parser.add_argument('--output', required=True, metavar='FILE',
help='Write the new checkpoint containing the averaged weights to this path.')
num_group = parser.add_mutually_exclusive_group()
num_group.add_argument('--num-epoch-checkpoints', type=int,
help='if set, will try to find checkpoints with names checkpoint_xx.pt in the '
'path specified by input, and average last this many of them.')
num_group.add_argument('--num-update-checkpoints', type=int,
help='if set, will try to find checkpoints with names checkpoint_ee_xx.pt in the path specified by'
' input, and average last this many of them.')
parser.add_argument('--checkpoint-upper-bound', type=int,
help='when using --num-epoch-checkpoints, this will set an upper bound on which epoch to use, '
'when using --num-update-checkpoints, this will set an upper bound on which update to use'
'e.g., with --num-epoch-checkpoints=10 --checkpoint-upper-bound=50, checkpoints 41-50 would be'
' averaged.'
'e.g., with --num-update-checkpoints=10 --checkpoint-upper-bound=50000, checkpoints 40500-50000 would'
' be averaged assuming --save-interval-updates 500'
)
# fmt: on
args = parser.parse_args()
print(args)
num = None
is_update_based = False
if args.num_update_checkpoints is not None:
num = args.num_update_checkpoints
is_update_based = True
elif args.num_epoch_checkpoints is not None:
num = args.num_epoch_checkpoints
assert args.checkpoint_upper_bound is None or (
args.num_epoch_checkpoints is not None
or args.num_update_checkpoints is not None
), "--checkpoint-upper-bound requires --num-epoch-checkpoints or --num-update-checkpoints"
assert (
args.num_epoch_checkpoints is None or args.num_update_checkpoints is None
), "Cannot combine --num-epoch-checkpoints and --num-update-checkpoints"
if num is not None:
args.inputs = last_n_checkpoints(
args.inputs,
num,
is_update_based,
upper_bound=args.checkpoint_upper_bound,
)
print("averaging checkpoints: ", args.inputs)
new_state = average_checkpoints(args.inputs)
with PathManager.open(args.output, "wb") as f:
torch.save(new_state, f)
print("Finished writing averaged checkpoint to {}".format(args.output))
if __name__ == "__main__":
main()
|
pytorch/fairseq
|
scripts/average_checkpoints.py
|
Python
|
mit
| 6,075
|
<?php
namespace oscarpalmer\Yogurt\Dairy;
abstract class Worker
{
/**
* @var string Useful regexes and strings.
*/
const ELSE_REGEX = "/<!--\s*else\s*-->/";
const ELSEIF_REGEX = "/<!--\s*elseif.*?-->/";
const ELSEIF_END_REGEX = "\s*|)-->\z/";
const ELSEIF_START_REGEX = "/\A<!--\s*elseif\s+";
const FOREACH_REGEX = "/<!--\s*for.*?endfor\s*-->/s";
const FOREACH_END_REGEX = "\s*-->(.*?)<!--\s*endfor\s*-->\z/s";
const FOREACH_START_REGEX = "/\A<!--\s*for\s+([\w\-]+)\s+in\s+";
const IF_REGEX = "/<!--\s*if.*?endif\s*-->/s";
const IF_END_REGEX = "\s*|)-->(.*?)<!--\s*endif\s*-->\z/s";
const IF_START_REGEX = "/\A<!--\s*if\s*";
const INCLUDE_REGEX = "/<!--\s*include.*?\s*-->/";
const INCLUDE_COMPLEX_REGEX = "/\A<!--\s*include\s+([\w\-]+)(?:\.(\w+)|)\s*-->\z/";
const MODIFIER_GREEDY_REGEX = "(.*?)";
const MODIFIER_SEPARATOR_REGEX = "(?:\~|\|)";
const OPERATOR_REGEX = "(?:(={2,3}|!={1,2}|>=|<=|<>|>|<|is|isnt)";
const MULTIPLE_SPACES_REGEX = "/\s+/";
const UNKNOWN_SPACES_REGEX = "\s*";
const VALUE_REGEX = "([\w\-\.\{\}]+|(?:\"|').*?(?:\"|')|\d+)";
const VARIABLE_PREFIX = "<?php echo(htmlspecialchars(";
const VARIABLE_REGEX = "([\w\-\.\{\}]+)";
const VARIABLE_END_REGEX = "\s*-->/";
const VARIABLE_START_REGEX = "/<!--\s*";
const VARIABLE_SUFFIX = ", \ENT_QUOTES | \ENT_SUBSTITUTE, \"utf-8\")); ?>";
/**
* @var string Template to parse.
*/
protected $template;
/**
* Create a new parser object.
*
* @param string $template Template to parse.
*/
public function __construct(\oscarpalmer\Yogurt\Dairy $dairy, $template)
{
$this->dairy = $dairy;
$this->template = $template;
}
/**
* Abstract method for parser classes.
*/
abstract public function parse();
/** Static functions. */
/**
* Get object-key name from regular key.
*
* @param string $key Key to convert.
* @return string Converted key.
*/
public static function getObjectKey($key)
{
$key = preg_replace("/\.(\d+)(\.|)/", "{\\1}\\2", $key);
$key = str_replace(".", "->", $key);
return "\${$key}";
}
/**
* Get comparison operator.
*
* @param string $operator Operator to fix.
* @return string Fixed operator.
*/
public static function getOperator($operator)
{
if (in_array($operator, array("===", "==", "!==", "!=", ">=", "<=", "<>", ">", "<"))) {
return " {$operator} ";
}
if ($operator == "is") {
return " == ";
}
return " != ";
}
/**
* Get "raw" value.
*
* @param string $value Value to convert.
* @return string Raw value.
*/
public static function getValue($value)
{
if (preg_match("/\A(\"|\'|)(\d+|false|null|true)(\"|\'|)\z/", $value)) {
return trim($value, "'\"");
} elseif (preg_match("/\A\"|'/", $value)) {
return $value;
}
return static::getObjectKey($value);
}
/**
* Replace variable-syntax with PHP syntax.
*
* @param string $variable Substring to replace.
* @param string $replacement String to insert.
* @param string $string String to replace within.
* @return string String with PHP syntax.
*/
public static function replaceVariable($variable, $replacement, $string)
{
return str_replace(
$variable,
static::VARIABLE_PREFIX .
static::getObjectKey($replacement) .
static::VARIABLE_SUFFIX,
$string
);
}
}
|
oscarpalmer/yogurt
|
src/oscarpalmer/Yogurt/Dairy/Worker.php
|
PHP
|
mit
| 3,698
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row } from 'react-bootstrap';
import KeyBinding from 'react-keybinding-component';
import Header from './Header/Header.react';
import Footer from './Footer/Footer.react';
import Toasts from './Toasts/Toasts.react';
import lib from '../lib';
class Museeks extends Component {
static propTypes = {
state: React.PropTypes.object,
playToggle: React.PropTypes.func,
children: React.PropTypes.object,
}
constructor(props) {
super(props);
}
render() {
const state = this.props.state;
const trackPlayingId = state.player.currentTrack && state.player.currentTrack._id ? state.player.currentTrack._id : null;
const tracks = state.tracks[state.tracks.tracksCursor].sub.map((trackId) => state.tracks.library.data[trackId]);
const library = state.tracks[state.tracks.tracksCursor].all.map((trackId) => state.tracks.library.data[trackId]);
return (
<div className='main'>
<KeyBinding onKey={ this.onKey } preventInputConflict />
<Header />
<div className='main-content'>
<Row className='content'>
{ React.cloneElement(
this.props.children, {
app: this,
config: state.config,
columns: state.tracks.columns,
playStatus: state.player.playStatus,
network: state.network,
queue: state.queue,
tracks,
library,
playlists: state.playlists,
refreshingLibrary: state.library.refreshingLibrary,
refreshProgress: state.refreshProgress,
trackPlayingId
})
}
</Row>
</div>
<Footer
network={ state.network }
tracks={ tracks }
refreshingLibrary={ state.library.refreshingLibrary }
/>
<Toasts toasts={ state.toasts } />
</div>
);
}
onKey = (e) => {
switch (e.keyCode) {
case 32:
e.preventDefault();
e.stopPropagation();
this.props.playToggle();
break;
}
}
}
const stateToProps = (state) => ({ state });
const dispatchToProps = {
playToggle: lib.actions.player.playToggle
};
export default connect(stateToProps, dispatchToProps)(Museeks);
|
MrBlenny/museeks
|
src/renderer/components/App.react.js
|
JavaScript
|
mit
| 2,840
|
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'@angular': 'node_modules/@angular',
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
'rxjs': 'node_modules/rxjs',
'ang2-phaser': 'node_modules/ang2-phaser'
};
// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
'ang2-phaser': { defaultExtension: 'js' }
};
var ngPackageNames = [
'common',
'compiler',
'core',
'forms',
'http',
'platform-browser',
'platform-browser-dynamic',
'router',
'router-deprecated',
'upgrade',
];
// Individual files (~300 requests):
function packIndex(pkgName) {
packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' };
}
// Bundled (~40 requests):
function packUmd(pkgName) {
packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
}
// Most environments should use UMD; some (Karma) need the individual index files
var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;
// Add package entries for angular packages
ngPackageNames.forEach(setPackageConfig);
// No umd for router yet
packages['@angular/router'] = { main: 'index.js', defaultExtension: 'js' };
var config = {
map: map,
packages: packages
};
System.config(config);
})(this);
|
allenRoyston/phaser-angular2
|
public/systemjs.config.js
|
JavaScript
|
mit
| 1,889
|
<?php
/*
* This file is part of the Sociable package.
*
* Copyright 2013 by Sébastien Pujadas
*
* For the full copyright and licence information, please view the LICENCE
* file that was distributed with this source code.
*/
namespace Sociable\Tests\Model;
use Sociable\Utility\StringValidator;
class StringValidatorTest extends \PHPUnit_Framework_TestCase {
protected $string = 'test';
public function testValidateNotAString() {
$this->setExpectedException('Sociable\Utility\StringException',
StringValidator::EXCEPTION_NOT_A_STRING);
StringValidator::validate(null);
}
public function testValidateEmpty() {
$this->setExpectedException('Sociable\Utility\StringException',
StringValidator::EXCEPTION_EMPTY);
StringValidator::validate('',
array('not_empty' => true));
}
public function testValidateTooShort() {
$this->setExpectedException('Sociable\Utility\StringException',
StringValidator::EXCEPTION_TOO_SHORT);
StringValidator::validate(str_repeat('-', strlen($this->string) - 1),
array('min_length' => strlen($this->string)));
}
public function testValidateTooLong() {
$this->setExpectedException('Sociable\Utility\StringException',
StringValidator::EXCEPTION_TOO_LONG);
StringValidator::validate(str_repeat('-', strlen($this->string) + 1),
array('max_length' => strlen($this->string)));
}
public function testValidateIncorrectLength() {
$this->setExpectedException('Sociable\Utility\StringException',
StringValidator::EXCEPTION_INCORRECT_LENGTH);
StringValidator::validate(str_repeat('-', strlen($this->string) + 1),
array('length' => strlen($this->string)));
}
public function testValidate() {
StringValidator::validate($this->string);
}
}
|
spujadas/sociable
|
tests/Sociable/Tests/Model/StringValidatorTest.php
|
PHP
|
mit
| 1,948
|
require "ruby-extensions/version"
require "ruby-extensions/rails"
class Module
def define_constants(constants_array_name, constants_array, options = {})
constants_array = constants_array.map(&:to_s)
# define array of constants
class_eval "#{constants_array_name.upcase} = [#{constants_array.map{ |constant| (options[:to_string] ? "'#{constant}'" : ":#{constant}")}.join(', ')}]"
constants_array.each do |constant|
val = options[:to_string] ? "'#{constant}'" : ":#{constant}"
prefix = options[:prefix] ? "#{options[:prefix]}_" : ""
postfix = options[:postfix] ? "_#{options[:postfix]}" : ""
# define constants
class_eval "#{prefix.upcase}#{constant.to_s.upcase}#{postfix.upcase} = #{val}"
# add constant? method
if options[:attribute]
class_eval <<-EOS
def #{prefix.downcase}#{constant.to_s.downcase}#{postfix.downcase}?
#{options[:attribute]} == #{val}
end
EOS
end
end
end
end
|
MrRaffnix/ruby-extensions
|
lib/ruby-extensions.rb
|
Ruby
|
mit
| 1,000
|
#include <stdio.h>
#include "minunit.h"
#include "FIZZBUZZ.h"
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
#define RESET "\033[0m"
int testsRun = 0;
static char * testUnit() {
muAssert("error, testUnit 1 != 1", 1 == 1);
return 0;
}
static char * allTests() {
muRunTest(testUnit);
return 0;
}
int main(int argc, char **argv) {
char *result = allTests();
if (result != 0) {
printf("-_-_-_-_-_-_-_,------, o \n");
printf("_-_-_-_-_-_-_-| /\\_/\\ \n");
printf("-_-_-_-_-_-_-~|__( X .X) + + \n");
printf("_-_-_-_-_-_-_- \"\" \"\" \n");
printf(KRED "✗ %s \n" RESET, result);
}
else {
printf("-_-_-_-_-_-_-_,------, o \n");
printf("_-_-_-_-_-_-_-| /\\_/\\ \n");
printf("-_-_-_-_-_-_-~|__( ^ .^) + + \n");
printf("_-_-_-_-_-_-_- \"\" \"\" \n");
printf(KGRN " ✓ ALL TESTS PASSED \n" RESET);
}
printf("Tests run: %d\n", testsRun);
return result != 0;
}
|
miker1423/advanceprogramming-2017
|
KATA6/test_FIZZBUZZ.c
|
C
|
mit
| 1,095
|
require "ember-devise-bootstrap/engine"
module EmberDeviseBootstrap
end
|
technomage/ember-devise-bootstrap
|
lib/ember-devise-bootstrap.rb
|
Ruby
|
mit
| 73
|
<?php
/*
* Template Name: Payment Success
*/
/**
* @package WordPress
* @subpackage Traveler
* @since 1.0
*
* Template Name : Payment success
*
* Created by ShineTheme
*
*/
$order_code = STInput::get('order_code');
$user_id=get_current_user_id();
// if (!$order_code or get_post_meta($order_code,'id_user',true)!=$user_id) {
// wp_redirect(home_url('/'));
// exit;
// }
get_header();
$order_item = get_post($order_code);
wp_reset_postdata();
$payment_method = get_post_meta($order_item->ID, 'payment_method', true);
?>
<div class="gap"></div>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<i class="fa fa-check round box-icon-large box-icon-center box-icon-success mb30"></i>
<h2 class="text-center">
<?php if ($payment_method == 'paypal') {
echo get_post_meta($order_code, 'pp_firstname', true) . ' ' . get_post_meta($order_code, 'pp_lastname', true);
} elseif ($user_id = get_post_meta($order_code, 'id_user', true)) {
$user_info = get_userdata($user_id);
if (isset($user_info->first_name)) {
echo esc_html($user_info->first_name);
}
}
echo ', ';
if (get_post_meta($order_code, 'payment_method', true) == 'submit_form') {
st_the_language('your_order_was_successful');
} else
st_the_language('your_payment_was_successful');
?>
</h2>
<h5 class="text-center mb30"><?php st_the_language('booking_details_has_been_sent_to');
echo get_post_meta($order_code, 'st_email', true) ?> </h5>
<p><strong><?php st_the_language('booking_number') ?></strong> <?php echo esc_html($order_code) ?></p>
<p>
<strong><?php st_the_language('booking_date') ?></strong> <?php echo get_the_time(get_option('date_format'), $order_code) ?>
</p>
<p><strong><?php st_the_language('booking_method') ?></strong> <?php
echo STPaymentGateways::get_gatewayname(get_post_meta($order_code, 'payment_method', true));
?></p>
<table cellpadding="0" cellspacing="0" width="100%" class="tb_list_cart">
<thead>
<tr>
<td>
*
</td>
<td class="text-center">
<?php st_the_language('item') ?>
</td>
<td>
<?php st_the_language('infomation') ?>
</td>
</tr>
</thead>
<tbody>
<?php
$total = 0;
$i = 0;
$key = get_post_meta($order_code, 'item_id', true);
$value = array(
'number' => get_post_meta($order_code, 'item_number', true),
'price' => get_post_meta($order_code, 'item_price', true),
'data' => array(
'check_in' => get_post_meta($order_code, 'check_in', true),
'check_out' => get_post_meta($order_code, 'check_out', true),
'room_id' => get_post_meta($order_code, 'room_id', true)
)
);
$check_in = get_post_meta($order_code, 'check_in', true);
$check_out = get_post_meta($order_code, 'check_out', true);
$datediff = STDate::date_diff(strtotime($check_in), strtotime($check_out));
$number = get_post_meta($order_code, 'item_number', true);
$price = get_post_meta($order_code, 'item_price', true);
if (!$number) $number = 1;
$post_type = get_post_type($key);
if ($post_type == "st_cars") {
$total += STCars::get_price_car_by_order_item($order_code);
} else if ($post_type == "st_hotel") {
if ($datediff >= 1) {
$total += ($price) * $datediff * $number;
} else {
$total += $price * $number;
}
} elseif ($post_type == "st_tours") {
$total += STCart::get_order_item_total($order_code, get_post_meta($order_code, 'st_tax', true));
} else {
$total += $price * $number;
}
$i++;
switch ($post_type) {
case "st_hotel":
echo st()->load_template('hotel/success_payment_item_row', false, array('order_id' => $order_code, 'data' => $value, 'key' => $key, 'i' => $i));
break;
case "st_tours":
echo st()->load_template('tours/success_payment_item_row', false, array('order_id' => $order_code, 'data' => $value, 'key' => $key, 'i' => $i));
break;
case "st_cars":
echo st()->load_template('cars/success_payment_item_row', false, array('order_id' => $order_code, 'data' => $value, 'key' => $key, 'i' => $i));
break;
case "st_activity":
echo st()->load_template('activity/success_payment_item_row', false, array('order_id' => $order_code, 'data' => $value, 'key' => $key, 'i' => $i));
break;
case "st_rental":
echo st()->load_template('rental/success_payment_item_row', false, array('order_id' => $order_code, 'data' => $value, 'key' => $key, 'i' => $i));
break;
}
?>
</tbody>
<tfoot>
<tr>
<td colspan="2" style="
border-left: 1px solid #bcbcbc;
border-bottom: 1px solid #bcbcbc;
padding: 6px;
background: #e4e4e4;"></td>
<td style="
border-bottom: 1px solid #bcbcbc;
border-right:1px solid #bcbcbc;
padding: 6px;
background: #e4e4e4;">
<table cellspacing="0px" cellpadding="0" width="100%" class="tb_cart_total">
<tr>
<td style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('sub_total') ?></strong></td>
<td style="border-bottom: 1px dashed #ccc;padding:10px;"><?php echo TravelHelper::format_money($total); ?></td>
</tr>
<tr>
<td style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('tax') ?></strong></td>
<td style="border-bottom: 1px dashed #ccc;padding:10px;"><?php
$tax = get_post_meta($order_code, 'st_tax', true);
if (!$tax) {
$tax = STCart::get_tax();
}
$tax_amount = ($total / 100) * $tax;
echo TravelHelper::format_money($tax_amount);
?>
</td>
</tr>
<tr>
<td style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('total') ?></strong></td>
<td style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo TravelHelper::format_money($total + $tax_amount) ?>
</td>
</tr>
</table>
</td>
</tr>
</tfoot>
</table>
<h2 style=";
margin-top: 50px;"><?php st_the_language('customer_infomation') ?></h2>
<table cellpadding="0" cellspacing="0" width="100%" border="0px" class="mb30 tb_cart_customer">
<tbody>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('first_name') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_first_name', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('last_name') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_last_name', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('email') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_email', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('phone') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_phone', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('address_line_1') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_address', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('address_line_2') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_address2', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('city') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_city', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('state_province_region') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_province', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('zip_code_postal_code') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_zip_code', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('country') ?></strong></td>
<td align="right" class="text-right" style="border-bottom: 1px dashed #ccc;padding:10px;">
<?php echo get_post_meta($order_code, 'st_country', true) ?>
</td>
</tr>
<tr>
<td width="50%" style="border-bottom: 1px dashed #ccc;padding:10px;">
<strong><?php st_the_language('special_requirements') ?></strong></td>
<td align="right" class="text-right"
style="border-bottom: 1px dashed #ccc;padding:10px;vertical-align: top">
<?php echo get_post_meta($order_code, 'st_note', true) ?>
</td>
</tr>
</tbody>
</table>
<?php if (is_user_logged_in()):
$page_user = st()->get_option('page_my_account_dashboard');
if ($link = get_permalink($page_user)):
?>
<div class="text-center mg20">
<a href="<?php echo esc_url($link)?>" class="btn btn-primary"><i
class="fa fa-book"></i> <?php st_the_language('booking_management') ?></a>
</div>
<?php endif; endif; ?>
</div>
</div>
</div>
<?php
get_footer();
|
ntamvl/vemaybaygiareonline
|
wp-content/themes/traveler/template-payment-success.php
|
PHP
|
mit
| 15,189
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>The Red Matrix: mod/editpost.php File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="rhash-64.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">The Red Matrix
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('editpost_8php.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">editpost.php File Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a34011690864d122680c802e9e748ccfb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="editpost_8php.html#a34011690864d122680c802e9e748ccfb">editpost_content</a> (&$a)</td></tr>
<tr class="separator:a34011690864d122680c802e9e748ccfb"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a34011690864d122680c802e9e748ccfb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">editpost_content </td>
<td>(</td>
<td class="paramtype">& </td>
<td class="paramname"><em>$a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
|
waitman/red
|
doc/html/editpost_8php.html
|
HTML
|
mit
| 6,316
|
import varianceOf from "./variance-of";
export default function standardDeviationOf(array, callback) {
let variance = varianceOf(array, callback);
return variance ? Math.sqrt(variance) : false;
}
|
andrewcourtice/vuetiful
|
src/utilities/standard-deviation-of.js
|
JavaScript
|
mit
| 205
|
{% extends '../base.html' %}
{% block title %}
<title>
Agregar Número
</title>
{% endblock %}
{% block content %}
<h2>Agregar número telefónico</h2>
<form method="POST" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Agregar</button>
</form>
<a href="{% url "home:new_message" %}" class="link">Enviar mensaje</a> |
<a href="{% url "home:number_list" %}" class="link">Números actuales</a>
{% endblock content %}
|
rafaelmv/smsuela
|
home/templates/home/new_number.html
|
HTML
|
mit
| 489
|
//
// PicView.h
// BirdFight
//
// Created by 聚米 on 16/11/7.
// Copyright © 2016年 聚米. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^TapBlcok)(NSInteger index,NSArray *dataSource,NSIndexPath *indexpath);
@interface PicView : UIView
@property (nonatomic, copy)TapBlcok tapBlock;
@property (nonatomic, copy)NSIndexPath *indexpath;
/**
* 九宫格显示的数据源,dataSource中可以放UIImage对象和NSString(http://sjfjfd.cjf.jpg),还有NSURL也可以
*/
@property (nonatomic, retain)NSArray * dataSource;
/**
* Description 九宫格
*
* @param frame frame
* @param dataSource 数据源
* @return JGGView对象
*/
- (instancetype)initWithFrame:(CGRect)frame dataSource:(NSArray *)dataSource completeBlock:(TapBlcok )tapBlock;
/**
* Description 九宫格
*
* @param dataSource 数据源
*/
-(void)PicView:(PicView *)picView DataSource:(NSArray *)dataSource completeBlock:(TapBlcok)tapBlock;
/**
* 配置图片的宽(正方形,宽高一样)
*
* @return 宽
*/
+(CGFloat)imageWidth;
/**
* 配置图片的高(正方形,宽高一样)
*
* @return 高
*/
+(CGFloat)imageHeight;
@end
|
jumi2016/birdfight
|
BirdFight/PicView.h
|
C
|
mit
| 1,173
|
<?php
abstract class Test
{
////=> simple
public function test()
{
}
////=> simple-static
public static function test2()
{
}
////=> constructor-no-vis
function __construct()
{
}
////=> abstract-simple
abstract public function getName();
////=> abstract-static
abstract static public function getStaticName();
////=> abstract-static-alt
static abstract protected function getNameStatic();
////=> final-static
final private static function getFinalPrivateName()
{
}
////=> final
final public function getFinalName()
{
}
////=> params
public function getParams($var, $var2, $var3)
{
}
////=> params-complex
final protected static function getComplexParams(&$var, Hint $var2, $var3 = false)
{
}
////=> multiline
public function getMultiline(
$var,
$var2,
$var3
) {
}
////=> multiline-complex
final static public function getComplexMultiline(
TypeHint $var,
&$var2,
$var3 = "default"
) {
}
////=> nullable-return-type
public function nullableReturnType(): ?string
{
}
////=> nullable-args
public function nullableArgs(?TypeHint $var, ?\Type2 $var2, ?string $var3)
{
}
////=> param-types
public function getParamTypes(
TypeHint $hint,
$boolean = true,
$string = 'single quotes',
$string2 = "double quotes",
$int = 42141513,
$float = 109.50,
$array = [],
$array2 = array()
) {
}
////=> array-params
public function arrayParams($var = array('a', array()), $var2 = array())
{
}
////=> param-namespace
public function paramNamespaced(\TypeHint $hint, $test)
{
}
////=> param-namespace-full
public function paramNamespacedFull(App\Model\TypeHint $hint, $test)
{
}
////=> param-default-null
public function paramDefaultNull(int $arg = null)
{
}
////=> param-mixed-default-null
public function paramMixedDefaultNull(mixed $arg = null)
{
}
////=> args
public function dotArgs(...$args) {
}
////=> args-typed
public function dotArgsTyped(int ...$args) {
}
////=> args-typed-long
public function dotArgsTypedLong(int ...$args) {
}
////=> php7-return
public function getPHP7Return(): TypeHint {
}
////=> php7-return-snake
public function getPHP7ReturnSnake(): Type_Hint3 {
}
////=> php7-return-alt
public function getPHP7ReturnAlt():float
{
}
////=> php7-return-param
public function getPHP7ReturnParam(float $param) :int
{
}
////=> php7-return-param-long
public function getPHP7ReturnParamLong(float $param) :int
{
}
////=> php7-return-multiline
public function getPHP7ReturnMultiline(
float $param,
bool $boolean = false
) : int {
}
////=> php7-return-multiline-long
public function getPHP7ReturnMultilineLong(
float $param,
bool $boolean = false
) : int {
}
////=> php7-return-namespace
public function getPHP7ReturnNamespace():\TypeHint
{
}
////=> php7-return-namespace-full
public function getPHP7ReturnNamespaceFull():App\Model\TypeHint
{
}
////=> php8-return-union-types
public function getPHP8ReturnUnionTypes():int|bool|\TypeHint|App\Model\TypeHint
{
}
////=> php8-return-union-types-with-short-name
public function getPHP8ReturnUnionTypesShortName():int|bool|\TypeHint|App\Model\TypeHint
{
}
////=> php8-param-union-types
public function getPHP8ParamUnionTypes(int|bool|\TypeHint|App\Model\TypeHint $arg, string|\Closure ...$args)
{
}
////=> php8-constructor-promotion
function __construct($arg1, protected int $arg2, private ?int $arg3 = 1, public string $arg4 = 'var')
{
}
////=> trailing-comma
public function trailingComma(int $var, string $var2,)
{
}
////=> trailing-comma-multi
public function trailingCommaMulit(
int $var,
Class_Name $var2,
) {
}
////=> function-reference
public function &someFunction()
{
}
////=> is
public function isSomething()
{
}
////=> is-void
public function isotope()
{
}
////=> is-only
public function is()
{
}
////=> has
public function hasValue()
{
}
////=> has-void
public function hashed()
{
}
////=> has-only
public function has()
{
}
////=> can
public function canValue()
{
}
////=> can-void
public function cancel()
{
}
////=> can-only
public function can()
{
}
////=> should
public function shouldDoSomething()
{
}
////=> should-void
public function shouldasdf()
{
}
////=> should-only
public function should()
{
}
////=> debug-info
public function __debugInfo()
{
}
////=> wakeup
public function __wakeup()
{
}
////=> sleep
public function __sleep()
{
}
////=> isset
public function __isset($name)
{
}
////=> unset
public function __unset($name)
{
}
////=> set
public function __set($name, $value)
{
}
////=> to-string
public function __toString()
{
}
}
|
neild3r/vscode-php-docblocker
|
test/fixtures/functions.php
|
PHP
|
mit
| 5,493
|
# split
Repo for Split
Adding stuff here
|
demianborba/split
|
README.md
|
Markdown
|
mit
| 43
|
using System.Net;
using FluentAssertions;
using JsonApiDotNetCore.Serialization.Objects;
using TestBuildingBlocks;
using Xunit;
namespace JsonApiDotNetCoreTests.IntegrationTests.ControllerActionResults;
public sealed class ActionResultTests : IClassFixture<IntegrationTestContext<TestableStartup<ActionResultDbContext>, ActionResultDbContext>>
{
private readonly IntegrationTestContext<TestableStartup<ActionResultDbContext>, ActionResultDbContext> _testContext;
public ActionResultTests(IntegrationTestContext<TestableStartup<ActionResultDbContext>, ActionResultDbContext> testContext)
{
_testContext = testContext;
testContext.UseController<ToothbrushesController>();
}
[Fact]
public async Task Can_get_resource_by_ID()
{
// Arrange
var toothbrush = new Toothbrush();
await _testContext.RunOnDatabaseAsync(async dbContext =>
{
dbContext.Toothbrushes.Add(toothbrush);
await dbContext.SaveChangesAsync();
});
string route = $"/toothbrushes/{toothbrush.StringId}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.OK);
responseDocument.Data.SingleValue.ShouldNotBeNull();
responseDocument.Data.SingleValue.Id.Should().Be(toothbrush.StringId);
}
[Fact]
public async Task Converts_empty_ActionResult_to_error_collection()
{
// Arrange
string route = $"/toothbrushes/{ToothbrushesController.EmptyActionResultId}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.NotFound);
responseDocument.Errors.ShouldHaveCount(1);
ErrorObject error = responseDocument.Errors[0];
error.StatusCode.Should().Be(HttpStatusCode.NotFound);
error.Title.Should().Be("NotFound");
error.Detail.Should().BeNull();
}
[Fact]
public async Task Converts_ActionResult_with_error_object_to_error_collection()
{
// Arrange
string route = $"/toothbrushes/{ToothbrushesController.ActionResultWithErrorObjectId}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.NotFound);
responseDocument.Errors.ShouldHaveCount(1);
ErrorObject error = responseDocument.Errors[0];
error.StatusCode.Should().Be(HttpStatusCode.NotFound);
error.Title.Should().Be("No toothbrush with that ID exists.");
error.Detail.Should().BeNull();
}
[Fact]
public async Task Cannot_convert_ActionResult_with_string_parameter_to_error_collection()
{
// Arrange
string route = $"/toothbrushes/{ToothbrushesController.ActionResultWithStringParameter}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.InternalServerError);
responseDocument.Errors.ShouldHaveCount(1);
ErrorObject error = responseDocument.Errors[0];
error.StatusCode.Should().Be(HttpStatusCode.InternalServerError);
error.Title.Should().Be("An unhandled error occurred while processing this request.");
error.Detail.Should().Be("Data being returned must be resources, operations, errors or null.");
}
[Fact]
public async Task Converts_ObjectResult_with_error_object_to_error_collection()
{
// Arrange
string route = $"/toothbrushes/{ToothbrushesController.ObjectResultWithErrorObjectId}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.BadGateway);
responseDocument.Errors.ShouldHaveCount(1);
ErrorObject error = responseDocument.Errors[0];
error.StatusCode.Should().Be(HttpStatusCode.BadGateway);
error.Title.Should().BeNull();
error.Detail.Should().BeNull();
}
[Fact]
public async Task Converts_ObjectResult_with_error_objects_to_error_collection()
{
// Arrange
string route = $"/toothbrushes/{ToothbrushesController.ObjectResultWithErrorCollectionId}";
// Act
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecuteGetAsync<Document>(route);
// Assert
httpResponse.Should().HaveStatusCode(HttpStatusCode.BadRequest);
responseDocument.Errors.ShouldHaveCount(3);
ErrorObject error1 = responseDocument.Errors[0];
error1.StatusCode.Should().Be(HttpStatusCode.PreconditionFailed);
error1.Title.Should().BeNull();
error1.Detail.Should().BeNull();
ErrorObject error2 = responseDocument.Errors[1];
error2.StatusCode.Should().Be(HttpStatusCode.Unauthorized);
error2.Title.Should().BeNull();
error2.Detail.Should().BeNull();
ErrorObject error3 = responseDocument.Errors[2];
error3.StatusCode.Should().Be(HttpStatusCode.ExpectationFailed);
error3.Title.Should().Be("This is not a very great request.");
error3.Detail.Should().BeNull();
}
}
|
json-api-dotnet/JsonApiDotNetCore
|
test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ActionResultTests.cs
|
C#
|
mit
| 5,636
|
package io.github.nasso.nhengine.graphics.opengl;
import org.lwjgl.opengl.GL30;
public class OGLRenderTarget2D {
private OGLFramebuffer2D fbo = null;
private OGLTexture2D colorTexture = null;
public OGLRenderTarget2D(OGLTexture2D colorTexture) {
this.fbo = new OGLFramebuffer2D();
this.setColorTexture(colorTexture);
}
public OGLFramebuffer2D getFBO() {
return this.fbo;
}
public void setFBO(OGLFramebuffer2D fbo) {
this.fbo = fbo;
}
public OGLTexture2D getColorTexture() {
return this.colorTexture;
}
public void setColorTexture(OGLTexture2D colorTexture) {
if(this.colorTexture != colorTexture) {
this.colorTexture = colorTexture;
this.fbo.bind();
this.fbo.bindTexture(GL30.GL_COLOR_ATTACHMENT0, colorTexture);
this.fbo.unbind();
}
}
public void dispose(boolean deleteTexture) {
this.fbo.dispose();
if(deleteTexture) this.colorTexture.dispose();
}
}
|
Nasso/nhengine
|
src/io/github/nasso/nhengine/graphics/opengl/OGLRenderTarget2D.java
|
Java
|
mit
| 920
|
declare namespace java {
namespace awt {
namespace geom {
class Rectangle2D$Double extends java.awt.geom.Rectangle2D implements java.io.Serializable {
public x: double
public y: double
public width: double
public height: double
public constructor()
public constructor(arg0: number | java.lang.Double, arg1: number | java.lang.Double, arg2: number | java.lang.Double, arg3: number | java.lang.Double)
public getX(): number
public getY(): number
public getWidth(): number
public getHeight(): number
public isEmpty(): boolean
public setRect(arg0: number | java.lang.Double, arg1: number | java.lang.Double, arg2: number | java.lang.Double, arg3: number | java.lang.Double): void
public setRect(arg0: java.awt.geom.Rectangle2D): void
public outcode(arg0: number | java.lang.Double, arg1: number | java.lang.Double): number
public getBounds2D(): java.awt.geom.Rectangle2D
public createIntersection(arg0: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D
public createUnion(arg0: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D
public toString(): java.lang.String
}
}
}
}
|
wizawu/1c
|
@types/jdk/java.awt.geom.Rectangle2D$Double.d.ts
|
TypeScript
|
mit
| 1,246
|
<?php
namespace spec\Sylius\Bundle\CoreBundle\Doctrine\ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\QueryBuilder;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManager;
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Payment\Model\PaymentMethodInterface;
class PaymentMethodRepositorySpec extends ObjectBehavior
{
public function let(EntityManager $em, ClassMetadata $classMetadata)
{
$this->beConstructedWith($em, $classMetadata);
}
public function it_is_initializable()
{
$this->shouldHaveType('Sylius\Bundle\CoreBundle\Doctrine\ORM\PaymentMethodRepository');
}
public function it_is_a_repository()
{
$this->shouldHaveType('Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository');
$this->shouldImplement('Sylius\Component\Payment\Repository\PaymentMethodRepositoryInterface');
}
public function it_creates_query_builder_for_the_payment_method(
$em,
QueryBuilder $builder,
ChannelInterface $channel,
ArrayCollection $paymentMethods,
PaymentMethodInterface $paymentMethod
) {
$em->createQueryBuilder()->shouldBeCalled()->willReturn($builder);
$builder->select('method')->shouldBeCalled()->willReturn($builder);
$builder->from(Argument::any(), 'method')->shouldBeCalled()->willReturn($builder);
$builder->andWhere('method IN (:methods)')->shouldBeCalled()->willReturn($builder);
$channel->getPaymentMethods()->shouldBeCalled()->willReturn($paymentMethods);
$paymentMethods->toArray()->shouldBeCalled()->willReturn(array($paymentMethod));
$builder->setParameter('methods', array($paymentMethod))->shouldBeCalled()->willReturn($builder);
$this->getQueryBuidlerForChoiceType(array(
'channel' => $channel,
'disabled' => true,
))->shouldReturn($builder);
}
}
|
Symfomany/Sylius
|
src/Sylius/Bundle/CoreBundle/spec/Doctrine/ORM/PaymentMethodRepositorySpec.php
|
PHP
|
mit
| 1,999
|
package org.jfree.layout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.io.Serializable;
public class CenterLayout implements LayoutManager, Serializable {
private static final long serialVersionUID = 469319532333015042L;
public Dimension preferredLayoutSize(Container parent) {
Dimension dimension;
synchronized (parent.getTreeLock()) {
Insets insets = parent.getInsets();
if (parent.getComponentCount() > 0) {
Dimension d = parent.getComponent(0).getPreferredSize();
dimension = new Dimension((((int) d.getWidth()) + insets.left) + insets.right, (((int) d.getHeight()) + insets.top) + insets.bottom);
} else {
dimension = new Dimension(insets.left + insets.right, insets.top + insets.bottom);
}
}
return dimension;
}
public Dimension minimumLayoutSize(Container parent) {
Dimension dimension;
synchronized (parent.getTreeLock()) {
Insets insets = parent.getInsets();
if (parent.getComponentCount() > 0) {
Dimension d = parent.getComponent(0).getMinimumSize();
dimension = new Dimension((d.width + insets.left) + insets.right, (d.height + insets.top) + insets.bottom);
} else {
dimension = new Dimension(insets.left + insets.right, insets.top + insets.bottom);
}
}
return dimension;
}
public void layoutContainer(Container parent) {
synchronized (parent.getTreeLock()) {
if (parent.getComponentCount() > 0) {
Insets insets = parent.getInsets();
Dimension parentSize = parent.getSize();
Component component = parent.getComponent(0);
Dimension componentSize = component.getPreferredSize();
component.setBounds(insets.left + Math.max((((parentSize.width - insets.left) - insets.right) - componentSize.width) / 2, 0), insets.top + Math.max((((parentSize.height - insets.top) - insets.bottom) - componentSize.height) / 2, 0), componentSize.width, componentSize.height);
}
}
}
public void addLayoutComponent(Component comp) {
}
public void removeLayoutComponent(Component comp) {
}
public void addLayoutComponent(String name, Component comp) {
}
public void removeLayoutComponent(String name, Component comp) {
}
}
|
ivanshen/Who-Are-You-Really
|
org/jfree/layout/CenterLayout.java
|
Java
|
mit
| 2,557
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.