text
stringlengths
3.12k
18.7k
/* FreeRTOS V202104.00 This file is part of the FreeRTOS distribution. FreeRTOS 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 opti...
/* * Arquivo: main.c * Desenvolvedor: <NAME> <<EMAIL>> * Empresa: KSTROS.COM * Site: http://www.kstros.com * Data: 06/09/2015 * Versão: 1.0 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <errno.h> #include "kstlib.h" #include "kstnet.h" #include "kstfailover.h" //Incl...
/* The MIT License (MIT) Copyright (c) 2013-20 <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, pub...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <string.h> #include <errno.h> #include "mpi.h" #include "ompi/peruse/peruse.h" #define ARRAY_SIZE (((128*1024 - 20)*5 + 65496) / sizeof(int)) #define SHORT_OUTPUT 0 typedef struct peruse_timed_events { peruse_event_h event_...
/* arexp.c -- arithmetic expression calculator */ /* reads options, intermediate operators, and expression strings * note: 'e' is translated to ^ because of cmd */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> #include "errchk.h" #include "eval.h" // o...
/* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source c...
#include "tg078uw004a0.h" extern s32 bsp_disp_get_panel_info(u32 screen_id, disp_panel_para *info); static void lcd_power_on(u32 sel); static void lcd_power_off(u32 sel); static void lcd_backlight_open(u32 sel); static void lcd_backlight_close(u32 sel); static void lcd_panel_init(u32 sel); static void lcd_panel_exit(...
/* $OpenBSD: sig_machdep.c,v 1.14 2016/05/21 00:56:43 deraadt Exp $ */ /* $NetBSD: sig_machdep.c,v 1.22 2003/10/08 00:28:41 thorpej Exp $ */ /* * Copyright (c) 1994-1998 <NAME>. * Copyright (c) 1994 Brini. * All rights reserved. * * This code is derived from software written for Brini by <NAME> * * Redistributi...
/********************************************************************* * openNetVM * https://sdnfv.github.io * * BSD LICENSE * * Copyright(c) * 2015-2019 George Washington University * 2015-2019 University of California Riverside * All rights reserve...
#include <stdio.h> #include <sys/stat.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> void server_thread(int); void read_til_crnl(FILE*) ; void process_rq(char *, int ); void header( FILE ...
// This is an open source non-commercial project. Dear PVS-Studio, please check // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // Built-in fallback terminfo entries. #include "nvim/tui/terminfo.h" #include <stdbool.h> #include <string.h> #include <unibilium.h> #include "nvim/globals...
/* $NetBSD: riscoscalls.h,v 1.1 2002/03/24 15:47:27 bjh21 Exp $ */ /*- * Copyright (c) 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. Redistributions of source code mus...
/********************************************************************** * * geo_new.c -- Public routines for GEOTIFF GeoKey access. * * Written By: <NAME>. * * copyright (c) 1995 <NAME> * * Permission granted to use this software, so long as this copyright * notice accompanies any products derived th...
/** @defgroup gpio_file GPIO @ingroup STM32F1xx @brief <b>libopencm3 STM32F1xx General Purpose I/O</b> @version 1.0.0 @author @htmlonly &copy; @endhtmlonly 2009 <NAME> <<EMAIL>> @author @htmlonly &copy; @endhtmlonly 2012 <NAME> <<EMAIL>> @date 18 August 2012 Each I/O port has 16 individually configurable bits. Ma...
typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short int __int16_t; typedef short unsigned int __uint16_t; typedef long int __int32_t; typedef long unsigned int __uint32_t; typedef long long int __int64_t; typedef long long unsigned int __uint64_t; typedef signed char __int_least8_t; typedef uns...
/*- * Copyright (c) 2009-2011 <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 conditi...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2021 <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 reta...
/* This file is part of GNUnet. Copyright (C) 2004, 2005, 2006, 2008, 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 option) an...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2019-2022 Intel Corporation */ // IWYU pragma: no_include <bits/getopt_core.h> #include <stdio.h> // for NULL, snprintf, EOF #include <stdlib.h> // for random #include <getopt.h> // for getopt_long, option #include <pktmbuf.h...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <memory.h> #include <string.h> #include <fcntl.h> #include <assert.h> #include <time.h> #include <dirent.h> #include <stdarg.h> #include "types.h" #include "utils.h" #include "array.h" #include "table.h" #include "lexer.h" #include "memory.h" void ...
/******************************************************************************* * * Copyright (c) 2011, 2012, 2013, 2014, 2015 <NAME> (TZI) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribut...
/* mpn_toom4_sqr -- Square {ap,an}. Contributed to the GNU project by <NAME> and <NAME>. THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/* * Copyright 2021, 2022 NSG650 * Copyright 2021, 2022 Sebastian * * 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 requi...
/****************************************************************************** * $Id: shptest.c,v 1.6 2002/01/15 14:36:07 warmerda Exp $ * * Project: Shapelib * Purpose: Application for generating sample Shapefiles of various types. * Used by the stream2.sh test script. * Author: <NAME>, <EMAIL> *...
/* * This file is part of GreatFET */ #include <stdint.h> #include <stdbool.h> #include <string.h> #include "usb.h" #include "usb_host.h" #include "usb_type.h" #include "usb_queue_host.h" #include "usb_registers.h" #include "usb_standard_request.h" #include "greatfet_core.h" #include "glitchkit.h" #include "pins....
/** * Copyright (c) 2013-2021 UChicago Argonne, LLC and The HDF Group. * * SPDX-License-Identifier: BSD-3-Clause */ #include "na_ip.h" #include "na_error.h" #include <arpa/inet.h> #include <ctype.h> #include <errno.h> #include <ifaddrs.h> #include <net/if.h> #include <netdb.h> #include <stdint.h> #include <stdio....
// tstLanEth.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #ifndef _WINSOCKAPI_ #define _WINSOCKAPI_ #endif #include <windows.h> #include <io.h> #include <winsock2.h> #include "...
/* * File: vertex.c * * This file holds the data structures and functions that manipulate vertices. * */ /* * * MIT License * * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
/* 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
// SPDX-License-Identifier: GPL-2.0 /* * SCMI Message Protocol driver header * * Copyright (C) 2018 ARM Ltd. */ #include <linux/device.h> #include <linux/types.h> #define SCMI_MAX_STR_SIZE 16 #define SCMI_MAX_NUM_RATES 16 /** * struct scmi_revision_info - version information structure * * @major_ver: Major ABI...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
/* major-gc.c * * COPYRIGHT (c) 2007 The Manticore Project (http://manticore.cs.uchicago.edu) * All rights reserved. * * A major GC is the process of copying live data from a VProc's local heap * to the global heap. It will occur immediately after a minor GC in the * case where the amount of free space falls be...
/* SPDX-License-Identifier: MIT */ #include "fb.h" #include "assert.h" #include "iodev.h" #include "malloc.h" #include "string.h" #include "types.h" #include "utils.h" #include "xnuboot.h" #define FB_DEPTH_FLAG_RETINA 0x10000 #define FB_DEPTH_MASK 0xff fb_t fb; struct image { u32 *ptr; u32 width; ...
/** * Created : 2020.09.02; * Last Update : 2021.06.01; * Author : <NAME> <<EMAIL>>; * Supervisor/Advisor : <NAME> <>; * Notes : based in RPS game rules sthocastic simulation of 5 species competing between then; */ #include "../../../head.h" ...
/* cblocks.c: Top-level functions. * * Copyright (C) 2000 by <NAME>, under the GNU General Public * License. No warranty. See COPYING for details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <getopt.h> #include "gen.h" #include "cblocks.h" #include "movelist.h" #includ...
/* * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <stdbool.h> #include <platform_def.h> #include <arch_helpers.h> #include <common/bl_common.h> #include <common/debug.h> #include <context.h> #include <drivers...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * Copyright (c) LSE * 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 conditions and the follow...
#include <goodbrew/config.h> #include <goodbrew/base.h> #include <goodbrew/graphics.h> #include <goodbrew/goodbrewInternal.h> // Renderer stuff #if GBREND == GBREND_SDL #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> SDL_Window* mainWindow; SDL_Renderer* mainWindowRenderer; #elif GBREND == GBREND_VITA2D #include...
//******************************************************************* //Author: <NAME> //Description: Developed during PRCv14 tape-out for verification //******************************************************************* #include "PRCv14.h" #include "FLPv2S_RF.h" #include "PMUv3H_RF.h" #include "mbus.h" #define PRC_A...
/* BASS spectrum analyser example Copyright (c) 2002-2021 Un4seen Developments Ltd. */ #include <gtk/gtk.h> #include <string.h> #include <regex.h> #include <math.h> #include "bass.h" #define SPECWIDTH 368 // display width (should be multiple of 4) #define SPECHEIGHT 127 // height (changing requires palette adjustme...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <adminScreen.h> #include <interrupts.h> #include <lib.h> #include <memoryManager.h> #include <scheduler.h> #include <stdint.h> #include <stringFunctionsK...
/* * 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 ...
/* * arch/xtensa/mm/tlb.c * * Logic that manipulates the Xtensa MMU. Derived from MIPS. * * 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) 2001 - 2003 Tensilica Inc. * *...
// // Bit Bang I2C library // Copyright (c) 2018 BitBank Software, Inc. // Written by <NAME> (<EMAIL>) // Project started 10/12/2018 // // 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 ...
/* * 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 ma...
/* * Copyright (c) 2014 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 copyright * notice, this list of c...
/* * Licensed to Systerel under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Systerel licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this * file except ...
/* This file is part of libmicrohttpd Copyright (C) 2007, 2009, 2011 <NAME> libmicrohttpd 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, or (at your option) any la...
/* * zksh - ZooKeeper Shell utils. * * 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, publis...
#include "sith.h" #include "Main/jkGame.h" #include "World/sithWorld.h" #include "World/jkPlayer.h" #include "Engine/sithCollision.h" #include "World/sithUnk4.h" #include "General/sithStrTable.h" #include "General/stdString.h" #include "General/stdFnames.h" #include "Win95/sithDplay.h" #include "Win95/DebugConsole.h" ...
#include "vector_generic_test.h" #include <stdio.h> #include <assert.h> typedef long elem_type; typedef VectorGeneric VectorLong; static void elem_print(FILE *fp, const void *elem) { assert(elem); fprintf(fp, "%ld", *((const elem_type *)elem)); } static my_bool elem_equal(const void *e1, const void *e2) { i...
/**************************************************************************** * Genesis Plus * Game Genie Hardware emulation * * Copyright (C) 2009-2011 Eke-Eke (Genesis Plus GX) * * Based on documentation from <NAME> * (http://cgfm2.emuviews.com/txt/genie.txt) * * Redistribution and use of this code or...
#include <pthread.h> #include <stdio.h> #include <time.h> #include "control_program.h" #include "global_server_variables.h" #include "dio_handler.h" #include "timing_handler.h" #include "reciever_handler.h" #include "dds_handler.h" extern struct Thread_List_Item *controlprogram_threads; //extern pthread_mutex_t coord_...
/* MIPS ELF specific backend routines. Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. 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 ...
/* * dtndht_test.c * * Created on: 20.01.2012 * Author: <NAME> */ #include <sys/socket.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <fcntl.h> #include <string.h> #include <sys/signal.h> #include <unistd.h> #include <sys/types.h> #include <netdb.h> #include <...
/* Copyright 2008,2012 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distribution of free softw...
/* $OpenBSD: fp.c,v 1.1 2008/09/07 20:36:10 martynas Exp $ */ /*- * Copyright (c) 2002, 2005 <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 sourc...
/******************************************************************************* * File: light_sensor.c * Brief: Illumination level monitor user program * Author: <NAME> * Version: V1.00 * Date created: 20/02/2017 * Last mod: 09/03/2017 * * Note: * Program which warns the user when the illumination level ...
/* Copyright (c) 2013, Broadcom Europe Ltd Copyright (c) 2013, <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: * Redistributions of source code must retain the above copyright notice, th...
#include <uwsgi.h> extern struct uwsgi_server uwsgi; static int commit_line(struct uwsgi_buffer *ub, uint8_t *line, uint8_t line_pos) { if (uwsgi_buffer_u8(ub, line_pos)) return -1; if (uwsgi_buffer_append(ub, (char *) line, line_pos)) return -1; return 0; } static int push_pixel(struct uwsgi_buffer *ub, uint8_t ...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. * Copyright (C) 2016 Grinn */ #include <asm/arch/clock.h> #include <asm/arch/iomux.h> #include <asm/arch/imx-regs.h> #include <asm/arch/crm_regs.h> #include <asm/arch/litesom.h> #include <asm/arch/mx6ul_pins.h> #include ...
/* This is dvipdfmx, an eXtended version of dvipdfm by <NAME>. Copyright (C) 2002-2014 by <NAME> and <NAME>, the dvipdfmx project team. Copyright (C) 1998, 1999 by <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define SIZE 4000 #define MAX 200 #define R 31 typedef struct node { int adr; struct node* next; }node; typedef struct { char *name; node* head; }ht; typedef struct { int *queue; int *parent; int rear; int front; }QUEUE; v...
/* Copyright (c) 2016 Miouyouyou <Myy> 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, publ...
/* * disk/ratt_dos.c * * Custom format used by Anthony "Ratt" Crowther. * * Written in 2012 by <NAME> * Updated to support Captain Planet in 2022 by <NAME> * * RAW TRACK LAYOUT: * u16 <sync> * u32 header[2] :: Odd/even longs, contents NOTed * u32 data[N][2] :: Odd/even longs * u32 csum[2] :: O...
/* * 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...
/*++ /* NAME /* postscreen_tests 3 /* SUMMARY /* postscreen tests timestamp/flag bulk support /* SYNOPSIS /* #include <postscreen.h> /* /* void PSC_INIT_TESTS(state) /* PSC_STATE *state; /* /* void psc_new_tests(state) /* PSC_STATE *state; /* /* void psc_parse_tests(state, stamp_text, time_value) /* PSC_STATE *state; /...
/****************************************************************************** * File Name: main.c * * Description: This is the source code for the PSoC 6 MCU and OPTIGA Trust M * for ModusToolbox. * * Related Document: See README.md * * * The MIT License * * Copyright (c) 2021 Infineon Technologies AG ...
/****************************************************************************** * * Copyright(c) 2007 - 2017 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundat...
/* This is a lighter version of cfbBitBlt. We calculate the boxes when accelerating pixmap->screen and screen->screen copies. We also pass the GC to the doBitBlt function so that it has access to the fg and bg so CopyPlane can use this. */ #ifdef HAVE_XORG_CONFIG_H #include <xorg-config.h> #endif #in...
/* * FIG : Facility for Interactive Generation of figures * Based on (public domain) code from <NAME> * Parts Copyright (c) 2000-2007 by <NAME> * * Any party obtaining a copy of these files is granted, free of charge, a * full and unrestricted irrevocable, world-wide, paid up, royalty-free, * nonexclusive right ...
/* * MONA * Copyright (C) 1997-2013 Aarhus University. * * 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. * * Th...
#include <stdlib.h> #include <dlfcn.h> #include <stdio.h> #include <sys/param.h> #include <sys/time.h> #include <pthread.h> #include <assert.h> #include <mach-o/dyld.h> #include <string.h> #include <libgen.h> #include <unistd.h> #include "fail.h" typedef struct parsed_args_struct { char* my_name; char* test_name; i...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. */ #include <linux/platform_device.h> #include <linux/delay.h> #include <linux/bitops.h> #include <linux/regmap.h> #include <linux/thermal.h> #include "tsens.h" #define CAL_MDEGC 30000 #define CONFIG_ADDR 0x36...
/* $NetBSD: microtime.c,v 1.3 2001/05/27 13:53:24 sommerfeld Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * mod...
/* * Copyright (C) */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <aos/aos.h> #include <sal_arch.h> #include <sal_ipaddr.h> #include <sal.h> #include <ti/drivers/net/wifi/simplelink.h> #define TAG "sal_wifi" #define MAX_DOMAIN_LEN 256 #define DATA_LEN...
/** * \file * \brief VFAT Filesytem. * \author <NAME> * \copyright Copyright (c) 2015, <NAME>. All rights reserved. * \license MIT. See LICENSE for the full license text. * * @todo Reading files is currently horribly inefficient, see VfatPartData. */ #include "vfat.h" #include "console.h" #include "dum...
/* * Ymodem send routine. Only supports 1K blocks and CRC mode. */ #include <string.h> #include <stdio.h> #include "ymsend.h" enum { SOH = 0x01, STX = 0x02, EOT = 0x04, ACK = 0x06, NAK = 0x15, CAN = 0x18, }; /* * Append a CRC16 to a block */ static void add_crc16(uint8_t * blk, int len) ...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/* * Copyright (c) 2001-2009, <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: * * Redistributions of source code must retain the above copyright * notice, this list of con...
/* * chroot_helper.c - functions to deal with chrooting rssh * * Copyright 2003-2005 <NAME> ( code at pizzashack dot org ). * * This program is licensed under a BSD-style license, as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
/* GStreamer * Copyright (C) <2007> Nokia Corporation * Copyright (C) <2007> Collabora Ltd * @author: <NAME> <<EMAIL>> * * 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 *...
/*------------------------------------------------------------------------- * * nodeTee.c * * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * DESCRIPTION * This code provides support for a tee node, which allow...
/* Cubesat Space Protocol - A small network-layer protocol designed for Cubesats Copyright (C) 2012 GomSpace ApS (http://www.gomspace.com) Copyright (C) 2012 AAUSAT3 Project (http://aausat3.space.aau.dk) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General P...
//------------------------------------------------------------------------------ // offscreen-emsc.c //------------------------------------------------------------------------------ #include <stddef.h> /* offsetof */ #define GL_GLEXT_PROTOTYPES #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #define HANDMADE_MATH...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/****************************************************************************** * Filename: ECC_NISTP256.c * Revised: 2020-04-03 19:11:17 +0200 (Fri, 03 Apr 2020) * Revision: 57290 * * Description: Constant definitions for ECC_NISTP256 curve * * Copyright (c) 2015 - 2020, Texas Instruments In...
/* * Mach Operating System * Copyright (c) 1993-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 the * ...
/* * 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...
/* * This file is part of baseflight * Licensed under GPL V3 or modified DCL - see https://github.com/multiwii/baseflight/blob/master/README.md */ #include "board.h" /* FreeFlight/Naze32 timer layout TIM2_CH1 RC1 PWM1 TIM2_CH2 RC2 PWM2 TIM2_CH3 RC3/UA2_TX ...
/* * File: overflow_allcounters.c * Author: <NAME> * <EMAIL> * Mods: <NAME> * <EMAIL> */ /* This file performs the following test: overflow all counters to test availability of overflow of all counters - Start eventset 1 - Do flops - Stop and measure eventset 1 - Set up overflo...
/* * Copyright (c) 2012-2013 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...
/* Unix SMB/CIFS implementation. Username handling Copyright (C) <NAME> 1992-1998 Copyright (C) <NAME> 1997-2001. Copyright (C) <NAME> 2006 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...
//############################################################################# //File Name : IMU.c //Programmer : <NAME> //Date : 28 Sep 2015 //WebSite: http://cool-emerald.blogspot.com/ //License: Creative Commons Attribution-ShareAlike 3.0 // http://creativecommons.org/licenses/by-sa/3.0/ //...
/* * Copyright (c) 2015 MediaTek Inc. * * 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 */ #pragma once #include <platform/mt_reg_base.h> typedef enum { UART1 = AP_UART0_BASE, UART2 = AP_UART1_BASE, UART...
// SPDX-License-Identifier: MIT /* * Copyright © 2021 Intel Corporation */ /** * DOC: display pinning helpers */ #include "intel_display_types.h" #include "intel_fb_pin.h" #include "intel_fb.h" #include "intel_dpt.h" #include "gem/i915_gem_object.h" static struct i915_vma * intel_pin_fb_obj_dpt(struct drm_fram...
/* ** Seniriu ** <NAME> & <NAME> (<EMAIL>) ** ** This work is licensed under a Attribution-NonCommercial 4.0 International License ** More info at: https://creativecommons.org/licenses/by-nc/4.0/legalcode */ /* ** Jo Sega Saturn Engine ** Copyright (c) 2012-2017, <NAME> (<EMAIL>) ** All rights reserved. ** ** Redistri...
#include "processus.h" /* define les variables globales */ // le tableau des processus t_proc procs[NB_PROC]; // le nombre actuel des processus int32_t nb_procs = 0; // le processus actif int32_t proc_actif = 0; // le temps depuis le launch uint32_t temps_up = 0; // initialise le tableau des processus void init_procs...