text:
// Copyright 2019 HAProxy Technologies LLC
//
// 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 store

import (
	"fmt"

	extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
	networkingv1 "k8s.io/api/networking/v1"
	networkingv1beta1 "k8s.io/api/networking/v1beta1"

	"github.com/haproxytech/kubernetes-ingress/controller/utils"
)

// ConvertToIngress detects the interface{} provided by the SharedInformer and select
// the proper strategy to convert and return the resource as a store.Ingress struct
func ConvertToIngress(resource interface{}) (f *Ingress, err error) {
	switch t := resource.(type) {
	case *networkingv1beta1.Ingress:
		f = ingressNetworkingV1Beta1Strategy{obj: resource.(*networkingv1beta1.Ingress)}.Convert()
	case *extensionsv1beta1.Ingress:
		f = ingressExtensionsStrategy{obj: resource.(*extensionsv1beta1.Ingress)}.Convert()
	case *networkingv1.Ingress:
		f = ingressNetworkingV1Strategy{obj: resource.(*networkingv1.Ingress)}.Convert()
	default:
		err = fmt.Errorf("unrecognized type for: %T", t)
	}
	return
}

// ingressNetworkingV1Beta1Strategy is the Strategy implementation for converting an
// ingresses.networking.k8s.io/v1beta1 object into a store.Ingress resource.
type ingressNetworkingV1Beta1Strategy struct {
	obj *networkingv1beta1.Ingress
}

func (n ingressNetworkingV1Beta1Strategy) Convert() *Ingress {
	return &Ingress{
		APIVersion:  "networking.k8s.io/v1beta1",
		Namespace:   n.obj.GetNamespace(),
		Name:        n.obj.GetName(),
		Annotations: ConvertToMapStringW(n.obj.GetAnnotations()),
		Rules: func(ingressRules []networkingv1beta1.IngressRule) map[string]*IngressRule {
			rules := make(map[string]*IngressRule)
			for _, k8sRule := range ingressRules {
				paths := make(map[string]*IngressPath)
				if k8sRule.HTTP == nil {
					logger := utils.GetLogger()
					logger.Warningf("Ingress HTTP rules for [%s] does not exists", k8sRule.Host)
					continue
				}
				for _, k8sPath := range k8sRule.HTTP.Paths {
					paths[k8sPath.Path] = &IngressPath{
						Path:              k8sPath.Path,
						ExactPathMatch:    k8sPath.PathType != nil && *k8sPath.PathType == networkingv1beta1.PathTypeExact,
						ServiceName:       k8sPath.Backend.ServiceName,
						ServicePortInt:    int64(k8sPath.Backend.ServicePort.IntValue()),
						ServicePortString: k8sPath.Backend.ServicePort.StrVal,
						Status:            "",
					}
				}
				if rule, ok := rules[k8sRule.Host]; ok {
					for path, ingressPath := range paths {
						rule.Paths[path] = ingressPath
					}
				} else {
					rules[k8sRule.Host] = &IngressRule{
						Host:   k8sRule.Host,
						Paths:  paths,
						Status: "",
					}
				}
			}
			return rules
		}(n.obj.Spec.Rules),
		DefaultBackend: func(ingressBackend *networkingv1beta1.IngressBackend) *IngressPath {
			if ingressBackend == nil {
				return nil
			}
			return &IngressPath{
				ServiceName:       ingressBackend.ServiceName,
				ServicePortInt:    int64(ingressBackend.ServicePort.IntValue()),
				ServicePortString: ingressBackend.ServicePort.StrVal,
				IsDefaultBackend:  true,
				Status:            "",
			}
		}(n.obj.Spec.Backend),
		TLS: func(ingressTLS []networkingv1beta1.IngressTLS) map[string]*IngressTLS {
			tls := make(map[string]*IngressTLS)
			for _, k8sTLS := range ingressTLS {
				for _, host := range k8sTLS.Hosts {
					tls[host] = &IngressTLS{
						Host: host,
						SecretName: StringW{
							Value: k8sTLS.SecretName,
						},
						Status: EMPTY,
					}
				}
			}
			return tls
		}(n.obj.Spec.TLS),
		Status: func() Status {
			if n.obj.ObjectMeta.GetDeletionTimestamp() != nil {
				return DELETED
			}
			return ADDED
		}(),
	}
}

// ingressExtensionsStrategy is the Strategy implementation for converting an
// ingresses.extensions/v1beta1 object into a store.Ingress resource.
type ingressExtensionsStrategy struct {
	obj *extensionsv1beta1.Ingress
}

func (e ingressExtensionsStrategy) Convert() *Ingress {
	return &Ingress{
		APIVersion:  "extensions/v1beta1",
		Namespace:   e.obj.GetNamespace(),
		Name:        e.obj.GetName(),
		Annotations: ConvertToMapStringW(e.obj.GetAnnotations()),
		Rules: func(ingressRules []extensionsv1beta1.IngressRule) map[string]*IngressRule {
			rules := make(map[string]*IngressRule)
			for _, k8sRule := range ingressRules {
				paths := make(map[string]*IngressPath)
				if k8sRule.HTTP == nil {
					logger := utils.GetLogger()
					logger.Warningf("Ingress HTTP rules for [%s] does not exists", k8sRule.Host)
					continue
				}
				for _, k8sPath := range k8sRule.HTTP.Paths {
					paths[k8sPath.Path] = &IngressPath{
						Path:              k8sPath.Path,
						ExactPathMatch:    k8sPath.PathType != nil && *k8sPath.PathType == extensionsv1beta1.PathTypeExact,
						ServiceName:       k8sPath.Backend.ServiceName,
						ServicePortInt:    int64(k8sPath.Backend.ServicePort.IntValue()),
						ServicePortString: k8sPath.Backend.ServicePort.StrVal,
						Status:            "",
					}
				}
				if rule, ok := rules[k8sRule.Host]; ok {
					for path, ingressPath := range paths {
						rule.Paths[path] = ingressPath
					}
				} else {
					rules[k8sRule.Host] = &IngressRule{
						Host:   k8sRule.Host,
						Paths:  paths,
						Status: "",
					}
				}
			}
			return rules
		}(e.obj.Spec.Rules),
		DefaultBackend: func(ingressBackend *extensionsv1beta1.IngressBackend) *IngressPath {
			if ingressBackend == nil {
				return nil
			}
			return &IngressPath{
				ServiceName:       ingressBackend.ServiceName,
				ServicePortInt:    int64(ingressBackend.ServicePort.IntValue()),
				ServicePortString: ingressBackend.ServicePort.StrVal,
				IsDefaultBackend:  true,
				Status:            "",
			}
		}(e.obj.Spec.Backend),
		TLS: func(ingressTLS []extensionsv1beta1.IngressTLS) map[string]*IngressTLS {
			tls := make(map[string]*IngressTLS)
			for _, k8sTLS := range ingressTLS {
				for _, host := range k8sTLS.Hosts {
					tls[host] = &IngressTLS{
						Host: host,
						SecretName: StringW{
							Value: k8sTLS.SecretName,
						},
						Status: EMPTY,
					}
				}
			}
			return tls
		}(e.obj.Spec.TLS),
		Status: func() Status {
			if e.obj.ObjectMeta.GetDeletionTimestamp() != nil {
				return DELETED
			}
			return ADDED
		}(),
	}
}

// ingressNetworkingV1Strategy is the Strategy implementation for converting an
// ingresses.networking.k8s.io/v1 object into a store.Ingress resource.
type ingressNetworkingV1Strategy struct {
	obj *networkingv1.Ingress
}

func (n ingressNetworkingV1Strategy) Convert() *Ingress {
	return &Ingress{
		APIVersion:  "networking.k8s.io/v1",
		Namespace:   n.obj.GetNamespace(),
		Name:        n.obj.GetName(),
		Annotations: ConvertToMapStringW(n.obj.GetAnnotations()),
		Rules: func(ingressRules []networkingv1.IngressRule) map[string]*IngressRule {
			rules := make(map[string]*IngressRule)
			for _, k8sRule := range ingressRules {
				paths := make(map[string]*IngressPath)
				if k8sRule.HTTP == nil {
					logger := utils.GetLogger()
					logger.Warningf("Ingress HTTP rules for [%s] does not exists", k8sRule.Host)
					continue
				}
				for _, k8sPath := range k8sRule.HTTP.Paths {
					paths[k8sPath.Path] = &IngressPath{
						Path:              k8sPath.Path,
						ExactPathMatch:    k8sPath.PathType != nil && *k8sPath.PathType == networkingv1.PathTypeExact,
						ServiceName:       k8sPath.Backend.Service.Name,
						ServicePortInt:    int64(k8sPath.Backend.Service.Port.Number),
						ServicePortString: k8sPath.Backend.Service.Port.Name,
						Status:            "",
					}
				}
				if rule, ok := rules[k8sRule.Host]; ok {
					for path, ingressPath := range paths {
						rule.Paths[path] = ingressPath
					}
				} else {
					rules[k8sRule.Host] = &IngressRule{
						Host:   k8sRule.Host,
						Paths:  paths,
						Status: "",
					}
				}
			}
			return rules
		}(n.obj.Spec.Rules),
		DefaultBackend: func(ingressBackend *networkingv1.IngressBackend) *IngressPath {
			if ingressBackend == nil {
				return nil
			}
			return &IngressPath{
				ServiceName:       ingressBackend.Service.Name,
				ServicePortInt:    int64(ingressBackend.Service.Port.Number),
				ServicePortString: ingressBackend.Service.Port.Name,
				IsDefaultBackend:  true,
				Status:            "",
			}
		}(n.obj.Spec.DefaultBackend),
		TLS: func(ingressTLS []networkingv1.IngressTLS) map[string]*IngressTLS {
			tls := make(map[string]*IngressTLS)
			for _, k8sTLS := range ingressTLS {
				for _, host := range k8sTLS.Hosts {
					tls[host] = &IngressTLS{
						Host: host,
						SecretName: StringW{
							Value: k8sTLS.SecretName,
						},
						Status: EMPTY,
					}
				}
			}
			return tls
		}(n.obj.Spec.TLS),
		Status: func() Status {
			if n.obj.ObjectMeta.GetDeletionTimestamp() != nil {
				return DELETED
			}
			return ADDED
		}(),
	}
}

repository: donglei/kubernetes-ingress

repo_name: donglei/kubernetes-ingress


text:
SUMMARY = "RTL8814AU kernel driver (wifi)"
DESCRIPTION = "RTL8814AU kernel driver"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://Kconfig;md5=12b95123fbe5dd02b8418463efdc6232"

