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
find . -path .svn -prune -o -name "*.[ch]" | grep -v ".svn" | |
find . -path .svn -prune -o -name "*.[ch]" | grep -v ".svn" | |
LNX=. | |
find $LNX -path "$LNX/arch/*" ! -path "$LNX/arch/x86*" -prune -o \ | |
-path "$LNX/Documentation*" -prune -o \ | |
-path "$LNX/scripts*" -prune -o \ | |
-path "$LNX/drivers*" -prune -o \ | |
-name "*.[chxsS]" -print > cscope.files |
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
//===================================================================================================== | |
// IMU.c | |
// S.O.H. Madgwick | |
// 25th September 2010 | |
//===================================================================================================== | |
// Description: | |
// | |
// Quaternion implementation of the 'DCM filter' [Mayhony et al]. | |
// | |
// User must define 'halfT' as the (sample period / 2), and the filter gains 'Kp' and 'Ki'. |
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
/** A simple kalman filter example by Adrian Boeing | |
www.adrianboeing.com | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
double frand() { | |
return 2*((rand()/(double)RAND_MAX) - 0.5); |
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
--------------------- | |
/***************************************************** | |
http://bbs.cmnxt.com/thread-13197-1-1.html | |
Date : 2013-7-2 | |
Author : | |
Chip type : ATmega16 | |
Program type : Application | |
AVR Core Clock frequency: 16.000000 MHz | |
Memory model : Small | |
External RAM size : 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
/* http://blog.chinaunix.net/uid-28732854-id-3858242.html */ | |
/*******************************memdev.h********************************/ | |
#ifndef _MEMDEV_H_ | |
#define _MEMDEV_H_ | |
#ifndef MEMDEV_MAJOR | |
#define MEMDEV_MAJOR 251 /*预设的mem的主设备号*/ | |
#endif |
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
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( | |
rd /s /q "%%i" | |
) |
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
#opt/openwrt/trunk-qemu/package/utils/eep | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=eep | |
PKG_VERSION:=5.0 | |
PKG_RELEASE:=1 | |
PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME) | |
include $(INCLUDE_DIR)/package.mk |
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
//static int __init populate_rootfs(void) | |
{/* Just test hear */ | |
int fd, cnt; | |
char* buf = NULL; | |
fd = sys_open("/etc/preinit", O_RDONLY, 0); | |
buf = (char*)kmalloc(1024, GFP_KERNEL); | |
cnt = sys_read(fd, buf, 1024); | |
if(cnt == 1024) |
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
/* endian convertor */ | |
/* use cmp to test it: cmp -l flash flash3 */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
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
/dts-v1/; | |
/include/ "mt7620a.dtsi" | |
/ { | |
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc"; | |
model = "Ralink MT7620A board"; | |
palmbus@10000000 { | |
sysc@0 { |