Skip to content

Instantly share code, notes, and snippets.

Vin = 24.00 ±2% V
Vout = 3.30 V
Iout = 0.60 A
Vripple = 0.02 V
Vin min = 23.52 V
Ton / Toff = 0.19
Ton + Toff = 13.33 µs (micro seconds)
Toff = 11.23 µs (micro seconds)
Ton = 2.11 µs (micro seconds)
Ct = 84.26 pF
@reportingsjr
reportingsjr / gist:4e3696c565000a31bd0c
Created October 16, 2014 04:14
STM32 hello world
#include "stm32f10x.h"
int main(void) {
int delay;
// Enable the clock for port C gpio
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
// Configure port C, pin 8 as a push pull output
GPIOC->CRH = (GPIOC->CRH & 0xFFFFFFF0) | 0x00000002;
@reportingsjr
reportingsjr / gist:6fddc9955963935377b2
Created November 13, 2014 05:02
STM32F100 test code
// Thumb2 Newlib Toolchain example project
// Written by Elias Önal <EliasOenal@gmail.com>, released as public domain.
#include <stdio.h>
#include <stdint.h>
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"
void delay(volatile unsigned int count);
/*
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
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
#include "ch.h"
#include "hal.h"
#include "test.h"
static void spicb(SPIDriver *spip);
static const SPIConfig spicfg = {
spicb,
GPIOA,
GPIOA_SPI1NSS,
@reportingsjr
reportingsjr / drcZoom.patch
Created June 17, 2015 22:20
kicad drc zoom patch
diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp
index 4eafff3..30fab4b 100644
--- a/pcbnew/dialogs/dialog_drc.cpp
+++ b/pcbnew/dialogs/dialog_drc.cpp
@@ -32,12 +32,15 @@
#include <wxPcbStruct.h>
#include <base_units.h>
#include <class_board_design_settings.h>
-
+#include <class_draw_panel_gal.h>
SodaTemp plugin
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
import feedparser
try:
from supybot.i18n import PluginInternationalization
_ = PluginInternationalization('SodaTemp')
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<project>
<actions/>
<description>
This job is running the checklib.py magic from <a href="https://github.com/KiCad/kicad-library-utils">https://github.com/KiCad/kicad-library-utils</a>.
<br>
Checklib.py is a script that checks compliance of symbols in relation to the KiCad Library Convention (KLC).
</description>
<keepDependencies>false</keepDependencies>
<properties>
@reportingsjr
reportingsjr / main.rs
Created April 15, 2017 16:23
Rust TcpStream issues
use std::io::prelude::*;
use std::net::{TcpStream, Shutdown};
extern crate byteorder;
use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt};
#[macro_use]
extern crate bitflags;
use std::io::prelude::*;
use std::net::{TcpStream, Shutdown};
extern crate byteorder;
use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt};
#[macro_use]
extern crate bitflags;