SRC_URI = "git://github.com/tpircher/rtl8814AU.git;protocol=https"
SRCREV = "a0c44795f06d846b656ebac3310ba8f80f41333d"

MODVER = "4.3.21"

MODULE_NAME = "8814au.ko"

require realtek.inc

license: MIT

repository: petergerten/meta-rtlwifi

license_type: permissive

repo_name: petergerten/meta-rtlwifi

branch_name: refs/heads/master

extension: bb


text:
SUMMARY = "ModemManager is a daemon controlling broadband devices/connections"
DESCRIPTION = "ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ModemManager/"
LICENSE = "GPLv2 & LGPLv2.1"
LIC_FILES_CHKSUM = " \
    file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
    file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
"

inherit autotools gettext gtk-doc systemd

DEPENDS = "glib-2.0 libmbim libqmi polkit udev dbus-glib"

SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz"
SRC_URI[md5sum] = "fe74eaa9a77e51e552b4356b4c7195cb"
SRC_URI[sha256sum] = "07d332fbe6f45f788f740810951e04042aaf023bd5ecf8ef0b3a06e37703585d"

S = "${WORKDIR}/ModemManager-${PV}"

FILES_${PN} += " \
    ${datadir}/icons \
    ${datadir}/polkit-1 \
    ${libdir}/ModemManager \
    ${systemd_unitdir}/system \
"

FILES_${PN}-dev += " \
    ${datadir}/dbus-1 \
    ${libdir}/ModemManager/*.la \
"

FILES_${PN}-staticdev += " \
    ${libdir}/ModemManager/*.a \
"

FILES_${PN}-dbg += "${libdir}/ModemManager/.debug"

SYSTEMD_SERVICE_${PN} = "ModemManager.service"
# no need to start on boot - dbus will start on demand
SYSTEMD_AUTO_ENABLE = "disable"

branch_name: refs/heads/fido

gha_license_id: MIT

gha_language: BitBake


text:
package mockns1

import (
	"net/http"

	"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
)

// AddZoneListTestCase sets up a test case for the api.Client.Zones.List()
// function
func (s *Service) AddZoneListTestCase(
	requestHeaders, responseHeaders http.Header,
	response []*dns.Zone,
) error {
	return s.AddTestCase(
		http.MethodGet, "/zones", http.StatusOK, requestHeaders,
		responseHeaders, "", response,
	)
}

// AddZoneGetTestCase sets up a test case for the api.Client.Zones.Get()
// function
func (s *Service) AddZoneGetTestCase(
	name string,
	requestHeaders, responseHeaders http.Header,
	response *dns.Zone,
	records bool,
) error {
	uri := "/zones/" + name
	if !records {
		uri = uri + "?records=false"
	}
	return s.AddTestCase(
		http.MethodGet, uri, http.StatusOK, requestHeaders,
		responseHeaders, "", response,
	)
}

// AddZoneCreateTestCase sets up a test case for the api.Client.Zones.Create()
// function
func (s *Service) AddZoneCreateTestCase(
	requestHeaders, responseHeaders http.Header,
	zone, response *dns.Zone,
) error {
	return s.AddTestCase(
		http.MethodPut, "/zones/"+zone.Zone, http.StatusCreated, requestHeaders,
		responseHeaders, zone, response,
	)
}

// AddZoneUpdateTestCase sets up a test case for the api.Client.Zones.Update()
// function
func (s *Service) AddZoneUpdateTestCase(
	requestHeaders, responseHeaders http.Header,
	zone, response *dns.Zone,
) error {
	return s.AddTestCase(
		http.MethodPost, "/zones/"+zone.Zone, http.StatusOK, requestHeaders,
		responseHeaders, zone, response,
	)
}

// AddZoneDeleteTestCase sets up a test case for the api.Client.Zones.Delete()
// function
func (s *Service) AddZoneDeleteTestCase(
	name string, requestHeaders, responseHeaders http.Header,
) error {
	return s.AddTestCase(
		http.MethodDelete, "/zones/"+name, http.StatusNoContent, requestHeaders,
		responseHeaders, "", "",
	)
}

gha_language: Go

extension: go


text:
import { IsDate, IsDecimal, IsNotEmpty, IsString } from "class-validator";
import { Decimal128 } from "mongoose";
import { Cartao } from "src/cartao/entities/cartao.entity";
import { Categoria } from "src/categoria/entities/categoria.entity";
import { Conta } from "src/conta/entities/conta.entity";
import { Contarecorrente } from "src/contarecorrente/entities/contarecorrente.entity";
import { Rateio } from "src/rateio/entities/rateio.entity";
import { Usuario } from "src/usuario/entities/usuario.entity"

export class AnexoDto{
    descricao: string;
    link: string;
    inclusao: Date;
}

export class CreateLancamentoDto {

    @IsNotEmpty()
    usuario: Usuario;

    @IsNotEmpty()
    cartao: Cartao;

    @IsNotEmpty()
    conta: Conta;

    @IsNotEmpty()
    rateio: Rateio;

    @IsNotEmpty()
    categoria: Categoria;

    @IsNotEmpty()
    contarecorrente: Contarecorrente;

    @IsNotEmpty()
    @IsString()
    descricao: string;

    @IsNotEmpty()
    lancamento: Date;

    @IsNotEmpty()
    vencimento: Date;

    @IsNotEmpty()
    quitacao: Date;

    @IsNotEmpty()
    @IsString()
    forma: string;

    @IsNotEmpty()
    @IsString()
    tipo: string;

    @IsNotEmpty()
    @IsDecimal()
    valor: Decimal128;

    @IsNotEmpty()
    @IsString()
    conciliado: string;

    @IsNotEmpty()
    anexos:AnexoDto[];

    @IsNotEmpty()
    @IsString()
    obs: string;
    alteracao: Date;
}

extension: ts


text:
package element

type Datatype interface {
	DataDef() DataDef
}

type DataDef int

const (
	DataDefChar DataDef = iota
	DataDefVarchar2
	DataDefNChar
	DataDefNVarChar2
	DataDefNumber
	DataDefFloat
	DataDefBinaryFloat
	DataDefBinaryDouble
	DataDefLong
	DataDefLongRaw
	DataDefRaw
	DataDefDate
	DataDefTimestamp
	DataDefIntervalYear
	DataDefIntervalDay
	DataDefBlob
	DataDefClob
	DataDefNClob
	DataDefBFile
	DataDefRowId
	DataDefURowId
	DataDefCharacter
	DataDefCharacterVarying
	DataDefCharVarying
	DataDefNCharVarying
	DataDefVarchar
	DataDefNationalCharacter
	DataDefNationalCharacterVarying
	DataDefNationalChar
	DataDefNationalCharVarying
	DataDefNumeric
	DataDefDecimal
	DataDefDec
	DataDefInteger
	DataDefInt
	DataDefSmallInt
	DataDefDoublePrecision
	DataDefReal
)

type datatype struct {
	typ DataDef
}

func (d *datatype) DataDef () DataDef {
	return d.typ
}

func (d *datatype) SetDataDef(typ DataDef) {
	d.typ = typ
}

// Char is "Char" and "Character"
type Char struct {
	datatype
	Size       *int
	IsByteSize bool
	IsCharSize bool
}

// Varchar2 include: "Varchar2", "Char Varying", "Character Varying", "Varchar"
type Varchar2 struct {
	Char
}

// NChar include: "Nchar", "National Character", "National Char".
type NChar struct {
	datatype
	Size      *int
}

// NVarchar2 include: "NVarchar2", "National Character Varying", "National Char Varying", "NChar Varying"
type NVarchar2 struct {
	NChar
}

type Raw struct {
	datatype
	Size *int
}

type RowId struct {
	datatype
}

type URowId struct {
	datatype
	Size *int
}

type Date struct {
	datatype
}

type Timestamp struct {
	datatype
	FractionalSecondsPrecision *int
	WithTimeZone               bool
	WithLocalTimeZone          bool
}

type IntervalYear struct {
	datatype
	Precision *int
}

type IntervalDay struct {
	datatype
	Precision          			*int
	FractionalSecondsPrecision 	*int
}

// Number include: "Number", "Numeric", "Decimal", "Dec", "Integer", "Int", "Smallint";
// Integer is a alias of Number(38);
// Int is  a alias of Number(38);
// Smallint is  a alias of Number(38)
type Number struct {
	datatype
	Precision *NumberOrAsterisk
	Scale     *int
}

// Float is a subtype of Number, include: "Float", "", "DoublePrecision", "Real";
// DoublePrecision is a alias of FLOAT(126);
// Real is a alias of FLOAT(63).
type Float struct {
	datatype
	Precision *NumberOrAsterisk
}

type BinaryFloat struct {
	datatype
}

type BinaryDouble struct {
	datatype
}

type Long struct {
	datatype
}

type LongRaw struct {
	datatype
}

type Blob struct {
	datatype
}

type Clob struct {
	datatype
}

type NClob struct {
	datatype
}

type BFile struct {
	datatype
}

branch_name: refs/heads/main


text:
DESCRIPTION = "Media service files"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

inherit bin_package systemd
DEPENDS_append = " update-rc.d-native"

COMPATIBLE_MACHINE = "(^d1*)"

RDEPENDS_${PN} += " alsa-lib dbus libcap liblzma openssl libevent log4cpp jsoncpp libidn2 \
                    libopus libcurl gnutls nettle zlib libunistring gmp libgmpxx "

DEPENDS = "libevent"

SRC_URI = "\
    file://media_service.sh \
    file://media_service \
    file://media.service \
    file://media-dbus.conf \
    "

S = "${WORKDIR}"

do_install() {
    install -d ${D}${base_libdir}/firmware
    install -d ${D}${bindir}
    install -d ${D}${libdir}
    install -d ${D}${sysconfdir}/dbus-1/system.d/

    install -m 0755 ${WORKDIR}/media_service ${D}${bindir}/media_service
    install -m 0644 ${WORKDIR}/media-dbus.conf ${D}${sysconfdir}/dbus-1/system.d/media-dbus.conf

    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        install -d ${D}${systemd_system_unitdir}
        install -m 0644 ${WORKDIR}/media.service ${D}${systemd_system_unitdir}/media.service
    fi

    if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/media_service.sh ${D}${sysconfdir}/init.d
        update-rc.d -r ${D} media_service.sh start 99 5 .
    fi
}

SYSTEMD_SERVICE_${PN} = "media.service"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"

FILES_${PN} += " ${base_libdir} "
FILES_${PN} += " ${bindir} "
FILES_${PN} += " ${libdir} "
FILES_${PN} += " ${systemd_system_unitdir} "
FILES_${PN} += " ${sysconfdir} "

