text
stringlengths
3.12k
18.7k
/* * Copyright (c) 2021 Nordic Semiconductor * * SPDX-License-Identifier: Apache-2.0 */ #include "mesh_test.h" #include "mesh/net.h" #include "mesh/access.h" #define LOG_MODULE_NAME test_access #include <logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME, LOG_LEVEL_INF); #define GROUP_ADDR 0xc000 #define UNICAST...
#include "kmsnddev.h" #include "divfix.h" #include "s_logtbl.h" #include "s_deltat.h" #include <string.h> #define CPS_SHIFT 16 #define PHASE_SHIFT 16 /* 16(fix) */ typedef struct { KMIF_SOUND_DEVICE kmif; KMIF_LOGTABLE *logtbl; struct YMDELTATPCMSOUND_COMMON_TAG { Int32 mastervolume; Int32 step; Int32 output...
/** * \file interface-status.c * \author written by <NAME> <EMAIL> (C) 2013 * \date 2013 */ /* =head1 NAME dabba-interface-status - Manage network interface status =head1 SYNOPSIS dabba interface status <action> [<arguments>...] [--help] =head1 DESCRIPTION Give the user the possibility to manage the status ...
/*- * Copyright (c) 2015 Nuxi, https://nuxi.nl/ * * 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 conditions and the f...
#include <stdio.h> #include <stdlib.h> #include <memory.h> #include <unistd.h> #include <gd.h> #include <gdfontl.h> #include "vterm.h" #define SWAP_ENDIAN(val) ((unsigned int) ( \ (((unsigned int) (val) & (unsigned int) 0x000000ffU) << 24) | \ (((unsigned int) (val) & (unsigned int) 0x0000ff00U) << 8) | \...
/* Copyright 2010 SourceGear, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/*N adet öğrencinin (öğrenci sayısı kullanıcıdan alınacak)(menü aracılığıyla aşağıdaki işlemleri yapınız) · Öğrenci numarasını, ismini ve 3 ders için sınav sonuçlarını kullanıcıdan isteyen metodu · Okunan bu bilgileri giriş sırasına göre görüntüleyen metodu · Her dersin sınav sonuç ortalamasını bulan metodu · 60'dan...
/* * epu_align_to_event_api.c * * Code generation for function 'epu_align_to_event_api' * * C source code generated on: Fri Aug 31 09:30:57 2012 * */ /* Include files */ #include "rt_nonfinite.h" #include "epu_align_to_event.h" #include "epu_align_to_event_api.h" #include "epu_align_to_event_emxutil.h" /* Type...
/* * File: utils.c * Author: <NAME> * * Created on August 9, 2017, 2:59 PM */ #include "xc.h" #include "utils.h" #include "hal.h" #include "lcdi2c.h" #include <stdlib.h> LICK_T_G2 lick_G2 = { .current = 0u, .stable = 0u, .filter = 0u, .lickSide = 0u, .LCount = 0u, .RCount = 0u, .re...
/*** *** *** Saar CODE: *** *** ***/ #include <stdint.h> #include <string.h> #include "my_service.h" #include "ble_srv_common.h" #include "app_error.h" #include "SEGGER_RTT.h" // A function that will take care of some housekeeping of ble connections related to our service and characteristic void ble_my_s...
/*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. * * %sccs.include.proprietary.c% * * @(#)defs.h 5.3 (Berkeley) 04/12/91 */ /* * defs.h * * Definitions for f77pass1 * * University of Utah CS Dept modification history: * * $Header: defs.h,v 2.3 85/06/07 21:06:48...
/* * parameter-holder.c - A base class for GObjects whose properties include * algorithm parameters that can be serialized to key/value * pairs and interpolated between. * * de Jong Explorer - interactive exploration of the Peter de Jong attractor * Copyright (C) 2004 <NA...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "vk.h" #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <render/render.h> #include <lib/config.h> #include "device.h" #include "renderpass.h" #include "swapchain.h" #include "render_impl.h" #include "...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include "hexdump.c" #include "crc.h" #include "iic.h" #define MCS1_INFO_ADDR_BASE 0xfff80 #define MCS1_INFO_LEN 16 //bytes #define MCS1_ADDR_BASE 0x80000 #define SPI_FLASH_BLOCK 0x10000 #define SPI_FLASH_32K 0x8000 #def...
//Copyright (c) 2016 <NAME> and <NAME> //Licensed under the MIT license //See LICENSE.txt //Tasks to run as FreeRTOS tasks #include "rtos_tasks.h" //Device header #include <MKL46Z4.H> //Standard headers #include <stdint.h> #include <stdbool.h> //FreeRTOS libraries #include "FreeRTOS.h" #include "task.h" #include ...
/* This file has been prepared for Doxygen automatic documentation generation. */ /*! \file ********************************************************************* * * \brief The XMEGA Quadrature Decoder driver source file. * * This file contains the function prototypes and enumerator definitions * for va...
/* * Deals with all the complexity in C's declaration specification with * a rather large state machine model. C has a lot of ways to specify * something, that happens to be equivlant to other meanings, which are * also used. This state machine monitors the occurance of certain * identifiers to build a serise of o...
/* $NetBSD: ins_wch.c,v 1.6 2013/10/16 19:59:29 roy Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation Inc. * All rights reserved. * * This code is derived from code donated to the NetBSD Foundation * by <NAME> <<EMAIL>,<EMAIL>>. * * * Redistribution and use in source and binary forms, with or without *...
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 1998-1999 <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 ...
#include <stdio.h> #include <stdlib.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include <readline/readline.h> #include <readline/history.h> //#define PRINT_WHEN_MALLOC //#define PRINT_WHEN_FREE lua_State *g_state; char **g_cands; int g_quit; void eval(lua_State *L, const char* code); void err(lua...
#include <ncurses.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include "engine.h" #include "tmr.h" int score = 0, high_score = 0; int jump = 0; int paused = 1; int quit_game = 0; int died = 0; clock_t last_spawn = 0; /** reset_tmr() - Resets the game to a non-playable state * * This is called on ev...
/* * LUKS - Linux Unified Key Setup v2, PBKDF2 digest handler (LUKS1 compatible) * * Copyright (C) 2015-2019 Red Hat, Inc. All rights reserved. * Copyright (C) 2015-2019 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as pu...
/*D************************************************************ * Modul: GUI - BM dialog bradio.c * * Methods for class radio (one-of-many) selection * Size, creation, update, destroy * * Copyright: yafra.org, Basel, Switzerland ***********************************************...
/** * @copyright Copyright (c) 2022, Alibaba Group Holding Limited */ #include <xquic/xquic.h> #include "src/http3/xqc_h3_stream.h" #include "src/http3/xqc_h3_conn.h" #include "src/transport/xqc_engine.h" #include "src/transport/xqc_client.h" #include "src/transport/xqc_cid.h" #include "src/transport/xqc_conn.h" #in...
/* ----------------------------------------------------------------------- * * $Id$ * * @rocks@ * Copyright (c) 2000 - 2010 The Regents of the University of California * All rights reserved. Rocks(r) v5.4 www.rocksclusters.org * https://github.com/Teradata/stacki/blob/master/LICENSE-ROCKS.txt * @rocks@ * * $L...
/* * Copyright 2011 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * 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 Software Foundation; either * version 2.1 of the License, or (at your ...
# include <math.h> # include <stdio.h> # include <stdlib.h> # include <string.h> # include <hstio.h> /* defines HST I/O functions */ # include "calnic.h" /* defines NICMOS data structures */ # include "calnicb.h" /* defines CALNICB data structures */ # define BKG_THRESH1 5.0 # define BKG_THRESH2 5.0 # define BKG_...
/* Copyright (C) 2015-2019 Parallel Realities 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 t...
/******************************************************************************* Fluidsynth Plug-In for Petit_Ami sound module Allows Fluidsynth to serve as a plug-in for MIDI command stream devices under Petit_ami sound system. *******************************************************************************/ #inclu...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<locale.h> #define max 1501 //tamanho maximo do texto em um arquivo //prototipo das funcoes void criaArquivo(FILE *arquivo, FILE *nomes, char nomeArquivo[25]); void excluirArquivo(FILE *arquivo, char *excluir); char *substituiPalavras(char *text...
#include <Usb.h> #include "intermezzo_lz4.h" #define PACKET_CHUNK_SIZE 0x1000 #define PADDING_SIZE ((0x1000 - (INTERMEZZO_SIZE + 4)) / 4) USBHost usb; EpInfo epInfo[3]; byte usbWriteBuffer[PACKET_CHUNK_SIZE] = {0}; uint32_t usbWriteBufferUsed = 0; uint32_t packetsWritten = 0; bool foundTegra = false; byte tegraDevi...
#include "fs.h" #include <assert.h> static void worker_get_work(void); static void *worker_main(void *arg); static void worker_sleep(void); static void worker_wake(struct worker_thread *worker); static mthread_attr_t tattr; #ifdef MKCOVERAGE # define TH_STACKSIZE (40 * 1024) #else # define TH_STACKSIZE (28 * 1024) #e...
#include <sc_reduce.h> #include <pXest.h> #include <d4est_util.h> #include <d4est_linalg.h> #include <problem.h> #include <d4est_elliptic_data.h> #include <d4est_elliptic_eqns.h> #include <d4est_estimator_bi.h> #include <d4est_solver_cg.h> #include <d4est_amr.h> #include <d4est_amr_smooth_pred.h> #include <d4est_geomet...
/* copied the below from test_xi2.c of xinput source code got the xinput source code from git clone git://anongit.freedesktop.org/xorg/app/xinput to build xinput: cd /home/j/dev/apps/x11/xinput && autoreconf -i && ./configure && make got this idea from http://stackoverflow.com/questions/16369...
/////////////////////////////////////////////////////////////////////////////// // IronBridge RNG Provider Service // Copyright 2020 Cambridge Quantum Computing Ltd. All Rights Reserved. // Original: JGilmore (2020/06/23 15:26:31) // // Licensed under the Apache License 2.0 (the "License"). You may not use // this fil...
// ┳━┓┳━┓ ┓━┓┏━┓┳━┓┏┓┓ // ┣━ ┣━ ━━┗━┓┃ ┃┃┳┛ ┃ // ┇ ┇ ━━┛┛━┛┇┗┛ ┇ // ff-sort // Usage: <farbfeld source> | ff-sort [options] | <farbfeld sink> // made by vifino. ISC (C) vifino 2018 #include <stdio.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include ...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "test_macros.h" #include "tgen.h" #include "minunit/minunit.h" MU_TEST(test_tgen_escaped_copy) { char dest[32], *src="a\\nbb\\tcc\\\n-d"; mu_assert_int_eq(2, tgen_escaped_copy(dest, src, 2)); dest[2] = '\0'; mu_assert_s...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/*! @file timeintegration.h @author <NAME> @brief Contains structures and function declarations for time integration */ #include <sys/time.h> #include <basic.h> /* definitions */ /*! Forward Euler time integration \sa TimeForwardEuler() */ #define _FORWARD_EULER_ "euler" /*! Runge-Kutta time integration metho...
#include <pipe.h> #include <macro.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> enum { PIPE_BUFFER_SIZE = 65536, PIPE_SINGLE_INSTANCE = 1, PIPE_NO_TIMEOUT = 0, FILE_NO_SHARE = 0, FILE_NO_TEMPLATE = 0 }; static SECURITY_ATTRIBUTES HANDLE_DO_NOT_INHERIT = { .nLength = ...
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> static nxt_int_t nxt_thread_pool_init(nxt_thread_pool_t *tp); static void nxt_thread_pool_exit(nxt_task_t *task, void *obj, void *data); static void nxt_thread_pool_start(void *ctx); static void nxt_thread_pool_loop(void *ctx); static...
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <<EMAIL>> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in ...
// // TraceLog.c // Flow // // Created by <NAME> on 01/07/2012. // Copyright (c) 2012 Mountainstorm // // 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, includi...
#include <string.h> #include "ibm.h" #include "io.h" #include "mem.h" #include "pci.h" #include "mvp3.h" static struct { uint8_t host_bridge_regs[256]; uint8_t pci_bridge_regs[256]; } mvp3; static void mvp3_map(uint32_t addr, uint32_t size, int state) { pclog("mvp3_map: addr...
#include <stdio.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include "ae.h" #include "zmalloc.h" AeEventLoop *aeCreateEventLoop(void) { AeEventLoop *eventLoop = zmalloc(sizeof(*eventLoop)); if (eventLoop == NULL) { return NULL; } eventLoop->fileEven...
#include "main.h" #include "hx1230.h" #include "adc.h" #include "tim.h" #include "hx1230_menu.h" char str[100]; int len = 0; ADC_ChannelConfTypeDef adc_chx = {0}; ADC_ChannelConfTypeDef adc_chy = {0}; int abs(int v){return v > 0 ? v : -v;} void init_adc_configs(){ adc_chx.Channel = ADC_CHANNEL_1; adc_chx.Ran...
#define LARGEST_DYNAMIC_MEMORY 65535 /* define the largest memory for a str in as1_getchar_plus function */ /* function for detect the keyborad to wait for a keyboard event and return it with ASCII */ int input__detect_input_ASCII() { int nKey; /* clear former cache */ fflush(stdin); /* get key value */ nKey...
/* ==================================================================== * Copyright (c) 2003 The OpenSSL Project. 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 ...
#include<stdlib.h> #include<stdio.h> #include<string.h> #include<stdarg.h> #include<stdbool.h> #include<ctype.h> #define NELEMS(arr) (sizeof(arr)/sizeof(arr[0])) // TokenType => TokenEnum_t typedef enum { TokEOI, TokMUL, TokDIV, TokMOD, TokADD, TokSUB, TokNEG, TokNOT, TokLT, TokLE, TokGT, TokGE, TokEQ, To...
#include "include/terminal.h" //some constants const uint16_t WIDTH = 80; const uint16_t HEIGHT = 25; //terminal global variables vga_entry_t* terminal = (vga_entry_t*)0xB8000; uint8_t color = 0; uint8_t background = 0; uint8_t foreground = 0; uint8_t x, y; //store history and future for scrolling suppo...
#include <windows.h> #include "twc_design.h" #include "proplst.h" #include "interface.h" #include "static.h" #include "project.h" #include "clipboard.h" #include "object.h" /** * Create new object. */ RT_OBJECT *NewObject( UINT ctrl_id) /* control ID */ { RT_OBJECT *obj; /* Alloc memory for RT_OBJECT */...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ #ifndef windows_platform #include <sys/time.h> #endif #include "rodsPath.h" #include "rodsErrorTable.h" #include "miscUtil.h" #include "rodsLog.h" #include "rmtr...
#include <stdlib.h> #include <float.h> #include "ksort.h" #include "sort.h" #include <stdbool.h> #include <stdio.h> SORT_RULE default_rule[] = { R_TYPO, R_PROX, R_FIELD, R_POS, R_EXACT }; int default_num_rules = 5; const char *sort_rule_str[] = { "typos", "proximity", "position", "exact", "field",...
/* Dagan's Brainfuck Interpreter Copyright (C) 2018 <NAME> XV6 version 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 la...
/* * IVSHMEM extensions for use in Linux userspace through UIO * * Builds on Jailhouse's ivshmem demo code. * * Copyright (c) Universität Rostock, 2020 * * Authors: * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2 */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <errno.h> #include <error.h>...
/** * mux * * Copyright (c) 2015, Los Alamos National Security, LLC * All rights reserved. * * Copyright (2015). Los Alamos National Security, LLC. This software was * produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos * National Laboratory (LANL), which is operated by Los Alamos National ...
#ifndef BOARDDEF_H #define BOARDDEF_H /**************************************************************************//** * @file brd_grsakura.h * @brief GR-SAKURA Board definition * @version V1.00 * @date 26. July 2012. * @author <NAME> Inc. * @note Copyright &copy; 2011-2012 <NAME> Kairo Inc. All rights reser...
#include "symbolinfo.h" #include "paintcontext.h" #include "painter.h" //#include "window.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <getopt.h> void printHelp(char* progname); int main(int argc, char** argv) { EncodeModeIndicator mode = ModeByte; int ecLevel = EC_H...
/* packet-grib.c * Routines for GRIB dissection * * Copyright (c) 2016 <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 r...
#include "magiskpolicy.h" #include "sepolicy.h" void allowSuClient(char *target) { if (!sepol_exists(target)) return; sepol_allow(target, SEPOL_PROC_DOMAIN, "unix_stream_socket", "connectto"); sepol_allow(target, SEPOL_PROC_DOMAIN, "unix_stream_socket", "getopt"); sepol_allow(target, "devpts", "chr_file", "ioctl...
/* $NetBSD: agp_via.c,v 1.4 2002/01/12 16:17:05 tsutsui Exp $ */ /*- * Copyright (c) 2000 <NAME> * 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 ...
#include "img_utils.h" #include <stdlib.h> #include <string.h> #define INFOTO_BACKGROUND_BLACK "black" #define INFOTO_BACKGROUND_BLUE "blue" #define INFOTO_BACKGROUND_GREEN "green" #define INFOTO_BACKGROUND_RED "red" #define INFOTO_BACKGROUND_WHITE "white" /** * Get background_color enum from the given string. * ...
#ifndef no_openmp #include <omp.h> #endif #include <TH/TH.h> #include <stdbool.h> #include <stdio.h> #define real float int nearestNeighBCX_updateOutput_1D(THFloatTensor *inputImages, THFloatTensor *grids, THFloatTensor *output ) { // *B*atch, *C*hannel, *X*-coors int batchsize = THFloatTensor_size(inputImages,...
/**************************************************************************** * tools/cfgdefine.c * * Copyright (C) 2007-2013 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not betwe...
#include <stdint.h> #include <stdio.h> #include <openssl/engine.h> #include <openssl/aes.h> #include <openssl/ec.h> #include <openssl/evp.h> #include <windows.h> #include <bcrypt.h> #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0) #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) // This file...
/** * Copyright © 2018, 2021 Push Technology Ltd. * * 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...
/*- * Copyright (c) 2014-2015 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" static int __ckpt_server_start(WT_CONNECTION_IMPL *); /* * __ckpt_server_config -- * Parse and setup the checkpoin...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define N 20 //On alloue plus de cases mémoires que besoin dans notre cas pour pouvoir experimenté sur d'autres matrices plus grandes. void Pivot_De_Gauss() { // Algo pour résoudre une équation du type Ax=B int i, j, k, compteur = 0; ...
/* This file is for the inversion-free Berlekamp-Massey algorithm see https://ieeexplore.ieee.org/document/87857 */ #include "bm.h" #include "gf.h" static inline uint16_t mask_nonzero(gf a) { uint32_t ret = a; ret -= 1; ret >>= 31; ret -= 1; return (uint16_t)ret; } static inline uint16_t m...
/* * RTSP muxer * Copyright (c) 2010 <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)...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
/* * Copyright Supranational LLC * Licensed under the Apache License, Version 2.0, see LICENSE for details. * SPDX-License-Identifier: Apache-2.0 */ #include "vect.h" #include "fields.h" static void reciprocal_fp2(vec384x out, const vec384x inp) { vec384 t0, t1; /* * |out| = 1/(a + b*i) = a/(a^2+b^2...
/* * (C) Copyright 2015 Google, Inc * Written by <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <dm.h> #include <os.h> #include <scsi.h> #include <usb.h> DECLARE_GLOBAL_DATA_PTR; /* * This driver emulates a USB keyboard using the USB HID specification (boot * protocol) ...
/* * Copyright (c) 2009 <NAME> * * 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 <sys/types.h> #include <lk/err.h> #include <lk/reg.h> #include <lk/debug.h> #include <kernel/thread.h> #include <kernel/spin...
/* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * * 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 re...
/*- * Copyright (c) 2003-2008 <NAME> * Copyright (c) 2008 <NAME> * 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 * ...
byte DCO1_OCTAVE = 0; byte DCO1_WAVEFORM = 1; byte DCO1_HARMONIC_SELECTOR = 2; byte DCO1_HARMONIC_MODULATION_WAVEFORM = 3; byte DCO1_HARMONIC_MODULATION_LFO_SOURCE = 4; byte DCO1_HARMONIC_MODULATION_DEPTH = 5; byte DCO1_VOLUME = 6; byte DCO_SINGLE_DOUBLE_MODE = 7; byte DCO2_OCTAVE = 8; byte DCO2_WAVEFORM = 9; byte DCO2...
/*- * Copyright (c) 2008-2009, <NAME> * Copyright (c) 2010, <NAME> * 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 * ...
/* * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
#include "peripherals.h" /* Timer Peripherals */ /* * 'Start Timer' * This method starts a new 'counter' timer, which triggers * an 'UPDATE' interrupt every time that it triggers. * It should trigger every N seconds, where: * N = (period) / (core clock frequency / prescaler) */ void start_timer(TIM_TypeDef *TIM...
/***************************************************************************//** * @file main_scan_interrupt.c * @brief Use the ADC to take repeated nonblocking measurements on multiple * inputs ******************************************************************************* * # License * <b>Copyright 2020 Silicon...
/* * Copyright 2015 <NAME> for CodeWeavers * * 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 Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This l...
/* include/visit-config.h.in. Generated from configure.in by autoheader. */ /******************************************************************************* * Optional I/O libraries ******************************************************************************/ /* Define if building universal (internal helper mac...
/* * File: datalogger-canrecorder.c * Author: Ducky * * Revision History * Date Author Change * 13 Aug 2011 Ducky Initial implementation. * * @file * Datalogger CAN recorder and CAN communications routines. */ #include "../hardware.h" #include "../types.h" #include "../ecan.h" #include "../timing.h" #...
/* * MIT License * * Copyright (c) 2020 imrf6 and dmillard * * 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, c...
/* packet-dvb-bat.c * Routines for DVB (ETSI EN 300 468) Bouquet Association Table (BAT) dissection * Copyright 2012, <NAME> <<EMAIL>> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the t...
/* * 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...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
/* * Copyright (C) 1999-2001 Free Software Foundation, Inc. * This file is part of the GNU LIBICONV Library. * * The GNU LIBICONV 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 ve...
#include <geminc.h> #include <gemprm.h> #include <dccmn.h> #include <mkdirs_open.h> #ifdef UNDERSCORE #define aw_read aw_read_ #define gqmode gqmode_ #define ipredbook ipredbook_ #endif #define MXREDTBL 3 extern int errno; void redbook_header ( char *buf, char *tstr, float *lat, float *lon, float *proj, ...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 5 $ * $Date: 15/07/02 11:18a $ * @brief Demonstrate how to use timer2 capture event to capture timer2 counter value. * @note * Copyright (C) 2014~2015 Nuvoton Technology Cor...
/************************************************************************************************** * * * This file is part of BLASFEO. * * ...
/*- * Copyright (c) 2018 Microsemi 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 copyright * notice, this list...
/* $OpenBSD: print-slow.c,v 1.4 2015/11/16 00:16:39 mmcc Exp $ */ /* * Copyright (c) 1998-2005 The TCPDUMP project * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions retain the above copyright notice and this paragr...
/*! \file main.c \brief communication_among_CANS in normal mode \version 2014-12-26, V1.0.0, firmware for GD32F10x \version 2017-06-20, V2.0.0, firmware for GD32F10x \version 2018-07-31, V2.1.0, firmware for GD32F10x \version 2020-09-30, V2.2.0, firmware for GD32F10x */ /* Copyrig...
/*- * Copyright (c) 2010 <NAME>. * 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 conditions ...
/* * QEMU PowerPC 440 Bamboo board emulation * * Copyright 2007 IBM Corporation. * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This work is licensed under the GNU GPL license version 2 or later. * */ #include "config.h" #include "qemu-common.h" #include "net/net.h" #include "hw/hw....
/* * Copyright (c) 2017 The WebM 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 contributin...
#include "emit.h" /* The instruction always has the same result deterministically regardless of * memory, special registers, etc. */ static bool is_const(gbz80_inst *inst, int opt_level) { switch (inst->opcode) { case NOP: return true; case LD: if (inst->op1 == MEM_HL || inst->op2 == MEM_...