code stringlengths 2 2.01M | language stringclasses 1
value |
|---|---|
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
*
* This pro... | C |
#ifndef _ERR_H_
#define _ERR_H_
#include <stdlib.h>
#define warnx(...) do { \
fprintf (stderr, __VA_ARGS__); \
fprintf (stderr, "\n"); \
} while (0)
#define errx(code, ...) do { \
fprintf (stderr, __VA_ARGS__); \
fprintf (stderr, "\n"); \
exit (code); \
} while (0)
#define er... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/**
* @file quick_start_example1.c
* @brief Quick start example that presents how to use libnfc
*/
// To compile this simple example:
// $ gcc -o quick_start_example1 quick_start_example1.c -lnfc
#include <stdlib.h>
#include <nfc/nfc.h>
static void
print_hex(const uint8_t *pbtData, const size_t szBytes)
{
size_... | C |
/**
* @file quick_start_example2.c
* @brief Quick start example that presents how to use libnfc
*/
// This is same example as quick_start_example1.c but using
// some helper functions existing in libnfc.
// Those functions are not available yet in a library
// so binary object must be linked statically:
// $ gcc -o... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
/*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2013 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* See AUTHORS... | C |
#include <cutter.h>
#include <nfc/nfc.h>
#define NTESTS 10
#define MAX_DEVICE_COUNT 8
#define MAX_TARGET_COUNT 8
/*
* This is basically a stress-test to ensure we don't left a device in an
* inconsistent state after use.
*/
void test_access_storm(void);
void
test_access_storm(void)
{
int n = NTESTS;
nfc_conn... | C |
#include <cutter.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include "nfc/nfc.h"
void test_dep_passive(void);
#define INITIATOR 0
#define TARGET 1
pthread_t threads[2];
nfc_context *context;
nfc_connstring connstrings[2];
nfc_device *devices[2];
intptr_t result[2];
static void
abort_test_by... | C |
#include <cutter.h>
#include <nfc/nfc.h>
#define MAX_DEVICE_COUNT 1
#define MAX_TARGET_COUNT 1
void test_register_endianness(void);
#include "chips/pn53x.h"
void
test_register_endianness(void)
{
nfc_connstring connstrings[MAX_DEVICE_COUNT];
int res = 0;
nfc_context *context;
nfc_init(&context);
size_t ... | C |
#include <cutter.h>
#include <nfc/nfc.h>
#include "chips/pn53x.h"
#define MAX_DEVICE_COUNT 1
#define MAX_TARGET_COUNT 1
void test_register_access(void);
void
test_register_access(void)
{
nfc_connstring connstrings[MAX_DEVICE_COUNT];
int res = 0;
nfc_context *context;
nfc_init(&context);
size_t device_co... | C |
#include <cutter.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include "nfc/nfc.h"
#include "../utils/nfc-utils.h"
void test_dep_states(void);
pthread_t threads[2];
nfc_context *context;
nfc_connstring connstrings[2];
nfc_device *first_device, *second_device;
intptr_t result[2];
static void
abort... | C |
#include <cutter.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include "nfc/nfc.h"
#include "../utils/nfc-utils.h"
void test_dep_active(void);
#define INITIATOR 0
#define TARGET 1
pthread_t threads[2];
nfc_context *context;
nfc_connstring connstrings[2];
nfc_device *devices[2];
intptr_t result... | C |
/**
* Table mapping most combined Latin, Greek, and Cyrillic characters
* to their base characters. If c is in range, BASE_CHARS[c] == c
* if c is not a combined character, or the base character if it
* is combined.
*/
static unsigned short BASE_CHARS[] = {
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x00... | C |
#include <pspsdk.h>
#include "led.h"
/*
* Imports from library: sceSysEventForKernel
*/
extern void sceKernelRegisterSysEventHandler (int arg1);
extern void sceKernelUnregisterSysEventHandler (int arg1);
/*
* Imports from library: InterruptManagerForKernel
*/
extern void InterruptManagerForKernel_668A... | C |
#ifndef __EXCEPTIONMAN_H
#define __EXCEPTIONMAN_H
/*
* Exports from library: syslib
*/
void module_bootstart (void);
/*
* Exports from library: ExceptionManagerForKernel
*/
void sceKernelRegisterNmiHandler (void);
void ExceptionManagerForKernel_60DFC510 (void);
void ExceptionManagerForKernel_792C424C... | C |
#ifndef __MPEG_VSH_H
#define __MPEG_VSH_H
/*
* Exports from library: syslib
*/
/*
* Exports from library: sceMpeg
*/
void sceMpegQueryUserdataEsSize (void);
void sceMpeg_0558B075 (void);
void sceMpegAvcDecode (void);
void sceMpegAvcDecodeDetail (void);
void sceMpeg_11CAB459 (void);
void sceMpegGetA... | C |
#ifndef __LOWIO_H
#define __LOWIO_H
/*
* Exports from library: syslib
*/
void module_start (void);
void module_reboot_before (void);
/*
* Exports from library: sceSysreg_driver
*/
void sceSysreg_driver_00CEA69D (void);
void sceSysreg_driver_02A1F862 (void);
void sceSysreg_driver_030EBAD6 (void);
vo... | C |
/*
* Utopia ME Wrapper Module 5.00 clone
* Copyright (c) 2011 by Musa Mitchell <mowglisanu@gmain.com>
*/
typedef struct{
int mutex;
int event;
int sema;
}MERpc;
#define PSP_O_UNKNOWN0 0x04000000
int sceMeRpcLock();
int sceMeRpcUnlock();
int sub_881FA1D8(void* data, int wait);
int sceMeBootStart(unsigned int boot... | C |
#include <pspsdk.h>
#include "mpeg.h"
//Imports from library: ThreadManForUser
extern int sceKernelcheckThreadStack();
extern int sceKernelCreateSema (int arg1, int arg2, int arg3, int arg4, int arg5);
extern int sceKernelDeleteSema ();
extern int sceKernelSignalSema (int arg1, int arg2);
extern int sceKernelWaitSema ... | C |
#include <pspsdk.h>
#include "mpeg_vsh.h"
//Imports from library: ThreadManForUser
extern int sceKernelcheckThreadStack();
extern int sceKernelCreateSema (int arg1, int arg2, int arg3, int arg4, int arg5);
extern int sceKernelDeleteSema ();
extern int sceKernelSignalSema (int arg1, int arg2);
extern int sceKer... | C |
#ifndef __MPEG_H
#define __MPEG_H
/*
* Exports from library: syslib
*/
/*
* Exports from library: sceMpeg
*/
void sceMpegQueryUserdataEsSize (void);
void sceMpeg_0558B075 (void);
void sceMpegAvcDecode (void);
void sceMpegAvcDecodeDetail (void);
void sceMpegGetAvcNalAu (void);
void sceMpegRingbuffer... | C |
#ifndef __AMCTRL_H
#define __AMCTRL_H
/*
* Exports from library: syslib
*/
void module_start (void);
/*
* Exports from library: sceAmctrl_driver
*/
void sceDrmBBCipherUpdate (void);
void sceDrmBBCipherInit (void);
void sceDrmBBMacInit (void);
void sceDrmBBMacUpdate (void);
void sceDrmBBCipherFinal ... | C |
#ifndef __LED_H
#define __LED_H
/*
* Exports from library: syslib
*/
void module_start (void);
void module_reboot_before (void);
/*
* Exports from library: sceLed_driver
*/
void sceLedResume (void);
void sceLedEnd (void);
void sceLedInit (void);
void sceLedSuspend (void);
void sceLedSetMode (void)... | C |
#include <pspsdk.h>
#include "ctrl.h"
/*
* Imports from library: SysMemForKernel
*/
extern int SysMemForKernel_2CFF6F90 ();
/*
* Imports from library: sceSuspendForKernel
*/
extern void sceKernelPowerTick (int arg1);
/*
* Imports from library: sceSysEventForKernel
*/
extern void sceKernelRegist... | C |
#include <pspsdk.h>
#include "amctrl.h"
/*
* Imports from library: ThreadManForKernel
*/
extern int sceKernelSignalSema (int arg1, int arg2);
extern int sceKernelWaitSema (int arg1, int arg2, int arg3);
extern int sceKernelCreateSema (int arg1, int arg2, int arg3, int arg4, int arg5);
/*
* Imports from ... | C |
int sceNet_lib_DA02F383 (int arg1, int arg2){
int msg[5];
sceNetMemset (msg, 0x00, 0x14);
sceNetStrncpy (msg, arg1, 0x10);
int ret = _sce_pspnet_ifioctl (0x00, 0xC01469D8, msg, 0x01);
*((int *) 0x0000B150) = 0;
if (!ret)
*arg2 = msg[4];
return ret;
}
int sceNet_lib_83FE280A (int arg1, int arg2){
int ... | C |
#ifndef __CTRL_H
#define __CTRL_H
/*
* Exports from library: syslib
*/
void module_start (void);
void module_reboot_before (void);
/*
* Exports from library: sceCtrl
*/
void sceCtrlGetSamplingCycle (void);
void sceCtrlReadLatch (void);
void sceCtrlSetSamplingMode (void);
void sceCtrlReadBufferPosit... | C |
#ifndef __USBACC_H
#define __USBACC_H
/*
* Exports from library: syslib
*/
void module_start (void);
void module_stop (void);
/*
* Exports from library: sceUsbAcc_internal
*/
void sceUsbAccGetInfo (void);
void sceUsbAccUnregisterType (void);
void sceUsbAcc_internal_2A100C1F (void);
void sceUsbAccRe... | C |
#include <pspsdk.h>
#include "500\dmacman.h"
#define UNQUEUED_MASK 0x0001
#define TRANSFER_MASK 0x0002
#define SUCCED_MASK 0x0010
#define PENDING_MASK 0x0020
#define FINISHED_MASK 0x0040
#define USED_MASK 0x0070
#define ASSIGNED_MASK 0x0100
#define MALLOCED_MASK 0x1000
typedef struct {
void* curr,//curr... | C |
#include <pspsdk.h>
void sceSysreg_driver_26D97F66 (){
setReset (1, 1);
}
void sceSysreg_driver_36DA035E (){
setReset (2, 1);
}
void sceSysreg_driver_20C9E2C4 (){
setReset (0x04, 1);
}
void sceSysreg_driver_5F190A4E (){
setReset (0x04, 0);
}
void sceSysreg_driver_2CFF6043 (){
setReset (0x08, 1);
}... | C |
#include <pspsdk.h>
#include "usbacc.h"
void sceUsbAccGetAuthStat (){
intr = sceKernelCpuSuspendIntr ();
if (*((unsigned char *) 0x00000D63))ret = sceUsbBus_driver_8A3EB5D2 ()?0:0x80243701;
else ret = 0x80243007;
sceKernelCpuResumeIntr (intr);
}
void sceUsbAccGetInfo (int arg1){
var1 = 0;
if (!*(... | C |
#include <pspsdk.h>
#include "avcodec.h"
int sceAudiocodecCheckNeedMem (int arg1, int arg2){
if (!((0x220202 >> ((arg1 >> 27) & 0x1F)) & 1))return 0x807F0002;
if ((((arg2 + 0xFFFFF000) >= 0x6)))return 0x80000004;
_k1 = k1;
k1 = k1 >> 16;
if (((((arg1 + 0x68) | arg1) & -(k1&0x18)) < 0))return;
arg1[0] = ... | C |
#ifndef __AVCODEC_H
#define __AVCODEC_H
/*
* Exports from library: syslib
*/
void module_start (void);
void module_stop (void);
/*
* Exports from library: sceAvcodec_driver
*/
void sceAvcodecStartEntry (void);
void sceAvcodecEndEntry (void);
/*
* Exports from library: sceVideocodec
*/
void sc... | C |
/*
*/
#include <pspkernel.h>
#include <string.h>
/*error*/
#define ERROR(mod,errno) ((1<<31)|(mod<<16)|errno)
#define MOD_G729 0x68
#define ERROR_G729 ERROR(MOD_G729,0)//0x80680000
#define ERROR_G729_BADARG ERROR(MOD_G729,1)//0x80680001
#define ERROR_G729_NOTREADY ERROR(MOD_G729,2)//0x80680002
#defin... | C |
#ifndef __DMACMAN_H
#define __DMACMAN_H
/*
* Exports from library: syslib
*/
void module_bootstart (void);
void module_start (void);
void module_reboot_before (void);
/*
* Exports from library: DmacManForKernel
*/
void sceKernelDmaExit (void);
void DmacManForKernel_1FC036B7 (void);
void sceKernelDm... | C |
#include <pspsdk.h>
#include "libmp3.h"
/*
* Imports from library: Kernel_Library
*/
extern int sceKernelCpuSuspendIntr (int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7);
extern void sceKernelCpuResumeIntr (int arg1);
/*
* Imports from library: sceAudiocodec
*/
extern int sceAudio... | C |
/*
* Utopia ME Wrapper Module 5.00 clone
* Copyright (c) 2011 by Musa Mitchell <mowglisanu@gmain.com>
*/
/*
Tested:
MP4 video
PMF video
UMD audio/video
mp3/aac/wma/at3/at3+
standby/resume/poweroff
*/
#include <pspkernel.h>
#include <pspctrl.h>
#include <pspsysevent.h>
#include <pspsysmem_kernel.h>
#include <st... | C |
// Private oscillators used by Gb_Apu
// Gb_Snd_Emu 0.1.4. Copyright (C) 2003-2005 Shay Green. GNU LGPL license.
#ifndef GB_OSCS_H
#define GB_OSCS_H
#include "Blip_Buffer.h"
enum { gb_apu_max_vol = 7 };
struct Gb_Osc {
Blip_Buffer* outputs [4]; // NULL, right, left, center
Blip_Buffer* output;
int output_selec... | C |
// Sets up common environment for Shay Green's libraries.
//
// Don't modify this file directly; #define HAVE_CONFIG_H and put your
// configuration into "config.h".
// Copyright (C) 2004-2005 Shay Green.
#ifndef BLARGG_COMMON_H
#define BLARGG_COMMON_H
// Allow prefix configuration file *which can re-include blargg... | C |
/*
This file is part of gbpablog.
gbpablog is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
gbpablog is distributed in the hope that... | C |
/*
This file is part of gbpablog.
gbpablog is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
gbpablog is distributed in the h... | C |
/*
This file is part of gbpablog.
gbpablog is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
gbpablog is distributed in the h... | C |
/*****************************************************************************/
/*
* tip.c -- simple tip/cu program.
*
* (C) Copyright 1999-2002, Greg Ungerer (gerg@snapgear.com)
* (C) Copyright 2002, SnapGear Inc (www.snapgear.com)
*
* Modified 5 May 2000, Rick Stevenson.
* Added -f option to pass XON/XOFF ch... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
#include <aversive.h>
#include <aversive/wait.h>
#include <uart.h>
#include <stdio.h>
#include <stdlib.h>
#include <scheduler.h>
#include "compass.h"
#include "hcontrol_system.h"
#include "hrobot_system.h"
#include "hposition_manager.h"
#include "comm_fpga.h"
#include <avr/sfr_defs.h>
hcontrol_system hcs;
hposition_... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) a... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
/****************************************************************************
Titre : servos.h
Auteur : Christophe Galle
Date : 10/05/07
DESCRIPTION
Module simple d'asservissement comportant un correcteur PID, un soustracteur, la chaine de commande et celle de retour.
**************... | C |
#include <aversive.h>
#include <aversive/wait.h>
int main(void)
{
DDRB = 0xFB;
PORTB = 0x80;
while(1)
{
PORTB >>= 1;
if(!PORTB) PORTB=0x80;
wait_ms(100);
}
while(1) nop();
return 0;
}
| C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
#include <aversive.h>
#include <aversive/wait.h>
#include <uart.h>
#include <adc.h>
int main(void)
{
// Turn interruptions ON
sei();
// Initialize UART
uart_init();
fdevopen(uart0_dev_send,uart0_dev_recv);
// bla
printf("\n\nRobotter 2008 - 102chute - MECA ADC TEST \n");
printf("Compiled "__DATE__"... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) a... | C |
#ifndef _ADC_CONFIG_H_
#define _ADC_CONFIG_H_
/* Uncomment the ADC inputs you want to use */
#define ADC0_USE
#define ADC1_USE
#define ADC2_USE
#define ADC3_USE
#define ADC4_USE
#define ADC5_USE
#define ADC6_USE
#define ADC7_USE
/* Uncomment the ADC reference you want to use */
/*#define ADC_REF_EXT */
/* #define ADC... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
// For slaves only
#ifdef I2C_SLAVE
#define I2C_BUF_SIZE 8
#endif
#define I2C_BITRATE 1 // divider for i2c baudrate, see TWBR in doc
#define I2C_PRESCALER 3 // prescaler config, rate = 2^(n*2)
| C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
#include <aversive.h>
#include <compat/twi.h>
#include <aversive/wait.h>
#include "i2cm.h"
// Initialize
void i2cm_init(void)
{
uint8_t flags;
IRQ_LOCK(flags);
TWBR = I2C_BITRATE;
TWCR = (1<<TWEN) | (1<<TWINT);
if(I2C_PRESCALER & 1)
sbi(TWSR, TWPS0);
if(I2C_PRESCALER & 2)
sbi(TWSR, TWPS1);
... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
#include <aversive.h>
#include "i2c_adresses.h"
#include "i2c_orders.h"
#define I2C_MASTER
#include "i2c_ryder_config.h"
#define I2C_WAIT() { while( !( TWCR & (1<<TWINT) ) ); }
#define I2C_ACK() { TWCR=(1<<TWEN)+(1<<TWEA)+(1<<TWINT); I2C_WAIT(); }
#define I2C_NACK() { TWCR=(1<<TWEN)+(1<<TWINT); I2C_WAIT(); }
#def... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
/*
* Copyright RobOtter (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.