PACKAGES = "${PN}"

INSANE_SKIP_${PN} += " debug-files file-rdeps already-stripped "

repository: heysion/xuantie-yocto

repo_name: heysion/xuantie-yocto


text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="50" unitdist="mil" unit="mil" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="no"/>
<layer number="2" name="Route2" color="1" fill="3" visible="no" active="no"/>
<layer number="3" name="Route3" color="4" fill="3" visible="no" active="no"/>
<layer number="4" name="Route4" color="1" fill="4" visible="no" active="no"/>
<layer number="5" name="Route5" color="4" fill="4" visible="no" active="no"/>
<layer number="6" name="Route6" color="1" fill="8" visible="no" active="no"/>
<layer number="7" name="Route7" color="4" fill="8" visible="no" active="no"/>
<layer number="8" name="Route8" color="1" fill="2" visible="no" active="no"/>
<layer number="9" name="Route9" color="4" fill="2" visible="no" active="no"/>
<layer number="10" name="Route10" color="1" fill="7" visible="no" active="no"/>
<layer number="11" name="Route11" color="4" fill="7" visible="no" active="no"/>
<layer number="12" name="Route12" color="1" fill="5" visible="no" active="no"/>
<layer number="13" name="Route13" color="4" fill="5" visible="no" active="no"/>
<layer number="14" name="Route14" color="1" fill="6" visible="no" active="no"/>
<layer number="15" name="Route15" color="4" fill="6" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="no"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="no"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="no"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="no"/>
<layer number="20" name="Dimension" color="27" fill="1" visible="no" active="no"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="25" name="tNames" color="13" fill="1" visible="no" active="no"/>
<layer number="26" name="bNames" color="10" fill="1" visible="no" active="no"/>
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="no"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="no"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="no"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="no"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="no"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="no"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="no"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="no"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="no"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="no"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="no"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="no"/>
<layer number="39" name="tKeepout" color="13" fill="11" visible="no" active="no"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="no"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="no"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="no"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="no"/>
<layer number="44" name="Drills" color="7" fill="1" visible="no" active="no"/>
<layer number="45" name="Holes" color="7" fill="1" visible="no" active="no"/>
<layer number="46" name="Milling" color="3" fill="1" visible="no" active="no"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="no"/>
<layer number="48" name="Document" color="7" fill="1" visible="no" active="no"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="no"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="15" fill="15" visible="no" active="no"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="53" name="tGND_GNDA" color="7" fill="9" visible="no" active="no"/>
<layer number="54" name="bGND_GNDA" color="1" fill="9" visible="no" active="no"/>
<layer number="56" name="wert" color="7" fill="1" visible="no" active="no"/>
<layer number="57" name="tCAD" color="7" fill="1" visible="no" active="no"/>
<layer number="59" name="tCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="60" name="bCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="88" name="SimResults" color="7" fill="1" visible="yes" active="yes"/>
<layer number="89" name="SimProbes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="90" name="Modules" color="5" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="99" name="SpiceOrder" color="7" fill="1" visible="yes" active="yes"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="no"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="no"/>
<layer number="103" name="tMap" color="7" fill="1" visible="no" active="no"/>
<layer number="104" name="Name" color="7" fill="1" visible="no" active="no"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="no" active="no"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="no" active="no"/>
<layer number="107" name="Crop" color="7" fill="1" visible="no" active="no"/>
<layer number="108" name="fp8" color="7" fill="1" visible="no" active="no"/>
<layer number="109" name="fp9" color="7" fill="1" visible="no" active="no"/>
<layer number="110" name="110" color="7" fill="1" visible="no" active="no"/>
<layer number="111" name="111" color="7" fill="1" visible="no" active="no"/>
<layer number="112" name="tSilk" color="7" fill="1" visible="no" active="no"/>
<layer number="113" name="ReferenceLS" color="7" fill="1" visible="yes" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="no"/>
<layer number="118" name="Rect_Pads" color="7" fill="1" visible="no" active="no"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="no" active="no"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="no"/>
<layer number="123" name="tTestmark" color="7" fill="1" visible="no" active="no"/>
<layer number="124" name="bTestmark" color="7" fill="1" visible="no" active="no"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="no" active="no"/>
<layer number="126" name="_bNames" color="7" fill="1" visible="no" active="no"/>
<layer number="127" name="_tValues" color="7" fill="1" visible="no" active="no"/>
<layer number="128" name="_bValues" color="7" fill="1" visible="no" active="no"/>
<layer number="129" name="Mask" color="7" fill="1" visible="yes" active="yes"/>
<layer number="131" name="tAdjust" color="7" fill="1" visible="no" active="no"/>
<layer number="132" name="bAdjust" color="7" fill="1" visible="no" active="no"/>
<layer number="133" name="Ports" color="7" fill="1" visible="no" active="yes"/>
<layer number="134" name="Port2" color="7" fill="1" visible="no" active="yes"/>
<layer number="135" name="Port3" color="7" fill="1" visible="no" active="yes"/>
<layer number="144" name="DrillLegend" color="7" fill="1" visible="no" active="no"/>
<layer number="150" name="Notes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="151" name="HeatSink" color="14" fill="1" visible="no" active="no"/>
<layer number="152" name="_bDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="153" name="FabDoc1" color="6" fill="1" visible="no" active="no"/>
<layer number="154" name="FabDoc2" color="2" fill="1" visible="no" active="no"/>
<layer number="155" name="FabDoc3" color="7" fill="15" visible="no" active="no"/>
<layer number="199" name="Contour" color="7" fill="1" visible="no" active="no"/>
<layer number="200" name="200bmp" color="15" fill="1" visible="yes" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="1" visible="no" active="no"/>
<layer number="202" name="202bmp" color="3" fill="1" visible="no" active="no"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="no"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="no"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="no"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="no"/>
<layer number="207" name="207bmp" color="15" fill="10" visible="no" active="no"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="no"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="no" active="no"/>
<layer number="217" name="217bmp" color="18" fill="1" visible="no" active="no"/>
<layer number="218" name="218bmp" color="19" fill="1" visible="no" active="no"/>
<layer number="219" name="219bmp" color="20" fill="1" visible="no" active="no"/>
<layer number="220" name="220bmp" color="21" fill="1" visible="no" active="no"/>
<layer number="221" name="221bmp" color="22" fill="1" visible="no" active="no"/>
<layer number="222" name="222bmp" color="23" fill="1" visible="no" active="no"/>
<layer number="223" name="223bmp" color="24" fill="1" visible="no" active="no"/>
<layer number="224" name="224bmp" color="25" fill="1" visible="no" active="no"/>
<layer number="225" name="225bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="226" name="topsilk" color="14" fill="1" visible="yes" active="yes"/>
<layer number="227" name="227bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="228" name="228bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="229" name="229bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="230" name="230bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="231" name="Eagle3D_PG1" color="14" fill="1" visible="yes" active="yes"/>
<layer number="232" name="Eagle3D_PG2" color="14" fill="2" visible="yes" active="yes"/>
<layer number="233" name="Eagle3D_PG3" color="14" fill="4" visible="yes" active="yes"/>
<layer number="248" name="Housing" color="7" fill="1" visible="no" active="no"/>
<layer number="249" name="Edge" color="7" fill="1" visible="no" active="no"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="OrgLBR" color="13" fill="1" visible="no" active="no"/>
<layer number="255" name="Panel" color="14" fill="1" visible="yes" active="yes"/>
</layers>
<schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
<libraries>
<library name="carrilib with jtags">
<description> The EAGLE Library of Brian Carrigan

 The most updated version of this library can be found at my  Github.</description>
