Skip to content

Instantly share code, notes, and snippets.

View jeremyherbert's full-sized avatar
🦆
🪿

Jeremy Herbert jeremyherbert

🦆
🪿
View GitHub Profile
@jeremyherbert
jeremyherbert / IRQ.txt
Created January 19, 2012 08:34
STM32F4 External IRQ list
WWDG_IRQHandler
PVD_IRQHandler
TAMP_STAMP_IRQHandler
RTC_WKUP_IRQHandler
FLASH_IRQHandler
RCC_IRQHandler
EXTI0_IRQHandler
EXTI1_IRQHandler
EXTI2_IRQHandler
EXTI3_IRQHandler
### Keybase proof
I hereby claim:
* I am jeremyherbert on github.
* I am jeremyherbert (https://keybase.io/jeremyherbert) on keybase.
* I have a public key whose fingerprint is 5582 51B9 1759 9350 7A11 7179 AC81 4256 1474 71D5
To claim this, I am signing this object:
@jeremyherbert
jeremyherbert / gist:9636865
Created March 19, 2014 07:15
code composer studio
sudo apt-get install libc6-i386 libasound2:i386 libjpeg62:i386 libatk1.0-0:i386 libcairo2:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libfontconfig1:i386 libfreetype6:i386 libgconf-2-4:i386 libgdk-pixbuf2.0-0:i386 libgtk2.0-0:i386 libice6:i386 lib32ncurses5 liborbit2:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpng12-0:i386 libsm6:i386 lib32stdc++6 libusb-0.1-4:i386 libx11-6:i386 libxext6:i386 libxi6:i386 libxrender1:i386 libxt6:i386 libxtst6:i386 lib32z1 libgnomevfs2-0:i386
////// nvcc_test.h
#ifndef _NVCC_TEST_H_
#define _NVCC_TEST_H_
#include <vector>
std::vector<int> get_v();
#endif
/home/jeremy/fun/src/unit_test/../Selene/include/selene/Obj.h(67): error: an rvalue reference cannot be bound to an lvalue
detected during:
instantiation of "void sel::Obj<T, Members...>::_register_member(lua_State *, T *, const char *, Ret (T::*)(Args...)) [with T=std::vector<int, std::allocator<int>>, Members=<const char *, void (std::vector<int, std::allocator<int>>::*)(int &&)>, Ret=void, Args=<int &&>]"
(82): here
instantiation of "void sel::Obj<T, Members...>::_register_members(lua_State *, T *, const char *, M, Ms...) [with T=std::vector<int, std::allocator<int>>, Members=<const char *, void (std::vector<int, std::allocator<int>>::*)(int &&)>, M=void (std::vector<int, std::allocator<int>>::*)(int &&), Ms=<>]"
(88): here
instantiation of "sel::Obj<T, Members...>::Obj(lua_State *, T *, Members...) [with T=std::vector<int, std::allocator<int>>, Members=<const char *, void (std::vector<int, std::allocator<int>>::*)(int &&)>]"
/home/jeremy/fun/src/unit_test/../S
@jeremyherbert
jeremyherbert / gist:84c10a4af766c4d6c9a5
Created January 11, 2015 20:10
Make run for cocotb
$ make
make -k -C examples
make[1]: Entering directory `/home/jeremy/cocotb/examples'
make[2]: Entering directory `/home/jeremy/cocotb/examples/plusargs'
make results.xml
make[3]: Entering directory `/home/jeremy/cocotb/examples/plusargs'
mkdir -p sim_build
iverilog -o sim_build/sim.vvp -D COCOTB_SIM=1 /home/jeremy/cocotb/examples/plusargs/tb_top.v
mkdir -p /home/jeremy/cocotb/build/obj/x86_64
mkdir -p /home/jeremy/cocotb/build/libs/x86_64
achi pro sc default setup:
Sensor break power -> 0.0
Cycle time 2 (output 2 - cool) -> 10.0
Cycle time 1 (output 1 - heat) -> 3.0
Deviation alarm setpoint -> 1.00
High alarm setpoint -> 300.
Holdback -> 0.
Heat (output 1) output limit -> 100.0
Setpoint high limit -> 260.
@jeremyherbert
jeremyherbert / gist:d6ec7f2624b038289db0f16002428c92
Created December 11, 2019 05:18
conda list for windows 10 x64
# packages in environment at C:\Users\jeremy\Anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
alabaster 0.7.12 py37_0
anaconda 2019.10 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
anaconda-project 0.8.3 py_0
asn1crypto 1.0.1 py37_0
@jeremyherbert
jeremyherbert / gist:a57d667b3162f9e2e85d4e3f53675e2b
Created December 11, 2019 05:27
working conda list for pyside2 windows install
# packages in environment at C:\Users\jeremy\Anaconda3\envs\testenvqt:
#
# Name Version Build Channel
ca-certificates 2019.11.28 hecc5488_0 conda-forge
certifi 2019.11.28 py37_0 conda-forge
clang 9.0.0 default_hf44288c_4 conda-forge
clang-tools 9.0.0 default_hf44288c_4 conda-forge
clangdev 9.0.0 default_hf44288c_4 conda-forge
clangxx 9.0.0 default_h6bfbf51_4 conda-forge
icu 64.2 he025d50_1 conda-forge
@jeremyherbert
jeremyherbert / main.c
Last active December 12, 2019 03:32
tinyusb example cdc_msc for STM32F042F6P6 with crystal-less oscillator
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ha Thach (tinyusb.org)
*
* 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