text stringlengths 3.08k 10.5k |
|---|
/*********************************************************************
*
* $Id: txt2shp.c,v 1.1 2006/12/15 03:05:36 woodbri Exp $
*
* txt2shp
* Copyright 2006, <NAME>, All rights Reserved
* Redistribition without written permission strictly prohibited
*
**************************************************************... |
#include <OpenGL.h>
#include <stb_image.h>
#include <string.h>
#include "FontRenderer.h"
#include "../Render/ShapeRenderer.h"
#include "../Utilities/String.h"
#include "../Utilities/Log.h"
FontRenderer FontRendererCreate(GameSettings settings, char * name, TextureManager textures)
{
FontRenderer font = MemoryAllocate... |
/*
* Copyright (c) 2010 Broadcom Corporation
*
* 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 AUTHO... |
/*
* Copyright (c) 2018 <NAME>
* https://github.com/iotaledger/entangled
*
* Refer to the LICENSE file for licensing information
*/
#include <stdlib.h>
#include "common/curl-p/trit.h"
#include "common/kerl/kerl.h"
#include "common/model/bundle.h"
#include "common/sign/normalize.h"
#include "common/sign/v1/iss_cu... |
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*
* @(#)nexus.h 7.3 (Berkeley) 05/09/91
*/
/*
* Information about nexus's.
*
* Each machine has an address of backplane slots (nexi).
* Each nexus is some type of adapter, whose cod... |
/******************************************************************************
*
* 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 F... |
/* Main running for our game
Needs to have gcc game.c quadtree.c asteroids.c -lGL -lGLU -lglut -lm to run
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <GL/glut.h>
#include <time.h>
#include "lasers.h"
#define MAX_AST 20
#define WX 250
#define WY 250
#define tr... |
/***************************************************************************
Copyright (c) 2013-2016, The OpenBLAS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code... |
#include <meraki/term.h>
#include <meraki/output.h>
#include <stdio.h>
#include "highlight.h"
#include "buffer/buffer.h"
#include "event.h"
#include "main.h"
#include "adt/vec.h"
#include "x.h"
struct DrawState {
struct MerakiOutput *out;
// terminal size
size_t width;
size_t height;
// used for scrolling... |
/**
* @file: the Detail of Resoure Record
*
* @brief: The distribution of the protocol depended on the different TYPE
* leads to different DATA format.
* Reference: https://www.ietf.org/rfc/rfc1035.txt
*/
#include "type.h"
#include "std_rr.h"
/**
* 3.2.2. TYPE values
*
* TYPE fields are ... |
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2018 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_wdog.h"
/* Component ID definition, used by tools. */
#ifndef FSL_COMPONENT_ID
#define FSL_COMPONENT_ID "platform.drivers.wdog01"
#endif
/**********... |
/*
* Copyright 2020 Rockchip Electronics 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 a... |
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <kernel/tty.h>
#include <kernel/port.h>
#include "vga.h"
static const size_t VGA_WIDTH = 80;
static const size_t VGA_HEIGHT = 25;
static uint16_t* const VGA_MEMORY = (uint16_t*) 0xC03FF000; // 3FF000 offset to 0xC0000000, or ke... |
/*
* Marks a directory as deleted in dirlog
* @version 20110921
* @author Sked
*/
#include <stdio.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <inttypes.h>
#include <errno.h>
#include "../conf/zsconfig.h"
#include "../include/zsconfig.defaul... |
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "fsl_mmau.h"
/*******************************************... |
/**********
Permit to use it as your wish.
Author: 2007 <NAME>, <EMAIL>
University of Science and Technology of China
**********/
#include "ngspice/ngspice.h"
#include "ngspice/cktdefs.h"
#include "ngspice/smpdefs.h"
#include "ndevdefs.h"
#include "ngspice/numconst.h"
#include "ngspice/numenum.h"
#include "ngspice/s... |
#include "curses.h"
short curs_color(int fg){
switch (7 & fg) { /* RGB */
case 0: /* 000 */
return (COLOR_BLACK);
case 1: /* 001 */
return (COLOR_BLUE);
case 2: /* 010 */
return (COLOR_GREEN);
case 3: ... |
#include <stdint.h>
#include <cairo/cairo.h>
#include "cairo.h"
#if HAVE_GDK_PIXBUF
#include <gdk-pixbuf/gdk-pixbuf.h>
#endif
void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
cairo_set_source_rgba(cairo,
(color >> (3*8) & 0xFF) / 255.0,
(color >> (2*8) & 0xFF) / 255.0,
(color >> (1*8) & 0xFF) / 25... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Sample SPMI bus driver
*
* It emulates bus with single pm8916-like pmic that has only GPIO reigsters.
*
* (C) Copyright 2015 <NAME> <<EMAIL>>
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <spmi/spmi.h>
#include <asm/gpio.h>
#include <asm/io.h>
#defi... |
#include <stdio.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "drawing.h"
#include "text.h"
int make_char(FontChar *fc, FT_Face face, char c) {
if (FT_Load_Glyph(face, FT_Get_Char_Index(face, c), 0)) {
fprintf(stderr, "Failed to load character in FreeType: '%c'\n", c);
return 0;
}
if (FT_Render_Gly... |
#include "rsvna.h"
#define STRING_LENGTH 4096
#define checkErr(fCall) if (error = (fCall), error < 0) goto Error;
int main (void)
{
ViString resourceName = "TCPIP::localhost::INSTR";
ViBoolean idQuery = VI_TRUE;
ViBoolean resetDevice = VI_TRUE;
ViStatus error = VI_SUCCESS;
ViChar idResponse[STRING_LENGTH];
... |
#include "../../macros.h"
#include "../../typed.h"
#include "../bml_allocate.h"
#include "../bml_parallel.h"
#include "../bml_transpose.h"
#include "../bml_types.h"
#include "bml_allocate_ellpack.h"
#include "bml_transpose_ellpack.h"
#include "bml_types_ellpack.h"
#include <complex.h>
#include <math.h>
#include <stdli... |
/* readln.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__1 = 1;
/* $Procedure READLN ( Read a text line from a logical unit ) */
/* Subroutine */ int read... |
/*
* Copyright (c) International Business Machines Corp., 2009
* 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 ... |
/* $KAME: sctp_peeloff.c,v 1.12 2004/08/17 04:06:19 itojun Exp $ */
/*
* Copyright (C) 2002, 2003 Cisco Systems 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 ... |
#include <inttypes.h>
#include <stdio.h>
#include <parserutils/charset/utf8.h>
#include <parserutils/input/inputstream.h>
#include <libcss/libcss.h>
#include "charset/detect.h"
#include "utils/utils.h"
#include "lex/lex.h"
#include "testutils.h"
#define ITERATIONS (1)
#define DUMP_TOKENS (0)
static void *myreal... |
/**
@file compress.c
@brief Provides compress functionality
@author <NAME>
*/
#include <stdio.h>
#include <compress.h>
#include <ppl.h>
#include <ppl_tree.h>
#include <code_tbl.h>
#include <io_code.h>
#include <p_utils.h>
#include <header_t.h>
/** @brief Compress and write src contents to destination
... |
/* N U R B _ B E Z I E R . C
* BRL-CAD
*
* Copyright (c) 1991-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.... |
#include "mex.h"
#include "math.h"
#define G1 prhs[0]
#define G2 prhs[1]
#define G3 prhs[2]
#define XI prhs[3] // Ewald parameters
#define L prhs[4] // Box size
#define ETA prhs[5]
#define H1 plhs[0] // Output
#define H2 plhs[1] // Output
#define H3 plhs[2] // Output
#define PI 3.141592653589793... |
/*
* mtypes.h -- low level prolog types
*
* Implementation-dependent
*
* This file should contain all machine dependent manipulation of the machine
* level Prolog types (what the WAM uses), so that they are easy to find
* and change if necessary.
*
* See the "Machine Dependent Files" section of the implement... |
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @addtogroup t_mpool
* @{
* @defgroup t_mpool_options test_mpool_options
* @brief TestPurpose: verify memory pool configure options
* @details All TESTPOINTs extracted from kernel documentation
* - Configure options cov... |
/* ====================================================================
*
*
* BSD LICENSE
*
* Copyright(c) 2016-2018 Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
#include <math.h>
#include <stdbool.h>
#include "bSplinePidComputer.h"
#include "pidComputer.h"
#include "../pidComputationValues.h"
#include "../pid.h"
#include "../parameters/pidParameter.h"
#include "../pidMotion.h"
#include "../motionInstruction.h"
#include "../pidComputationInstructionValues.h"
#in... |
// SPDX-License-Identifier: GPL-2.0
/* Qualcomm IPQ8064 MDIO interface driver
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* Copyright (C) 2020 <NAME> <<EMAIL>>
*/
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_mdio.h>
#include <linux/phy.h>... |
#include "audio.h"
#include "ccu.h"
#include "system.h"
#include "interrupts.h"
#include <stdio.h>
#include <h3_codec.h>
int sample_count;
void __attribute__((weak)) hook_audio_get_sample(int16_t *l, int16_t *r)
{
// Create a pilot tone.
*l = ((sample_count / 50) & 1) * 0x007f;
*r = ((sample_count / 50) & 1) * 0x0... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
main2();
system("pause");
}
//------------tde 9-2-2010---------
int main1 () {
char c, arr['z'-'a'], *pChar;
int i, *pInt;
int matr = 34 ; // inserire qui le ultime due cifre della propria matricola
//Inizio prima parte
for ( c='a'; c<'... |
#include "records.h"
#include "os/logging.h"
#include "os/shell/shell.h"
#include "os/shell/shell_command_utils.h"
#include "os/shell/shell_keys.h"
#include "os/shell/shell_utils.h"
#include "peripherals/nonvolatile_memory.h"
static uint8_t LOG_LEVEL = L_SILENT;
/* *****************************************************... |
/* system.c -*- mode:c; coding:utf-8; -*-
*
* Copyright (c) 2010-2021 <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 o... |
#include "app_config.h"
#include "app_sensor.h"
#include "ruuvi_boards.h"
#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_driver_sensor_test.h"
#include "run_integration_tests.h"
#include "ruuvi_interface_communication_ble_advertising_test.h"
#include "ruuvi_interface_communication_ble_advertising.h"
#include... |
//
// bool.c - performs some boolean operations
//
// must be initialized with a call to initbool()
#include "checkers.h"
#include "bool.h"
static char LSBarray[256];
static char MSBarray[256];
static char bitsinword[65536];
static int32 revword[65536];
//unsigned char tab[256];
/*>(3) They did not ... |
/********************************************************************************
* Copyright (c) 2016 Advanced Micro Devices, 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
*... |
/*
* GT-WT-02 sensor on 433.92MHz
*
* Copyright (C) 2015 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*/
/* Example and frame description provided by https://gith... |
/**
* @file aes.c
* */
#include <aes.h>
#include <lookup.h>
#include <stdio.h>
#include <string.h>
static void aes_add_round_key(uint8_t *state, uint8_t *key){
for(uint8_t i = 0; i < 16; i++)
state[i] ^= key[i];
}
static void aes_substitute(uint8_t *state){
for(uint8_t i = 0; i < 16; i++)
state[i] = ri... |
#pragma once
// ############################### Settings ###############################
// Whenever possible, settings should be managed in platformio.ini!
/****************************** System *********************************/
#define MULTITASKING
/****************************** Debug **************************... |
/**
******************************************************************************
* File Name : CAN.c
* Description : This file provides code for the configuration
* of the CAN instances.
******************************************************************************
... |
/******************************************************************************
*
* Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redi... |
/*
* audio_player.c
*
* Created on: 2019.02.03
* Author: zhaohuijiang
*/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/ringbuf.h"
#include "esp_system.h"
#include "esp_log.h"
#include "esp_task.h"
/... |
/*
* Created on: 15.12.2012
* Author: Anton
*/
#include <mocks/rpc_client.h>
#include <mocks/twi_driver_master.h>
#include <twi/rpc/client_functions.h>
#include <string.h>
#include <unity.h>
#include <mocks/assertions.h>
byte clientLibraryBuffer[100];
TestArgStruct parameters = { 43, 63.429f };
TestResStruc... |
/*
* Copyright (c) 2015 Jonas '<NAME>.
*
* 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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
/*
* ObjectivelyMVC: Object oriented MVC framework for OpenGL, SDL2 and GNU C.
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* 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.
*
* Permissi... |
#include "mex.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#define x(m,n) (X[m + n*nstate])
#define x_new(m,n) (X_NEW[m + n*nstate])
#define c(m,n) (C[m + n*nstate])
#define x_rs(m) (X_RS[m])
#define c_rs(m) (C_RS[m])
void mexFunction(int nlhs, mxArray *plhs[], in... |
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <netdev.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#define DDR_BASE_CS_OFF(n) (0x0000 + ((n) << 3))
#define DDR_SIZE_CS_OFF(n) (0x0004 + ((n) << 3))
static struct mbus_wi... |
/*
* Copyright © 2011 Intel Corporation
* Copyright © 2021 NVIDIA Corporation
*
* 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 ... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 <NAME>
#include <np/proc.h>
#include <np/syscall.h>
#include <stdio.h>
#include <stdlib.h>
static void print_heap(void) {
printf("Print start...\n");
for (size_t i = 0; i < heap.last_index; i++) {
printf("%u-th with add %x and mem %u\n", i, heap... |
#include <stdlib.h>
#include <string.h>
#include "mstrset.h"
// VECTOR
void mstrset_vec_init(mstrset_vec_t* vec) {
vec->capacity = STRSET_VEC_STATIC_CAPACITY;
vec->len = 0;
vec->items = vec->initial;
}
void mstrset_vec_maybe_reallocate(mstrset_vec_t* vec) {
if (vec->len >= vec->capacity) {
size_t new_cap... |
/* COPYRIGHT C 1991- <NAME> */
#include <stdlib.h>
#include <string.h>
#include <malloc/malloc.h>
#include <errno.h>
#include "ad_random.h"
#include "ad_fileio.h"
#include "ad_defs.h"
#include "ad_partition.h"
/* create initial partition */
int create_partition(int nocells,
int noparts,
... |
/*
* Copyright (C) 1999
* Sony Computer Science Laboratories, 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
* ... |
/*
* Copyright (c) 2015 Microchip Technology Inc
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <mach/pad.h>
struct sfax8_gpio_priv {
u32 pad_base;
u32 gpio_base;
char na... |
/*
Copyright (c) 2015, Los Alamos National Security, LLC
All rights reserved.
Copyright 2015. Los Alamos National Security, LLC. This software was
produced under U.S. Government contract DE-AC52-06NA25396 for Los
Alamos National Laboratory (LANL), which is operated by Los Alamos
National Security, LLC for the U.S. Dep... |
/* unit_strings.c
* Units to append to field values
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <wsutil/utf8_entities.h>
#include <wsutil/str_util.h>
#include "unit_strings.h"
const char* ... |
// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... |
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <hubbub/hubbub.h>
#include <hubbub/parser.h>
#include "utils/utils.h"
#include "testutils.h"
static hubbub_error token_handler(const hubbub_token *token, void *pw);
static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE)
{
hubbub_p... |
#include <stdio.h>
#include <stdlib.h>
typedef struct no{
int id;
int requisitions;
struct no* prox;
}no;
int cost;
int* array_cost;
int length;
no** search (no* lista, int id) {
no** return_variable;
return_variable = malloc(3*sizeof(no*));
return_variable[1]= NULL;
for (cost = 0;... |
/*
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Universal Permissive License v 1.0 as shown
* at http://oss.oracle.com/licenses/upl
*/
/*
NAME
parseargs.c - <one-line expansion of the name>
DESCRIPTION
Parse the command line arguments and disp... |
/*
* 7segments.c:
* Simple test program to see if we can drive a 7-segment LED
* display using the GPIO and little else on the Raspberry Pi
*
* Copyright (c) 2013 <NAME>
***********************************************************************
*/
#undef PHOTO_HACK
#include <wiringPi.h>
#include <stdio.h>
#inclu... |
// Copyright (C) 2015-2021 <NAME>, 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,... |
/* Copyright (c) 2014 <NAME>. All Rights Reserved. */
/** @file
*
* @defgroup ble_back_rec main.c
* @{
* @ingroup ble_back_rec
* @brief Project main file.
* @author <NAME>
*
* This file contains platform code of background data recording based on NordicSemi (c) nRF51822.
*/
#include <stdint.h>
#include <stri... |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include "terms/bv_constants.h"
#include "terms/r... |
#include <drivers/xhci.h>
#include <graphics/desktop.h>
device_t device_list[DEVICE_SIZE];
int device_num = 0;
UINT32 build_address(UINT8 bus, UINT8 device, UINT8 function, UINT8 offset) {
return
(1 << 31) | // enable bit
(0 << 24) | // reserved
(bus << 16) | // bus number
(device << 11) | // device... |
/* Copyright (c) 2010 - 2020, 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 notice, this
* l... |
/**
* @file tiledb_object_ls_walk.c
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2018 TileDB, Inc.
* @copyright Copyright (c) 2016 MIT and Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docum... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
typedef struct lista {
int custo, indiceCidade;
struct lista *next;
}Lista;
typedef struct grafo {
int nCidades;
int kRotas;
Lista **adj;
}Grafo;
//adiciona uma nova cidade na lista de cidades, no inicio da lista.
Lista* adicionarCidadeCaminho... |
#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... |
/// @file i2cdebug.c
/// @author <NAME>
/// @date 2015-05
/// @desc control TWCR TWDR TWBR TWAR and TWSR over usb
// F_CPU 20000
// hfuse DF
// lfuse E6
#include "i2cdebug.h"
// -------------------------------------------------------------usbFunctionSetup
usbMsgLen_t usbFunctionSetup(uchar data[8]) {
usbRequest_t ... |
/******************************************************************
(C)Septiembre 2021
EQUIPO: <NAME>
INTEGRANTES DEL EQUIPO:
<NAME>
<NAME>
<NAME>
<NAME>
VERSIÓN: 1.0
DESCRIPCIÓN: Implementación del algoritmo de ordenamiento shell. Mide el tiempo de ejecución del algoritmo. Se toman los valores de entrada del ar... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
static const uint32_t SHA256_K[64] = {
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
0xe49b69c... |
/*
* MIT License
*
* © 2019 <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, mer... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "heclib6.h"
#include "heclib7.h"
#include "zdssKeys.h"
#include "zdssVals.h"
#include "hecdssInternal.h"
#include "zdssMessages.h"
#include "hecdssFort.h"
/**
* Function: zdataType
*
* Use: Public
*
* Description: Obtains the data type (time s... |
#include "Gap.h"
#include "FFTLib.h"
#ifndef AT_NORM
#define AT_NORM(x, n) gap_norm_reg((x), (n))
#endif
typedef struct mfcc_params {
short int in_freq;
short int min_freq;
short int max_freq;
short int frame;
short int frame_step;
short int n_frame;
short int n_fft;
short int numcep;
short int nfea... |
/*
***********************************************************************
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... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
* mouse.c
* Copyright (C) 2015 xent
* Project is distributed under the terms of the MIT License
*/
#include <dpm/drivers/usb/mouse.h>
#include <halm/generic/pointer_queue.h>
#include <halm/irq.h>
#include <halm/usb/hid_defs.h>
#include <halm/usb/usb_defs.h>
#include <halm/usb/usb_request.h>
#include <halm/usb/u... |
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <malloc.h>
#include "dynamic_libs/os_functions.h"
#include "dynamic_libs/fs_functions.h"
#include "dynamic_libs/gx2_functions.h"
#include "dynamic_libs/sys_functions.h"
#include "dynamic_libs/vpad_functions.h"
#include "dynamic_libs/padscore_functions... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <fcntl.h>
#include <pthread.h>
#define IP "127.0.0.1"
#define MAX_CLIENT 1024
#define BUFF 1024
#define PATH 30
#define PORT 9002
int sock... |
/**
* Keil project example for FFT and LCD
*
* Before you start, select your target, on the right of the "Load" button
*
* @author <NAME>
* @email <EMAIL>
* @website http://stm32f4-discovery.net
* @ide Keil uVision 5
* @conf PLL parameters are set in "Options for Target" -> "C/C++" -> "Defi... |
#include "options.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef unix
/* We're on unix - use standard getopt */
#include <unistd.h>
#else
/* It's windows - roll out our own */
char *optarg = NULL;
int optind = 0;
int optopt = 0;
int
getopt(int argc, char **argv, char *optstring)
{
static ... |
#ident "$Id: syslxmod.c,v 1.5 2004/06/13 20:51:02 hpa Exp $"
/* ----------------------------------------------------------------------- *
*
* Copyright 1998-2003 <NAME> - All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pu... |
/*************************************************************
* *
* HW09 Part3 *
* Student Name: <NAME> *
* Student ID : 141044058 *
* Date ... |
/*! @file globalcmd.h
@brief Global command plugin interface.
@author Alexios
This header file defines functions used by the global command manager. You
don't need to know about this API, unless you want to add a global command
handler for your module only.
Original banner, legalese a... |
/*
* m68k a.out / ELF file structure definitions
*
* written by Yasha (IT<NAME>)
* public domain
*
* $NetBSD: aout68k.h,v 1.3 1999/11/19 03:54:08 itohy Exp $
*/
/*
* NetBSD/m68k a.out format (OMAGIC, NMAGIC)
*
* ----------------------------
* | file header (32 bytes) |
* |--------------------------|
* | ... |
/* (C) 2001-2008 <NAME>
(C) 2008 <NAME> */
/*
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... |
#include "stm32f4xx_hal.h"
#include "max11046.h"
#include "math.h"
void MAX11046_delay(uint8_t i) {
for (uint8_t k = 0; k < i; k++) { ;; }
}
void CRX_INPUT_INIT(void) {
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Pin = AD_DB0_Pin | AD_DB1_Pin | AD_DB2_Pin
| AD_DB3_Pin;
... |
#include "hal/HAL.h"
#include "hal/RS232.h"
#define BUFFER_SIZE 1024
#define INTR_PRI 6
static void init();
static void deInit();
static void tx(uint8_t ch);
static uint8_t rx(uint8_t *ch);
static void txN(uint8_t *str, unsigned char number);
static uint8_t rxN(uint8_t *ch, unsigned char number);
sta... |
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Goroh sensors configuration */
#include "driver/accel_bma2x2.h"
#include "driver/accelgyro_bmi_common.h"
#include "driver/als_tcs3400.h"
#includ... |
/*******************************************************************************
* This program will create a shared memory space that is shared between a
* parent and several child process. It then uses a rwlock to control access
* to the shared memory space. The parent has write access to the shared
* memory, ... |
#include "player_controller.h"
#include <jammy/physics.h>
#include <jammy/assert.h>
#include <chipmunk/chipmunk.h>
#include <chipmunk/chipmunk_private.h>
#include <lua/lua.h>
#include <lua/lauxlib.h>
#include <stdbool.h>
#define UDATA_NAME "PlayerController"
#define PLAYER_VELOCITY 100.0f
#define PLAYER_AIR_ACCE... |
/* See LICENSE. */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sched.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <pwd.h>
static void perror_msg_and_die2(const cha... |
/*
* Copyright 2016 <NAME>
* Copyright 2011-2016 by <NAME>. FNET Community.
* Copyright 2008-2010 by <NAME>. Freescale Semiconductor, 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 ... |
// This program is a part of NT MudLIB
// binghuo.c 烈焰寒冰掌--
#include <ansi.h>
#include <combat.h>
inherit F_SSERVER;
string name() { return "冰火二重天"; }
int perform(object me, object target)
{
object weapon;
string msg;
int damage, ap, dp;
if( !target ) target = offensive_target(me);
... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 pulkin
*
* 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 w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.