I hereby claim:
- I am four0four on github.
- I am four0four (https://keybase.io/four0four) on keybase.
- I have a public key whose fingerprint is 6920 2A52 483C 3974 7EEB 64D7 8343 5753 3862 EFD9
To claim this, I am signing this object:
#http://wiki.python.org/moin/BitManipulation | |
def countBits(int_type): | |
count = 0 | |
while(int_type): | |
int_type &= int_type - 1 | |
count += 1 | |
return(count) | |
class Subnet: |
#!/usr/bin/python2 | |
import networkClasses | |
test = networkClasses.Subnet("192.168.0.1","255.255.0.0") | |
#test = networkClasses.Subnet("192.168.0.1/16") | |
print ".toIPaddress(): " + str(test.toIPaddress()) | |
print ".toBroadcast(): " + str(test.toBroadcast()) | |
print ".toNetmask(): " + str(test.toNetmask()) | |
print ".toSubnet(): " + str(test.toSubnet()) |
/* | |
* mega324_UART.c | |
* | |
* Created: 12/28/2011 10:39:01 PM | |
* Author: Galen | |
*/ | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <avr/power.h> |
# Maintainer: Galen Schretlen <[email protected]> | |
pkgname=ec2drv-git | |
pkgdesc="ec2drv provides Linux support for the Silicon Laboritories EC2 serial debug adaptor." | |
_sourcename="ec2" | |
pkgrel=1 | |
pkgver=86ffac6 | |
arch=('i686' 'x86_64') | |
url="https://github.com/four0four/ec2" | |
license=('GPL') | |
depends=('python2' 'boost-libs' 'readline' 'libusb') |
PROGRAM=hw1 | |
SOURCES=$(PROGRAM).c | |
# you should probably redefine this with an absolute path, if possible | |
INCLUDE=../headers | |
CC=sdcc | |
PORT="USB" | |
TARGET="SL51" | |
GDB=newcdb | |
all: $(PROGRAM).ihx flash run |
//----------------------------------------------------------------------------- | |
// This file is for use in Embedded Control when using the SDCC compiler | |
// | |
// Directions: | |
// | |
// This file should be saved to the following directory on your laptop: | |
// C:\Program Files\SDCC\include\mcs51 | |
// Save as c8051_SDCC.h | |
// | |
// In your program, you need to include this header file as #include <c8051_SDCC.h> |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python2 | |
import sys | |
import md5 | |
if len(sys.argv) < 2: | |
print "Usage: " + sys.argv[0] + " [eagle 7.5.0 binary]\nWindows patches will be applied if .exe" | |
sys.exit() | |
# offsets |
/* 8 bit brainfuck cpu | |
** Author's note: This is a really bad processor. It does all sorts of stupid/bad things in the aim of brainfucking hardware. | |
** codeMem -> 3 bit wire, input opcodes from code memory | |
** codeAddr -> 8 bit address, current pc (usually) | |
** dataMem -> 8 bit read/write to the working array | |
** dataAddr -> 8 bit address to working array | |
** !USE READ FIRST! | |
*/ | |
source [find cpu/arc/arcompact.tcl] | |
source [find cpu/arc/em.tcl] | |
set _CHIPNAME arc600 | |
set _TARGETNAME $_CHIPNAME.cpu | |
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -expected-id 0x200024b1 | |
target create $_TARGETNAME arc600 -chain-position $_TARGETNAME |