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
#include <stdio.h> | |
#include <ffi.h> | |
#include <stdlib.h> | |
/* Acts like puts with the file given at time of enclosure. */ | |
void puts_binding(ffi_cif *cif, void *ret, void* args[], void *stream) { | |
*(ffi_arg *) ret = fputs(*(char **) args[0], (FILE *) stream); | |
} | |
typedef int (*puts_t)(char *); |
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
#include <linux/ioctl.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) { | |
printf("_IO('q', 10) => 0x%08lX\n", (unsigned long int)_IO('q', 10)); | |
printf("_IO('a', 255) => 0x%08lX\n", (unsigned long int)_IO('a', 255)); | |
printf("_IOW('z', 10, char[1]) => 0x%04lX\n", _IOW('z', 10, char[1])); | |
printf("_IOW('z', 10, char[512] => 0x%04lX\n", _IOW('z', 10, char[512])); | |
printf("_IOW('z', 10, char[1 << 32] => 0x%04lX\n", _IOW('z', 10, char[1 << 32])); // _IOC_SZ_BITS = 14 |
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
{ | |
"arch": "arm", | |
"cpu": "cortex-m4", | |
"data-layout": "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64", | |
"disable-redzone": true, | |
"executables": true, | |
"llvm-target": "thumbv7m-none-eabi", | |
"morestack": false, | |
"os": "none", | |
"relocation-model": "static", |
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
use volatile_cell::VolatileCell; | |
use core::ops::Drop; | |
ioregs! (FTFA_FlashConfig @ 0x400 = { //! Flash configuration field | |
0x00 => reg8 backkey3 { //! Backdoor Comparison Key 3. | |
8..0 => key: ro, //= Backdoor Comparison Key. | |
}, | |
0x01 => reg8 backkey2 { //! Backdoor Comparison Key 2. | |
8..0 => key: ro, //= Backdoor Comparison Key. | |
}, |
This file has been truncated, but you can view the full file.
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
Archive member included because of file (symbol) | |
/home/posborne/Projects/rust-playground/zinc/target/thumbv7m-none-eabi/debug/libzinc.rlib(zinc.o) | |
/home/posborne/Projects/rust-playground/zinc/target/thumbv7m-none-eabi/debug/examples/rgb_pwm_lpc17xx.o (hal::stack::set_stack_limit::ha8bb39f7be8741e5MCF) | |
/home/posborne/Projects/rust-playground/zinc/target/thumbv7m-none-eabi/debug/deps/librlibc-68a115e07ddb7f5c.rlib(rlibc-68a115e07ddb7f5c.o) | |
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/crt0.o (memset) | |
/home/posborne/Projects/rust-playground/zinc/target/thumbv7m-none-eabi/debug/deps/libcore-457ad95defb42ceb.rlib(core-457ad95defb42ceb.o) | |
/home/posborne/Projects/rust-playground/zinc/target/thumbv7m-none-eabi/debug/libzinc.rlib(zinc.o) (slice::_$u5b$T$u5d$.ops..Index$LT$usize$GT$::index::_MSG_FILE_LINE::h3bfbaea36dc5e266YwG) | |
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/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
// | |
// Generated by svdconvert.py from SVD XML description for device: | |
// - Device Name: MKL25Z4 | |
// - Description: MKL25Z4 Freescale Microcontroller | |
// - Device Vendor: Freescale Semiconductor, Inc. | |
// - Device Version: 1.6 | |
// | |
use volatile_cell::VolatileCell; | |
use core::ops::Drop; |
This file has been truncated, but you can view the full file.
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
Archive member included because of file (symbol) | |
/Users/posborne/Projects/rust-playground/zinc/examples/rgb_pwm_lpc17xx/target/thumbv7m-none-eabi/debug/deps/libzinc-fd1638775d385b8e.rlib(zinc-fd1638775d385b8e.0.o) | |
/Users/posborne/Projects/rust-playground/zinc/examples/rgb_pwm_lpc17xx/target/thumbv7m-none-eabi/debug/rgb_pwm_lpc17xx.0.o (hal::stack::set_stack_limit::ha8396267696cbc511qs) | |
/Users/posborne/Projects/rust-playground/zinc/examples/rgb_pwm_lpc17xx/target/thumbv7m-none-eabi/debug/deps/librlibc-1fbafb63a8479a48.rlib(rlibc-1fbafb63a8479a48.0.o) | |
/opt/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/crt0.o (memset) | |
/Users/posborne/Projects/rust-playground/zinc/examples/rgb_pwm_lpc17xx/target/thumbv7m-none-eabi/debug/deps/libcore-59996a419f60f2f9.rlib(core-59996a419f60f2f9.0.o) | |
/Users/posborne/Projects/rust-playground/zinc/examples/rgb_pwm_lpc17xx/target/thumbv7 |
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
✘ ⚙ (env) posborne@povm ~/Projects/rust-playground/zinc/examples/empty pwm-support-squashed ● arm-none-eabi-size -A -d target/thumbv7m-none-eabi/debug/empty pwm-support-squashed [afd7fb0] modified untracked | |
target/thumbv7m-none-eabi/debug/empty : | |
section size addr | |
.data 0 268435456 | |
.vector 204 0 | |
.debug_gdb_scripts 34 204 | |
.text 1164 240 | |
.bss 8 268435456 | |
.ARM.attributes 45 0 | |
.debug_str 966614 0 |
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
Traceback (most recent call last): | |
File "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite | |
why = getattr(selectable, method)() | |
File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 667, in doConnect | |
self._connectDone() | |
File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 674, in _connectDone | |
self.protocol.makeConnection(self) | |
File "/usr/lib/python2.6/dist-packages/twisted/internet/protocol.py", line 349, in makeConnection | |
self.connectionMade() | |
File "/usr/lib/python2.6/dist-packages/twisted/web/client.py", line 60, in connectionMade |
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
from compiler import visitor as compvisitor | |
import compiler | |
import sys | |
class VisitorChecker(compvisitor.ASTVisitor): | |
""" | |
AST Visitor that pulls together individual AST checkers | |
The VisitorChecker takes in other Visitor classes and delegates |
OlderNewer