text
stringlengths
3.12k
18.7k
/** src/core_extensions/OMXCoreRMExt.c This extension of the core provides functions for the resource manager used to retrieve the quality levels of the components available. Copyright (C) 2008-2010 STMicroelectronics This library is free software; you can redistribute it and/or modify it under the terms ...
// MotorSimple.c // Runs on MSP432 // Provide mid-level functions that initialize ports and // set motor speeds to move the robot. // Student starter code for Lab 12, uses Systick software delay to create PWM // <NAME> // July 11, 2019 /* This example accompanies the book "Embedded Systems: Introduction to Robotics...
/* * Simple LDAP Example * $Source$ * $Revision$ * $Date$ * $Author$ */ /* * Copyright (c) 2004 Alaska Communications Systems Group, Inc <<EMAIL>> * All Rights Reserved. * COPYING RESTRICTIONS APPLY, see LICENSE.TXT file */ /* ldapadd.c - the interfaces to the database modules */ /* * Build: * gcc -g -o...
/* Copyright (C) 2019 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and...
#include "common.h" #include "../simd/simd.h" // Source code: https://github.com/WojciechMula/simd-sort/blob/master/avx2-quicksort.cpp #if V_SIMD > 128 #define _mm256_iszero(vec) (_mm256_testz_si256(vec, vec) != 0) void scalar_partition_epi32(uint32_t* array, const uint32_t pivot, int *left, int *right) { while (...
/* * Copyright (c) 2017, The Linux Foundation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * 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 reta...
/** * tbxsosd/podder.c * Copyright (C) 2006-2012 Opersys inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
#include <stdio.h> #include <stdint.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> #include "LineOfSight.h" #include "GeolocateTelemetry.h" #include "OrionComm.h" #define TILE_CACHE 25 // #d...
/** * @author <NAME> * @file ta_generate.c * @version 0.0.0-r0 * @since * * @brief A brief documentation about the file. * * A detailed documentation. */ #include <stdlib.h> #include <stddef.h> #include <stdio.h> #include <string.h> #include <png.h> #include "ta_generate.h" uint32_t _...
/* * \brief Convex Hull Insertion heuristic method. * \authors <NAME>, <NAME> */ #include <errno.h> #include <limits.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include "tsp_solvers.h" #include "logging.h" #include "tsp...
/** * \file pm_app.c * * \brief Source file containing the PM related configuration functions. * These functions will be called by example application. * */ /** * \copyright Copyright (C) 2013 Texas Instruments Incorporated - * http://www.ti.com/ */ /* * Redistribution and use in sou...
/* Copyright 2013-2014 bcstack.org Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
/*----------------------------------------------------------------------------- * Name: LED_LPC824-LPCXpresso.c * Purpose: LED interface for LPC82x-LPCXpresso evaluation board * Rev.: 1.01 *----------------------------------------------------------------------------*/ /* Copyright (c) 2013 - 2016 ARM L...
#include "../../include/drivers/spi/spi.h" #include "../../include/drivers/sdcard/sdcard.h" #include "../../include/io/gpio.h" #include "../../include/drivers/arduino/millis.h" #define true 1 #define false 0 unsigned char lastStatus; struct SDFile file; struct SDCartInfo sdCardInfo; unsigned char ...
/******************************************************************************* Copyright (c) 2013, Infineon Technologies AG ** All rights reserved. ** ...
/* zxbussubs.c - Audit Bus subscription management * Copyright (c) 2012 <NAME> (<EMAIL>), All Rights Reserved. * This is confidential unpublished proprietary source code of the author. * NO WARRANTY, not even implied warranties. Contains trade secrets. * Distribution prohibited unless authorized in writing. See f...
#include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "audio_synthesis_process.h" #include "logging.h" #include "messages.h" #include <bclib/dbg.h> #include <ck_ring.h> #include <libpd/z_libpd.h> AudioSynthesisProcessConfig *audio_synthesis_config_create( int samplerate, int ...
static void dxva_print_guid(GUID guid) { if (IsEqualGUID(&guid, &DXVA2_ModeH264_A)) { fprintf(stderr, "DXVA2_ModeH264_MoComp_NoFGT\n"); } else if (IsEqualGUID(&guid, &DXVA2_ModeH264_B)) { fprintf(stderr, "DXVA2_ModeH264_MoComp_FGT\n"); } else if (IsEqualGUID(&guid, &DXVA2_ModeH264_C)...
/* * PI_1.C * * DEMO 'C' PROGRAM TO COMPUTE PI USING * BORWEIN'S QUARTICALLY CONVERGENT ALGORITHM * * * Output from 'pi-1 200' : (I line wrapped for this page). * * start Borwein-Quartic PI calculation * PI now known to 2 digits of accuracy ... * PI now know...
/* * --INFO-- * Address: 80215E04 * Size: 0002DC */ void fwrite(void) { /* .loc_0x0: mflr r0 stw r0, 0x4(r1) stwu r1, -0x48(r1) stmw r25, 0x2C(r1) addi r26, r4, 0 addi r27, r6, 0 addi r28, r3, 0 addi r25, r5, 0 addi r3, r27, 0 li ...
/* ** Copyright 2016 Telenor Digital AS ** ** 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...
/* VERSION 2.0 - COLUMBUS DMS file - metrics.c metrics calculated after simulation run are: user throughput = octets received / total sec. channel efficiency = (user throughput * 8) / link_speed channel utilization = (total bits sent / total sec.) / link speed channel use = user throughput per...
/* zzsclk.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 integer c__10 = 10; static integer c__2 = 2; static integer c__7 = 7; /* $Procedure ZZSCLK ( Is there and SCLK...
#include <stdint.h> #include <stdlib.h> #include "fastexp.h" #include "region_layer.h" typedef struct{ int index; int class; float **probs; } sortable_bbox; typedef struct { volatile float x, y, w, h; } box; typedef struct { uint32_t class; uint32_t output_cnt; float threshold; float nms; float *active; fl...
/******************************************************************************* * Ledger Blue * (c) 2016 Ledger * * 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.apa...
#include "AB_BB.h" // FUNCIONAMIENTO ENCONTRAR_MI: // Encuentra el valor más chico de una rama // que es el elemento más a la izquierda de // una rama. TNodoAB_BB* Encontrar_Min(TNodoAB_BB* temp) { if (temp == NULL || temp->izq == NULL) return temp; return Encontrar_Min(temp->izq); } // FUNCIONAMIENTO Bus...
/* * Copyright (c) 2004-2007 <NAME> <<EMAIL>> * Copyright (c) 2004 <NAME> <<EMAIL>> * Copyright (c) 2005-2015 <NAME> <<EMAIL>> * Copyright (c) 2015-2018 The strace developers. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
/* dqagp.f -- translated by f2c (version 20190311). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
#include <assert.h> #include <math.h> #include <stdlib.h> #include "xutil.h" struct summary_stats { const double *data; int nr_items; double mean; double sample_sd; double sample_skew; double sample_kurtosis; }; static int compare_double(const void *_a, const void *_b) { const double *a = _a; const d...
#include <utils_log.h> #include <lwip/pbuf.h> #include <lwip/netifapi.h> #include <bl_sdu.h> #include <FreeRTOS.h> #include <task.h> #include <aos/kernel.h> #include <bl_wifi.h> #include "blog.h" #include <netbus_mgmr.h> #include "netbus_transceiver.h" #include <tp_spi_slave.h> #define USER_USE_SPISLAVE (1) #...
/* ============================================================================ Name : merge.c Author : qwinpin Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #include <time...
/* * Copyright (c) 2015, Freescale Semiconductor, 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: * * o Redistributions of source code must retain the above copyright notice, this list...
// SPDX-License-Identifier: GPL-2.0-only #include <net/xdp_sock_drv.h> #include "netlink.h" #include "common.h" struct channels_req_info { struct ethnl_req_info base; }; struct channels_reply_data { struct ethnl_reply_data base; struct ethtool_channels channels; }; #define CHANNELS_REPDATA(__reply_base) \ c...
/** * @file main.c * @brief * * Copyright (c) 2021 Bouffalolab team * * 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 t...
/* @author <NAME> */ /* On macOS, compile with... clang 540mainTexturing.c -lglfw -framework OpenGL; ./a.out */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdarg.h> // #include <stb_image.h> #include <GLFW/glfw3.h> #include "500shader.c" #include "530vector.c" #include "510mesh.c" #inclu...
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * isar.h ISAR (Siemens PSB 7110) specific defines * * Author <NAME> (<EMAIL>) * * Copyright 2009 by <NAME> <<EMAIL>> */ #include "iohelper.h" struct isar_hw; struct isar_ch { struct bchannel bch; struct isar_hw *is; struct timer_list ftimer; u8 nr; ...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* */ /* Nirvana LockI */ #include <stdio.h> #include <unistd.h> #include ...
/* * This file is part of MPlayer. * * MPlayer 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. * * MPlayer is distributed in th...
/* * Name: kstat v.1.1 symex.c * Date: Sun Feb 10 02:49:49 CET 2002 * Author: FuSyS [<EMAIL>, <EMAIL>] * * SoftProject Digital Security for Y2K * Sikurezza.org - Italian Security Mailinglist * * MOJITO-WARE LICENSE - This source code is like "THE BEER-WARE LICENSE" by * <NAME> <<EMAIL>> but you can give me in ...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2019 Facebook */ #include <linux/err.h> #include <test_progs.h> #include "bpf_dctcp.skel.h" #include "bpf_cubic.skel.h" #define min(a, b) ((a) < (b) ? (a) : (b)) static const unsigned int total_bytes = 10 * 1024 * 1024; static const struct timeval timeo_sec = { .t...
/* * (C) Copyright 2011 * egnite GmbH <<EMAIL>> * * (C) Copyright 2010 * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ /* * Ethernut 5 general board support * * Ethernut is an open source hardware and software project for * embedded Ethernet devices. Hardware layouts and CAD files are * freely...
/* 3DKIT version 1.3 High speed 3D graphics and rendering library for Linux. Copyright (C) 1996, 1997 <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 Found...
/*! \file gd32vf103_exmc.c \brief EXMC driver \version 2019-06-05, V1.0.0, firmware for GD32VF103 \version 2020-08-04, V1.1.0, firmware for GD32VF103 */ /* Copyright (c) 2020, GigaDevice Semiconductor Inc. Redistribution and use in source and binary forms, with or without modification, a...
#include "fvutils.h" AVFrame * copyFrame(AVFrame *pPic, struct SwsContext * ctx, int width, int height) { AVFrame *res = av_frame_alloc(); avpicture_alloc((AVPicture *)res, PIX_FMT_RGB24, width, height); int numBytes = avpicture_get_size(PIX_FMT_RGB24, width, height); uint8_t *buffer = (uint8_t *)av_malloc(numByte...
/*- * Copyright (c) 2009-2010 <NAME> <<EMAIL>> * Copyright (c) 2016 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the a...
// Generates data for a Fibonacci heap #include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <stdbool.h> #define MAX_LEN (2000000) #define MIN_LEN (100000) #define DIF_LEN (100000) #define BIAS (1000) #define NAIVE_MAX (25) #define NAIVE_MIN (1) #define NAIVE_DIF (1...
#include "cache.h" #include "config.h" #include "run-command.h" #include "strbuf.h" #include "gpg-interface.h" #include "sigchain.h" #include "tempfile.h" static char *configured_signing_key; struct gpg_format { const char *name; const char *program; const char **verify_args; const char **sigs; }; static const ch...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* Simpleaudio Python Extension Copyright (C) 2015, <NAME> MIT License (see LICENSE.txt) */ #include "simpleaudio.h" PyObject* sa_python_error; play_item_t play_list_head = { 0, /* play_id */ SA_CLEAR, /* stop_flag */ NULL, /* prev_item */ NULL, /* next_item */ NULL /* mu...
#include <stdint.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include "fujitsu_ac_ir.h" #include <ir/ir.h> #include <ir/generic.h> #define countof(x) (sizeof(x) / sizeof(*x)) static const char* ac_cmd_string(ac_cmd command) { static char unknown[5]; switch (command) { case ac_cmd_s...
/* * HID++ generic definitions * * 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...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/* * 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 ...
#include "gloscope.h" const char *VertexShaderCode = "#version 440 core\n" "layout(location = 0) in float a_hpos;\n" "layout(location = 1) in float a_vpos;\n" "layout(location = 10) out vec2 v_pos;\n" "layout(location = 201) uniform mat4 u_tform = mat4(1);\n" "void main() {\n" " v_pos ...
/* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved. Distributed by Free Software Foundation, Inc. This file is part of Ghostscript. Ghostscript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the conseque...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
/* * nftldump.c: Dumping the content of NFTL partitions on a "Physical Disk" * * 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...
/* email_form.c License CC0 PUBLIC DOMAIN To the extent possible under law, <NAME> has waived all copyright and related or neighboring rights to tabitha. This work is published from: United States. */ #include "email.h" #include "error.h" struct property { GtkEntry* m_from; ...
/*- * Copyright (c) 1993 <NAME> * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
/* * Copyright (c) 2009-2019 <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, publis...
/* -*- C -*- */ /* * Copyright (c) 2017-2020 Seagate Technology LLC and/or its Affiliates * * 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...
/* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2013 The CyanogenMod Project * * 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/lic...
/** * Copyright (c) 2016 - 2018, 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...
/* * 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...
/* $OpenBSD: macdefs.h,v 1.3 2008/04/11 20:45:52 stefan Exp $ */ /* * Copyright (c) 2003 <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 c...
/* * Unix SMB/CIFS implementation. * Virtual Windows Registry Layer * Copyright (C) <NAME> 2002-2005 * Copyright (C) <NAME> 2006-2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
#define FILTER_STORAGE #include "cvgcmn.h" #define FILTER_TBL "filter.tbl" static int filterLoaded = False; /* * Private functions */ static void _fillStrArray ( int max_strarr, int max_string, char origstr[], int *nstrarr, char strarr[][DSPLY_FILTER_SZ] ); static void _vrfyTimes ( char *instr, in...
#include "deserialize.h" #include <assert.h> #include <limits.h> #include "primitive.h" #include "unreachable.h" /* Fetches 'len' 'uint32_t's from 'stream' into 'result'. * The bits in each 'uint32_t' are set from the MSB to the LSB and the 'uint32_t's of 'result' are set from 0 up to 'len'. * Returns 'SIMPLICITY_E...
/* * CC3Math.h * * Cocos3D 2.0.2 * Author: <NAME> * Copyright (c) 2010-2014 The Brenwill Workshop Ltd. All rights reserved. * http://www.brenwill.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
#include "link-includes.h" static struct { int verbosity; int timeout; int memory; int linkage_limit; int null_block; int islands_ok; int short_length; int batch_mode; int panic_mode; int allow_null; int echo_on; int screen_width; int display_on; int display...
#pragma once #include <stdatomic.h> #include <stdint.h> #include <string.h> /* The queue is split into two regions after the header. The submission queue, which is required, * and the completion queue, which is optional. These are each referred to as "subqueues". A * subqueue operates as follows: * - the head re...
/* $OpenBSD: netcat.c,v 1.57 2002/12/30 18:00:18 stevesk Exp $ */ /* * Copyright (c) 2001 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the a...
// // fsm.c // FSM sample code // // Created by <NAME>, 2014.11.1. // Copyright (c) 2014. <NAME> All rights reserved. // see LICENSE #include "util.h" #define CONNECT_TIMEOUT 2 #define CONNECT_TRY 3 #define NUM_STATE 4 #define NUM_EVENT 9 enum pakcet_type { F_CON = 0, F_FIN = 1, F_ACK = 2, F_DATA = 3 }; // Pa...
/* api.c - Copyright (c) 2018, <NAME> (see LICENSE.md) */ #define USERAGENT "nostt (+https://github.com/sjmulder/nostt)" #define ENDPOINT "http://teletekst-data.nos.nl/json/" #define SUBST_CHAR '%' #include <stdio.h> #include <string.h> #include <ctype.h> #include <wchar.h> #include <curl/curl.h> #include <json-c/jso...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "parser.h" typedef enum { STRUCT = 's'+'t', IMPLEM = 'i'+'m', TYPE = 't'+'y', INIT = 'i'+'n', BENCH = 'b'+'e' } section; void die(char* str, ...) { va_list args; va_start(args, str); vprintf(str, args); va_...
/*************************************************************************** Gomoku sound driver (quick hack of the Wiping sound driver) ***************************************************************************/ #include "driver.h" /* 4 voices max */ #define MAX_VOICES 8 static const int samplera...
/* * Copyright (c) 2007-2011 <NAME>, <NAME> * * 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 follo...
/** * * \file * * \brief * * Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It is your responsibili...
/* * Copyright (c) 1988, 1992, 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and * contributed to Berkeley. * * All advertising materials mentioni...
/* Copyright (c) 2015, Plume Design Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* $OpenBSD: clkbrd.c,v 1.6 2008/01/20 16:41:17 kettenis Exp $ */ /* * Copyright (c) 2004 <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 ...
/** ****************************************************************************** * File Name : aos.c * Created : 08/27/2015 * Version : 1.0 * Author : <NAME> * Description : Array Operating System (AOS) main source file. * License : The MIT ...
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
/* * camapplication.c - GStreamer CAM (EN50221) Application Layer * Copyright (C) 2007 <NAME> * * Authors: * <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...
/* acfcalculate.c ============== Author: R.J.Barnes, R.A.Greenwald, K.Oksavik */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it un...
/* BSD 3-Clause License * * Copyright © 2008-2021, Jice and the libtcod contributors. * 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 ...
/* programador: <NAME> professor: <NAME> instituicao de ensino: escola superior politecnica uninter disciplina: linguagem de programacao ide: visual studio community 2019 exercicio: dado um mapa na forma de uma matriz de caracteres, faça uma rotina recursiva que encontre e imprima um caminho entre a posição [0,0] e...
/* This file is part of TimeBox. Copyright 2015-16 <NAME> * Revision 1.0 */ #include "mex.h" #include <stdlib.h> #include <string.h> #include <math.h> #include <stdio.h> #define INITIAL_WEIGHTS 0.5 #define MINMAX_WEIGH_DIFF 1e-5 #define MAX_ITERATIONS 1000000 #define NI 0.1 #define EPS 1e-8 #define DEBUG 0...
#include "stm32l476xx.h" #include "init.h" void LED2_Init(void) { // Enable the clock to GPIO port A RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; // Set mode of pin as alternate function (mode 10) GPIOA->MODER &= ~GPIO_MODER_MODE5; GPIOA->MODER |= 1UL << (2*5); GPIOA->MODER &= ~GPIO_MODER_MODE4; ...
typedef unsigned char undefined; typedef unsigned char bool; typedef unsigned char byte; typedef unsigned int dword; typedef long long longlong; typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned long ulong; typedef unsigned long long ulonglong; typedef unsigned short ...
/* * Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * Copyright (C) 2011-2013 Sourcefire, Inc. * * Authors: aCaB * * 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...
#include "memory.h" #include "freelist.h" #include "uart.h" #include "utils.h" #include "printf.h" Freelist *heads; Node *nodes; int *frame_array; blocklist memory_blocks; extern char _end; void memory_init() { void *base = (void *)&_end; heads = (Freelist *)simple_malloc(&base, (int)sizeof(Freelist)*LOG2_MA...
/** * Predmet: IFJ / IAL * Projekt: Implementace interpretu imperativniho jazyka IFJ12 * Varianta: a/1/I * Soubor: ial.c * Popis: Soubor s fcemi do IAL * Datum: 8.12.2012 * Autori: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <...
/*- * Copyright (c) 2014 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/** * 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...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <fcntl.h> #include <assert.h> #include <stdbool.h> #include "processimagelib.h" void write_mmio(volatile Conf* conf, int offset, uint32_t data, int verbose) { if(verbose) { printf("MMIO WRITE: 0x%...
/* * Copyright (c) Regents of The University of Michigan * See COPYING. */ #include <config.h> #include <sys/param.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <stdio.h> #include <syslog.h> #include <unistd.h> #ifdef HAVE_LIBSSL #include <openssl/err.h> #include <openssl/rand.h> #i...
//////////////////////////////////////////////////////////////////////////////// // // // MIT X11 license, Copyright (c) 2005-2006 by: // // ...
#include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include "match_engine.h" #include "b_file.h" #include "b_path.h" #include "b_string.h" #include "b_header.h" #include "b_stack.h" #include "b_buffer.h" #include "b_builder.h" b_builder *b_builde...
/*************************************************************************** * * Copyright (C) 2004 by <NAME> * Licensed under the Academic Free License version 2.1 * ***************************************************************************/ #include "epnio.h" #include <string.h> #include <stdlib.h> #include...