text
stringlengths
3.08k
10.5k
/* * File: cvector.c * --------------- * This is the implementation of the CVector data structure. This implementation * uses a dynamically allocated struct to contain the CVector data, and a dynamically * allocated segment of memory to contain the elements of the vector contiguously. * This structure allows for ...
/* vim: set et ts=3 sw=3 ft=c: * * Copyright (C) 2012 <NAME> et al. 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 ...
/* * game.c * * Created on: Apr 8, 2016 * Author: astery */ #include "game.h" #include <stdio.h> #include "assets.h" #include "game_states.h" #include "animation.h" #include "sounds.h" void Game_Init(Game *game) { Game_Reset(game); } void Game_Reset(Game *game) { game->state = NULL; game->show_hud = fa...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body - EXAMPLE APLICATION for use of BUZZER API. ****************************************************************************** * This sof...
/* * * Copyright (c) International Business Machines Corp., 2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* add_obj.c :+: :+: :+: ...
/** * Copyright 2020 Huawei Technologies Co., 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...
/// @file /// Test creation creation, action, and destruction for mass matrix operator /// \test Test creation creation, action, and destruction for mass matrix operator #include <ceed.h> #include <stdlib.h> #include <math.h> //! [QFunction User Code] static int setup(void *ctx, CeedInt Q, const CeedScalar *const *in,...
/* * 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 ...
/****************************************************************************** * Copyright (C) 2013 - 2014 <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, inclu...
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #include "core/fntest/pubnub_fntest.h" #include "core/fntest/pubnub_fntest_basic.h" #include "core/fntest/pubnub_fntest_medium.h" #include <windows.h> #include <stdio.h> #include <stdlib.h> typedef unsigned (__stdcall *PF_Test_T)(void *pResult); stru...
/* Part of publib. Copyright (c) 1994-2006 <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 l...
#include "graph_defs.h" #include "prefetcher.h" typedef struct bfs_metadata_st { char touched; volatile unsigned long queue_next; } bfs_metadata_t; static volatile unsigned long queue_head = ULONG_MAX; static volatile unsigned long vertex_position = 0; static bfs_metadata_t *metadata; static csr_t * volatile grap...
#include <pebble.h> #include "rotate_rectangle.h" #define ONE 0x10000 // blend two ARGB8 colors (alpha = 0 .. 65536) static uint8_t blend(int32_t alpha, uint8_t c0, uint8_t c1) { uint32_t beta = (1 << 16) - alpha; uint32_t r0 = (c0 & 0x30) >> 4; uint32_t g0 = (c0 & 0x0C) >> 2; uint32_t b0 = (c0 & 0x03); ui...
#include <stdint.h> #include "conservative-roots.h" // When pthreads are used, let `libgc' know about it and redirect // allocation calls such as `GC_MALLOC ()' to (contention-free, faster) // thread-local allocation. #define GC_THREADS 1 #define GC_REDIRECT_TO_LOCAL 1 // Don't #define pthread routines to their GC_...
#include "unionfind_arr.h" #include <malloc.h> #include <stdio.h> #define INT_MAX 2147483647 static const int MAX_EDGES = 8; //don't want to use MAX_MAX_EDGES because mallocing that much is crazy struct edge { int weight; //weight at top for minor convenience int src; int dst; }; //this haphazard repre...
/********************************************************************************************/ /********************************************************************************************/ // std #include <stdio.h> #include <stdlib.h> #include <stdio.h> #include "string.h" // sys #include "sys_types.h" #include "sys_...
/* $OpenBSD: lebuffer.c,v 1.10 2012/12/05 23:20:21 deraadt Exp $ */ /* $NetBSD: lebuffer.c,v 1.12 2002/03/11 16:00:57 pk Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistributio...
/* * HMP commands related to machines and CPUs * * Copyright IBM, Corp. 2011 * * Authors: * <NAME> <<EMAIL>> * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * * Contributions after 2012-01-13 are licensed under the terms of the * GN...
/* * The MIT License * * Wavefront Alignments Algorithms * Copyright (c) 2017 by <NAME> <<EMAIL>> * * This file is part of Wavefront Alignments Algorithms. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentati...
/* * Alternate testbrowse utility provided by <NAME>. * This version tests use of multiple contexts. */ #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #include <libsmbclient.h> int debuglevel = 0; char *workgroup = "NT"; char *username = "guest"; char *password = ""; typedef struct...
/* $Id$ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 <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 ...
/* qw - A minimalistic text editor by grunfink - public domain */ #include "config.h" #include <stdlib.h> #include <string.h> #include "qw.h" /** code **/ qw_block *qw_utf8_move(qw_block *b, int *pos, int inc) /* moves to the previous/next utf8 character */ { while ((b = qw_block_move(b, *pos, pos, inc)) != N...
/** @file * Copyright (c) 2019-2020, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * 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...
#ifdef _WIN32 #include <windows.h> #endif #include <stdio.h> #include <stdlib.h> #ifndef __APPLE__ #include <GL/gl.h> #include <GL/glut.h> #else #include <OpenGL/gl.h> #include <GLUT/glut.h> #endif #include <AR/gsub.h> #include <AR/video.h> #include <AR/param.h> #include <AR/ar.h> /* set up the video format globals */...
// +build ignore /* 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 conditions and the following disclaimer. * Redistributio...
#include "sht3x.h" #include "sensirion_common.h" #include "driver/i2c.h" #include "iot_i2c_bus.h" /* all measurement commands return T (CRC) RH (CRC) */ #if USE_SENSIRION_CLOCK_STRETCHING #define SHT3X_CMD_MEASURE_HPM 0x2C06 #define SHT3X_CMD_MEASURE_LPM 0x2C10 #else /* USE_SENSIRION_CLOCK_STRETCHING */ #define SHT3...
/* * If not stated otherwise in this file or this component's Licenses.txt file * the following copyright and licenses apply: * * Copyright 2019 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 ...
/* * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "opal_config.h" #include "opal/constants.h" /* This component will only be compiled on Linux, where we are guaranteed to have <unistd.h> and friends */ #in...
#include "defs.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <ctype.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> // Assigned = 1 // // Waiting = 0 // typedef struct artists{ int pid; int status; struct artists* next; }artist; artist* hea...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #define NCODE 1024 static ulong code[NCODE]; static ulong *codep; ulong (*getcontext)(void); void (*putcontext)(ulong); void (*putenab)(ulong); ulong (*getenab)(void); ulong (*getsysspace)(ulong); void (*putsyss...
/* Copyright 2017-2020 Airinnova AB and the PyTornado authors 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 applicab...
/* * Copyright (c) 2014, University of Washington. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <ba...
/* httperf -- a tool for measuring web server performance Copyright (C) 2000 Hewlett-Packard Company Contributed by <NAME> <<EMAIL>> This file is part of httperf, a web server performance measurment tool. This program is free software; you can redistribute it and/or modify it under the te...
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2020. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #define _GNU_SOURCE #include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <unistd.h> #include <errno.h> #include <sched.h> #include <api/xccl_status.h> #define UNDEFSOCKE...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Python 3 ...
/* Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>. The GNU C 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 Found...
/* * usicrypt, a unified simple interface crypto library wrapper * * (c) 2017 <NAME> * * Any OSI approved license of your choice applies, see the file LICENSE * for details. * */ /******************************************************************************/ /* Common Stuff ...
/* pe14.9 -- ticket.c */ #include <stdio.h> #include <string.h> #include <stdlib.h> #define SEATNUM 12 #define FLIGHT_NUM 4 struct name { char first[20]; char last[20]; }; struct seat { int id; int assigned; struct name customer; }; char show_menu(void); void eat_line(void); void init_seats(struc...
/****************************************************************************** Ikki (c) 1985 Sun Electronics Video hardware driver by Uki 20/Jun/2001 - ******************************************************************************/ #include "driver.h" static UINT8 ikki_flipscreen, ikki_scroll[2]; PALETTE_IN...
/* facetedTable - routines to help produce a sortable table with facet selection fields. * This builds on top of things in tablesTables and facetField. */ #include "common.h" #include "hash.h" #include "hdb.h" #include "web.h" #include "trashDir.h" #include "hCommon.h" #include "hgColors.h" #include "fieldedTable.h" ...
/* $NetBSD: copy_cred_cache.c,v 1.1.1.2 2014/04/24 12:45:28 pettai Exp $ */ /* * Copyright (c) 2004 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/* * Common board functions for siemens AM335X based boards * (C) Copyright 2013 Siemens Schweiz AG * (C) <NAME>, DENX Software Engineering, <EMAIL>. * * Based on: * U-Boot file:/board/ti/am335x/board.c * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ * * SPDX-License-Identifier: GPL-...
/******************************************************************************* * LEVCAN: Light Electric Vehicle CAN protocol [LC] * Copyright (C) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), t...
/* * Copyright © 2018 Red Hat, Inc. * * 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, publish...
#include <stdlib.h> #include <stdio.h> #include <gmp.h> #include <gc.h> #include <string.h> #include <inttypes.h> extern char** environ; void putStr(const char *str) { fputs(str, stdout); } void putErr(const char *str) { fputs(str, stderr); } void mpz_init_set_ull(mpz_t n, unsigned long long ull) { mpz_init_s...
/* * rl6231.c - RL6231 class device shared support * * Copyright 2014 Realtek Semiconductor Corp. * * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation...
#include "leptjson.h" #include <assert.h> /*assert()*/ #include <stdlib.h> /*NULL strtod*/ #include <stdio.h> #include <errno.h>/*errno, ERANGE*/ #include <math.h>/*HUGE_VAL*/ /* //个人没明白这个宏的意义,因为在lept_parse_value里都是经过switch分支进入到对应的解析里的,那么第一个字符 //一定是对应相等的,如此一来,此处的assert有何作用? */ #define EXPECT(c,ch) do{ assert(*c->json...
#pragma once #include "Kernel_map.h" #include "Paging.h" #include <Clib.h> #include <Types.h> #define GDT_NUMBER_OF_ENTRIES 8 #define SEGMENT_SELECTOR(index, prv_level) (index << 3 | prv_level) #define SEGMENT_INDEX(segment) (segment >> 3) #define KCS_SELECTOR SEGMENT_SE...
/* Copyright (c) 2015, Cesanta Software * * 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 conditions and the fol...
/* * Copyright (c) 2011-2020 Cisco Systems, Inc. All rights reserved * Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved * Copyright (c) 2015-2019 Research Organization for Information Science * and Technology (RIST). All rights reserved. * Copyright (c) 2015-...
/* % y = triumtriu(r,u,K) % TRIUMTRIU Computes y = r * u % Both r and u should be upper triangular. % % SEE ALSO sedumi % ********** INTERNAL FUNCTION OF SEDUMI ********** function y = triumtriu(r,u,K) % This file is part of SeDuMi 1.1 by <NAME> and <NAME> % Copyrigh...
#include <stdio.h> /* standard i/o */ #include <stdlib.h> /* standard library */ #include <string.h> /* string functions */ #include <ctype.h> /* character functions */ ...
#include "input.h" #include "input_internal.h" /* Input handling. */ static void add_pair(config *cfg, data_set *ds, size_t row, uint8_t col, point *p); static bool number_head_char(char c); static char buf[64 * 1024]; int input_read(config *cfg, data_set *ds) { char *line = NULL; size_t row_count = 0;...
#include<stdio.h> #include<stdlib.h> #include<sys/socket.h> #include<netinet/in.h> #include<string.h> #include <arpa/inet.h> #include <fcntl.h> // for open #include <unistd.h> // for close #include<pthread.h> #include <sys/stat.h> #include <sys/types.h> #include <libgen.h> #include <errno.h> #define MAX_LINE 4096 #def...
/** * \file * * \brief SAM SERCOM I2C Master Quick Start Guide with Callbacks * * Copyright (C) 2012-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions a...
/* * Copyright (C) 2014,2015 levi0x0 with enhancements by ProgrammerNerd * * barM (bar_monitor or BarMonitor) 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 yo...
/* pslCluster - make clusters out of a psl file. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "psl.h" int minScore = -1000000; void usage() /* Explain usage and exit. */ { errAbort( "pslCluster - make clusters out of a psl file\n" "usage:\n" " pslCluster inPsl o...
#include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define REPETITIONS 10 int ns[] = {100, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 60000, 70000}; struct Node { int id; struct Node *nex...
/* * Copyright (c) 2017 <NAME> <<EMAIL>>. * All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #include <asn_internal.h> #include <constr_CHOICE.h> #include <aper_opentype.h> asn_dec_rval_t CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, con...
/* This file is part of GNUnet. Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009 GNUnet e.V. GNUnet 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, or (at your ...
#include <FreeRTOS.h> #include <semphr.h> #include <log.h> #include <timer.h> #include "imu_types.h" #include "imu_internal.h" #define CONVERT_MS_TO_TICKS(x) (x/portTICK_RATE_MS) #define IMU_INITIAL_SAMPLE_RATE (1000) #define IMU_MIN_SAMPLE_RATE (10) #define IMU_MAX_SAMPLE_RATE (10000) /*...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* Define to 1 if you have the <dlfcn.h> header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if...
#include "tmbstr.h" #include "httpio.h" int makeConnection ( HTTPInputSource *pHttp ) { struct sockaddr_in sock; struct hostent *pHost; /* Get internet address of the host. */ if (!(pHost = gethostbyname ( pHttp->pHostName ))) { return -1; } /* Copy the address of the host to sock...
/******************************************************************** Copyright 2010-2017 <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 3 of the License, or (at your...
/* ****************************************************************************** * @file ReferenceFrames.c * @brief Contains functions to translate between reference frames. ****************************************************************************** * Created by <NAME>. Edited 5/12/2019...
#include <stdint.h> #include <assert.h> #include <debug.h> #include <stdio.h> #include <spinlock.h> #include <timers.h> #include <hw_timers.h> #define TM_MAX_TIMERS 10 #ifndef DEBUG_TIMERS #define DEBUG_TIMERS 0 #endif #if DEBUG_TIMERS == 1 #define debug_printf(...) printf(__VA_ARGS__) #else #define debug_printf(......
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "windows.h" #define BIGREAD 256000 unsigned char readbuff[BIGREAD]; int __cdecl main(int argc,char *argv[]) { HANDLE hFile; DCB MyDcb; char *MyPort = "COM1"; DWORD NumberActuallyRead; DWORD Numb...
#define DEFINE_NANAFY_ARRAY(name, type)\ DEFINE_INIT_NANAFY_ARRAY(name, type)\ DEFINE_SET_NANAFY_ARRAY(name, type)\ DEFINE_GET_NANAFY_ARRAY(name, type)\ DEFINE_NANAFY_ARRAY_LENGTH(name, type)\ DEFINE_CLEAR_NANAFY_ARRAY(name, type)\ DEFINE_COPY_NANAFY_ARRAY(name, type)\ DEFINE_EXTEND_NANAFY_ARRAY(name, type)\ DEFINE_FRE...
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
/** ****************************************************************************** * @file dc_service.c * @author MCD Application Team * @brief This file contains data cache services ****************************************************************************** * @attention * * <h2><center...
/************************************************************************************ * bcm 53134 mdio operation headfile * * Created on: 2017-08-16 * * Author: buggy */ #include <stdint.h> /*check count*/ #define CHK_CNT 200 //#define DEBUG #define PHY_ADR 30 typedef uint64_t BCM_REG_T; //read or wr...
#include "main.h" static void channel_OFF(Channel *self); static void channel_INIT(Channel *self); static void channel_FAILURE(Channel *self); static void channel_RUN(Channel *self); static void channel_setOutput(void *vself, int state){ Channel *self = (Channel *) vself; printd("set output for channel ");printd(se...
#define SH_BRAKEVCC 0 #define SH_CW 1 #define SH_CCW 2 #define SH_BRAKEGND 3 #define SH_CS_THRESHOLD 100 /* VNH2SP30 pin definitions xxx[0] controls '1' outputs xxx[1] controls '2' outputs */ int SHMM_inApin[2] = { 7, 4 }; // INA: Clockwise input int SHMM_inBpin[2] = { 8, 9 }; // INB: Counter-clockwis...
/* * Copyright (C) 2015 Etnaviv Project * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
/* *********************************************************************** Copyright (c) 2015 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. Redistribution...
#include <stdio.h> #include <string.h> #include "serial.h" #include "timers.h" #define SPEED_CMD_LENGTH 12 #define ESTOP_CMD_LENGTH 8 #define DEBUG_CMD_LENGTH 16 #define MAX_SPEED_MMPS 5000 #define MAX_YAW_DPS 5000 // #define MAX_YAW_DPS 1300 extern volatile uint8_t eusart1TxBufferRemaining; bo...
/****************************************************************************** * Copyright (c) 2016, NXP Semiconductors * 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. Redistributio...
/* The MIT License (MIT) * * Copyright (c) 2015 Monetra Technologies, LLC. * * 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...
#include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include "h264_avcc.h" #include "bs.h" #include "h264_stream.h" avcc_t *avcc_new() { avcc_t *avcc = (avcc_t *) calloc(1, sizeof(avcc_t)); avcc->sps_table = NULL; avcc->pps_table = NULL; return avcc; } void avcc_free(avcc_t *...
#ifndef _DMA_H_INCLUDED # define _DMA_H_INCLUDED //**************************************************************************** //** //** dma.h //** 8237 ISA Direct Memory Access Controller (DMAC) //** //**************************************************************************** #define ARCH_X86 #ifndef...
/************************************************* * AVR TWI interrupt test, how fast uC enters interrupt routine * Is it possible to use TWI IRQ to synchronize time on two uC? * * www.alfa46.com * <EMAIL> * <NAME> * 2021, Gdansk *************************************************/ //#define F_CPU (16000000UL) ...
/** * Copyright (c) 2019 <EMAIL> * Copyright (c) 2020 <NAME> <<EMAIL>> * * \file rv-link/link/arch/gd32vf103/usb-serial.c * \brief Application defined handling of the CDC ACM USB driver and handling of * CDC_ACM1_DATA EP of the CDC ACM USB device. * * RV-LINK is licensed under the Mulan PSL v1. * You c...
#pragma once #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include "exit_codes.h" #if defined(__gnu_linux__) #include <linux/limits.h> #else // Linux #ifndef MAX_INPUT #define MAX_INPUT 512 #endif #ifndef PATH_MAX #define PATH_MAX 4096 #endif #endif // Other // W...
/** * @file aac/decode.c MPEG-4 AAC Decoder * * Copyright (C) 2010 <NAME> * Copyright (C) 2019 <NAME> */ #include <string.h> #include <re.h> #include <rem.h> #include <baresip.h> #include <fdk-aac/aacdecoder_lib.h> #include "aac.h" struct au_hdr { uint16_t offset; uint16_t size; uint16_t count; }; struct a...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <mpi.h> double compute_energy(double p[2], double q[2], double omega[2]); void kin_flow(double p[2], double q[2], double omega[2], double dt); void pot_flow(double p[2], double q[2], double omega[2], double dt); void leapfrog(double p[], double q[], dou...
/*- * Copyright (c) 2014-present MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * __wt_block_salvage_start -- * Start a file salvage. */ int __wt_block_salvage_start(WT_SESSION_IMPL *s...
// LZW streaming decompressor based on LZW AB. // Copyright (c) 2016 <NAME>, 2018+ other authors, all rights reserved (see AUTHORS). // Distributed under the BSD Software License (see LICENSE). #include "main.h" #include "../../log.h" #include "../common.h" // -- codes length -- static inline size_t get_codes_lengt...
#include "core/include/mpibind.h" #include "core/include/mpibind_functions.h" #include <stdlib.h> /****************************************************************************/ /* FUNCTIONS */ /*************************************************************...
/* * foo-tools, a collection of utilities for glftpd users. * Copyright (C) 2003 Tanesha FTPD Project, www.tanesha.net * * This file is part of foo-tools. * * foo-tools 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 Soft...
/* * Copyright (c) 2019 Yahweasel * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
/* Print contents of object file note. Copyright (C) 2002, 2007, 2009, 2011, 2015, 2016 Red Hat, Inc. This file is part of elfutils. Written by <NAME> <<EMAIL>>, 2002. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public Lic...
#include <stdbool.h> #include <stdio.h> #include <string.h> #include "pico/stdlib.h" #include "pico/binary_info.h" #include "hardware/i2c.h" #define COLUMNS 16 #define ROWS 2 //Instruction set #define CLEARDISPLAY 0x01 #define ENTRYMODESET 0x04 #define ENT...
/** @file rf_master.c @author MPH @brief Stripped from original rf file wireless.c to handle rf functions only used by the master node. */ #include <string.h> #include "rf.h" #include "delay.h" #include "pio.h" #include "target.h" #define RF_PROBE_RESPONSE_WAIT_MS 100 #define RF_PROBE_R...
/** SPI1 Generated Driver API Source File Company: Microchip Technology Inc. File Name: spi1.c @Summary This is the generated source file for the SPI1 driver using PIC24 / dsPIC33 / PIC32MM MCUs @Description This source file provides APIs for driver for SPI1. Generation...
enum { PCC_ACTUALMOVE = 0, PCC_MOVEOFF, PCC_MOVEON }; char *fixname(const char *file_name); char *bfixname(const char *file_name); void scfix(char); void DSBallegshutdown(void); void DSBkeyboard_name_input(void); void DSBkeyboard_gamesave_input(void); void init_all_objects(void); void show_introduction(...
// // Copyright 2018 <NAME> (<EMAIL>). All rights reserved. // License: https://github.com/septag/glslcc#license-bsd-2-clause // // // File version: 1.1.0 // File endianness: little // // v1.1.0 CHANGES // - added num_storages_images, num_storage_buffers (CS specific) variables to sgs_chunk_refl // #pragma once ...
/* * Copyright (c) 2020 <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, publish, dis...
/* * Copyright (c) 2021, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <common/debug.h> #include <common/tf_crc32.h> #include <common/tbbr/tbbr_img_def.h> #include <drivers/fwu/fwu.h> #include <drivers/fwu/fwu_metadata.h> #include <drivers/io/io_storag...
//#define MSG_USE_COLORS #include "config.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #ifdef USE_ICONV #include <iconv.h> #include <errno.h> extern char* get_term_charset(void); #endif #if defined(FOR_MENCODER) #undef HAVE_NEW_GUI #endif #ifdef HAVE_NEW_GUI #include "Gui/inte...