This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenOCD script for GD32VF103 with improved reset procedure | |
# Invoke it like this. | |
# for Digilent HS2 | |
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "program binary.elf verify reset exit" | |
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "program binary.bin 0x08000000 verify reset exit" | |
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "init; reset run; exit" | |
# for SiPEED USB-JTAG/TTL ( RV-Debugger ) | |
# openocd -f interface/ftdi/minimodule.cfg -c "ftdi_device_desc {Dual RS232}" -f gd32vf103.cfg -c "init; reset run; exit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NAME=gd32vf103-blinker | |
# PREFIX=~/.platformio/packages/toolchain-gd32v/bin/riscv-nuclei-elf- | |
# LDSCRIPT=$(cygpath -ma ~/.platformio/packages/framework-gd32vf103-sdk/RISCV/env_Eclipse/GD32VF103xB.lds) | |
# ${PREFIX}as -march=rv32ic -o ${NAME}.o ${NAME}.S | |
# ${PREFIX}ld -T ${LDSCRIPT} -o ${NAME}.elf ${NAME}.o | |
# ${PREFIX}objcopy -O binary ${NAME}.elf ${NAME}.bin | |
.text | |
.global _start | |
_start: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function path_remove () { | |
local IFS=: | |
local i A=($PATH) | |
for i in ${!A[*]}; do if [[ "${A[$i]}" == "$1" ]] ; then unset A[$i]; fi; done | |
export PATH="${A[*]}" | |
} | |
; in one line format | |
; function path_remove () { local IFS=: ; local i A=($PATH) ; for i in ${!A[*]} ; do if [[ "${A[$i]}" == "$1" ]] ; then unset A[$i] ; fi ; done ; export PATH="${A[*]}" ; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; KodoPenLight - ATtiny102 | |
; | |
; main.asm | |
; | |
; Created: 2018/06/02 | |
; Author : applause | |
; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Housekeeping stuff for OpenOCD targeting Nuvoton NUC123 , NUC126 and others. | |
# by Ein Terakawa <[email protected]> | |
# | |
# based on TheLastMutt's mini51.cfg | |
# https://gist.github.com/TheLastMutt/d1c1948acaace7444c1c#file-mini51-cfg | |
# Usage example | |
# | |
# Read config regs. | |
# openocd -f NUCxxx.cfg -c ReadConfigRegs -c exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "Z70 親指シフト"}, | |
[{c:"#eeeeee",t:"#7777777"},"Esc",{c:"#cccccc",t:"#000000",f:5},"!\n\n?",{a:7},"",{a:4},"\n\n〜","\n\n「","\n\n」","『","』",{a:7},"","","","","","","",{c:"#eeeeee",t:"#7777777",a:4,f:3},"Home"], | |
[{w:1.5},"Tab",{c:"#cccccc",t:"#000000\n\n#aaaaaa",f:5},"ぁ\n\n▢\n\n\n\n\n\n\n\n。",{t:"#000000"},"え\n\nが\n\n\n\n\n\n\n\nか","り\n\nだ\n\n\n\n\n\n\n\nた","ゃ\n\nご\n\n\n\n\n\n\n\nこ","れ\n\nざ\n\n\n\n\n\n\n\nさ","ぱ\n\nよ\n\n\n\n\n\n\n\nら","ぢ\n\nに\n\n\n\n\n\n\n\nち","ぐ\n\nる\n\n\n\n\n\n\n\nく","づ\n\nま\n\n\n\n\n\n\n\nつ","ぴ\n\nぇ\n\n\n\n\n\n\n\n,",{t:"#aaaaaa\n\n\n\n\n\n\n\n\n\n#000000"},"▢\n\n▢\n\n\n\n\n\n\n\n、",{t:"#aaaaaa\n\n#000000\n\n\n\n\n\n\n\n#000000"},"▢\n\n゜\n\n\n\n\n\n\n\n゛",{c:"#eeeeee",t:"#7777777",f:3,w:1.5},"Backspace","PgUp"], | |
[{w:1.75},"Caps Lock",{c:"#cccccc",t:"#000000",f:5},"を\n\nゔ\n\n\n\n\n\n\n\nう","あ\n\nじ\n\n\n\n\n\n\n\nし","な\n\nで\n\n\n\n\n\n\n\nて",{n:true},"ゅ\n\nげ\n\n\n\n\n\n\n\nけ","も\n\nぜ\n\n\n\n\n\n\n\nせ","ば\n\nみ\n\n\n\n\n\n\n\nは",{n:true},"ど\n\nお\n\n\n\n\n\n\n\nと","ぎ\n\nの\n\n\n\n\n\n\n\nき"," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "Lily58 親指シフト"}, | |
[{x:3,a:7},"",{x:6.5},""], | |
[{y:-0.94,x:2},"",{x:1,a:4},"\n\n「",{x:4.5},"』",{x:1,a:7},""], | |
[{y:-0.86,x:5,a:4},"\n\n」",{x:2.5},"『"], | |
[{y:-0.95,x:1},"!\n\n?",{x:10.5,a:7},""], | |
[{y:-0.94},"",{x:12.5},""], | |
[{y:-0.31,x:3,a:4,f:5},"り\n\nだ\n\n\n\n\n\n\n\nた",{x:6.5},"ぐ\n\nる\n\n\n\n\n\n\n\nく"], | |
[{y:-0.94,x:2},"え\n\nが\n\n\n\n\n\n\n\nか",{x:1},"ゃ\n\nご\n\n\n\n\n\n\n\nこ",{x:4.5},"ぢ\n\nに\n\n\n\n\n\n\n\nち",{x:1},"づ\n\nま\n\n\n\n\n\n\n\nつ"], | |
[{y:-0.86,x:5},"れ\n\nざ\n\n\n\n\n\n\n\nさ",{x:2.5},"ぱ\n\nよ\n\n\n\n\n\n\n\nら"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Z70 Pro ANSI (2.5/2.5) Experiment" | |
}, | |
[ | |
"Esc", | |
"!\n1\n\n\nf1", | |
"@\n2\n\n\nf2", | |
"#\n3\n\n\nf3", | |
"$\n4\n\n\nf4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Z70 Pro ANSI (2.125/2.125) Experiment" | |
}, | |
[ | |
"Esc", | |
"!\n1\n\n\nf1", | |
"@\n2\n\n\nf2", | |
"#\n3\n\n\nf3", | |
"$\n4\n\n\nf4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name":"ANSI Standard Staggered"}, | |
["~\n`","!\n1\n\n\nf1","@\n2\n\n\nf2","#\n3\n\n\nf3","$\n4\n\n\nf4","%\n5\n\n\nf5","^\n6\n\n\nf6","&\n7\n\n\nf7","*\n8\n\n\nf8","(\n9\n\n\nf9",")\n0\n\n\nf10","_\n-\n\n\nf11","+\n=\n\n\nf12",{w:2},"Backspace"], | |
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\"], | |
[{w:1.75},"Caps Lock\n\n\n\n\n\n\n\n\n\n1.75","A","S","D",{n:true},"F","G","H",{n:true},"J","K","L",":\n;","\"\n'",{w:2.25},"Enter\n\n\n\n\n\n\n\n\n\n2.25"], | |
[{w:2.25},"Shift\n\n\n\n\n\n\n\n\n\n2.25","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{w:2.75},"Shift\n\n\n\n\n\n\n\n\n\n2.75"] | |
] |