Skip to content

Instantly share code, notes, and snippets.

@stu9458
stu9458 / SPI_Master
Created November 3, 2014 03:28
The msp430f5529 SPI code.(By TI example but some error)
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@stu9458
stu9458 / Env.txt forBBB
Last active October 9, 2017 10:51
uEnv.txt for Beaglebone black
##This will work with: Angstrom's 2013.06.20 u-boot.
loadaddr=0x82000000
fdtaddr=0x88000000
rdaddr=0x88080000
initrd_high=0xffffffff
fdt_high=0xffffffff
loadximage=load mmc 0:2 ${loadaddr} /boot/vmlinuz-${uname_r}
@stu9458
stu9458 / Fib.c
Last active August 29, 2015 14:04
Just a test-file
#include<stdio.h>
int Fib(int x);
int Fib(int x)
{
if(x==0)return 0;
if(x==1)return 1;
return fib(x-1)+fib(x-2);
}
int main(void)
{