text
stringlengths
3.12k
18.7k
#define F_CPU 14745600 #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include "lcd.h" #define SLA_W 0xD2 // Write address for DS1307 selection for writing #define SLA_R 0xD3 #define MAX_BUFFER_SIZE 16 signed int X_Data,Y_Data,Z_Data=0; float Displacement; signed int X_Disp,Y_Di...
#include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/ethernet.h> #include <netpacket/packet.h> #include <linux/wireless.h> #include "error.h" #include "iw.h" void iw_init_dev(struct iw_dev *dev) { memset(dev, 0, sizeof(*dev)); dev->fd_in = -1; dev->fd_out = -1; } /*...
/* htop - FreeBSDProcess.c (C) 2015 <NAME> Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ #include "Process.h" #include "ProcessList.h" #include "FreeBSDProcess.h" #include "Platform.h" #include "CRT.h" #include <stdlib.h> #include <string.h> #include <unistd.h> #inc...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> //#include <sys/time.h> #include <fcntl.h> #ifdef __unix__ #include <unistd.h> #endif #include <time.h> #include <string.h> #include <stdint.h> #include "time_functions.h" #include <math.h> #include "wbms_georef.h" #include "nmea_nav.h" #include "georef_to...
/* * Copyright 2015 <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 above copyright * notice, this list of conditions and the...
/** * Phase 06 - Clean up the memory leak caused in the main window creation. * * This code won't be structured very well, just trying to get stuff working. */ #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include <X11/Xlib.h> #include <X11/Xutil.h> // ~16.6 ms be...
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "dataplane.h" #include "util/log.h" #include "algo/maxmin.h" #define EPS 1e-2 static inline bw_t max(bw_t a, bw_t b) { return (a > b) ? a : b; } // returns the remaining_demand of a flow static inline bw_t ...
// Copyright 2019 <NAME>. // 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, ...
#include <assert.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdint.h> // Campos da tabela de páginas #define PT_FIELDS 6 // 4 campos na tabela #define PT_FRAMEID 0 // Endereço da memória física #define PT_MAPPED 1 // Endereço presente na tabel...
/* * motionplus.c * * Written By: * <NAME> * Email: < randelli (--AT--) dis [--DOT--] uniroma1 [--DOT--] it > * * Copyright 2010 * * This file is part of wiiC. * * 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 ...
/****************************************************************************** * * Copyright 2017 Xaptum, 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 * * h...
/* * Copyright (c) 1999,2007 <NAME> <<EMAIL>> * * The purpose of this module is to enforce inheritable capability sets * for a specified user. */ /* #define DEBUG */ #include <stdio.h> #include <string.h> #include <errno.h> #include <stdarg.h> #include <stdlib.h> #include <syslog.h> #include <sys/capability.h> ...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, prop...
/* Test heaters by typing in commands over UART to manually turn on and off heaters. Also display thermistor measurements. */ #include <stdbool.h> #include <adc/adc.h> #include <uart/uart.h> #include "../../src/devices.h" #include "../../src/heaters.h" // Callback function signature to run a command typedef void(*...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : stm32f1xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. ****************************...
/*++ /* NAME /* cleanup_body_edit 3 /* SUMMARY /* edit body content /* SYNOPSIS /* #include "cleanup.h" /* /* int cleanup_body_edit_start(state) /* CLEANUP_STATE *state; /* /* int cleanup_body_edit_write(state, type, buf) /* CLEANUP_STATE *state; /* int type; /* VSTRING *buf; /* /* int cleanup_body_edit_finish(state) /...
extern char _binary_KFS_bin_start[]; char* vidmem; char prompt; int promptColor; volatile unsigned long int ticks; char counter; #include "kernel.h" #include "malloc.h" #include "driver.h" #include "util.h" #include "IDT.c" #include "shell_commands.h" #include "editor.h" #include "sh_exec.h" #include "buildData.h" c...
/* * Copyright (C) 2015, 2017 <NAME> * * 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 library...
/* $NetBSD: apop.c,v 1.1.1.2 2014/04/24 12:45:51 pettai Exp $ */ /* * Copyright (c) 2010 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * * Portions Copyright (c) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
#include "common.h" #include <lo/lo.h> #include <rtosc/rtosc.h> #include <string.h> #include <stdio.h> #include <time.h> char buffer1[128]; char buffer2[1024]; char buffer3[2048]; char buffer4[2048]; char buffer5[2048]; #define DO_PERF 1 #define PERF_TRIALS 200000 void speed_liblo_write(void) { char buffer6[20...
/****************************************************************************** * * Copyright (C) 2016 Xilinx, 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 deal * in the Software wit...
//CHAR_STRING //https://github.com/L-F-Z/ADT_Code //Developed by UCAS ADT_Code Group //Checked by LFZ #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> //----------|Status|----------- typedef int Status; #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #de...
#include <alphasparse/opt.h> #include <alphasparse/util.h> #include <memory.h> #include <stdlib.h> #include "alphasparse/format.h" #include "alphasparse/util/bitmap.h" #include <stdio.h> typedef struct { ALPHA_INT row_idx; ALPHA_INT col_idx; ALPHA_Number value; } coord_t; #define ROWS_PER_ROUND (4) #define NNZ...
/* * Copyright (c) 2015, The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the h...
#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include "ds.h" #define LINE_MAX_LEN 256 int ReadMeterial(char *filename, pMeterial *color) { FILE *fpt; char input[LINE_MAX_LEN]; char token[LINE_MAX_LEN]; char *next; int width; pMeterial pNewMtl; // if ...
/*! \file client.c * * Author: <NAME> (https://javiermontenegro.github.io/) * Details: program file for methods implementation. */ #include <pthread.h> #include <readline/readline.h> //sudo apt-get install libreadline-dev #include <readline/history.h> #include "client.h" char* my_username; //Socket for ...
/*----------------------------------------------------------------------------- * Name: TC_Mutex3.c * Purpose: CMSIS RTOS validation tests implementation *----------------------------------------------------------------------------- * Copyright(c) KEIL - An ARM Company *---------------...
#include <getopt.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <arpa/inet.h> #include <event2/listener.h> #include "aux.h" #include "config.h" #include "config-buildtime.h" #include "protocol.h" #include "proxy.h" #include "session.h" static proxy_cfg_t proxy_cfg; static ...
/* * $XFree86: xc/programs/Xserver/miext/layer/layerstr.h,v 1.2 2001/06/04 09:45:41 keithp Exp $ * * Copyright © 2001 <NAME>, member of The XFree86 Project, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided ...
#include <assert.h> #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> #include <ixev.h> typedef struct { ngx_uint_t dummy; } ngx_ixev_conf_t; static ngx_int_t ngx_ixev_init(ngx_cycle_t *cycle, ngx_msec_t timer); static void ngx_ixev_done(ngx_cycle_t *cycle); static ngx_int_t ngx_ixev_add_ev...
#include "iec61850_server.h" #include "SMVPublisher.h" #include "iec61850_model.h" #include "iec61850_model_extensions.h" #include "inputs_api.h" #include "simulation_config.h" #include "hal_thread.h" #include <math.h> typedef struct sSMVP { int svcbEnabled; SVPublisher_ASDU asdu; SVPublisher svPublishe...
/* * Copyright 2004 by Texas Instruments Incorporated. * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. * */ /********************************************************************************/ /* $Id: ata.c,...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define TRUE 1 #define FALSE 0 #define PI 3.1415926 #define HALFOF(x) x/2 #define MAX_ROSTER 60 struct roster { short number; char team[MAX_ROSTER]; //char *name; }; typedef struct roster roster; //struct roster sooners; //roster sooners; int pr...
/*! fotografiska The author disclaims copyright to this source code. In place of a legal notice, here is a blessing: May you do good and not evil. May you find forgiveness for yourself and forgive others. May you share freely, never taking more than you give. */ // C lib headers #include <assert.h> #incl...
/* Copyright (c) 2012 <NAME> <<EMAIL>> Copyright (c) 2012 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and 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 cop...
/* solve.c: solve cycles for the automapper Copyright (C) 1999 <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 (at your option) any la...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <omp.h> #include "TinyDFT.h" void save_mat_to_file( const char *env_str, const char *format_str, const int nbf, const char *mol_name, const char *bas_name, const double *mat ) { if (env_str == NULL) ...
/* * ************************************************************************** * **************************** ************************* * *************************** D R O P T R A C E R ************************ * **************************** ************************* * **...
/* Implement a simple version of the #define processor (i.e., no arguments) suitable for use with C programs, based on the routines of this section. You may also find getch and ungetch helpful. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define HASHSIZE 101 #define MAXWORD 1...
/* zzryxsph.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static doublereal c_b2 = 1.; /* $Procedure ZZRYXSPH ( Intersection of ray and sphere ) */ /* Subroutine */ int zzryxsp...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <signal.h> #include <stdio.h> #include "mongo-c-driver/src/bson.h" #include "mongo-c-driver/src/mongo.h" #define CONTENT_TYPE "application/json" #define MONGO_HOST "127.0.0.1" #define MONGO_PORT 27017 static ngx_int_t ngx_http_mongodb_rest_...
#include "headers/gb_mmu.h" #include <stdio.h> #include <stdlib.h> #include "headers/gb_cpu.h" #include "headers/gb_ppu.h" struct mmu mmu; void MMU_init() { mmu.mbc_type = 0; mmu.mbc_hasRam = 0; mmu.mbc_isRamActive = 0; mmu.mbc_romBank = 1; for (int i = 0; i < MAX_CARTRIDGE_SIZE; i++) { ...
/* htop - SolarisProcess.c (C) 2015 <NAME> (C) 2017,2018 <NAME> Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ #include "Process.h" #include "ProcessList.h" #include "SolarisProcess.h" #include "Platform.h" #include "CRT.h" #include <stdlib.h> #include <string.h> #in...
/*! @file : main.c * @author <NAME> * @version 1.0.0 * @date 22/01/2021 * @brief Archivo principal * @details * *Probando como funciona un merge */ /******************************************************************************* * Includes *****************************************************************...
#include <stdio.h> #include "I2C_core.h" #include "terasic_includes.h" #include "mipi_camera_config.h" #include "mipi_bridge_config.h" #include "auto_focus.h" #include <fcntl.h> #include <unistd.h> //EEE_IMGPROC defines #define EEE_IMGPROC_MSG_START ('R'<<16 | 'B'<<8 | 'B') //offsets #define EEE_IMGPROC_STATUS 0 #d...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define import_spp #define import_error #include <iraf.h> #include "sgiUtil.h" /* * SGI2UHPLJ.C -- Read IRAF SGI rasterfile from standard input, translate into * the Hewlett Packard Printer Command Language (HP Laserjet Series) and * w...
#include <sys/stdint.h> #ifdef _KERNEL #include <sys/malloc.h> #include <sys/libkern.h> #else #include <string.h> #include <stdlib.h> #endif #include "io/read/read.h" CTF_MALLOC_DECLARE(); static int kind_is_qualifier (uint8_t kind) { if (kind == CTF_KIND_VOLATILE || kind == CTF_KIND_CONST || kind == CTF...
#include "first.h" #include "http_kv.h" #include "buffer.h" #include <string.h> typedef struct { int key; const char *value; size_t vlen; } keyvalue; static const keyvalue http_versions[] = { { HTTP_VERSION_1_1, CONST_STR_LEN("HTTP/1.1") }, { HTTP_VERSION_1_0, CONST_STR_LEN("HTTP/1.0") }, { HTTP_VERSION_UNSET...
/**************************************************************************** Copyright 2017 - The OPRECOMP Project Consortium, IBM Research GmbH, University of Kaiserslautern, All rights reserved. Licensed under the Apache License, Version 2.0 (the "L...
/*----------------------------------------------------------------------------- * $RCSfile: SvCmn.c,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *----------------------------------------------------------------------------- */ #include "SvCmn.h" #includ...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2009 Nokia Corporation * Author: <NAME> <<EMAIL>> */ #define DSS_SUBSYS_NAME "SDI" #include <linux/delay.h> #include <linux/err.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux...
/* * Copyright © 2003-2018 Acronis International GmbH. */ #include <string.h> #include <errno.h> #include "log.h" #include "pcs_types.h" #include "pcs_rdma_conn.h" #include "pcs_rdma_io.h" #include "pcs_rdma_int.h" #include "pcs_poll.h" #include "pcs_malloc.h" #define RESOLVE_TIMEOUT_MS 5000 static struct pcs_net...
/* $OpenBSD: uni_n.c,v 1.17 2015/03/30 13:45:02 mpi Exp $ */ /* * Copyright (c) 2013 <NAME> * Copyright (c) 1998-2001 <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. Redist...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "tests.h" // define the bit width of the binary numbers that can be processed. #define N 5 // string representing the name of the currently running program char *program = NULL; // check whether the charater is a '0' or a '1' int...
#include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <unistd.h> #include "fifo_queue.h" #include "main.h" #include "open_listenfd.h" #include "client.h" // Global static definitions #define DEFAULT_DICTIONARY "wo...
/* * Copyright 2021 Comcast Cable Communications Management, 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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <GL/gl.h> #include "asteroid.h" #include "crystal.h" #include "explosion.h" #include "linked_list.h" #define PI 3.1415926535897932384626433832795028841971693993 float asteroid_vertices[18][3] = { {0.0f, 0.0f, 1.0f}, // Top // Upper Ring ...
#include "UrtLib.h" #include "flash.h" #include "app.h" #include "protocol.h" #include "serial.h" extern uint32_t g_prg_data[]; #ifdef __ADUCM360__ # define MY_UART pADI_UART #else # define MY_UART pADI_UART1 #endif /* __ADUCM360__ */ #define GETC_TIMEOUT(c) \ if (!receive(&c, proto_timeout)) { \ cont = 0; ...
int mymalloc(int a) {int x; return x;} /* For copyright information, see olden_v1.0/COPYRIGHT */ #define NULL 0 //#include <cm/cmmd.h> #ifdef FUTURES //#include "future-cell.h" #endif //#include "mem-ref.h" typedef enum {black, white, grey} Color; typedef enum {northwest, northeast, southwest, southeast} ChildType; ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* GELL 15.26: include file for the module: "defs" */ /* translation done: "Wed June 16 93 18:00:40 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; /* LLM3 functions */ extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1(); extern Ptr GXpop...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
#include "proto.h" #include "bwt.h" lfnode **lfmap = NULL; circnode *start = NULL; //start of circularly linked list circnode **rot = NULL, **rot1 = NULL; //to store all rotations of the string and for quickSort lfnode *firchar = NULL; void insert(char c) { //to create a circnode in the circularly linked list cir...
/* * Copyright (c) 2002, Stockholms Universitet * (Stockholm University, Stockholm Sweden) * 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 ret...
// // Created by <NAME> on 2017/12/21. // #include "rpc_services.h" errval_t init_rpc_server(void) { errval_t err; // What's this? /*err = cap_retype(cap_selfep, cap_dispatcher, 0, ObjType_EndPoint, 0, 1); if (err_is_fail(err)) { DEBUG_ERR(err, "cap retype of dispatcher to selfep failed"); ...
/* Copyright (C) 2011-2021 <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 deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
#include "meta.h" // #define CHMAX 4 /// Note Num. --> Freq_G value static hword FreqGs[128] = {0}; /// Pointer to CHANNELS of A SONG. static const unsigned char* SongData[CHMAX]; /// Internal step counter static word wTick = 0; /// Playback states static hword hTempo = 120; static word wNextTick[CHMAX] = {0}; ...
/*! \file \brief Implements the scatter operation. \date Started 5/3/2013 \author George */ #include "bdmplib.h" /*************************************************************************/ /* Performs BDMPI_Scatterv() when the communicator is within a single node */ /************************************************...
/* c016.c: **********************************************************} {* Téma: Tabulka s Rozptýlenými Položkami ** První implementace: <NAME>, prosinec 1994 ** Do jazyka C prepsal a upravil: <NAME>, 2005 ** Úpravy: <NAME>, říjen 2014 ** ...
#include "velha.h" int main(){ int dificuldade = 0, qntJogos = 1, op; menu: printf("==========================================\n"); printf("Seja bem vindo ao Jogo Da Velha 2000!\n"); printf("\n1 - Nível do jogo (%s)\n", dificuldade == 0 ? "Easy" : "Hard"); printf("2 - Qtd jogos p/ rodada (%i)\n", qntJogos); pri...
/* * machine_status.c * * Created on: 2015年5月28日 * Author: ron */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "machine_status.h" #include "structure/data.h" #include "data_computation.h" #include "computing_machine.h" /*====================private declaration=====...
/****************************************************************************** * * IMD -- The ITAP Molecular Dynamics Program * * Copyright 1996-2005 Institute for Theoretical and Applied Physics, * University of Stuttgart, D-70550 Stuttgart * **************************************************************************...
#include "cla/mtcp_proto.h" #include "cla/stm32/cla_usbotg.h" #include "platform/hal_config.h" #include "platform/hal_io.h" #include "platform/hal_queue.h" #include "platform/hal_semaphore.h" #include "upcn/bundle_agent_interface.h" #include "upcn/common.h" #include "upcn/config.h" #include <FreeRTOS.h> #include <u...
#include "../hfio/hfio.h" FILE* hf_gpu_fopen( const char* pathname, const char* mode) { //printf("[hfcuda] hf_gpu_fopen\n"); hfcuda_function_t function = HFCUDA_IO_hf_gpu_fopen; hfcheck(hfcuda_comm_send(&function, sizeof(hfcuda_function_t))); size_t pathname_len = strlen(pathname) + 1; hfcheck(hfcud...
/* * 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 ...
/* * Copyright (c) 2016, Intel 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 of c...
//asmhead.nas struct BOOTINFO { /* 0x0ff0-0x0fff */ char cyls; /* 启动区读磁盘读到此为止 */ char leds; /* 启动时键盘的LED的状态 */ char vmode; /* 显卡模式为多少位彩色 */ char reserve; short scrnx, scrny; /* 画面分辨率 */ char *vram; }; #define ADR_BOOTINFO 0x00000ff0 //naskfunc.nas void io_hlt(void); void io_cli(void); void io_sti(void); ...
/* * Copyright 2010 <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 deal in the Software without restriction, including without limitation * on the rights to use, copy, modify, merge, pub...
// status_test.c // // runs a series of random LEDs and colors and then a sequence of color // across the entire strip #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/time.h> #includ...
// SPDX-License-Identifier: ISC /* * Copyright (C) 2016 <NAME> <<EMAIL>> * Copyright (C) 2018 <NAME> <<EMAIL>> * Copyright (C) 2018 <NAME> <<EMAIL>> */ #include "mt76x02.h" static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev) { u32 regs[4] = {}; u16 val; int i; for (i = 0; i < dev->beacon_ops->nsl...
/** * Simple server. * * Measures number of new client connections per second. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif /* Header Include Declarations */ /* Core Headers */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <assert.h> /* For socket(2), bind(2), listen(2), and accept(2) */...
/** * Copyright (c) 2018 - 2019, Nordic Semiconductor ASA * * 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 no...
#include "all.h" #include "mem.h" #include "io.h" #include "ureg.h" #define HOWMANY(x, y) (((x)+((y)-1))/(y)) #define ROUNDUP(x, y) (HOWMANY((x), (y))*(y)) /* * Invalidate cache lines for the given area. */ void invalcache(ulong v, ulong n) { int s; s = splhi(); v = CACHETAGS+((v % mconf.vacsize) & ~(mconf.vacl...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
/* * Copyright (C) 2016-2019 Marvell International Ltd. * * SPDX-License-Identifier: BSD-3-Clause * https://spdx.org/licenses */ /* GTI Watchdog driver for 96xx */ #include <arch_helpers.h> #include <assert.h> #include <debug.h> #include <psci.h> #include <errno.h> #include <gic_common.h> #include <gicv3.h> ...
#include <netinet/in.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdbool.h> #include <arpa/inet.h> #include <dirent.h> #include <errno.h> #include "utility.h" #include "server.h" #define BACKLOG 10 #define PORT_NUM 1313 extern sup...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file Examples_LL/PWR/PWR_EnterStopMode/Src/main.c * @author MCD Application Team * @brief This example describes how to enter and exit the Stop 2 mode * through the STM32WLxx PWR L...
/* * spi.c * * Created on: 2 apr. 2013 * Author: vincentb */ #include <stdio.h> #include <assert.h> #include "dev_defs.h" #include "regio.h" #include "spi.h" #define _SPI_MASK_ALL 0xFFFFFFFF static void spiRMW(_reg_a adr, _reg_t val, _reg_t mask, int verbose) { _reg_t tmp; ...
/************************************************************************** * Parts copyright (c) 2001, 2002, 2003 by Punch Telematix. * * All rights reserved. * * Parts copyright (c) 2007 by <NAME>, /k/ Embedded Java Solutions. * * All rights reserve...
#pragma ident "$Id: response.c,v 1.4 2015/09/04 00:49:07 dechavez Exp $" /*==================================================================== * * Calculate complex response for IRIS-IDA stage at specified freq * *==================================================================*/ #include "filter.h" #include <ma...
#include "fehh.h" #include <tgmath.h> #define MIN(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; }) //{{{int usage(char *prog) int usage(char *prog) { fprintf(stderr, "usage:\t%s <options>\n" "\t\t-f\ttped file name\n" ...
/* * controller_system.h * * Header file for system routines for the soft MCU. Mostly contains C * implementations of testbench functionality. * */ #pragma once #include <stdbool.h> typedef unsigned char byte_t; typedef unsigned short word_t; typedef unsigned int dword_t; // Defines the cloc...
#include "csort.h" #include <alloca.h> #include <assert.h> #include <string.h> #include "carray.h" #include "cheap.h" #define ELEMENT_LOC(arr, idx) fetch_element_address(arr, single_element_size, idx) static void sort_array_merge_rec(generic_data_t arr, generic_data_t arr_copy, int single_element_size, int begin, ...
#pragma once enum InputState { IS_RELEASE = 0, IS_DOWN, IS_PRESS, IS_UP }; enum Keyboard { KB_UNKNOWN = 0x00, KB_CANCEL = 0x03, KB_BACKSPACE = 0x08, KB_TAB = 0x09, KB_CLEAR = 0x0C, KB_RETURN = 0x0D, KB_SHIFT = 0x10, KB_CONTROL = 0x11, KB_MENU = 0x12, KB_PAUSE = 0x13, KB_CAPITAL ...
/* GDM - The Gnome Display Manager * Copyright (C) 1999, 2000 <NAME> <<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 ...
/************************************************** * * * Name: anthonian.c * * Description: Anthonian Helper Utility * * Date: July 19, 2020 * * Created by: <NAME> * * Author URL:...
/** * MIT License * * Copyright (c) 2020 <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 deal * in the Software without restriction, including without limitation the rights * to use, copy...
/* Perform regional shuffling on a series of FASTA-formatted sequences. The shuffled sequences are written to std output in FASTA-format. <NAME>, EPFL/SV, <EMAIL> Copyright (c) 2015 School of Life Sciences Ecole Polytechnique Federale de Lausanne and Swiss Institute of Bioinformatics EPFL SV ISREC ...
/*! @file lock.h @brief Resource locking. @author Alexios Original banner, legalese and change history follow. @par @verbatim ***************************************************************************** ** ** ** ...