text stringlengths 3.12k 18.7k |
|---|
/*
* @brief LWIP no-RTOS TCP Echo example
*
* @note
* Copyright(C) NXP Semiconductors, 2014
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is su... |
/*
* Copyright 2012 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
#include "game.h"
const size_t MAX_INPUT_LENGTH = 64;
VideoController *g_video = NULL;
Game *game_new() {
Game *self = calloc(1, sizeof(Game));
self->world = calloc(1, sizeof(World));
self->currentRoom = NULL;
return self;
}
void game_free(Game *self) {
world_free(self->world);
free(self);
... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "config.h"
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "diagonal.h"
#include "diagonal/cmp.h"
#includ... |
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S4, sensorCompass, sensorI2CHiTechnicCompass)
#pragma config(Motor, mtr_S1_C1_1, motorDrive2, tmotorTetrix, PIDControl)
#pragma config(Motor, mtr_S1... |
/*
* fsdevice-open.c - File system device.
*
* Written by
* <NAME> <<EMAIL>>
*
* Based on old code by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* pottendo <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emula... |
/*
https://github.com/kokke/tiny-AES-c
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/28e4ae3e-76dc-49e4-bf80-ca26bcd62e5c/aes-sbox-coding-in-c-question?forum=vcgeneral
NOTE: String length must be evenly divisible by 16byte (str_len % 16 == 0)
You should pad the end of the string with zeros if this... |
/**************************************************************/
/* ********************************************************** */
/* * * */
/* * DFG LEXER * */
/* * ... |
/* Serialization "what is this thing" rules
* - If something is a pointer
* - if this is the only pointer in the 'class'
* - assume any member named count, len, length, capacity, size
* could be the number.
* - when initializing, if something has the name
* "pointer(s)_{capacity, size}
* - As... |
#include "driver2.h"
#include "pad.h"
#include "mission.h"
#include "cutscene.h"
#include "pause.h"
#include "glaunch.h"
#include "main.h"
#include "players.h"
#include "cars.h"
#include <libpad.h>
#ifdef PSX
typedef struct PADRAW
{
unsigned char status; // size=0, offset=0
unsigned char id; // size=0, offset=1
un... |
/*----------------------------------------------------------------------------/
/ 8-pin SD audio player R0.05d (C)ChaN, 2011 /
/-----------------------------------------------------------------------------/
/ This project, program codes and circuit diagrams, is opened under license
... |
#include "api.h"
String* api_string_init() {
String* pString = (String*) malloc(sizeof(String));
if (pString != NULL) {
pString->len = 0;
pString->data = (char*) malloc(sizeof(char));
if (pString->data == NULL) {
fprintf(stderr, "malloc() failed\n");
exit(EXIT_FA... |
//
// usbd_cdc_if: provide USB-CDC user-level functions
//
#include "usbd_cdc_if.h"
#include "slcan.h"
#include "led.h"
#include "error.h"
// Private variables
static volatile usbrx_buf_t rxbuf = {0};
static uint8_t txbuf[TX_BUF_SIZE];
extern USBD_HandleTypeDef hUsbDeviceFS;
static uint8_t slcan_str[SLCA... |
/**********************************************************************************
Avatar Tools
Copyright (c) 2019, National Technology and Engineering Solutions of Sandia, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the foll... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Support for ON Semiconductor NOA1305 ambient light sensor
*
* Copyright (C) 2016 Emcraft Systems
* Copyright (C) 2019 Collabora Ltd.
*/
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include ... |
/* SCHEME->C */
/* Copyright (c) 1989-1993 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, includin... |
/*
Unix SMB/CIFS implementation.
NBT netbios routines and daemon - version 2
Copyright (C) <NAME> 1994-1998
Copyright (C) <NAME> 1994-1998
Copyright (C) <NAME> 1994-2003
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as... |
/*
* 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... |
#define _GNU_SOURCE
#include <numa.h>
#include <fcntl.h>
#include <cpufreq.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
static int GHZ = 1024*1024;
static int MHZ = 1024;
#define AZ(m, e) if ((e) < 0) { \
perror(m); \
re... |
#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... |
#include "leds.h"
#include "neopixel.h"
#include "neopixel_SPI.h"
#include "log.h"
#include "buttons.h"
#include "app_timer.h"
int nodeNumber = 2; // TODO: switch between 0 and N depending on radio
const int N = 6; // Reading only supported on pipes 1-5
// Addresses through which N modules communicate.
// Note: Usi... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: matmul1.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://<EMAIL>@r<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/numerical/matmul/F77/... |
/* metaflac - Command-line FLAC metadata editor
* Copyright (C) 2001-2009 <NAME>
* Copyright (C) 2011-2013 Xiph.Org Foundation
*
* 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; eit... |
/*
* Various input/output functions
*
* @(#)io.c 3.10 (Berkeley) 6/15/81
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980, 1981 <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* See the LICENSE file for full copyright and licensing information.
*/
#include <stdarg.h>
#include <stdlib.h>
#inc... |
/*
* Copyright 2012 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define SKIPSPACE(ptr) \
do { \
while (isspace((unsigned char)*(ptr))) \
(ptr)++; \
} while (0)
#define CUTLINEEND(ptr) ... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/**
https://github.com/comex/bloggy/wiki/Redsn0w%2Busbmux
**/
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <spawn.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#... |
/** @internal
** @file KDForest.c
** @brief KDForest MEX utilities
** @author <NAME>
**/
#include "mex.h"
#include <mexutils.h>
#include <vl/kdtree.h>
/** ------------------------------------------------------------------
** @interan@brief Hepler function
** @param tree KDForest object to process
** @... |
/*
* dnssec-trigger-keygen.c - certificate keygen for dnssec-trigger.
*
* Copyright (c) 2011, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
/*
Kompilowac przez:
gcc -Wall -Wextra -pedantic main.c -lpcap -o main
Uruchamiac przez:
sudo ./main <strona> <adres ip, na ktory przekierowujemy>
Przklad uruchomienia:
sudo ./main www.spaceadventure.pl 172.16.31.10
Zabijac przez:
<CTRL+C>
*/
#include <pcap.h> //wszystko d... |
#include <stdbool.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/eeprom.h>
#include <avr/boot.h>
#include <avr/pgmspace.h>
#include "io.h"
#include "../lib/crc16modbus.h"
#include "../lib/mtbbus.h"
//////////////////////////////////////////////////////////... |
/*
* CRF1d feature generator (dyad features).
*
* Copyright (c) 2007-2010, <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 th... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#include <term.h>
#include "ctl.h"
#define BUFFER_SIZE 1024
void print_status(const struct lotsctl *const ctl) {
putchar('\r');
putp(enter_reverse_mode);
fputs(ctl->filename,... |
// Copyright 2011-2021 <NAME> <<EMAIL>>
// SPDX-License-Identifier: ISC
#undef NDEBUG
#include "float_test_data.h"
#include "int_test_data.h"
#include "num_test_utils.h"
#include "string_utils.h"
#include "exess/exess.h"
#include <assert.h>
#include <float.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>... |
/*
* Copyright (c) 2010, <NAME> <<EMAIL>> and other contributors
* to the MC1322x project (http://mc1322x.devl.org)
* 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 o... |
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "int-util.h"
#include "hash-ops.h"
#include "variant4_random_math.h"
#include "CryptonightR_JIT.h"
#include "CryptonightR_template.h"
#if defined(DEBUG_JIT)
#include <stdio.h>
#include <stdl... |
/*
oid2name; a postgresql 7.1 (+?) app to map OIDs on the filesystem
to table and database names.
<NAME>, <EMAIL> 1-17-2001
*/
#include "postgres_fe.h"
#include <unistd.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include "libpq-fe.h"
/* these are the opts structures for command line params */
struc... |
/* Fuzz-testing of libgccjit API.
Currently this triggers internal compiler errors, typically due to type
mismatches. */
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "libgccjit.h"
#define TEST_PROVIDES_MAIN
#include "harness.h"
typedef struct fuzzer
{
gcc_jit_conte... |
/* rsyslog.c - the main entry point into rsyslog's runtime library (RTL)
*
* This module contains all function which work on a RTL global level. It's
* name is abbreviated to "rsrt" (rsyslog runtime).
*
* Please note that the runtime library tends to be plugin-safe. That is, it
* must be initialized by calling a ... |
/*
* Copyright (c) 2017, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of cond... |
/* LVGL Example project
*
* Basic project to test LVGL on ESP32 based projects.
*
* This example code is in the Public Domain (or CC0 licensed, at your option.)
*
* Unless required by applicable law or agreed to in writing, this
* software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS O... |
#include <stdint.h>
#include <string.h>
#include "edid.h"
struct edid {
uint8_t header[8];
uint8_t manufacturer[2];
uint8_t product_code[2];
uint8_t serial_number[4];
uint8_t manufacture_week;
uint8_t manufacture_year;
uint8_t edid_version;
uint8_t edid_revision;
uint8_t video_input;
uint8_t h_image_size... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pthread.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "sys1.h"
int printCount = 0;
int main(int argc, char ** argv){
char filename[100];
int verboseModeOn = 0;
printf("Enter Trace File: ");
scanf("%s", filename)... |
/*
* zgetdump - Tool for copying and converting System z dumps
*
* kdump and kdump_flat input format
*
* Copyright IBM Corp. 2001, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#include "zget... |
/*
* Copyright 2018 High Performance Computing Center, Stuttgart
*
* 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 appl... |
/**
* Functions for allocating memory
*
* @version $Revision:: 201 $$Date:: 2015-11-04 #$
* @copyright Copyright (c) 2004 to the present, <NAME> <<EMAIL>>
*/
#include "mem.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//#define bfree(M,b) free((char**)M-b)
void bfree( void* mat, int brd )
{ ... |
/*------------------------------------------------------------------------------
Copyright (c) 2008 The Khronos Group Inc.
All Rights Reserved. This code is protected by copyright laws and contains
material proprietary to the Khronos Group, Inc. This is UNPUBLISHED
PROPRIETARY SOURCE CODE that may not be disclosed i... |
/**
* @brief Draw filled polygons from line segments.
*
* This is an older version of the polygon rasterizer that turned
* into the TrueType gylph rasterizer. Still makes for a neat
* little graphical demo. Should probably be updated to use
* the glyph rasterization code instead of its own oudated
* copy though.... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Intel Wireless UWB Link 1480
* PHY parameters upload
*
* Copyright (C) 2005-2006 Intel Corporation
* <NAME> <<EMAIL>>
*
* Code for uploading the PHY parameters to the PHY through the UWB
* Radio Control interface.
*
* We just send the data through the MPI interfac... |
#include "touchscreen.h"
#define BULB1_X BSP_LCD_GetXSize()/4
#define BULB2_X 3*(BSP_LCD_GetXSize()/4)
static void displayBaseBulb(int bulbNumer);
static void displayButton(int x, int y, int sizeX, int sizeY, uint8_t* text, uint32_t color);
static void displayBulbState(int bulbNumer, int state);
int statusBul... |
#include <u.h>
#include <libc.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
/*
* To avoid deadlock, the following rules must be followed.
* Always lock child then parent, never parent then child.
* If holding the free file lock, do not lock any Files.
*/
struct Filelist {
File *f;
Filelist *link;
};
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* Preliminary prototype of market model
*/
#define MAX_ITEM_ID 64
#define NO_BUY_DEFAULT 0.1
#define VOTALITY_LEVEL 1
typedef struct {
double positions[MAX_ITEM_ID];
double cash;
} customer_t;
struct order_t {
double price;
double amount;
custome... |
/**********************************************************************
*
* PROJECT: Mylly GUI Test App
* FILE: ConsoleTest.c
* LICENCE: See Licence.txt
* PURPOSE: A basic console window unit test for MGUI.
*
* (c) <NAME> 2013
*
**********************************************************************/
#i... |
/* tab:8
*
* select_b_nas.c - Parallel Selection Algorithm for NAS IS
*
*
* "Copyright (c) 1995,1996 The Regents of the University of Maryland.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
*... |
/*
* Copyright 2019 <NAME> <<EMAIL>>
*
* Licensed under the terms of the 0BSD ("Zero-clause BSD") license.
* See LICENSE file for details.
*/
/*
* Sequentially dump the chunks contained in a RIFF/RIFX file to stdout.
*
* A tiny subset of chunk types that may be present in some audio files
* is given a special... |
/*********************************************************************************************
Copyright 2011 <NAME> & <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. Redistributi... |
// NOTE : Remember to use Ardiuno MEGA 2560
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h>
#define CLK 11
#define OE 9
#define LAT 10
#define A A0
#define B A1
#define C A2
#define D A3
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
String b[32];
int c = 4;
int a[3... |
/*
* sgfvarsplit: split a game into variations.
* This works for arbitrary games written in SGF format:
* the fields are not interpreted.
* Names are constructed from a counter.
*
* By default, the names are "var-%03d.sgf", counting from 1
* -g#: split game number # in the collection (default 1)
* -v#: output... |
#include "incs.h"
#include <pthread.h>
#include "preproc_j.h"
#include "reorder.h"
#include "reorder_isp.h"
#include "get_time_usec.h"
#define REORDER 1
#define REORDER_ISP 2
typedef struct _task_info_t {
int tid;
uint64_t t_start;
uint64_t t_stop;
int what_work_to_do; // 1 => reorder 2=> reorder_isp
i... |
/*
* hd66710.c
*
* Author: <NAME>
*/
#include "hd66710.h"
#include "stm32f10x_conf.h"
#include "delay.h"
static PIN_SPI pins_spi[]={
{{CS_Pin, CS_Speed, CS_Mode}, CS_Port, CS_Bus},
{{SCLK_Pin,SCLK_Speed,SCLK_Mode},SCLK_Port,SCLK_Bus},
{{MOSI_Pin,MOSI_Speed,MOSI_Mode},MOSI_Port,MOSI_Bus},
{{MISO_Pin,MISO... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include "type.h"
int externalToLocalMap_size;
int sendList_size;
int receiveList_size;
local_int_t totalToBeSent;
local_int_t *mtxIndL;
local_int_t *elementsToSend;
int *neighbors;
local_int_... |
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreemen... |
/*
* File: PMSM_Sinusoidal_Drive.c
*
* Code generated for Simulink model 'PMSM_Sinusoidal_Drive'.
*
* Model version : 1.59
* Simulink Coder version : 8.1 (R2011b) 08-Jul-2011
* TLC version : 8.1 (Jul 9 2011)
* C/C++ source code generated on : Wed Jul 17 14:39:42 2013... |
// Copyright (c) 2011 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.
#include <assert.h>
#include <ftdi.h>
#include <stdio.h>
#include <stdlib.h>
#include "ftdi_common.h"
#include "ftdii2c.h"
static int fi2c_start_... |
#include "../sstring/sstring.h"
/** KIND OF TUPLE */
struct coefficient
{
long double X;
long double Y;
long double C;
};
/** KIND OF TUPLE */
struct sol
{
long double X;
long double Y;
};
long double ABS(long double __x);
long double ABS(long double __x) // just for long double, otherwise use in... |
#include "abov/system.h"
#include "abov/hal/uart.h"
#include "abov/hal/gpio.h"
#include "abov/irq.h"
#include "abov/delay.h"
#include "abov/ll/clk.h"
#define UART0_RX_PIN (GPIOC + 8)
#define UART0_TX_PIN (GPIOC + 9)
static uart_handle_t uart0_handle;
#include "printf.h"
void _putchar(char character)
{
uart_wri... |
/*
* Copyright (c) 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 code m... |
/*
| Copyright (C) 2009 <NAME> <<EMAIL>>
| Part of the gtkpod project.
|
| URL: http://www.gtkpod.org/
| URL: http://gtkpod.sourceforge.net/
|
| The code contained in this file is free software; you can redistribute
| it and/or modify it under the terms of the GNU Lesser General Public
| License as published by... |
/* Lists/Settings
* #Keywords: GtkListItemFactory, GListModel
*
* This demo shows a settings viewer for GSettings.
*
* It demonstrates how to implement support for trees with GtkListView.
* It also shows how to set up sorting and filtering for columns in a
* GtkColumnView.
*
* It also demonstrates different st... |
/*
* Hardware initialization.
*
* $LastChangedRevision: 609 $
*
* Copyright (c) 2013, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
* All rights reserved.
*/
#include "Target.h"
#include "Main.h"
#include "Hardware.h"
/* private prototypes */
static void initWatchdog(void);
static void... |
/*******************************************************************************
NAME OBLIQUE MERCATOR (HOTINE)
PURPOSE: Transforms input Easting and Northing to longitude and
latitude for the Oblique Mercator projection. The
Easting and Northing must be in meters. The longitude
and latit... |
/*
Bread board watch - http://ingep.net/breadboardwatch/
--------------------------------------------------------------------------------
MIT License
Copyright (c) 2020 ingep.net
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... |
/************************************************************************/
/* GCC/LLCM ARM Baremetal Software / (C) <NAME> 2012-2016 */
/* This is Free Software. You can redistribute this software */
/* and/or modify it ,under the terms of the GNU General Public */
/* License version 3,... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October
* 2014 (the "License... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "_Anvil_double.h"
#include "_Anvil_xint.h"
//char ret_str[1000];
int cc0, cc1, cc2, cc3, cc4, cc5, cc6, cc7;
//char *_Anvil_dragon4(int e, uint64_t f, int p, int cutoff_mode, int cutoff_place, int *pk);
char *_Anvil_dtoa(double dd, int cutoff_mod... |
/*******************************************************************************
** File: test1_app.c
**
** Purpose:
** This file contains the source code for the Test1 App.
**
*******************************************************************************/
/*
** Include Files:
*/
#include "test1_app.h"
#include ... |
/*
* free.c
*
* Created on: Sep 26, 2017
* Author: tardis
*/
#include <stdio.h>
#include "vh/vh_hash.h"
#include "free.h"
#include "processrefgen.h"
#include "vh/vh_divethandler.h"
void free_alignments( bam_alignment_region** bam_align)
{
//free((*bam_align)->cigar);
free((*bam_align)->read_name);
free(... |
/*!
*****************************************************************************
@file: AD5940Main.c
@author: $Author: nxu2 $
@brief: Used to control specific application and process data.
@version: $Revision: 766 $
@date: $Date: 2017-08-21 14:09:35 +0100 (Mon, 21 Aug 2017) $
--------------------------... |
#include "cam_ops.h"
#include "cam_i2c.h"
#include "libcamera.h"
u8 ACTIVE_CAM;
u8 COARSE_INTEGRATION_TIME;
void setApt(u16 index, u16 data)
{
u16 current = readI2C(ACTIVE_CAM, index);
writeI2C(ACTIVE_CAM, index, current | data);
}
void clrApt(u16 index, u16 data)
{
u16 current = readI2C(ACTIVE_CAM, index);
wri... |
/*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#ifdef AJIT
#include <ajit_access_routines.h>
#endif
//#include "macros.h"
#include "bit_demodulate.h"
// utility
void resetForNextBit(BitDemodFsmState* bdfs,
double qp,
double doppler,
uint32_t code_phase,
uint32_t ms_coun... |
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <alloca.h>
#include <time.h>
#include <nfc/nfc.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#define MPD_HOST "127.0.0.1"
#define MPD_PORT 6600
#define POLL_INTE... |
/******************************************************************************
* Copyright 2020 The Firmament Authors. 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 ... |
/*
* Copyright (C) 2016 Orange
*
* This software is distributed under the terms and conditions of the
* 'BSD-3-Clause'
* license which can be found in the file 'LICENSE.txt' in this package
* distribution
* or at 'https://opensource.org/licenses/BSD-3-Clause'.
*/
/**
* @file loc_trace.c
* @brief Trace/Log In... |
/**
* @file main.c
* @brief I2C Loopback Example
* @details This example uses the I2C Master to read/write from/to the I2C Slave. For
* this example you must connect P0.6 to P0.14 (SDA) and P0.7 to P0.15 (SCL). The Master
* will use P0.6 and P0.7. The Slave will use... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <artik_module.h>
#include <artik_error.h>
#include <artik_adc.h>
#include <artik_gpio.h>
#include <artik_platform.h>
#include "industrial_iot_adc.h"
// ADC
static artik_adc_module *adcSensor = NULL;
static artik_adc_handle adcHandle = ... |
/*
***************************************************************************************
*
* sensor_info.c
*
* Hawkview ISP - sensor_info.c module
*
* Copyright (c) 2014 by Allwinnertech Co., Ltd. http://www.allwinnertech.com
*
* Version Author Date Description
*
* 2.0 <NAME> 2014/... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... |
#include <math.h>
#include <stdbool.h>
typedef struct {
const int width;
const int height;
const int depth;
} World;
static const unsigned char getAO(
const bool n1,
const bool n2,
const bool n3
) {
unsigned char ao = 0;
if (n1) ao ++;
if (n2) ao ++;
if ((n1 && n2) || n3) ao++;
return ao;
}
sta... |
/**
******************************************************************************
* File Name : gpio.c
* Description : This file provides code for the configuration
* of all used GPIO pins.
******************************************************************************
*... |
// macro definitions plus aliases to maintain some old reg names
// Commented out to reveal fake defines
//#include "register_map_macros.h"
// Necessary macros to make C code understand registers
#if defined(_ATHENA_)
#define HW_REGISTER_RW(addr) ((addr))
#else
#define HW_REGISTER_RW(addr) (*(volatile unsign... |
/*
UDP Unicast DSP plugin for DeaDBeeF Player
Copyright (C) 2017 ed <irc.rizon.net> <<EMAIL>>
Based on:
Mono to stereo converter DSP plugin for DeaDBeeF Player
Copyright (C) 2009-2014 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the aut... |
#include <stdio.h>
#include <memory.h>
#include <stdlib.h>
#include <unistd.h>
#include <wait.h>
#include <fcntl.h>
#include <time.h>
#include <sys/time.h>
#include "process/management.h"
#include "shell.h"
struct process* jobsList = NULL;
int main(void) {
time_t now;
srand((unsigned int) (time(&now)));
in... |
/*
* Copyright (c) 2020 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
// IMPORTANT: you must include the following line in all your C files
#include <lcom/lcf.h>
#include "interrupts/mouse.h"
#include "interrupts/keyboard.h"
#include "interrupts/timer_user.h"
#include "interrupts/rtc.h"
#include "interrupts/serial_port.h"
#include "interrupts/queue.h"
#include "com_protocol.h"
#include "... |
/* --------------------------------------------------------------------------
* File: xfixnet.c
* Version 12.8.0
* --------------------------------------------------------------------------
* Licensed Materials - Property of IBM
* 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21
* Copyright IBM Corp... |
/**------ ( ----------------------------------------------------------**
** )\ CAnDL **
**----- / ) --------------------------------------------------------**
** ( * ( matrix.c **
**---- \#/... |
#include <fs/minix3.h>
#include <fs/superblock.h>
#include <fs/blkpool.h>
#include <fs/ipool.h>
#include <fs/minix3_dir_entry.h>
#include <fs/minix3_imap.h>
#include <fs/minix3_zmap.h>
#include <proc/process.h>
#include <assert.h>
#define INODES_PER_BLOCK (BLOCK_SIZE/sizeof(minix3_inode_t))
static const sup... |
/* Copyright 2016 <NAME>. All rights reserved. Use of this
* source code is governed by a Apache 2.0 license that can be found
* in the LICENSE file.
*/
#include "config.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "spi.h"
#include "wl_module.h"
#include "nRF24L01.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.