Skip to content

Instantly share code, notes, and snippets.

Patrick White packysauce

Block or report user

Report or block packysauce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2149b67a26d0379426c77ae678215134
### Keybase proof
I hereby claim:
* I am packysauce on github.
* I am packysauce ( on keybase.
* I have a public key whose fingerprint is 661A F849 78E6 0646 1251 0736 3CAF 354D C267 478F
To claim this, I am signing this object:
packysauce / mmc.d
Created Jan 14, 2016
omap3 sdcard driver written in D using mkregisters
View mmc.d
module devices.omap3.mmc;
import core.buffer, core.pack, core.mkregisters;
import devices.blockdevice;
import kernel;
const SDBP = 8;
const PSTATE_BRE = 1 << 11;
const HCTL_CR = 1 << 17;
View mkregisters.d
module core.mkregisters;
template decimalDigit(int n) // [3]
const string decimalDigit = "0123456789"[n..n+1];
template itoa(long n)
static if (n < 0)
You can’t perform that action at this time.