<packages>
<package name="M50-3600542">
<description>.05" x 5, 2 Row</description>
<smd name="2" x="-2.54" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="4" x="-1.27" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="6" x="0" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="8" x="1.27" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="10" x="2.54" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="1" x="-2.54" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="3" x="-1.27" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="5" x="0" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="7" x="1.27" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="9" x="2.54" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<text x="3.17" y="-3.62" size="0.8128" layer="25" rot="R180">>NAME</text>
<wire x1="-3.175" y1="-1.27" x2="-2.54" y2="-1.27" width="0.127" layer="51"/>
<wire x1="-2.54" y1="-1.27" x2="-1.905" y2="-1.27" width="0.127" layer="51"/>
<wire x1="-1.905" y1="-1.27" x2="-1.27" y2="-1.27" width="0.127" layer="51"/>
<wire x1="-1.27" y1="-1.27" x2="-0.635" y2="-1.27" width="0.127" layer="51"/>
<wire x1="-0.635" y1="-1.27" x2="0" y2="-1.27" width="0.127" layer="51"/>
<wire x1="0" y1="-1.27" x2="0.635" y2="-1.27" width="0.127" layer="51"/>
<wire x1="0.635" y1="-1.27" x2="1.27" y2="-1.27" width="0.127" layer="51"/>
<wire x1="1.27" y1="-1.27" x2="1.905" y2="-1.27" width="0.127" layer="51"/>
<wire x1="1.905" y1="-1.27" x2="2.54" y2="-1.27" width="0.127" layer="51"/>
<wire x1="2.54" y1="-1.27" x2="3.175" y2="-1.27" width="0.127" layer="51"/>
<wire x1="3.175" y1="-1.27" x2="3.175" y2="0" width="0.127" layer="51"/>
<wire x1="3.175" y1="0" x2="3.175" y2="1.27" width="0.127" layer="51"/>
<wire x1="3.175" y1="1.27" x2="2.54" y2="1.27" width="0.127" layer="51"/>
<wire x1="2.54" y1="1.27" x2="1.905" y2="1.27" width="0.127" layer="51"/>
<wire x1="1.905" y1="1.27" x2="1.27" y2="1.27" width="0.127" layer="51"/>
<wire x1="1.27" y1="1.27" x2="0.635" y2="1.27" width="0.127" layer="51"/>
<wire x1="0.635" y1="1.27" x2="0" y2="1.27" width="0.127" layer="51"/>
<wire x1="0" y1="1.27" x2="-0.635" y2="1.27" width="0.127" layer="51"/>
<wire x1="-0.635" y1="1.27" x2="-1.27" y2="1.27" width="0.127" layer="51"/>
<wire x1="-1.27" y1="1.27" x2="-1.905" y2="1.27" width="0.127" layer="51"/>
<wire x1="-1.905" y1="1.27" x2="-2.54" y2="1.27" width="0.127" layer="51"/>
<wire x1="-2.54" y1="1.27" x2="-3.175" y2="1.27" width="0.127" layer="51"/>
<wire x1="-3.175" y1="1.27" x2="-3.175" y2="0" width="0.127" layer="51"/>
<wire x1="-3.175" y1="0" x2="-3.175" y2="-1.27" width="0.127" layer="51"/>
<wire x1="-3.175" y1="0" x2="3.175" y2="0" width="0.127" layer="51"/>
<wire x1="1.905" y1="-1.27" x2="1.905" y2="1.27" width="0.127" layer="51"/>
<wire x1="0.635" y1="-1.27" x2="0.635" y2="1.27" width="0.127" layer="51"/>
<wire x1="-0.635" y1="-1.27" x2="-0.635" y2="1.27" width="0.127" layer="51"/>
<wire x1="-1.905" y1="-1.27" x2="-1.905" y2="1.27" width="0.127" layer="51"/>
<wire x1="-1.27" y1="1.27" x2="-1.27" y2="2.54" width="0.4064" layer="51"/>
<wire x1="-2.54" y1="1.27" x2="-2.54" y2="2.54" width="0.4064" layer="51"/>
<wire x1="0" y1="1.27" x2="0" y2="2.54" width="0.4064" layer="51"/>
<wire x1="1.27" y1="1.27" x2="1.27" y2="2.54" width="0.4064" layer="51"/>
<wire x1="2.54" y1="1.27" x2="2.54" y2="2.54" width="0.4064" layer="51"/>
<wire x1="2.54" y1="-1.27" x2="2.54" y2="-2.54" width="0.4064" layer="51"/>
<wire x1="1.27" y1="-1.27" x2="1.27" y2="-2.54" width="0.4064" layer="51"/>
<wire x1="0" y1="-1.27" x2="0" y2="-2.54" width="0.4064" layer="51"/>
<wire x1="-1.27" y1="-1.27" x2="-1.27" y2="-2.54" width="0.4064" layer="51"/>
<wire x1="-2.54" y1="-1.27" x2="-2.54" y2="-2.54" width="0.4064" layer="51"/>
<circle x="-2.54" y="0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="2.54" y="0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="2.54" y="-0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="-1.27" y="-0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="-1.27" y="0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="0" y="0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="1.27" y="0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="1.27" y="-0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="0" y="-0.635" radius="0.283978125" width="0.127" layer="51"/>
<circle x="-2.54" y="-0.635" radius="0.283978125" width="0.127" layer="51"/>
<text x="-1.52" y="-4.31" size="1.27" layer="21" rot="SR0" align="center-left">SWD</text>
<wire x1="-3.75" y1="2.25" x2="-2.75" y2="3.25" width="0.127" layer="21" curve="-90"/>
<wire x1="-2.75" y1="3.25" x2="3.25" y2="3.25" width="0.127" layer="21"/>
<wire x1="3.25" y1="3.25" x2="3.25" y2="-4.5" width="0.127" layer="21"/>
<wire x1="3.25" y1="-4.5" x2="2.25" y2="-5.5" width="0.127" layer="21" curve="-90"/>
<wire x1="2.25" y1="-5.5" x2="-2.75" y2="-5.5" width="0.127" layer="21"/>
<wire x1="-2.75" y1="-5.5" x2="-3.75" y2="-4.5" width="0.127" layer="21" curve="-90"/>
<wire x1="-3.75" y1="-4.5" x2="-3.75" y2="2.25" width="0.127" layer="21"/>
<polygon width="0.127" layer="21">
<vertex x="-3.75" y="-0.5"/>
<vertex x="-2" y="-0.5"/>
<vertex x="-2" y="-5.5"/>
<vertex x="-2.75" y="-5.5" curve="-90"/>
<vertex x="-3.75" y="-4.5"/>
</polygon>
</package>
<package name="SWD_VERTICAL">
<smd name="2" x="-2.54" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="4" x="-1.27" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="6" x="0" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="8" x="1.27" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="10" x="2.54" y="2" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="1" x="-2.54" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="3" x="-1.27" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="5" x="0" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="7" x="1.27" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="9" x="2.54" y="-1.81" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<text x="4.25" y="3" size="1.27" layer="21" rot="SR270" align="center-left">SWD</text>
<wire x1="-5.02" y1="2.25" x2="-4.02" y2="3.25" width="0.127" layer="21" curve="-90"/>
<wire x1="-4.02" y1="3.25" x2="3.25" y2="3.25" width="0.127" layer="21"/>
<wire x1="5.25" y1="-2" x2="4.25" y2="-3" width="0.127" layer="21" curve="-90"/>
<wire x1="4.25" y1="-3" x2="3.25" y2="-3" width="0.127" layer="21"/>
<wire x1="3.25" y1="-3" x2="-4.02" y2="-3" width="0.127" layer="21"/>
<wire x1="-4.02" y1="-3" x2="-5.02" y2="-2" width="0.127" layer="21" curve="-90"/>
<wire x1="-5.02" y1="-2" x2="-5.02" y2="2.25" width="0.127" layer="21"/>
<polygon width="0.127" layer="21">
<vertex x="-5.02" y="-0.5"/>
<vertex x="-2" y="-0.5"/>
<vertex x="-2" y="-3"/>
<vertex x="-4.02" y="-3" curve="-90"/>
<vertex x="-5.02" y="-2"/>
</polygon>
<wire x1="3.25" y1="3.25" x2="5.25" y2="3.25" width="0.127" layer="21"/>
<wire x1="5.25" y1="3.25" x2="5.25" y2="-2" width="0.127" layer="21"/>
<wire x1="3.25" y1="3.25" x2="3.25" y2="-3" width="0.127" layer="21"/>
</package>
<package name="SWD_VERTICAL_WITHHOLE">
<smd name="2" x="-2.54" y="1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="4" x="-1.27" y="1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="6" x="0" y="1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="8" x="1.27" y="1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="10" x="2.54" y="1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="1" x="-2.54" y="-1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="3" x="-1.27" y="-1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="5" x="0" y="-1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="7" x="1.27" y="-1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<smd name="9" x="2.54" y="-1.905" dx="2.5" dy="0.75" layer="1" rot="R90"/>
<text x="4.25" y="2.905" size="1.27" layer="21" rot="SR270" align="center-left">SWD</text>
<wire x1="-5.02" y1="2.155" x2="-4.02" y2="3.155" width="0.127" layer="21" curve="-90"/>
<wire x1="-4.02" y1="3.155" x2="3.25" y2="3.155" width="0.127" layer="21"/>
<wire x1="5.25" y1="-2.095" x2="4.25" y2="-3.095" width="0.127" layer="21" curve="-90"/>
<wire x1="4.25" y1="-3.095" x2="3.25" y2="-3.095" width="0.127" layer="21"/>
<wire x1="3.25" y1="-3.095" x2="-4.02" y2="-3.095" width="0.127" layer="21"/>
<wire x1="-4.02" y1="-3.095" x2="-5.02" y2="-2.095" width="0.127" layer="21" curve="-90"/>
<wire x1="-5.02" y1="-2.095" x2="-5.02" y2="2.155" width="0.127" layer="21"/>
<polygon width="0.127" layer="21">
<vertex x="-5.02" y="-0.595"/>
<vertex x="-2" y="-0.595"/>
<vertex x="-2" y="-3.095"/>
<vertex x="-4.02" y="-3.095" curve="-90"/>
<vertex x="-5.02" y="-2.095"/>
</polygon>
<wire x1="3.25" y1="3.155" x2="5.25" y2="3.155" width="0.127" layer="21"/>
<wire x1="5.25" y1="3.155" x2="5.25" y2="-2.095" width="0.127" layer="21"/>
<wire x1="3.25" y1="3.155" x2="3.25" y2="-3.095" width="0.127" layer="21"/>
<wire x1="-5.08" y1="2.54" x2="5.08" y2="2.54" width="0.127" layer="255"/>
<wire x1="5.08" y1="2.54" x2="5.08" y2="-2.54" width="0.127" layer="255"/>
<wire x1="5.08" y1="-2.54" x2="-5.08" y2="-2.54" width="0.127" layer="255"/>
<wire x1="-5.08" y1="-2.54" x2="-5.08" y2="2.54" width="0.127" layer="255"/>
</package>
</packages>
<symbols>
<symbol name="SW_ARMMINI">
<wire x1="-10.16" y1="-7.62" x2="12.7" y2="-7.62" width="0.254" layer="94"/>
<wire x1="12.7" y1="-7.62" x2="12.7" y2="7.62" width="0.254" layer="94"/>
<wire x1="12.7" y1="7.62" x2="-10.16" y2="7.62" width="0.254" layer="94"/>
<wire x1="-10.16" y1="7.62" x2="-10.16" y2="-7.62" width="0.254" layer="94"/>
<pin name="VCC" x="-12.7" y="5.08" length="short"/>
<pin name="SWDIO" x="15.24" y="5.08" length="short" rot="R180"/>
<pin name="GND1" x="-12.7" y="2.54" length="short"/>
<pin name="SWCLK" x="15.24" y="2.54" length="short" rot="R180"/>
<pin name="GND2" x="-12.7" y="0" length="short"/>
<pin name="SWO" x="15.24" y="0" length="short" rot="R180"/>
<pin name="N/C1" x="-12.7" y="-2.54" length="short"/>
<pin name="N/C2" x="15.24" y="-2.54" length="short" rot="R180"/>
<pin name="GND3" x="-12.7" y="-5.08" length="short"/>
<pin name="RESET" x="15.24" y="-5.08" length="short" rot="R180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="CORTEX_SWD" prefix="SWD">
<description>.05" Cortex M Connector in SWD mode

 Manufacturer:

Generic

Part Number:

Cortex M SWD

Notes:

