This file contains hidden or 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
module uart | |
( | |
clk, | |
reset, | |
rx, | |
data, | |
data_ready | |
); | |
parameter int divider = 3; |
This file contains hidden or 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
G28 | |
M207 X0 | |
G1 X0.0 Y0.0 Z150.0 F4000 | |
M201 X1000 Y1000 Z1000 | |
M202 X1000 Y1000 Z1000 | |
G1 X75.0 F40000 | |
G1 X-75.0 F40000 | |
G1 X75.0 F40000 | |
G1 X-75.0 F40000 | |
G1 X75.0 F40000 |
This file contains hidden or 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
(ejabberd@0x2c)8> ejabberd_commands:register_commands(ejabberd_commands:get_commands_spec()). | |
** exception exit: {aborted,{bad_type,{ejabberd_commands,gen_html_doc_for_commands, | |
[documentation], | |
"Generates html documentation for ejabberd_commands",[],0, | |
ejabberd_commands_doc,generate_html_output, | |
[{file,binary},{regexp,binary},{examples,binary}], | |
restricted,[], | |
{res,rescode}, | |
["Path to file where generated documentation should be stored", | |
"Regexp matching names of commands or modules that will be included inside generated document", |
This file contains hidden or 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
2016-12-08 17:04:29 =CRASH REPORT==== | |
crasher: | |
initial call: application_master:init/4 | |
pid: <0.61.0> | |
registered_name: [] | |
exception exit: {{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{aborted,{bad_type,{ejabberd_commands,gen_html_doc_for_commands,[documentation],"Generates html documentation for ejabberd_commands",[],0,ejabberd_commands_doc,generate_html_output,[{file,binary},{regexp,binary},{examples,binary}],restricted,[],{res,rescode},["Path to file where generated documentation should be stored","Regexp matching names of commands or modules that will be included inside generated document","Comma separated list of languages (choosen from java, perl, xmlrpc, json)that will have example invocation include in markdown document"],"0 if command failed, 1 when succedded",["/home/me/docs/api.html","mod_admin","java,json"],ok}}}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} | |
ancestors: [<0 |
This file contains hidden or 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
strace: Process 1085 attached | |
1480778610.312011 ppoll([{fd=4, events=POLLIN}, {fd=27, events=POLLIN}, {fd=34, events=POLLIN}, {fd=8, events=POLLIN}, {fd=20, events=POLLIN}, {fd=41, events=POLLIN}, {fd=21, events=POLLIN}, {fd=38, events=POLLIN|POLLERR|POLLHUP}, {fd=37, events=POLLIN}, {fd=36, events=POLLIN}, {fd=3, events=POLLIN}, {fd=35, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, events=POLLIN}, {fd=22, events=POLLIN}, {fd=25, events=POLLIN}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}, {fd=14, events=POLLIN|POLLERR|POLLHUP}, {fd=14, events=0}, {fd=13, events=POLLIN}, {fd=12, events=POLLIN}, {fd=6, events=POLLIN}], 23, NULL, NULL, 8) = 1 ([{fd=18, revents=POLLIN}]) | |
1480778610.315637 read(18, "\1\0\0\0\0\0\0\0", 8) = 8 | |
1480778610.315863 write(5, "W", 1) = 1 | |
1480778610.316034 read(4, "W", 10) = 1 | |
1480778610.316165 write(39, "\1\0\0\0\0\0\0\0", 8) = 8 | |
1480778610.316270 read(4, 0x7ffddc85f710, 10) = -1 EAGAIN (Resource temporarily unavailable) | |
1480778610.316334 ppoll([{fd=4, events=POLLIN}, {fd= |
This file contains hidden or 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
0x00003684 <+32>: ldr r2, [pc, #60] ; (0x36c4 <init.lto_priv.1+96>) | |
0x00003686 <+34>: ldr r3, [r3, #4] | |
0x00003688 <+36>: str r1, [r2, #0] | |
0x0000368a <+38>: movs r2, #128 ; 0x80 | |
=> 0x0000368c <+40>: ldr r1, [r3, #8] | |
0x0000368e <+42>: lsls r2, r2, #11 | |
0x00003690 <+44>: orrs r2, r1 | |
0x00003692 <+46>: str r2, [r3, #8] | |
0x00003694 <+48>: movs r2, #128 ; 0x80 | |
0x00003696 <+50>: ldr r1, [r3, #8] |
This file contains hidden or 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
#include <mchck.h> | |
static LPUART_Type * | |
c2l(struct uart_ctx *ctx) | |
{ | |
return ((LPUART_Type *)ctx->uart); | |
} | |
static void | |
init(struct uart_ctx *ctx) |
This file contains hidden or 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
require 'ostruct' | |
require 'matrix' | |
class DeltaError | |
def self.deltaConst(config) | |
config = OpenStruct.new(config) | |
res = OpenStruct.new | |
res.radiusA = config.radius + (config.aradius||0) | |
res.radiusB = config.radius + (config.bradius||0) | |
res.radiusC = config.radius + (config.cradius||0) |
This file contains hidden or 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
require 'ostruct' | |
require 'matrix' | |
class DeltaError | |
def self.deltaConst(config) | |
config = OpenStruct.new(config) | |
res = OpenStruct.new | |
res.radiusA = config.radius + (config.aradius||0) | |
res.radiusB = config.radius + (config.bradius||0) | |
res.radiusC = config.radius + (config.cradius||0) |
This file contains hidden or 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
template bitmask(offset, size: uint32) = | |
(((1'u32 shl size) - 1'u32) shl offset) | |
template bitwrite(reg: typed, bitoffset, bitsize: uint32, val: typed) = | |
var | |
mask = bitmask(bitoffset, bitsize) | |
valint = cast[type(reg)](val) | |
reg = (reg and not mask) or ((valint shl bitoffset) and mask) | |
template bitread(reg: typed, bitoffset, bitsize: uint32) = |