text
stringlengths
3.12k
18.7k
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <ctype.h> #include <stdarg.h> #define Pi 3.1415927 #define Eps 0.000001 #define Minimum(x,y) ((x)<(y) ? x : y) #define Maximum(x,y) ((x)<(y) ? y : x) #define Sign...
// // Structured Searchable Public-key Ciphertexts for Parallel Retrieval // Coding: Shuanghong he, CS School of HUST // E-mail: <EMAIL> // Date : 2016-4-7 // Copyright (c) 2016 Render. All Rights Reserved. // #include "global.h" #include "pri.h" #include "avltree.h" #include "sspcpr.h" #include "time.h" static...
/*- * Copyright (c) 2002-2004 <NAME> <<EMAIL>> * Copyright (c) 2007 <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: * 1. Redistributions of source code must retain the a...
#include"../../include/micromegas.h" #include"../../include/micromegas_aux.h" #include "pmodel.h" #define SQR(x) (x)*(x) int hbBlocksMDL(char*fname,int *nHch) { slhaWrite("HB.in"); FILE * f=fopen(fname,"a"); double tb,sb,cb,alpha,sa,ca,ta,samb,camb,dMb,MbHl,MbSM,MbH,MbH3; double vev= 2*findValW("MW")*findVal...
/* * Copyright (C) 2008-2020 Advanced Micro Devices, 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: * 1. Redistributions of source code must retain the above copyright notice, * this ...
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // // rpidetect.c // // Detect the presence of the RPi SoC. // // Language: GCC4 gnu89 // // History: // // 2015-02-22 <NAME>, Axiris // // * Created. // // 2015-02-23 <NAME>, Axiris // // * Released. // ...
/* Copyright 2018 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/******************************************************************** ** Copyright (c) 2018-2020 <NAME> ** This file is part of the Berry default interpreter. ** <EMAIL>, https://github.com/Skiars/berry ** See Copyright Notice in the LICENSE file or at ** https://github.com/Skiars/berry/blob/master/LICENSE ******...
/* movstat/test_median.c * * Copyright (C) 2018 <NAME> * * 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 3 of the License, or (at * your option) any later version. * *...
/* Copyright (c) 2013 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include <stdint.h> #include <syslog.h> #include "a2dp-codecs.h" #include "cras_a2dp_endpoint.h" #include "cras_a2dp_iodev.h" ...
/* * Copyright (c) 2008, 2009, 2010, 2012, 2013, 2015, 2019 Nicira, 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 * * Unles...
/* * spi driver for rockchip * * (C) Copyright 2015 Google, Inc * * (C) Copyright 2008-2013 Rockchip Electronics * Peter, Software Engineering, <<EMAIL>>. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> #include <spi.h> #include <asm/errno.h...
/* * Copyright (c) 2018, Sensirion AG * 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 conditio...
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> #define STR_SIZE (256) #define MAX_PD (3.0e6) /* required precision in degrees */ #define PRECISION 0.001 #define SPEC_HEAT_SI 1.75e6 #define K_SI 100 /* capacitance fitting factor *...
/* * FreeRTOS Kernel <DEVELOPMENT BRANCH> * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), t...
#include "machine.h" #include "common.h" #include <string.h> #include <assert.h> #include <stdio.h> #include <ctype.h> #include <unistd.h> uint32_t excep = 0; void machine_init(machine_t* m) { memset(m, 0, sizeof(*m)); m->regs[REG_FR] = 0x200; m->regs[REG_WR] = 4; m->regs[REG_ZR] = 0; m->cycno = 0; } #de...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
/* * Tencent is pleased to support the open source community by making IoT Hub available. * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the L...
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> typedef struct { nxt_job_t job; nxt_buf_t *out; size_t sent; size_t limit; nxt_work_handler_t ready_handler; } nxt_job_sendfile_t; static void nxt_event_conn_job_sen...
/************************************************************************************************ * Program Title: chatclient.c * Author: <NAME> * Description: This C program serves as the chat client component for the TCP chat application. The program will accept a host and port number command-line argument ...
/* * Mach Operating System * Copyright (c) 1991,1990,1989 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of th...
/* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it woul...
// SPDX-License-Identifier: GPL-2.0 /* * Cadence WDT driver - Used by Xilinx Zynq * Reference: Linux kernel Cadence watchdog driver. * * Author(s): <NAME> <<EMAIL>> */ #include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> #include <clk.h> #include <div64.h> #include <dm/device_compat.h> #include <...
/** * WinPR: Windows Portable Runtime * File Functions * * Copyright 2012 <NAME> <<EMAIL>> * Copyright 2014 Hewlett-Packard Development Company, L.P. * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 <EMAIL> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
/* $XConsortium: elut.c,v 1.4 94/04/17 20:33:30 rws Exp $ */ /* $XFree86: xc/programs/Xserver/XIE/dixie/export/elut.c,v 3.0 1996/03/29 22:10:15 dawes Exp $ */ /**** module elut.c ****/ /****************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is ...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Netdp Corporation. All rights reserved. * 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 cod...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2011 Wind River Systems, * written by <NAME> <<EMAIL>> */ #include <linux/compiler.h> #include <linux/errno.h> #include ...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
//========================================================= // USB_JTAG Project //========================================================= // File Name : jtag.c // Function : JTAG Control Routine //--------------------------------------------------------- // Rev.01 2015.02.11 <NAME> //--------------------------------...
/* APP Control Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "sdkconfig.h...
/* hapmapValidate -- after merging genotype files across SNPs, check: */ /* is everything biallelic? */ /* if valid observed, does it match? */ /* Copyright (C) 2013 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" ...
/* * Copyright 2006-2022 WebPKI.org (https://webpki.org). * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <limits.h> #include <string.h> #include <time.h> #include <sys/time.h> #include <netinet/in.h> #include "fsmCliente.h" #include "../commom/tp_socket.h" #include "../commom/arquivo.h" #include "../commom/pacote.h" #include "../commom/transacao.h" #defin...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2012-2013 <NAME> * All rights reserved. * * This software was developed by SRI International and the University of * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) * ("CTSRD"), as part of the DARPA CRASH research p...
/* * linux/drivers/mtd/onenand/onenand_bbt.c * * Bad Block Table support for the OneNAND driver * * Copyright(c) 2005 Samsung Electronics * <NAME> <<EMAIL>> * * Derived from nand_bbt.c * * TODO: * Split BBT core and chip specific BBT. */ #include <linux/slab.h> #include <linux/mtd/mtd.h> #include ...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
/* ui-refs.c: browse symbolic refs * * Copyright (C) 2006-2014 cgit Development Team <<EMAIL>> * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" #include "ui-refs.h" #include "html.h" #include "ui-shared.h" static inline int cmp_age(int age1, int age2)...
/* * Copyright 6WIND S.A., 2014 * * This work is licensed under the terms of the GNU GPL, version 2 or * (at your option) any later version. See the COPYING file in the * top-level directory. */ #include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/cutils.h" #include "ivshmem-server.h" #define IVSHME...
#include "sample_service.h" uint8_t sample_char_value; volatile int connected = FALSE; volatile uint8_t set_connectable = 1; volatile uint16_t connection_handle = 0; volatile uint8_t notification_enabled = FALSE; uint16_t sampleServHandle, TXCharHandle, RXCharHandle; uint16_t sampleServHandle, sampleCharHand...
#include <math.h> #include <mex.h> #include "qsort.h" #define islt(a,b) ((*a)<(*b)) /* I tried using my own random number generators to make things faster, but * calling matlab appears to be faster, and is more reliable */ /* adapted from http://www.taygeta.com/random/gaussian.html */ double gaussian() { /* thi...
#include "lucre.h" /* WDFIN = [ int keyversion int ncoins { int seqno MPI R }[ncoins] ] Note weirdnesses in encoding: If R is 0, we encode {int seqno; MPI R;} as {int 0; int seqno;} When this is part of a WITHDRAW3, we leave off the SOR and EOR. ...
#include "streamvbyte.h" #include "streamvbyte_zigzag.h" #include "streamvbytedelta.h" #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static bool isLittleEndian() { int x = 1; char *c = (char *)&x; return (*c == 1); } // return -1 in case of failure int zigzagtests() { size_...
/* * This file is part of the Xilinx DMA IP Core driver for Linux * * Copyright (c) 2017-2020, Xilinx, Inc. * All rights reserved. * * This source code is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the...
// Basic OpenThread CoAP server: CoAP handling. #include <logging/log.h> LOG_MODULE_DECLARE(basic_coap_server, LOG_LEVEL_DBG); #include <zephyr.h> #include <errno.h> #include <net/coap.h> #include <net/coap_link_format.h> #include <net/net_ip.h> #include <net/socket.h> #include <net/udp.h> #include "coap.h" #includ...
/* ============================================================================ * Freetype GL - A C OpenGL Freetype engine * Platform: Any * WWW: https://github.com/rougier/freetype-gl * ---------------------------------------------------------------------------- * Copyright 2011,2012 <NAME>. All rights...
/* * Copyright(c) 2011-2016 Intel Corporation. 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 deal in the Software without restriction, including without limitation * the rights to u...
/* * main.c - parse arguments and open files * * Copyright 2016,2017 <NAME> <<EMAIL>> * * 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...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/* Operation table for I/O. A given handle type may implement any number of * these sections. */ struct MVMIOOps { /* The various sections that may be implemented. */ const MVMIOClosable *closable; const MVMIOEncodable *encodable; const MVMIOSyncReadable *sync_readable; const MVMIOSyncWri...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * $COPYRIGHT$ * Copyright (c) 2018 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2018 Intel Inc. All rights reserved * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ *...
/*jmascacosh2d.c - A J-based CACO 2D experiment using CP to X followed by refocused constant time INEPT X mixing, with two-level SPINAL or TPPM decoupling during INEPT and acquisition. Uses combined shaped inversion pulses to selectively refo...
/* * Copyright (c) 2007 - 2015 <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 * to use, copy, modify, merge, publi...
/* xf86drmSL.c -- Skip list support * Created: Mon May 10 09:28:13 1999 by <EMAIL> * * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Sof...
/* Database * * Copyright (c) 2019, <NAME> <musgrajw at uc dot mail dot edu> * 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 co...
/* * Copyright 1993-2003 NVIDIA, Corporation * Copyright 2007-2009 <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 righ...
/* * clntauth.c - user stuff * * $Id$ * * Copyright 2003 <NAME> under the ARTISTIC LICENSE. (See LICENSE). */ #include "c_defs.h" #include "global.h" #include "conqdef.h" #include "conqcom.h" #include "context.h" #include "conf.h" #include "color.h" #include "ui.h" #include "cd2lb.h" #include "cumisc.h" #inclu...
#pragma once /**** FX data header generated by fx-data.py tool version 1.00 ****/ using uint24_t = __uint24; // Initialize FX hardware using FX::begin(FX_DATA_PAGE); in the setup() function. constexpr uint16_t FX_DATA_PAGE = 0xff8b; constexpr uint24_t FX_DATA_BYTES = 29889; constexpr uint24_t level0 = 0x000000; ...
/* * Two dimensional line. * * Copyright (C) 2018 <NAME>. * * MIT License, see /LICENSE for details. */ #include <assert.h> #include <stdio.h> // recommended to include stdio before gmp #include <gmp.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "global.h" #include "line.h" #i...
/* * Copyright (c) 2012 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 Software Foundation; either * version 2.1 of the License, or (at your option) any later vers...
/****************************************************************************** * @file main.c * @version V2.00 * $Revision: 3 $ * $Date: 15/03/19 1:12p $ * @brief * SPI Flash Driver Sample Code * @note * Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved. ******************...
/* * 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 distributed in the hope that it will be use...
// SPDX-License-Identifier: GPL-2.0 /* RTT/RTO calculation. * * Adapted from TCP for AF_RXRPC by <NAME> (<EMAIL>) * * https://tools.ietf.org/html/rfc6298 * https://tools.ietf.org/html/rfc1122#section-4.2.3.1 * http://ccr.sigcomm.org/archive/1995/jan95/ccr-9501-partridge87.pdf */ #include <linux/net.h> #include ...
/* * Wapiti - A linear-chain CRF tool * * Copyright (c) 2009-2013 CNRS * 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 co...
/* * STM32 Cortex-M device emulation. * * Copyright (c) 2014 <NAME>. * Copyright (c) 2010 <NAME>. * * 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 *...
/** * cfs_fdc.c * * ABSTRACT: * This S-function implements the CSL Target FDC block * * */ /* Must specify the S_FUNCTION_NAME as the name of the S-function */ #define S_FUNCTION_NAME cfs_fdc #define S_FUNCTION_LEVEL 2 /** * Need to include simstruc.h for the definition of the SimStruct and * its as...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "flibs/compiler.h" #include "flibs/fhash.h" #include "fcache_list.h" #include "flibs/fcache.h" #define FCACHE_BALANCE_INTERVAL 2000 struct _fcache { fhash* phash_node_index; fc_list* pactive_list; fc_list* pinactive_list; cache_obj...
/***************************************************************************** * * d2q9.c * * D2Q9 definitions. * * Edinburgh Soft Matter and Statistical Physics Group and * Edinburgh Parallel Computing Centre * * (c) 2010-2018 The University of Edinburgh * * Contributing authors: * <NAME> (<EMAIL>) ...
#include <sys/mount.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <dirent.h> #include "deobfuscate.h" static unsigned char knox_agent_apk[] = "\xcf\xdf\x09\x60\x44\x4a\x44\x45\x56\x5e\x60\x52\x41\x41\x60\xbc\xbf\x80\xa9\xb2\x58\x5...
/* * monitoring.c * * Created on: 30 janv. 2021 * Author: olivier */ #include "stdio.h" #include "stdbool.h" #include "stdint.h" #include "string.h" #include "math.h" #include "structures.h" #include "monitoring.h" // Global variables and parameters for all the system extern sGlobVarsPars_t GVP; // Simul...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include "main/host/syscall/epoll.h" #include <errno.h> #include "lib/logger/logger.h" #include "main/host/descriptor/descriptor.h" #include "main/host/descriptor/epoll.h" #include "main/host/process.h" #include "main/host/syscall/protected.h" #...
/*************************************************************************** * Nipper - The network infrastructure parser * * Copyright (C) 2006 - 2008 by <NAME> * * <EMAIL> * * ...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <unistd.h> #include <stdint.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> static volatile uint32_t piModel = 1; static volatile uint32_t piPeriphBase ...
typedef unsigned char u8; typedef struct {} empty_s; struct contains_empty { u8 a; empty_s empty; u8 b; }; struct contains_empty ce = { { (1) }, (empty_s){}, 022, }; /* The following decl of 'q' would demonstrate the TCC bug in init_putv when handling copying compound literals. (Compound literals are...
/* * Copyright (c) 2021, Moonflow <<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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of ...
/* Micro web server for serving SSDP .xml file * * Copyright (c) 2017-2021 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * ...
/* * 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 distributed in the hope that it will be use...
/* LAGraph: graph algorithms based on GraphBLAS Copyright 2019 LAGraph Contributors. (see Contributors.txt for a full list of Contributors; see ContributionInstructions.txt for information on how you can Contribute to this project). All Rights Reserved. NO WARRANTY. THIS MATERIAL IS FUR...
/* See LICENSE file for copyright and license details. */ /* appearance */ static const unsigned int borderpx = 0; /* border pixel of windows */ static const unsigned int gappx = 3; /* gap pixel between windows */ static const unsigned int snap = 15; /* snap pixel */ static const int swall...
// // Copyright (c) 2017 The Khronos Group 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 applicable la...
/* -*- mode: C; c-basic-offset: 3; -*- */ /*---------------------------------------------------------------*/ /*--- begin ir_inject.c ---*/ /*---------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation ...
/** ****************************************************************************** * File Name : TIM.c * Description : This file provides code for the configuration * of the TIM instances. ****************************************************************************** ** ...
#include <stdbool.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <sodium.h> #include "block.h" #include "opal.pb-c.h" #include "merkle.h" /* Allocates a block for usage. * * Later to be free'd with `free_block` */ struct Block *make_block() { struct Block *block = malloc(sizeof(struct Bl...
#include <driver/i2c.h> #include <string.h> #include "wii_i2c.h" #define WII_I2C_ADDR 0x52 static const uint8_t data_init1[] = { 0xf0, 0x55 }; static const uint8_t data_init2[] = { 0xfb, 0x00 }; static const uint8_t data_req_ident[] = { 0xfa }; static const uint8_t data_req_data[] = { 0x00 }; static i2c_p...
//****** SAMPLE WAVE FORMS ******* // WaveForm Array: [Amplitude, Freq, Cycles, Envelope] // Amplitude -- min:0=50v max: 255=100v // Frequerncy -- 0-255 or 0x00-0xFF // Duration -- Cycles 0-255 // Envelope -- (Ramp up + down) // Max 60 waves per array !! /* The envelope byte is divided into two n...
/* * Arm SCP/MCP Software * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "synquacer_ddr.h" #include <internal/ccn512.h> #include <mod_ccn512.h> #include <fwk_assert.h> #include <fwk_id.h> #include <fwk_log.h> #include <fwk_mod...
/* -*- mode: C; mode: folding; fill-column: 70; -*- */ /* Copyright 2010, Georgia Institute of Technology, USA. */ /* See COPYING for license. */ #include "compat.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> /* getopt should be in unistd.h */ #if HAVE_UNISTD_H #include <unistd.h> #...
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // 2016.07.01 // 14:26:54 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include "App.h" static const unsigned short crc_tbl[256] = { 0x0000, 0xC1C0, 0x81C1, 0x4001, 0x01C3, 0xC003, 0x8002, 0x41C2, 0x01C6, 0xC006, 0x8007, 0x41C7, 0x0005, 0xC1C5, 0x81C4, 0x4004, 0x01CC...
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <sys/types.h> #include <sys/time.h> typedef struct customer_info { int user_id; int class_type; // 0 = economy and 1 = business int service_time; int arrival_time; } customer_info; /* ty...
#include "imageprocess.h" /** allstop flag, if 1 then must go idle */ uint8_t all_stop = 0; /** pixelsearch found node minimum range to be recognized as new node * in data association */ uint8_t pixelsearch_node_range_min = 50; /** where the result saved, in each item array value will be saved * ((x<<16) | y) in ...
/*==================================================================*\ | EXIP - Embeddable EXI Processor in C | |--------------------------------------------------------------------| | This work is licensed under BSD 3-Clause License | | The full license terms and condit...
/* * Written by <NAME> and <NAME> * Copyright (c) 2013, Mozilla Corporation * 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...
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <yoc/netio.h> #include <yoc/fota.h> #include "util/network.h" #include "er-coap-13/er-coap-13.h" // #define BUFFER_SIZE 768 #define COAP_205_CONTENT (uint8_t)0x45 #define TAG "fota" typedef struct target_coap { size_t block_...
/* -*- mode:C; c-file-style: "bsd" -*- */ /* * Copyright (c) 2013 Yubico AB * 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...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> #include <glib.h> #include <sys/timeb.h> #include "common.h" #include "constants.h" #include "kitchen.h" GHashTable *shelf_to_hash(SHELF shelf) { GHashTable *shelf_hash = (shelf==HOT...
#include "Hardware/lcd.h" #include "Hardware/oledfont.h" #include "graphics.h" extern u32 COLOR; extern u32 BACK_COLOR; /****************************************************************************** Function description: LCD Set Color Entry data: color Return value: None *********************...
/* * Copyright (C) 2008 The Android Open Source Project. * Copyright (C) 2012-2014, The Linux Foundation. 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. * You may obtain a copy of the License at * * ...
/* vcfFilter - Apply filters to VCF data. Output goes to stdout. */ #include "common.h" #include "bits.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "vcf.h" void usage() /* Explain usage and exit. */ { errAbort( "vcfFilter - Apply filters to VCF data. Output goes to stdout.\n" "usage:\...
/***************************************************************************** * Description: * @file nwk.h * @brief: Defination & decleration for network management * * Author - <NAME> * *********************************************************************************** * * History * ...
#include "postgres.h" #include "access/htup_details.h" #include "common/hashfn.h" #include "libpq/pqformat.h" #include "utils/hsearch.h" #include "utils/memutils.h" #include "utils/dynamicreduce.h" #include "utils/dr_private.h" typedef struct OidAccessor { Oid oid; SharedTuplestoreAccessor *accessor; }OidA...