I use Harwin M50-3600542 connectors</description>
<gates>
<gate name="G$1" symbol="SW_ARMMINI" x="0" y="0"/>
</gates>
<devices>
<device name="" package="M50-3600542">
<connects>
<connect gate="G$1" pin="GND1" pad="3"/>
<connect gate="G$1" pin="GND2" pad="5"/>
<connect gate="G$1" pin="GND3" pad="9"/>
<connect gate="G$1" pin="N/C1" pad="7"/>
<connect gate="G$1" pin="N/C2" pad="8"/>
<connect gate="G$1" pin="RESET" pad="10"/>
<connect gate="G$1" pin="SWCLK" pad="4"/>
<connect gate="G$1" pin="SWDIO" pad="2"/>
<connect gate="G$1" pin="SWO" pad="6"/>
<connect gate="G$1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="VERT" package="SWD_VERTICAL">
<connects>
<connect gate="G$1" pin="GND1" pad="3"/>
<connect gate="G$1" pin="GND2" pad="5"/>
<connect gate="G$1" pin="GND3" pad="9"/>
<connect gate="G$1" pin="N/C1" pad="7"/>
<connect gate="G$1" pin="N/C2" pad="8"/>
<connect gate="G$1" pin="RESET" pad="10"/>
<connect gate="G$1" pin="SWCLK" pad="4"/>
<connect gate="G$1" pin="SWDIO" pad="2"/>
<connect gate="G$1" pin="SWO" pad="6"/>
<connect gate="G$1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="VERT_HOLE" package="SWD_VERTICAL_WITHHOLE">
<connects>
<connect gate="G$1" pin="GND1" pad="3"/>
<connect gate="G$1" pin="GND2" pad="5"/>
<connect gate="G$1" pin="GND3" pad="9"/>
<connect gate="G$1" pin="N/C1" pad="7"/>
<connect gate="G$1" pin="N/C2" pad="8"/>
<connect gate="G$1" pin="RESET" pad="10"/>
<connect gate="G$1" pin="SWCLK" pad="4"/>
<connect gate="G$1" pin="SWDIO" pad="2"/>
<connect gate="G$1" pin="SWO" pad="6"/>
<connect gate="G$1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="FenixBase">
<packages>
<package name="8DIPSMD">
<smd name="1" x="-3.81" y="-4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="2" x="-1.27" y="-4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="3" x="1.27" y="-4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="4" x="3.81" y="-4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="5" x="3.81" y="4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="6" x="1.27" y="4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="7" x="-1.27" y="4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<smd name="8" x="-3.81" y="4.445" dx="1.27" dy="1.1938" layer="1" rot="R90"/>
<wire x1="-5.08" y1="3.2512" x2="-5.08" y2="0.635" width="0.127" layer="21"/>
<wire x1="-5.08" y1="0.635" x2="-5.08" y2="-0.635" width="0.127" layer="21"/>
<wire x1="-5.08" y1="-0.635" x2="-5.08" y2="-2.54" width="0.127" layer="21"/>
<wire x1="-5.08" y1="-2.54" x2="-5.08" y2="-3.2512" width="0.127" layer="21"/>
<wire x1="-5.08" y1="-3.2512" x2="5.08" y2="-3.2512" width="0.127" layer="21"/>
<wire x1="5.08" y1="-3.2512" x2="5.08" y2="3.2512" width="0.127" layer="21"/>
<wire x1="5.08" y1="3.2512" x2="-5.08" y2="3.2512" width="0.127" layer="21"/>
<wire x1="-5.08" y1="0.635" x2="-5.08" y2="-0.635" width="0.127" layer="21" curve="-180"/>
<rectangle x1="-5.08" y1="-6.35" x2="-2.54" y2="-2.54" layer="21"/>
<wire x1="-5.08" y1="-3.2512" x2="-5.08" y2="-6.35" width="0.127" layer="21"/>
<wire x1="-5.08" y1="-6.35" x2="-2.54" y2="-6.35" width="0.127" layer="21"/>
<wire x1="-2.54" y1="-6.35" x2="-2.54" y2="-2.54" width="0.127" layer="21"/>
<wire x1="-2.54" y1="-2.54" x2="-5.08" y2="-2.54" width="0.127" layer="21"/>
</package>
</packages>
<symbols>
<symbol name="6N139S">
<pin name="ANODE" x="7.62" y="15.24" length="middle" rot="R270"/>
<pin name="CATHODE" x="-7.62" y="15.24" length="middle" rot="R270"/>
<pin name="VCC" x="7.62" y="-15.24" length="middle" rot="R90"/>
<pin name="VB" x="2.54" y="-15.24" length="middle" rot="R90"/>
<pin name="VO" x="-2.54" y="-15.24" length="middle" rot="R90"/>
<pin name="GND" x="-7.62" y="-15.24" length="middle" rot="R90"/>
<wire x1="-12.7" y1="10.16" x2="-7.62" y2="10.16" width="0.254" layer="94"/>
<wire x1="-7.62" y1="10.16" x2="7.62" y2="10.16" width="0.254" layer="94"/>
<wire x1="7.62" y1="10.16" x2="12.7" y2="10.16" width="0.254" layer="94"/>
<wire x1="12.7" y1="10.16" x2="12.7" y2="-10.16" width="0.254" layer="94"/>
<wire x1="12.7" y1="-10.16" x2="7.62" y2="-10.16" width="0.254" layer="94"/>
<wire x1="7.62" y1="-10.16" x2="2.54" y2="-10.16" width="0.254" layer="94"/>
<wire x1="2.54" y1="-10.16" x2="-2.54" y2="-10.16" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-10.16" x2="-7.62" y2="-10.16" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-10.16" x2="-12.7" y2="-10.16" width="0.254" layer="94"/>
<wire x1="-12.7" y1="-10.16" x2="-12.7" y2="10.16" width="0.254" layer="94"/>
<wire x1="-7.62" y1="10.16" x2="-5.08" y2="5.08" width="0.254" layer="94"/>
<wire x1="-5.08" y1="5.08" x2="-2.54" y2="5.08" width="0.254" layer="94"/>
<wire x1="-2.54" y1="5.08" x2="-2.54" y2="7.62" width="0.254" layer="94"/>
<wire x1="-2.54" y1="5.08" x2="-2.54" y2="2.54" width="0.254" layer="94"/>
<wire x1="-2.54" y1="5.08" x2="2.54" y2="7.62" width="0.254" layer="94"/>
<wire x1="2.54" y1="7.62" x2="2.54" y2="5.08" width="0.254" layer="94"/>
<wire x1="2.54" y1="5.08" x2="2.54" y2="2.54" width="0.254" layer="94"/>
<wire x1="2.54" y1="2.54" x2="-2.54" y2="5.08" width="0.254" layer="94"/>
<wire x1="2.54" y1="5.08" x2="5.08" y2="5.08" width="0.254" layer="94"/>
<wire x1="5.08" y1="5.08" x2="7.62" y2="10.16" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-10.16" x2="-3.302" y2="-7.62" width="0.254" layer="94"/>
<wire x1="-3.302" y1="-7.62" x2="-5.08" y2="-7.62" width="0.254" layer="94"/>
<wire x1="-5.08" y1="-7.62" x2="-6.858" y2="-7.62" width="0.254" layer="94"/>
<wire x1="-6.858" y1="-7.62" x2="-7.62" y2="-10.16" width="0.254" layer="94"/>
<wire x1="-5.08" y1="-7.62" x2="-5.08" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-5.08" y1="-5.08" x2="-2.54" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-5.08" x2="-1.778" y2="-2.54" width="0.254" layer="94"/>
<wire x1="-1.778" y1="-2.54" x2="0" y2="-2.54" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="1.524" y2="-2.54" width="0.254" layer="94"/>
<wire x1="1.524" y1="-2.54" x2="2.54" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-5.08" x2="-0.762" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-0.762" y1="-5.08" x2="-0.762" y2="-8.636" width="0.254" layer="94"/>
<wire x1="-0.762" y1="-8.636" x2="2.54" y2="-8.636" width="0.254" layer="94"/>
<wire x1="2.54" y1="-8.636" x2="2.54" y2="-10.16" width="0.254" layer="94"/>
<wire x1="2.54" y1="-5.08" x2="7.62" y2="-5.08" width="0.254" layer="94"/>
<wire x1="7.62" y1="-5.08" x2="7.62" y2="-10.16" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="0" y2="0" width="0.254" layer="94"/>
<wire x1="0" y1="0" x2="3.048" y2="0" width="0.254" layer="94"/>
<wire x1="3.048" y1="0" x2="3.302" y2="0" width="0.254" layer="94"/>
<wire x1="3.302" y1="0" x2="3.556" y2="0" width="0.254" layer="94"/>
<wire x1="3.556" y1="0" x2="3.81" y2="0" width="0.254" layer="94"/>
<wire x1="3.81" y1="0" x2="7.62" y2="0" width="0.254" layer="94"/>
<wire x1="7.62" y1="0" x2="7.62" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-6.858" y1="-7.62" x2="-3.302" y2="-7.62" width="0.508" layer="94"/>
<wire x1="-1.778" y1="-2.54" x2="1.524" y2="-2.54" width="0.508" layer="94"/>
<wire x1="-7.62" y1="-10.16" x2="-7.62" y2="-8.89" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-8.89" x2="-7.62" y2="-8.636" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-8.636" x2="-6.858" y2="-8.89" width="0.254" layer="94"/>
<wire x1="-6.858" y1="-8.89" x2="-7.62" y2="-10.16" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-5.08" x2="-2.54" y2="-4.572" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-4.572" x2="-2.54" y2="-3.556" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-3.556" x2="-1.778" y2="-3.81" width="0.254" layer="94"/>
<wire x1="-1.778" y1="-3.81" x2="-2.54" y2="-5.08" width="0.254" layer="94"/>
<wire x1="2.286" y1="1.016" x2="2.286" y2="-1.016" width="0.254" layer="94"/>
<wire x1="2.286" y1="1.016" x2="3.81" y2="0" width="0.254" layer="94"/>
<wire x1="3.81" y1="0" x2="2.286" y2="-1.016" width="0.254" layer="94"/>
<wire x1="3.81" y1="1.016" x2="3.81" y2="-1.016" width="0.254" layer="94"/>
<wire x1="2.54" y1="0.762" x2="2.54" y2="0.508" width="0.254" layer="94"/>
<wire x1="2.54" y1="0.508" x2="2.54" y2="-0.762" width="0.254" layer="94"/>
<wire x1="2.54" y1="-0.762" x2="2.794" y2="-0.508" width="0.254" layer="94"/>
<wire x1="2.794" y1="-0.508" x2="2.794" y2="0.508" width="0.254" layer="94"/>
<wire x1="2.794" y1="0.508" x2="2.54" y2="0.762" width="0.254" layer="94"/>
<wire x1="2.54" y1="0.762" x2="3.556" y2="0" width="0.254" layer="94"/>
<wire x1="3.556" y1="0" x2="2.54" y2="0.508" width="0.254" layer="94"/>
<wire x1="2.54" y1="0.508" x2="3.048" y2="0" width="0.254" layer="94"/>
<wire x1="3.048" y1="0" x2="2.794" y2="-0.508" width="0.254" layer="94"/>
<wire x1="2.794" y1="-0.508" x2="3.048" y2="-0.254" width="0.254" layer="94"/>
<wire x1="3.048" y1="-0.254" x2="3.302" y2="0" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-3.556" x2="-2.286" y2="-3.81" width="0.254" layer="94"/>
<wire x1="-2.286" y1="-3.81" x2="-2.032" y2="-4.064" width="0.254" layer="94"/>
<wire x1="-2.032" y1="-4.064" x2="-2.032" y2="-3.81" width="0.254" layer="94"/>
<wire x1="-2.032" y1="-3.81" x2="-2.286" y2="-3.81" width="0.254" layer="94"/>
<wire x1="-2.286" y1="-3.81" x2="-2.54" y2="-4.572" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-8.89" x2="-7.112" y2="-8.89" width="0.254" layer="94"/>
<wire x1="-7.112" y1="-8.89" x2="-7.112" y2="-9.144" width="0.254" layer="94"/>
<wire x1="-7.112" y1="-9.144" x2="-7.366" y2="-9.144" width="0.254" layer="94"/>
<wire x1="-7.366" y1="-9.144" x2="-7.62" y2="-8.89" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-8.89" x2="-7.366" y2="-9.398" width="0.254" layer="94"/>
<wire x1="3.556" y1="0" x2="3.048" y2="-0.254" width="0.254" layer="94"/>
<polygon width="0.254" layer="94">
<vertex x="-2.54" y="5.08"/>
<vertex x="2.54" y="7.62"/>
<vertex x="2.54" y="2.794"/>
</polygon>
</symbol>
</symbols>
<devicesets>
<deviceset name="6N139S">
<gates>
<gate name="G$1" symbol="6N139S" x="0" y="0"/>
</gates>
<devices>
<device name="" package="8DIPSMD">
<connects>
<connect gate="G$1" pin="ANODE" pad="2"/>
<connect gate="G$1" pin="CATHODE" pad="3"/>
<connect gate="G$1" pin="GND" pad="5"/>
<connect gate="G$1" pin="VB" pad="7"/>
<connect gate="G$1" pin="VCC" pad="8"/>
<connect gate="G$1" pin="VO" pad="6"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="OPL">
<packages>
<package name="C0603">
<description>0603
</description>
<wire x1="-1.397" y1="0.635" x2="1.397" y2="0.635" width="0.127" layer="21"/>
<wire x1="1.397" y1="0.635" x2="1.397" y2="-0.635" width="0.127" layer="21"/>
<wire x1="1.397" y1="-0.635" x2="-1.397" y2="-0.635" width="0.127" layer="21"/>
<wire x1="-1.397" y1="-0.635" x2="-1.397" y2="0.635" width="0.127" layer="21"/>
<smd name="1" x="-0.762" y="0" dx="0.889" dy="0.889" layer="1" roundness="25" cream="no"/>
<smd name="2" x="0.762" y="0" dx="0.889" dy="0.889" layer="1" roundness="25" cream="no"/>
<text x="0" y="0" size="0.508" layer="25" ratio="11" align="center">>NAME</text>
<text x="0" y="-0.9525" size="0.508" layer="27" ratio="10" align="top-center">>VALUE</text>
<rectangle x1="-1.397" y1="-0.635" x2="1.397" y2="0.635" layer="39"/>
<polygon width="0.1" layer="31">
<vertex x="-1.0922" y="0.3302"/>
<vertex x="-1.0922" y="-0.3302"/>
<vertex x="-0.508" y="-0.3302"/>
<vertex x="-0.4318" y="0"/>
<vertex x="-0.508" y="0.3302"/>
</polygon>
<polygon width="0.1" layer="31">
<vertex x="1.0922" y="-0.3302"/>
<vertex x="1.0922" y="0.3302"/>
<vertex x="0.508" y="0.3302"/>
<vertex x="0.4318" y="0"/>
<vertex x="0.508" y="-0.3302"/>
</polygon>
</package>
<package name="C0805">
<description>0805
</description>
<wire x1="1.651" y1="0.889" x2="1.651" y2="-0.889" width="0.127" layer="21"/>
<wire x1="1.651" y1="-0.889" x2="-1.651" y2="-0.889" width="0.127" layer="21"/>
<wire x1="-1.651" y1="-0.889" x2="-1.651" y2="0.889" width="0.127" layer="21"/>
<wire x1="-1.651" y1="0.889" x2="1.651" y2="0.889" width="0.127" layer="21"/>
<smd name="1" x="-0.889" y="0" dx="1.016" dy="1.397" layer="1" roundness="25"/>
<smd name="2" x="0.889" y="0" dx="1.016" dy="1.397" layer="1" roundness="25"/>
<text x="-1.905" y="1.27" size="0.889" layer="25" font="vector" ratio="11">>NAME</text>
<text x="-1.651" y="-0.254" size="0.635" layer="27" ratio="10">>VALUE</text>
<rectangle x1="-1.651" y1="-0.889" x2="1.651" y2="0.889" layer="39"/>
</package>
<package name="C1812">
<description>CAPACITOR</description>
<wire x1="-2.973" y1="1.983" x2="2.973" y2="1.983" width="0.0508" layer="39"/>
<wire x1="2.973" y1="-1.983" x2="-2.973" y2="-1.983" width="0.0508" layer="39"/>
<wire x1="-2.973" y1="-1.983" x2="-2.973" y2="1.983" width="0.0508" layer="39"/>
<wire x1="-1.4732" y1="1.6002" x2="1.4732" y2="1.6002" width="0.1016" layer="51"/>
<wire x1="-1.4478" y1="-1.6002" x2="1.4732" y2="-1.6002" width="0.1016" layer="51"/>
<wire x1="2.973" y1="1.983" x2="2.973" y2="-1.983" width="0.0508" layer="39"/>
<smd name="1" x="-1.95" y="0" dx="1.9" dy="3.4" layer="1"/>
<smd name="2" x="1.95" y="0" dx="1.9" dy="3.4" layer="1"/>
<text x="-1.905" y="2.54" size="1.27" layer="25">>NAME</text>
<text x="-1.905" y="-3.81" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-2.3876" y1="-1.651" x2="-1.4376" y2="1.649" layer="51"/>
<rectangle x1="1.4478" y1="-1.651" x2="2.3978" y2="1.649" layer="51"/>
<rectangle x1="-0.3" y1="-0.4001" x2="0.3" y2="0.4001" layer="35"/>
</package>
<package name="C3216">
<smd name="P$1" x="-1.4478" y="0" dx="1.6002" dy="0.889" layer="1" rot="R90"/>
<smd name="P$2" x="1.4478" y="0" dx="1.6002" dy="0.889" layer="1" rot="R90"/>
<wire x1="-2.032" y1="0.889" x2="-2.032" y2="-0.889" width="0.127" layer="21"/>
<wire x1="-2.032" y1="-0.889" x2="2.032" y2="-0.889" width="0.127" layer="21"/>
<wire x1="2.032" y1="-0.889" x2="2.032" y2="0.889" width="0.127" layer="21"/>
<wire x1="2.032" y1="0.889" x2="-2.032" y2="0.889" width="0.127" layer="21"/>
<wire x1="-0.762" y1="0" x2="-0.254" y2="0" width="0.127" layer="21"/>
<wire x1="-0.254" y1="0.381" x2="-0.254" y2="0" width="0.127" layer="21"/>
<wire x1="-0.254" y1="0" x2="-0.254" y2="-0.381" width="0.127" layer="21"/>
<wire x1="0.254" y1="0.381" x2="0.254" y2="0" width="0.127" layer="21"/>
<wire x1="0.254" y1="0" x2="0.254" y2="-0.381" width="0.127" layer="21"/>
<wire x1="0.254" y1="0" x2="0.762" y2="0" width="0.127" layer="21"/>
</package>
<package name="C3225">
<smd name="P$1" x="-1.4478" y="0" dx="2.5002" dy="0.889" layer="1" rot="R90"/>
<smd name="P$2" x="1.4478" y="0" dx="2.5002" dy="0.889" layer="1" rot="R90"/>
<wire x1="-2.032" y1="1.339" x2="-2.032" y2="-1.339" width="0.127" layer="21"/>
<wire x1="-2.032" y1="-1.339" x2="2.032" y2="-1.339" width="0.127" layer="21"/>
<wire x1="2.032" y1="-1.339" x2="2.032" y2="1.339" width="0.127" layer="21"/>
<wire x1="2.032" y1="1.339" x2="-2.032" y2="1.339" width="0.127" layer="21"/>
<wire x1="-0.762" y1="0" x2="-0.254" y2="0" width="0.127" layer="21"/>
<wire x1="-0.254" y1="0.381" x2="-0.254" y2="0" width="0.127" layer="21"/>
<wire x1="-0.254" y1="0" x2="-0.254" y2="-0.381" width="0.127" layer="21"/>
<wire x1="0.254" y1="0.381" x2="0.254" y2="0" width="0.127" layer="21"/>
<wire x1="0.254" y1="0" x2="0.254" y2="-0.381" width="0.127" layer="21"/>
<wire x1="0.254" y1="0" x2="0.762" y2="0" width="0.127" layer="21"/>
</package>
<package name="R0603">
<wire x1="-1.397" y1="0.635" x2="1.397" y2="0.635" width="0.127" layer="21"/>
<wire x1="1.397" y1="0.635" x2="1.397" y2="-0.635" width="0.127" layer="21"/>
<wire x1="1.397" y1="-0.635" x2="-1.397" y2="-0.635" width="0.127" layer="21"/>
<wire x1="-1.397" y1="-0.635" x2="-1.397" y2="0.635" width="0.127" layer="21"/>
<smd name="1" x="-0.762" y="0" dx="0.889" dy="0.889" layer="1" roundness="25" cream="no"/>
<smd name="2" x="0.762" y="0" dx="0.889" dy="0.889" layer="1" roundness="25" cream="no"/>
<text x="0" y="0" size="0.508" layer="25" ratio="11" align="center">>NAME</text>
<text x="-1.397" y="-1.3175" size="0.508" layer="27" ratio="10">>VALUE</text>
<rectangle x1="-1.397" y1="-0.635" x2="1.397" y2="0.635" layer="39"/>
<polygon width="0.1" layer="31">
<vertex x="-1.0922" y="0.3302"/>
<vertex x="-1.0922" y="-0.3302"/>
<vertex x="-0.762" y="-0.3302"/>
<vertex x="-0.4318" y="0"/>
<vertex x="-0.762" y="0.3302"/>
</polygon>
<polygon width="0.1" layer="31">
<vertex x="1.0922" y="-0.3302"/>
<vertex x="1.0922" y="0.3302"/>
<vertex x="0.762" y="0.3302"/>
<vertex x="0.4318" y="0"/>
<vertex x="0.762" y="-0.3302"/>
</polygon>
</package>
</packages>
<symbols>
<symbol name="C">
<wire x1="-0.381" y1="0" x2="-1.27" y2="0" width="0.1524" layer="94"/>
<wire x1="1.27" y1="0" x2="0.381" y2="0" width="0.1524" layer="94"/>
<pin name="1" x="-3.81" y="0" visible="off" length="short"/>
<pin name="2" x="3.81" y="0" visible="off" length="short" rot="R180"/>
<text x="-0.5715" y="0.254" size="0.635" layer="95" ratio="10" align="bottom-right">>NAME</text>
<text x="0.5715" y="0.254" size="0.635" layer="96" ratio="10">>VALUE</text>
<rectangle x1="-0.381" y1="-0.6985" x2="-0.1905" y2="0.6985" layer="94"/>
<rectangle x1="0.1905" y1="-0.6985" x2="0.381" y2="0.6985" layer="94"/>
</symbol>
<symbol name="R">
<wire x1="-1.27" y1="0.381" x2="1.27" y2="0.381" width="0.0508" layer="94"/>
<wire x1="1.27" y1="0.381" x2="1.27" y2="0" width="0.0508" layer="94"/>
<wire x1="1.27" y1="0" x2="1.27" y2="-0.381" width="0.0508" layer="94"/>
<wire x1="1.27" y1="-0.381" x2="-1.27" y2="-0.381" width="0.0508" layer="94"/>
<wire x1="-1.27" y1="-0.381" x2="-1.27" y2="0" width="0.0508" layer="94"/>
<wire x1="-1.27" y1="0.381" x2="-1.27" y2="0" width="0.0508" layer="94"/>
<wire x1="-1.27" y1="0" x2="-2.54" y2="0" width="0.1524" layer="94"/>
<wire x1="1.27" y1="0" x2="2.54" y2="0" width="0.1524" layer="94"/>
<pin name="1" x="-3.81" y="0" visible="off" length="short"/>
<pin name="2" x="3.81" y="0" visible="off" length="short" rot="R180"/>
<text x="-1.524" y="0.254" size="0.762" layer="95" font="vector" ratio="10" align="bottom-right">>NAME</text>
<text x="0" y="-1.524" size="1.778" layer="96" ratio="10" align="center">>VALUE</text>
</symbol>
</symbols>
<devicesets>
<deviceset name="C*" prefix="C" uservalue="yes">
<gates>
<gate name="C" symbol="C" x="0" y="0"/>
</gates>
<devices>
<device name="-0603" package="C0603">
<connects>
<connect gate="C" pin="1" pad="1"/>
<connect gate="C" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-0805" package="C0805">
<connects>
<connect gate="C" pin="1" pad="1"/>
<connect gate="C" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-1812" package="C1812">
<connects>
<connect gate="C" pin="1" pad="1"/>
<connect gate="C" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-1206" package="C3216">
<connects>
<connect gate="C" pin="1" pad="P$1"/>
<connect gate="C" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-1210" package="C3225">
<connects>
<connect gate="C" pin="1" pad="P$1"/>
<connect gate="C" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="R*" prefix="R" uservalue="yes">
<gates>
<gate name="R" symbol="R" x="0" y="0"/>
</gates>
<devices>
<device name="-0603" package="R0603">
<connects>
<connect gate="R" pin="1" pad="1"/>
<connect gate="R" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="" package="C0805">
<connects>
<connect gate="R" pin="1" pad="1"/>
<connect gate="R" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="adafruit">
<packages>
<package name="TO92-EBC-OVAL">
<description>TO-92

