text
stringlengths
3.08k
10.5k
/** * OpenAL cross platform audio library * Copyright (C) 2013 by <NAME> * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) a...
/* $NetBSD: acl.c,v 1.1.1.1 2011/04/13 18:14:35 elric Exp $ */ /* * Copyright (c) 2005, PADL Software Pty Ltd. * All rights reserved. * * Portions Copyright (c) 2009 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> /*****************************************************************************/ // CONSTANT DEFINITIONS // number of patterns #define N 10 // max length of line for reading input #define MAXLEN 32 /*****************************************...
/* * Copyright (c) 2008-2012 the MansOS team. 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 con...
/* * Copyright © 2015 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
#include "malloc.h" #define CHIPS_IMPL #include "probe.h" #include "chips/z80.h" #include "chips/ay38910.h" #include "chips/i8255.h" #include "chips/mc6845.h" #include "chips/am40010.h" #include "chips/upd765.h" #include "chips/kbd.h" #include "chips/mem.h" #include "chips/clk.h" #include "chips/fdd.h" #include "ch...
#include "crun.h" //Fetch pre computed weight for that count static inline double compute_weight(state_t *s, int nid) { int count = s->rat_count[nid]; return s->pre_computed[count]; } /* Compute sum of sumweights in region of nid */ static inline double compute_sum_weight(state_t *s, int nid) { graph_t *g...
#include <stdio.h> #include <stdlib.h> #include <string.h> // Para usar strings // SOIL é a biblioteca para leitura das imagens #include "SOIL.h" // Um pixel RGB typedef struct { unsigned char r, g, b; } RGB; // Uma imagem em RGB typedef struct { int width, height; RGB *img; } Img; // Protótipos void l...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
#include <stdlib.h> #include <stdio.h> #include "ll.h" //Sort list in ascending order using insertion sort Node * SortList(Node * head) { Node * moving = NULL; Node * predlarge = NULL; Node * new = NULL; Node * current = NULL; if(head==NULL || head->next==NULL) //Nothing to do return head;...
/*****************************************************************************\ * ANALYSIS PERFORMANCE TOOLS * * Extrae * * Instrumentation package for parallel applications * **...
#include "fileinfo/functions.h" #include "fileinfo/static.h" #include "fileinfo/dynamic.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "headers.h" /* We cannot include fnctl.h and linux/fnctl.h at the same time */ #ifndef HAVE_FCNTL_H #ifdef HAVE_LINUX_FCNTL_H #include <linux/fcntl.h> #endif #...
/*********************************************************************************************************************************** Socket Common Functions ***********************************************************************************************************************************/ #include "build.auto.h" #incl...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <phylo.h> #include <string.h> #include <utils.h> #include <lib.h> #define SEM_PREFIX "CHOPSTICK_" #define SEM_PHILO_ID_LEN 13 static philo_state_t philos_state...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2002-2010 <NAME> <<EMAIL>> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free...
//*********************** DAC.c *********************** // Program written by: <NAME> & <NAME> // This file is not used in program, but maybe you can get it working! #include <stdint.h> #include <string.h> #include "..//inc//tm4c123gh6pm.h" #include "Timer0A.h" #include "Timer1.h" #include "DAC.h" #include "dac_cons...
/* * Author: daddinuz * email: <EMAIL> * * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights...
/** * @file mod_button.c * @brief Button module * @author kuanshaw * @date 2021-3-11 * @version v1.0.0 */ #include "mod_button.h" #define BTN_DEBUG_ENABLE #ifdef BTN_DEBUG_ENABLE #include <rtthread.h> #define BTN_DEBUG(fmt, ...) rt_kprintf("[BtnLog]: "fmt, ##__VA_ARGS__) #else #define BTN_DEBUG(fmt, ....
// https://github.com/archibate/OS67/blob/master/drv/vga.c #include <console.h> #include <l4/machine/asm/io.h> #include <memory.h> #include <stdlib.h> #define IO_VGA_CRT 0x3d4 struct con_color { char fc: 4; char bc: 4; }; struct con_char { char ch; struct con_color clr; }; static struct con_char *buf; static s...
/* For license: see LICENSE.txt file at top-level */ #include <assert.h> #include <stdlib.h> #include <stdio.h> #include <shmem.h> #include <math.h> #include <hoover.h> #define ACTOR_ID 0 #define POS 1 unsigned N = 50000; int pe, npes; hvr_partition_t actor_to_partition(const hvr_vertex_t *vertex, hvr_ctx_t ctx) {...
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* chainToAxt - Convert from chain to axt file. */ /* Copyright (C) 2011 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "dnaseq.h" #include "chain.h" #include ...
/* * memlib.c - a module that simulates the memory system. Needed * because it allows us to interleave calls from the student's malloc * package with the system's malloc package in libc. * */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <unistd.h> #include <sys/mman.h> #include <string.h> #...
/*~~~~~~~~~~~~~~~~~~Multicast Options: Device-Level Scheduled~~~~~~~~~~~~~~~~~~~~*/ /* * * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * File: cint_multicast_ap...
/* * This file is part of the coreboot project. * * Copyright 2018 Google LLC * * 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; version 2 of the License. * * This program is distributed...
/* Copyright 2020 <NAME>, aka <NAME> (@drashna) <<EMAIL>> * * 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. * * ...
/** * Copyright 2013 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* mpn_mod_1(dividend_ptr, dividend_size, divisor_limb) -- Divide (DIVIDEND_PTR,,DIVIDEND_SIZE) by DIVISOR_LIMB. Return the single-limb remainder. There are no constraints on the value of the divisor. Copyright 1991, 1993, 1994, 1999, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU MP ...
#include <stdint.h> #include <float.h> #include <stdio.h> #include "intrinsic.h" #include "velintrin.h" #define VLEN (256) static inline void _apply_adam_f32_packed( float* var, float* m, float *v, const float beta1, const float beta2, const float epsilon, const float k, const int64_t numElement, const...
/* **************************************************************************** * Copyright (C) 2019 Maxim Integrated Products, Inc., All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to de...
static char sccsid[]="@(#)substation.c 20.3 2/15/95"; /* * IPF V2.x: Interactive PowerFlow Version 2.x * Bonneville Power Administration (BPA) * Authors: <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, * <NAME> * * N...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2021 Gateworks Corporation */ #include <common.h> #include <cpu_func.h> #include <hang.h> #include <i2c.h> #include <image.h> #include <init.h> #include <log.h> #include <spl.h> #include <asm/io.h> #include <asm/mach-imx/gpio.h> #include <asm/mach-imx/iomux-v3.h> #...
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include "key_value.h" #include "spi_flash.h" #include "elog.h" #define ELOG_START_ADDR (0) #define ELOG_AREA_SIZE (4*1024*200) #define ELOG_ERASE_MIN_SIZE (4*1024) #define ELOG_APP_INIT_MARK ...
/* * Copyright (c) <NAME>. All rights reserved. * * This file is part of ntlmclient, distributed under the MIT license. * For full terms and copyright information, and for third-party * copyright information, see the included LICENSE.txt file. */ #include <locale.h> #include <iconv.h> #include <string.h> #inclu...
/* * * Copyright 2016, Google Inc. * 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 condi...
/*************************************************************************** lib/async.c ------------------- copyright : (C) 2002 by <NAME> email : <EMAIL> *************************************************************************...
/* Copyright (c) 2015 WattGo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <stdbool.h> #include <libgen.h> #include <getopt.h> #include <stdlib.h> #include "nrt.h" #include "util.h" #define DEFAULT_VARFILE "vars.inc" #define DEFAULT_OUTFILE "chr1.png" typedef struct tilec_opts { ch...
/*************************************************************************** * lookup.c: * * Generic lookup routines for Mini-SEED information. * * Written by <NAME>, ORFEUS/EC-Project MEREDIAN * * modified: 2006.346 ***************************************************************************/ #include <string....
/* Hatari - main.c This file is distributed under the GNU Public License, version 2 or at your option any later version. Read the file gpl.txt for details. Main initialization and event handling routines. */ #include <time.h> #include <signal.h> #include <sys/time.h> #include <unistd.h> #include <signal.h> ...
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #include "aos/kernel.h" #include "aos/vfs.h" #include "aos_system.h" #include "aos_fs.h" #include "amp_platform.h" #include "amp_config.h" #include "amp_task.h" #include "amp_defines.h" #include "board_mgr.h" #include "cJSON.h" #define MOD_STR "AMP_ENGIN...
#include "servo.h" //Set servo period in Hz #define SERVO_PERIOD 50 //Set timer settings #define CLOCK_SPEED 16000000 #define TIMER_RELOAD 320000 // #define TIMER_RELOAD (CLOCK_SPEED/SERVO_PERIOD) #define PWMN_GPIOTE_CH {0, 1, 2, 3} #define PWMN_PPI_CH_A {0, 2, 3, 4} #define PWMN_PPI_CH_B {1, 1, 5,...
/* Copyright <2017> <Scaleable and Concurrent Systems Lab; Thayer School of Engineering at Dartmouth College> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without...
#include <inttypes.h> #include <stdlib.h> #include "desktop.h" #include "rect.h" //================| Desktop Class Implementation |================// //Mouse image data #define CA 0xFF000000 //Black #define CB 0xFFFFFFFF //White #define CD 0x00000000 //Clear unsigned int mouse_img[MOUSE_BUFSZ] = { CA, CD, CD, C...
/* @(#) im_similarity_area() ... similarity transform. Like affine, but * @(#) rotate/scale only. * @(#) * @(#) int im_similarity_area(in, out, a, b, dx, dy, w, h, x, y) * @(#) IMAGE *in, *out; * @(#) double a, b, dx, dy; * @(#) int w, h, x, y; * @(#) * @(#) Forward transform * @(#) X = a * x - b * y + dx * @...
/* voigt.c: computes exact Voigt profiles in terms of the complex error function (requires libcerf) */ #include "mex.h" #include <cerf.h> #include <math.h> #include <stdio.h> #define LAMBDAS_ARG prhs[0] #define Z_ARG prhs[1] #define N_ARG prhs[2] #define NUM_LINES_ARG prhs[3] #define sigma_AR...
#include "nios2_control.h" #define TIMER_STATUS ((volatile unsigned int *) 0x10002000) #define TIMER_CONTROL ((volatile unsigned int *) 0x10002004) #define TIMER_START_LO ((volatile unsigned int *) 0x10002008) #define TIMER_START_HI ((volatile unsigned int *) 0x1000200C) #define JTAG_UART_DATA ((volatile unsig...
#include "../config.h" #include "cluster.h" #include "conn.h" #include "libuv/include/uv.h" #include "redismodule.h" #include "rmutil/periodic.h" #include "version.h" #define REDIS_CLUSTER_REFRESH_TIMEOUT 1000 MRClusterTopology *RedisCluster_GetTopology(RedisModuleCtx *ctx) { const char *myId = NULL; RedisModule...
/****************************************************************************** * Sine loopback test for SuperAudioBoard * Copyright (c) 2015 RF <NAME>, <EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to de...
/* * Copyright (c) 2014 by the Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ #include "config.h" #include <sys/types.h> #include <sys/param.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include "argcargv.h" #include "code....
/* * Menu listing. */ #include <sys/stat.h> #include <dirent.h> #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <math.h> #include "gopherd.h" bool showhidden; bool hidesize; /* * Return a string of human-readable digits in the form...
#include "dev.h" #include <drivers\codec\adi_ad1836a_ii.h> // uart driver includes #include "audio.h" #include <string.h> #include <sys/exception.h> #include <cdefBF561.h> #include <ccblkfn.h> #include <sysreg.h> #include "ezkitutilities.h" #define OUTBUFLEN 256 #define INBUFLEN 256 #define min(a,b) ((a)<(b)?(a):(b...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <conio.h> #include <windows.h> #include <stdbool.h> // sabitler #define SCREENX 80 #define SCREENY 45 #define PERDEZ 20.0 #define ABS(x) ((x)>=0 ? (x) : -(x)) // global degiskenler int buffer = 0; int sayimatris = 0; ...
#include "esp_log.h" #include "driver/gpio.h" #include "driver/ledc.h" #include "hap.h" static const char *TAG = "homekit ledc"; extern int led_brightness; /*Homekit macros*/ #define ACCESSORY_NAME "LED" #define MANUFACTURER_NAME "Rillhu" #define MODEL_NAME "ESP32_ACC" #define ARRAY_SIZE(array) (sizeof(array) ...
/* Copyright (c) 2014, <NAME> <<EMAIL>> 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 lis...
/* ---------------------------------------------------------------------------- * callSparseAim.c * wrapper to sparseAim() * Allocates memory * for sparseAim and calls sparseAim * takes as input a full H matrix, and...
#include <arch/arch.h> #include <time.h> #include <stdio.h> #include <schedule.h> #include <multiboot.h> #include <pmap.h> #include <smp.h> /* Determines the overhead of tsc timing. Note the start/stop calls are * inlined, so we're trying to determine the lowest amount of overhead * attainable by using the TSC (or ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #define NDERIVS 4 //Number of derivatives double deriv(double x){ return -1*x; } void advance_vel(double x, double *v, double step){ *v += step*deriv(x); /* offset the velocity by half a time step using the Euler method */ } void leapfrog(dou...
/* SPDX-License-Identifier: BSD-3-Clause */ /* Copyright (C) 2019 Kontron Europe GmbH */ /* KEAPI network info implementation. */ #include <unistd.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/ioctl.h> #include <net/if.h> #include <arpa/inet.h> #include <linux/ethtool.h> #include <linux/...
/*D*********************************************************** * Modul: DBI - database info * Liste aller Teildienstleistungen einer * �bergeordneten Teildienstleistung * -> Was macht der Dienstleistungstr�ger Uebersicht * ...
#include <stdio.h> /*#include "net/af.h" #include "net/protnum.h" #include "net/ipv6/addr.h" #include "net/sock/udp.h" #include "xtimer.h" #include "net/sock.h" */ uint8_t buf[7]; #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "net/sock/udp.h" /* needed for posix usleep...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #define VERBOSE 0 int decompress_signal(unsigned short *sig_in, short *sig_out, int sig_len_in) { int i, j, min, nb, isi, iso, nw, bp, siglen; unsigned short db[2]; unsigned int *dd = (unsigned int *) db; sta...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "waveio.h" #include "sampleio.h" #define WAV_FORMAT 0 #define TXT_FORMAT 1 #define PIPE 2 #define NO_ENV 3 static unsigned int name_to_type(char **s) { int len; char *buf = *s; /* If the name begins with "$", read the true filenam...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <wchar.h> #include <windows.h> #include "lavendeux.h" #include "language.h" #include "parse.h" #include "interface.h" #include "settings.h" #include "extensions.h" #include "cmdflags.h" /* Configuration file settings */ int config_off = 0; FILE* con...
/* * Tarantool interface, external linkage. * * Note: functions with "sqlite3" prefix in their names become static in * amalgamated build with the help of a custom preprocessor tool, * that's why we are using a weird naming schema. */ #include <stdint.h> /* * Tarantool system spaces. */ #define TARANTOOL_SYS_...
// // PC-Wahl 10.0 studio.hash zip - Password Extractor (c) 2017 // by Thorsten (<NAME> <ths [at] ccc [dot] de> // /* BSD 3-Clause License Copyright (c) 2017, Chaos Computer Club Author: Thorsten (<NAME> <ths [at] ccc [dot] de> All rights reserved. Redistribution and use in source and binary forms, w...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* tok.c :+: :+: :+: ...
#include <libugomemo.h> /** * kwz_audio.c * * Functions relating to encoding and decoding KWZ audio, as well as determining correct initial step index values for * incorrectly encoded audio (DSi Library, all flipnotes from Flipnote Studio 3D). */ /* ========================================== Constants =========...
struct FPOINT { double x; double y; }; struct LINESEGMENT { struct FPOINT a; struct FPOINT b; }; #include <math.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #define LineTest(one, two) (-((one.b.y - two.b.y)*(two.a.x - two.b.x) - (one.b.x - two.b.x)*(two.a.y - two.b.y))/((one.a.y - one.b.y)*(two...
#include <stdlib.h> #include <getopt.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <assert.h> #include "protein.h" #include "descriptor.h" #include "parser/parser.h" #include "ngrams/nGram.h" #include "angleDescriptor/angleDescriptor.h" #include "Distance/distance.h" #define DIE() die_with_u...
/******************************************************************************************************** * @file rf.h * * @brief for TLSR chips * * @author telink * * @par Copyright (c) Telink Semiconductor (Shanghai) Co., Ltd. * All rights reserved. * * The in...
#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <tss2/tss2_tpm2_types.h> #include "log.h" #include "efi_event.h" #include "tpm2_alg_util.h" #include "tpm2_eventlog.h" #include "tpm2_eventlog_yaml.h" #include "tpm2_tool.h" #include "tpm2_tool_output.h" char const *eventtype_to_string (UINT32 eve...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
// TI File $Revision: /main/3 $ // Checkin $Date: August 2, 2006 13:51:11 $ //########################################################################### // // FILE: DSP280x_EQep.c // // TITLE: DSP280x eQEP Initialization & Support Functions. // //###################################################################...
#include "ev_server.h" /************************************************************************/ /* callback */ /************************************************************************/ static void listener_accept_cb(struct evconnlistener *, evutil_soc...
/* * proto_gtpv2.c * * Created on: Dec 11, 2020 * Author: nhnghia */ #include "mmt_mobile_internal.h" static int _extraction_att(const ipacket_t * ipacket, unsigned proto_index, attribute_t * extracted_data) { uint16_t seq_num; uint32_t teid; int offset = get_packet_offset_at_index(ipacket, proto_index);...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* build.c ======= Author: R.J.Barnes, J.Spaleta */ /* (c) 2010 JHU/APL & Others - Please Consult LICENSE.superdarn-rst.3.1-beta-18-gf704e97.txt for more information. Update Log: 2011Jan13 22:13:00 KTS Jef found a small bug with the OpsBuildIQ function that randomly caused Kodiak and McMurdo to crash. The...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, * including without...
/* * * ============================================================================ * Copyright (c) 2009-2011 Marvell International, Ltd. All Rights Reserved * * Marvell Confidential * ============================================================================ * */ ...
/* * main.c * * Copyright 2013 Shimon <<EMAIL>> * * 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 ...
void io_hlt(void); //hlt void io_cli(void); void io_out8(int port, int data); int io_load_eflags(void); void io_store_eflags(int eflags); void init_palette(void); void set_palette(int start, int end, const unsigned char* rgb); void boxfill8(unsigned char* vram, int xsize, unsigned char c, int x0, int y0, int x1, ...
#include <param.h> #include <x86.h> #include <proto.h> #include <proc.h> // #include <page.h> #include <vm.h> // #include <buf.h> #include <conf.h> #include <hd.h> // #include <super.h> #include <inode.h> #include <file.h> #include <a.out.h> /* * vm.c * */ /* --------------------------------------------------------...
/*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
// USB.c connects with a USB device and sends commands // created 17/11/2020 by Andi // to compile with libusb: // see https://forums.xilinx.com/t5/Embedded-Linux/PetaLinux-2019-need-to-support-on-adding-libusb/td-p/1010540 // - enable libusb1 in petalinux-config -c rootfs /filesystem packages/misc/libusb1 // - add fol...
#include <assert.h> #include <stdlib.h> #include <string.h> #include "nrfdfu_contr.h" static void send_event_get_data(struct nrfdfu_contr *contr, struct nrfdfu_data *data); static void send_event_free_data(struct nrfdfu_contr *contr, struct nrfdfu_data...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define HASH 32767 typedef int32_t INT32; void F_error(char *e,char *e2); FILE *JUG4save(char *jugfile,char *entryname, INT32 *len); char *protectfilename(const char *filename); INT32 getfilelength(FILE *fp); void stringlower(ch...
#include "asf.h" #include "shapefil.h" #include "asf_vector.h" #include <ctype.h> #include <string.h> static void remove_quotes(char *str) { char *p = str; if (*p == '"') ++p; if (p[strlen(p)-1] == '"') p[strlen(p)-1] = '\0'; strcpy(str, p); } // Initialize shape file void shape_point_init(char *inFil...
#include <mach/mt_c2k_sdio.h> #include <linux/interrupt.h> #include <linux/of_irq.h> #include <linux/of_address.h> static pm_callback_t via_sdio_pm_cb; static void *via_sdio_pm_data; void c2k_sdio_register_pm(pm_callback_t pm_cb, void *data) { pr_info("c2k_sdio_register_pm (0x%p, 0x%p)\n", pm_cb, data); /* registe...
/** \brief This program shows the use of the "radio" bsp module. Since the bsp modules for different platforms have the same declaration, you can use this project with any platform. After loading this program, your board will switch on its radio on frequency CHANNEL. While receiving a packet (i.e. from the ...
/* * user_mqtt.c * * Created on: Oct 5, 2016 * Author: <NAME> */ #include "ets_sys.h" #include "osapi.h" #include "mqtt.h" #include "config.h" #include "debug.h" #include "mem.h" #include "user_mqtt.h" #include "config.h" #include "user_ir.h" #include "user_json.h" #include "base64.h" static bool isMqttConnected ...
/*- * Public Domain 2014-2016 MongoDB, Inc. * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary,...
/* * Copyright (c) 2011,2013-2014 The Linux Foundation. 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...
/* * flac_encoder.c * libsprec * * Created by <NAME> (H2CO3) * on Sun 15/04/2012. */ #include <stdlib.h> #include <unistd.h> #include <FLAC/all.h> #include <sprec/flac_encoder.h> #include <sprec/wav.h> #include <alloca.h> #define BUFSIZE 0x5000 /* * Search a NUL-terminated C string in a by...
/** * @file mix_common.c * @author <NAME> AKA Ben/OVR * @date 2017-07-04 * @brief common parts for none, lerp and qerp mixer. */ #ifndef NAME #error NAME should be defined #endif #ifndef DESC #error DESC should be defined #endif #if !defined (FP) || (FP > 16) || (FP < 7) # error undefined of invalid FP #en...
/* MIT License Copyright (c) 2020 zuhima(TW:@null_cats) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
/* * Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
// Copyright 2018 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include "devicetree.h" #define DT_MAGIC 0xD00DFEED #define DT_NODE_BEGIN 1 #define DT_NODE_END 2 #define DT_PROP 3 #define DT_EN...