grid 5.08 mm</description>
<wire x1="-2.095" y1="-2.921" x2="2.095" y2="-2.921" width="0.127" layer="21"/>
<wire x1="-2.413" y1="-0.1341" x2="2.413" y2="-0.1341" width="0.127" layer="21" curve="-129.583345" cap="flat"/>
<wire x1="1.136" y1="-1.397" x2="-1.136" y2="-1.397" width="0.127" layer="51"/>
<wire x1="-2.413" y1="-0.1341" x2="-2.413" y2="-2.4059" width="0.127" layer="51" curve="50.416655" cap="flat"/>
<wire x1="-1.404" y1="-1.397" x2="-2.664" y2="-1.397" width="0.127" layer="51"/>
<wire x1="-2.4135" y1="-2.4059" x2="-2.095" y2="-2.921" width="0.127" layer="21" curve="13.038528" cap="flat"/>
<wire x1="-1.136" y1="-1.397" x2="-1.404" y2="-1.397" width="0.127" layer="21"/>
<wire x1="2.413" y1="-2.4059" x2="2.413" y2="-0.1341" width="0.127" layer="51" curve="50.416655" cap="flat"/>
<wire x1="2.664" y1="-1.397" x2="1.404" y2="-1.397" width="0.127" layer="51"/>
<wire x1="1.404" y1="-1.397" x2="1.136" y2="-1.397" width="0.127" layer="21"/>
<wire x1="2.095" y1="-2.921" x2="2.4247" y2="-2.3818" width="0.127" layer="21" curve="13.609443" cap="flat"/>
<pad name="E" x="-2.54" y="-1.27" drill="0.8128" shape="long" rot="R90"/>
<pad name="C" x="2.54" y="-1.27" drill="0.8128" shape="long" rot="R90"/>
<pad name="B" x="0" y="-1.27" drill="0.8128" shape="long" rot="R90"/>
<text x="-2.54" y="1.778" size="1.27" layer="25" ratio="10">>NAME</text>
<text x="-2.54" y="-4.572" size="1.27" layer="27" ratio="10">>VALUE</text>
</package>
</packages>
<symbols>
<symbol name="PNP">
<wire x1="2.086" y1="1.678" x2="1.578" y2="2.594" width="0.1524" layer="94"/>
<wire x1="1.578" y1="2.594" x2="0.516" y2="1.478" width="0.1524" layer="94"/>
<wire x1="0.516" y1="1.478" x2="2.086" y2="1.678" width="0.1524" layer="94"/>
<wire x1="2.54" y1="2.54" x2="1.808" y2="2.124" width="0.1524" layer="94"/>
<wire x1="2.54" y1="-2.54" x2="0.508" y2="-1.524" width="0.1524" layer="94"/>
<wire x1="1.905" y1="1.778" x2="1.524" y2="2.413" width="0.254" layer="94"/>
<wire x1="1.524" y1="2.413" x2="0.762" y2="1.651" width="0.254" layer="94"/>
<wire x1="0.762" y1="1.651" x2="1.778" y2="1.778" width="0.254" layer="94"/>
<wire x1="1.778" y1="1.778" x2="1.524" y2="2.159" width="0.254" layer="94"/>
<wire x1="1.524" y1="2.159" x2="1.143" y2="1.905" width="0.254" layer="94"/>
<wire x1="1.143" y1="1.905" x2="1.524" y2="1.905" width="0.254" layer="94"/>
<text x="-10.16" y="7.62" size="1.778" layer="95">>NAME</text>
<text x="-10.16" y="5.08" size="1.778" layer="96">>VALUE</text>
<rectangle x1="-0.254" y1="-2.54" x2="0.508" y2="2.54" layer="94"/>
<pin name="B" x="-2.54" y="0" visible="off" length="short" direction="pas"/>
<pin name="E" x="2.54" y="5.08" visible="off" length="short" direction="pas" rot="R270"/>
<pin name="C" x="2.54" y="-5.08" visible="off" length="short" direction="pas" rot="R90"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="2N2907*" prefix="Q">
<description>PNP Transistor
Big Oval pads</description>
<gates>
<gate name="G$1" symbol="PNP" x="0" y="0"/>
</gates>
<devices>
<device name="" package="TO92-EBC-OVAL">
<connects>
<connect gate="G$1" pin="B" pad="B"/>
<connect gate="G$1" pin="C" pad="C"/>
<connect gate="G$1" pin="E" pad="E"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0.254" drill="0">
</class>
<class number="1" name="power" width="0.5" drill="0">
</class>
<class number="2" name="mediumpower" width="0.381" drill="0">
</class>
<class number="3" name="groundplane" width="0.381" drill="0">
</class>
</classes>
<parts>
<part name="SWD1" library="carrilib with jtags" deviceset="CORTEX_SWD" device="">
<attribute name="MF" value=""/>
<attribute name="MPN" value=""/>
<attribute name="OC_FARNELL" value="unknown"/>
</part>
<part name="SWD2" library="carrilib with jtags" deviceset="CORTEX_SWD" device="">
<attribute name="MF" value=""/>
<attribute name="MPN" value=""/>
<attribute name="OC_FARNELL" value="unknown"/>
</part>
<part name="U$20" library="FenixBase" deviceset="6N139S" device=""/>
<part name="C2" library="OPL" deviceset="C*" device="-0603" value="100n"/>
<part name="Q1" library="adafruit" deviceset="2N2907*" device=""/>
<part name="U$1" library="FenixBase" deviceset="6N139S" device=""/>
<part name="R1" library="OPL" deviceset="R*" device="-0603" value="560"/>
<part name="R2" library="OPL" deviceset="R*" device="-0603" value="560"/>
<part name="Q2" library="adafruit" deviceset="2N2907*" device=""/>
<part name="U$2" library="FenixBase" deviceset="6N139S" device=""/>
<part name="R6" library="OPL" deviceset="R*" device="-0603" value="560"/>
</parts>
<sheets>
<sheet>
<plain>
</plain>
<instances>
<instance part="SWD1" gate="G$1" x="45.72" y="46.99">
<attribute name="OC_FARNELL" x="45.72" y="46.99" size="1.778" layer="96" display="off"/>
<attribute name="MF" x="45.72" y="46.99" size="1.778" layer="96" display="off"/>
<attribute name="MPN" x="45.72" y="46.99" size="1.778" layer="96" display="off"/>
</instance>
<instance part="SWD2" gate="G$1" x="201.93" y="49.53">
<attribute name="OC_FARNELL" x="201.93" y="49.53" size="1.778" layer="96" display="off"/>
<attribute name="MF" x="201.93" y="49.53" size="1.778" layer="96" display="off"/>
<attribute name="MPN" x="201.93" y="49.53" size="1.778" layer="96" display="off"/>
</instance>
<instance part="U$20" gate="G$1" x="132.08" y="36.83" rot="R90"/>
<instance part="C2" gate="C" x="166.37" y="50.8" rot="R90"/>
<instance part="Q1" gate="G$1" x="149.86" y="-20.32" rot="MR0"/>
<instance part="U$1" gate="G$1" x="132.08" y="-7.62" rot="MR90"/>
<instance part="R1" gate="R" x="153.67" y="0" rot="R180"/>
<instance part="R2" gate="R" x="105.41" y="40.64" rot="R270"/>
<instance part="Q2" gate="G$1" x="114.3" y="24.13"/>
<instance part="U$2" gate="G$1" x="132.08" y="110.49" rot="R90"/>
<instance part="R6" gate="R" x="101.6" y="118.11" rot="R180"/>
</instances>
<busses>
</busses>
<nets>
<net name="HOST_RESET" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="RESET"/>
<wire x1="60.96" y1="41.91" x2="69.85" y2="41.91" width="0.1524" layer="91"/>

</segment>
</net>
<net name="HOST_GND" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="GND3"/>
<wire x1="33.02" y1="41.91" x2="29.21" y2="41.91" width="0.1524" layer="91"/>
<wire x1="29.21" y1="41.91" x2="29.21" y2="46.99" width="0.1524" layer="91"/>
<pinref part="SWD1" gate="G$1" pin="GND2"/>
<wire x1="29.21" y1="46.99" x2="33.02" y2="46.99" width="0.1524" layer="91"/>
<pinref part="SWD1" gate="G$1" pin="GND1"/>
<wire x1="33.02" y1="49.53" x2="29.21" y2="49.53" width="0.1524" layer="91"/>
<wire x1="29.21" y1="49.53" x2="29.21" y2="46.99" width="0.1524" layer="91"/>
<wire x1="29.21" y1="49.53" x2="20.32" y2="49.53" width="0.1524" layer="91"/>

<junction x="29.21" y="49.53"/>
<junction x="29.21" y="46.99"/>
<wire x1="29.21" y1="41.91" x2="29.21" y2="11.43" width="0.1524" layer="91"/>
<pinref part="U$1" gate="G$1" pin="GND"/>
<wire x1="29.21" y1="11.43" x2="29.21" y2="-17.78" width="0.1524" layer="91"/>
<wire x1="29.21" y1="-17.78" x2="116.84" y2="-17.78" width="0.1524" layer="91"/>
<wire x1="116.84" y1="-17.78" x2="116.84" y2="-15.24" width="0.1524" layer="91"/>
<pinref part="Q2" gate="G$1" pin="C"/>
<wire x1="116.84" y1="19.05" x2="116.84" y2="11.43" width="0.1524" layer="91"/>
<wire x1="116.84" y1="11.43" x2="29.21" y2="11.43" width="0.1524" layer="91"/>
<junction x="29.21" y="11.43"/>
</segment>
<segment>
<pinref part="U$2" gate="G$1" pin="CATHODE"/>
<wire x1="88.9" y1="102.87" x2="116.84" y2="102.87" width="0.1524" layer="91"/>

</segment>
</net>
<net name="HOST_VCC" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="VCC"/>
<wire x1="33.02" y1="52.07" x2="20.32" y2="52.07" width="0.1524" layer="91"/>

</segment>
</net>
<net name="HOST_DAT" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="SWDIO"/>
<wire x1="60.96" y1="52.07" x2="69.85" y2="52.07" width="0.1524" layer="91"/>

</segment>
</net>
<net name="HOST_CLK" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="SWCLK"/>

<wire x1="60.96" y1="49.53" x2="81.28" y2="49.53" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R6" gate="R" pin="2"/>
<wire x1="81.28" y1="118.11" x2="97.79" y2="118.11" width="0.1524" layer="91"/>

</segment>
</net>
<net name="HOST_SWO" class="0">
<segment>
<pinref part="SWD1" gate="G$1" pin="SWO"/>
<wire x1="60.96" y1="46.99" x2="69.85" y2="46.99" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TARGET_VCC" class="0">
<segment>
<pinref part="U$20" gate="G$1" pin="VCC"/>
<wire x1="147.32" y1="44.45" x2="151.13" y2="44.45" width="0.1524" layer="91"/>
<wire x1="151.13" y1="44.45" x2="151.13" y2="54.61" width="0.1524" layer="91"/>
<pinref part="SWD2" gate="G$1" pin="VCC"/>
<wire x1="151.13" y1="54.61" x2="166.37" y2="54.61" width="0.1524" layer="91"/>

<wire x1="166.37" y1="54.61" x2="189.23" y2="54.61" width="0.1524" layer="91"/>
<wire x1="151.13" y1="44.45" x2="151.13" y2="39.37" width="0.1524" layer="91"/>
<junction x="151.13" y="44.45"/>
<pinref part="U$20" gate="G$1" pin="VB"/>
<wire x1="147.32" y1="39.37" x2="151.13" y2="39.37" width="0.1524" layer="91"/>
<pinref part="C2" gate="C" pin="2"/>
<junction x="166.37" y="54.61"/>
</segment>
<segment>
<pinref part="U$2" gate="G$1" pin="VCC"/>
<wire x1="147.32" y1="118.11" x2="151.13" y2="118.11" width="0.1524" layer="91"/>
<wire x1="151.13" y1="118.11" x2="172.72" y2="118.11" width="0.1524" layer="91"/>

<wire x1="151.13" y1="118.11" x2="151.13" y2="113.03" width="0.1524" layer="91"/>
<junction x="151.13" y="118.11"/>
<pinref part="U$2" gate="G$1" pin="VB"/>
<wire x1="147.32" y1="113.03" x2="151.13" y2="113.03" width="0.1524" layer="91"/>
<junction x="151.13" y="113.03"/>
</segment>
<segment>
<pinref part="R1" gate="R" pin="1"/>
<wire x1="157.48" y1="0" x2="167.64" y2="0" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TARGET_GND" class="0">
<segment>
<pinref part="U$20" gate="G$1" pin="GND"/>
<wire x1="147.32" y1="29.21" x2="160.02" y2="29.21" width="0.1524" layer="91"/>

</segment>
<segment>

<pinref part="U$2" gate="G$1" pin="GND"/>
<wire x1="147.32" y1="102.87" x2="172.72" y2="102.87" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="Q1" gate="G$1" pin="C"/>
<wire x1="147.32" y1="-25.4" x2="147.32" y2="-27.94" width="0.1524" layer="91"/>
<wire x1="147.32" y1="-27.94" x2="170.18" y2="-27.94" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="SWD2" gate="G$1" pin="GND3"/>
<pinref part="SWD2" gate="G$1" pin="GND2"/>
<wire x1="189.23" y1="49.53" x2="185.42" y2="49.53" width="0.1524" layer="91"/>
<pinref part="SWD2" gate="G$1" pin="GND1"/>
<wire x1="189.23" y1="52.07" x2="185.42" y2="52.07" width="0.1524" layer="91"/>
<junction x="185.42" y="52.07"/>
<wire x1="185.42" y1="52.07" x2="185.42" y2="49.53" width="0.1524" layer="91"/>
<junction x="185.42" y="49.53"/>
<wire x1="185.42" y1="49.53" x2="185.42" y2="44.45" width="0.1524" layer="91"/>
<wire x1="185.42" y1="44.45" x2="189.23" y2="44.45" width="0.1524" layer="91"/>
<junction x="185.42" y="44.45"/>
<pinref part="C2" gate="C" pin="1"/>
<wire x1="166.37" y1="46.99" x2="166.37" y2="44.45" width="0.1524" layer="91"/>
<wire x1="166.37" y1="44.45" x2="185.42" y2="44.45" width="0.1524" layer="91"/>

</segment>
</net>
<net name="N$1" class="0">
<segment>
<pinref part="U$1" gate="G$1" pin="CATHODE"/>
<pinref part="Q1" gate="G$1" pin="E"/>
</segment>
</net>
<net name="TARGET_DAT" class="0">
<segment>
<pinref part="Q1" gate="G$1" pin="B"/>
<wire x1="152.4" y1="-20.32" x2="189.23" y2="-20.32" width="0.1524" layer="91"/>
<wire x1="189.23" y1="-20.32" x2="189.23" y2="13.97" width="0.1524" layer="91"/>
<pinref part="U$20" gate="G$1" pin="VO"/>
<wire x1="189.23" y1="13.97" x2="189.23" y2="34.29" width="0.1524" layer="91"/>
<wire x1="147.32" y1="34.29" x2="189.23" y2="34.29" width="0.1524" layer="91"/>
<wire x1="189.23" y1="13.97" x2="240.03" y2="13.97" width="0.1524" layer="91"/>
<wire x1="240.03" y1="13.97" x2="240.03" y2="54.61" width="0.1524" layer="91"/>
<pinref part="SWD2" gate="G$1" pin="SWDIO"/>
<wire x1="240.03" y1="54.61" x2="217.17" y2="54.61" width="0.1524" layer="91"/>
<junction x="189.23" y="13.97"/>

</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="U$1" gate="G$1" pin="ANODE"/>
<pinref part="R1" gate="R" pin="2"/>
<wire x1="149.86" y1="0" x2="147.32" y2="0" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="U$1" gate="G$1" pin="VB"/>
<pinref part="U$1" gate="G$1" pin="VCC"/>
<wire x1="116.84" y1="-5.08" x2="116.84" y2="0" width="0.1524" layer="91"/>
<wire x1="116.84" y1="0" x2="105.41" y2="0" width="0.1524" layer="91"/>
<pinref part="R2" gate="R" pin="2"/>
<wire x1="105.41" y1="36.83" x2="105.41" y2="0" width="0.1524" layer="91"/>
<junction x="105.41" y="0"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="U$20" gate="G$1" pin="ANODE"/>
<pinref part="R2" gate="R" pin="1"/>
<wire x1="105.41" y1="44.45" x2="116.84" y2="44.45" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="U$20" gate="G$1" pin="CATHODE"/>
<pinref part="Q2" gate="G$1" pin="E"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="U$2" gate="G$1" pin="ANODE"/>
<pinref part="R6" gate="R" pin="1"/>
<wire x1="105.41" y1="118.11" x2="116.84" y2="118.11" width="0.1524" layer="91"/>
</segment>
</net>
<net name="TARGET_CLK" class="0">
<segment>
<pinref part="SWD2" gate="G$1" pin="SWCLK"/>
<wire x1="217.17" y1="52.07" x2="237.49" y2="52.07" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$2" gate="G$1" pin="VO"/>
<wire x1="147.32" y1="107.95" x2="172.72" y2="107.95" width="0.1524" layer="91"/>

</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
</eagle>

repository: ThisIsNotRocketScience/Eurorack-Modules

repo_name: ThisIsNotRocketScience/Eurorack-Modules

extension: sch


text:
require rauc.inc
PR = "r9"

SRC_URI_append = " \
	git://github.com/jluebbe/rauc.git;protocol=https \
	"

PV = "0+git${SRCPV}"
S = "${WORKDIR}/git"

SRCREV = "aece736bba159f13427feae41b4f17039f6d979f"

repository: gportay/meta-ptx

repo_name: gportay/meta-ptx