text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (c) 2019 LK Trusty Authors. 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,
* including without limitation the rights to use, ... |
/*
* FreeRTOS V202011.00
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. 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, incl... |
/*
* rx51.c -- SoC audio for Nokia RX-51
*
* Copyright (C) 2008 - 2009 Nokia Corporation
*
* Contact: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ve... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of so... |
#include "two_walks.h"
#include <stdlib.h>
// An entry of the hash table
typedef struct entry {
uint16_t hash[3];
uint16_t a;
} entry;
static uint64_t hash(proj *j, const proj *A) {
jinv256(j, A);
fp2_inv(&j->z); // ouch!
fp2_mul2(&j->x, &j->z);
j->z = fp2_1;
// Quite arbitrary hash function mixing some... |
/*
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 may not use this f... |
/*
* File: history.c
* Purpose: Character auto-history creation, management, and display
*
* Copyright (c) 2007 <NAME>
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, ... |
/*
Copyright (c) 2014 <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 applica... |
#if defined (__INTEL_COMPILER)
#pragma warning (disable:981)
#endif
#include "config.h"
#include <stdio.h>
#include <atl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <arpa/inet.h>
#include "evpath.h"
#ifdef HAVE_WINDOWS_H
#inc... |
/* BEEBS cover benchmark
This version, copyright (C) 2014-2019 Embecosm Limited and University of
Bristol
Contributor <NAME> <<EMAIL>>
Contributor <NAME> <<EMAIL>>
This file is part of Embench and was formerly part of the Bristol/Embecosm
Embedded Benchmark Suite.
SPDX-License-Identifier: GPL-3... |
/*
* Copyright (c) 2017-2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stddef.h>
#include <string.h>
#include <toolchain.h>
#include <soc.h>
#include "hal/cpu.h"
#include "hal/cntr.h"
#include "hal/ccm.h"
#include "hal/radio.h"
#include "util/memq.h"
#include "lll.h"
#inclu... |
/***********************************************************************
*
* winbind.c
*
* WINBIND plugin for pppd. Performs PAP, CHAP, MS-CHAP, MS-CHAPv2
* authentication using WINBIND to contact a NT-style PDC.
*
* Based on the structure of the radius module.
*
* Copyright (C) 2003 <NAME> <<EMAIL>>
*
* Copyright 19... |
#include "ip.h"
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "arp.h"
#include "net.h"
#include "platform.h"
#include "util.h"
struct ip_hdr {
uint8_t vhl;
uint8_t tos;
uint16_t total;
uint16_t id;
uint16_t offset;
uint8... |
/*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup drivers_dose
* @{
*
* @file
* @brief Implementation of the Differenti... |
/*
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*
* This file is part of Frisbee, which is part of the Netbed/Emulab Network
* Testbed. Frisbee is free software, also known as "open source;" you can
* redistribute it and/or modify it under the terms of the GNU General
... |
/* char_fsm version info */
#define _MAJOR_VERSION 10
#define _MINOR_VERSION 4
#define _MINOR_REVISION 0
#include <stdio.h>
#include <string.h> //memset, memcpy
#include <ctype.h> //isalnum, tolower
#include <stdint.h> //uint_8, uint_16, uint_32, etc.
#include <stdlib.h>
// #include <malloc.h>
#include "... |
// Copyright 2015-2017 Espressif Systems (Shanghai) PTE 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 "embroidery.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define RED_TERM_COLOR "\e[0;31m"
#define GREEN_TERM_COLOR "\e[0;32m"
#define YELLOW_TERM_COLOR "\e[1;33m"
#define RESET_TERM_COLOR "\033[0m"
static void usage(void);
static void formats(void);
static void testTangent... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "main.h"
#include "stars.h"
static char *effect15_name = "Hypnotic Patterns";
/* state variables */
static int frame_count = 0; /* number of fram... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <malloc.h>
#include <math.h>
#include <errno.h>
#include <stdint.h>
#ifndef __cplusplus
typedef enum { false, true } bool_t;
#else
typedef int bool_t;
#endif
#ifndef M_PI
# define M_PI 3.14159265358979... |
/*******************************************************************************
* device.c : Functions for working with the source device
******************************************************************************/
#include "device.h"
#include "log.h"
#include "utils.h"
#include "superblock.h"
#include <ctype... |
/*
* Copyright (c) 2021, Xilinx Inc. and Contributors. All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
#include <dfx-mgr/accel.h>
#include <dfx-mgr/assert.h>
#include <dfx-mgr/device.h>
#include <dfx-mgr/print.h>
#include <dfx-mgr/shell.h>
#include <dfx-mgr/model.h>
#include <dfx-mgr/json-config.h>
#inclu... |
#include <stdio.h>
#include "uxn.h"
/*
Copyright (u) 2021 <NAME>
Copyright (u) 2021 <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 PRO... |
/************* COPYRIGHT AND CONFIDENTIALITY INFORMATION NOTICE *************
** Copyright (c) [2019] – [Technicolor Delivery Technologies, SAS] *
** All Rights Reserved *
** The source code form of this Open Source Project components *
** is su... |
/** @license 2014 <NAME>, distributed under the terms of the
[MIT License](https://opensource.org/licenses/MIT). Contains some syllables
from [SMAUG](http://www.smaug.org/), which is a derivative of
[Merc](http://dikumud.com/Children/merc2.asp), and
[DikuMud](http://dikumud.com/); used under fair-use. Contains
[Mu... |
/*
Cubesat Space Protocol - A small network-layer protocol designed for Cubesats
Copyright (C) 2012 GomSpace ApS (http://www.gomspace.com)
Copyright (C) 2012 AAUSAT3 Project (http://aausat3.space.aau.dk)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... |
/* USER CODE BEGIN Header */
/*
Name: Main_Modbus_HMI_BluePill_v02.c
Suggested board: Blue Pill (STM32F103C8T6)
Suggested development environment: STM32CubeIDE
Purpose:
1. Send Modbus-RTU command to the device through RS-485 via the UART1.
2. Get responses from the device through RS-485.
3. Send ... |
// ------------------------------------------------------------------
// compound.c
// Copyright (C) 2019-2021 Black Paw Ventures Limited
// Please see terms and conditions in the file LICENSE.txt
#include "compound.h"
#include "buffer.h"
#include "vblock.h"
#include "segconf.h"
#include "strings.h"
#include "se... |
#define KNAMELEN 28 /* max length of name held in kernel */
#define DOMLEN 64
#define BLOCKALIGN 8
typedef struct Alarms Alarms;
typedef struct Block Block;
typedef struct CSN CSN;
typedef struct Chan Chan;
typedef struct Cmdbuf Cmdbuf;
typedef struct Cmdtab Cmdtab;
typedef struct Cname Cname;
typedef struct Conf... |
/*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... |
/***************************************************************************
Copyright (c) 2017, 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 must... |
#include <string.h>
#include <stdint.h>
#include "fep256.h"
#include "curve.h"
/*Using Jacobian coordinates*/
unsigned char basep[64]={0x6b, 0x17, 0xd1, 0xf2, 0xe1, 0x2c, 0x42,
0x47, 0xf8, 0xbc, 0xe6, 0xe5, 0x63, 0xa4,
0x40, 0xf2, 0x77, 0x03, 0x7d, 0x... |
// SPDX-License-Identifier: GPL-2.0
/* Author: <NAME> <<EMAIL>> */
#include <linux/acpi.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/gpio/machine.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#inc... |
/* ========================================================================
* Copyright 1988-2006 University of Washington
*
* 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:... |
/* --------------------------------------------------------------------------
* Name: rotate.c
* Purpose: Rotation
* ----------------------------------------------------------------------- */
/* TODO
*
* - Detect when dialogue closes, free pixtrans tables.
* - Fix that snapping routine.
* - Find the cause of... |
/* -*- c -*- *******************************************************/
/*
* Copyright (C) 2003 Sandia Corporation
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* This source code is released under the New BSD License.
*/
#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include "fs.h"
#include "../client/tecnicofs-api-constants.h"
#define _GNU_SOURCE
#define ... |
void X(destroy_symmetric_tridiagonal)(X(symmetric_tridiagonal) * A) {
free(A->a);
free(A->b);
free(A);
}
void X(destroy_bidiagonal)(X(bidiagonal) * B) {
free(B->c);
free(B->d);
free(B);
}
void X(destroy_symmetric_tridiagonal_symmetric_eigen)(X(symmetric_tridiagonal_symmetric_eigen) * F) {
... |
// KDTree
#include "TerraKDTree.h"
// Terra
#include "TerraPrivate.h"
// libc
#include <string.h>
#include <assert.h>
typedef struct TerraKDSplit {
float offset;
uint32_t left_count;
uint32_t right_count : 31;
uint32_t type : 1;
uint16_t t0c;
uint16_t t1c;
} TerraKDSplit;
#define terra__comp... |
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <led.h>
#include <lcdutil.h>
#include <stringutil.h>
#include <armdio.h>
#include <stm32f4xx_rcc.h>
#include <systick_handler.h>
#include <delayutil.h>
#include <randomutil.h>
#include <matrix.h>
#include <console.h>
#include <ctype.h>
#ifndef ... |
/*
Copyright (c) 2011 <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, merge, publish... |
#include "action.h"
#include <GLFW/glfw3.h>
#include <string.h>
#include <stdio.h>
int parseGlfwKey(const char *key) {
if (strcmp("GLFW_KEY_SPACE", key) == 0) {
return GLFW_KEY_SPACE;
} else if (strcmp("GLFW_KEY_APOSTROPHE", key) == 0) {
return GLFW_KEY_APOSTROPHE;
} else if (strcmp("GLFW_K... |
#include <complex.h>
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "libgroot/include/log.h"
#include "percy/include/parser.h"
#include "arg_ranges.h"
#inc... |
/* input.c: generalised input events layer for Fuse
Copyright (c) 2004 <NAME>
$Id: input.c 829 2016-10-03 12:02:48Z fredm $
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 vers... |
/********************************************************************************************************
* @file default_config.h
*
* @brief This is the header file for BLE SDK
*
* @author BLE GROUP
* @date 2020.06
*
* @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
*
* ... |
#include "Doom.h"
#include <IntMath.h>
#include "string.h"
#define SCREENGUNY -40 /* Y offset to center the player's weapon properly */
Word spropening[MAXSCREENWIDTH]; /* clipped range */
/**********************************
Perform a merge sort of two arrays of words.
Source1 and Source2 will be placed into De... |
#ifndef lint
static const char RCSid[] = "$Id: rmtxop.c,v 2.19 2021/01/21 17:47:07 greg Exp $";
#endif
/*
* General component matrix operations.
*/
#include <stdlib.h>
#include <errno.h>
#include "rtio.h"
#include "resolu.h"
#include "rmatrix.h"
#include "platform.h"
#define MAXCOMP 16 /* #components we support *... |
/***************************************************************************/
/* read_ALOS_data reads an ALOS IMG file containing raw signal data */
/* and creates a raw-file and PRM-file suitable for our esarp processor. */
/* The program skips the first 720 bytes of the IMG file but copies the */
/* remain... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/******************************************************************************
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2017-2018 Yeonji <<EMAIL>>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document... |
/*
* nuvoicp, a RPi ICP flasher for the Nuvoton N76E003
* https://github.com/steve-m/N76E003-playground
*
* Copyright (c) 2021 <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 th... |
#include "alsa.h"
extern int verbosity;
#define SNDCHK(call, ret) { \
if (ret < 0) { \
alsa_error(call, ret); \
return -1; \
} \
}
static struct alsa_output_data {
snd_pcm_chmap_t *channel_map;
snd_pcm_t *snd;
receiver_format_t receiver_format;
un... |
/**
* \file board_am43xx.c
*
* \brief This file contains the implementation of board information for
* AM43xx based boards.
*
* \copyright Copyright (C) 2013-2017 Texas Instruments Incorporated -
* http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or wi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "errexit.h"
#include "xmalloc.h"
#include "readsgf.h"
/* read in larger chunks than a single character */
// #define TRACING
#define PB 3
#define INBUFSZ 65536
unsigned char inbuf[PB+INBUFSZ];
unsigned char *inbufp;
int inbufct;
int notracect;
int m... |
/*-------------------------------------------------------------------------
*
* polar_copybuf.c
* Basic copy buffer manager.
*
* Copyright (c) 2021, Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "array.h"
#include "diagnostics.h"
#include "misc.h"
#include "reader.h"
#include "tokenise.h"
#include "util.h"
typedef struct Tokeniser
{
Reader reader;
Array(SourceToken) *tokens;
} Tokeniser;
... |
/* $OpenBSD: last.c,v 1.36 2009/10/27 23:59:39 deraadt Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
//-----------------------------------------------------------------------------
// transect.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/20/14 (Build 5.1.001)
// Author: <NAME>
//
// Geometry processing for irregular cross-section transects.
//--------------------------------------------... |
/*
* 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... |
/**
* Copyright (c) 2010 6.172 Staff
*
* 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... |
/**
* \file
*
* \brief Unit tests for Advanced Encryption Standard crypto module
*
* Copyright (c) 2011-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 exclusiv... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
#include "tests.h"
#include "x86_desc.h"
#include "lib.h"
#include "i8259.h"
#include "paging_structure.h"
#include "terminal.h"
#include "types.h"
#include "rtc.h"
#include "file_system.h"
#include "system_calls.h"
#define PASS 1
#define FAIL 0
#define KEYBOARD_BUFFER_MAX_SIZE 128
#define MAX_FILENAME_SIZE 32
#de... |
/* Copyright (c) 2011, 2016, onitake <<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 above copyright notice, this list of... |
/*
* iso_connection.c
*
* Copyright 2013, 2014 <NAME>
*
* This file is part of libIEC61850.
*
* libIEC61850 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
/*
Authors: <NAME>, <NAME>, <NAME>
University: University of Colorado Boulder
Date: 8th August 2017
Course: Real time Embedded Systems
Professor: <NAME>, PhD
*/
/*
Description:
This is the part of the project on VOIP between two NVIDIA Jetson boards over TCP connection.
This code is the initialization code and sc... |
/**
* StuFW Firmware for 3D Printer
*
* Based on MK4duo, Marlin, Sprinter and grbl
* Copyright (C) 2011 <NAME> / <NAME>
* Copyright (C) 2013 <NAME> @MagoKimbra
*
* 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
... |
/*
* 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... |
/* Copyright (c) 2003 RogerSeguin <<EMAIL>>
* Copyright (c) 2003 <NAME> <<EMAIL>>
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 o... |
/*The program assumes that the node label starts from 1 and the graph has no missing nodes.*/
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include<string.h>
#define MAX 50
typedef struct vertex
{
int label;
float score;
int community;
int parent;
int category;//1-->Broker 2-->Community... |
#include "Python.h"
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif
struct prefix_st {
char *uri;
char *prefix;
int in_scope;
int stack_height;
int needs_write;
struct prefix_st *next;
};
typedef struct prefix_st pre... |
/* <NAME>
R@M 2017
<EMAIL>
*/
// ported from https://github.com/adafruit/Adafruit_BME280_Library
#include "lib/include/bme280.h"
// Public
bool bme280_begin(uint32_t device) {
// Buffer to store received values
uint8_t buffer[2];
#ifdef DEBUG
UARTprintf("in bme280_begin\n");
#endif
readI2C(device... |
/**
* @brief PCA301 Remote Power Outlet Driver
*
* This driver was created by extensively reading source code and forum
* comments contributed by other authors. Thank you.
*
* It is currently only tested on the Arduino Nano with the RFM69 transmitter
* connected by SPI. Thanks to this guide (german)
* https://s... |
/* ATRI8 */
/* ATRIA Prototyping, Packing and Debug tool */
/* */
/* Copyright (C) 2017, <NAME> */
/* All Rights Reserved */
/* Appology: */
/* This is a prototyp... |
/*******************************************************************************
* @file rtc.c
*
* @see rtc.h
*
* @author <NAME>
*
* @date 09/03/2021
*
* @version 1.0
*
* @brief RTC (Real Time Clock) driver.
*
* @details RTC (Real Time Clock) driver. Used as the kernel's time base. Timer
* source in the k... |
/****************************************************
Program: 'ps_transform.c'
Author: <NAME> (OAUV)
Creation date: 01/06/2009
Last modification date: 03/06/2009
Program to make transformations on power-spectrum as
first step of the simulation of log-normal fields. It
takes the power spectrum we ... |
/**
* @file system_tm4c123.c
* @brief Initialization of device and/or board
* @version V1.0
* @date 23/01/2016
*
* @note
* The frequency of the system clock can be up to 80 MHz.
*
* The system clock can be configured to use many sources. See Section 5.2.5
* of datasheet for more information.
* Th... |
// Error defines:
#define XM7_ERR_NOT_A_VALID_MODULE 0x01
#define XM7_ERR_UNKNOWN_MODULE_VERSION 0x02
#define XM7_ERR_UNSUPPORTED_NUMBER_OF_CHANNELS 0x03
#define XM7_ERR_UNSUPPORTED_PATTERN_HEADER 0x08
#define XM7_ERR_INCOMPLETE_PATTERN 0x09
#define XM7_ERR_UNSUPPORTED_INSTRUMENT_HEADER 0x10
#define XM7_ERR_NO... |
#include <math.h>
#include "wiring_analog.h"
#define PWM_POLARITY_FALLING_EDGE 0x8000 //HIGH
#define PWM_POLARITY_RISING_EDGE 0x0000 //LOW
#define PWM_POLARITY_MODE PWM_POLARITY_FALLING_EDGE
#define PWM_MAX_CHANNELS 8
#define PWM_COUNTERTOP_VALUE 1600 //10KHz
/****************************... |
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <linux/input.h>
#include <unistd.h>
// Event `value`; see: https://www.kernel.org/doc/html/latest/input/event-codes.html
#define EV_DOWN 1
#define EV_UP 0
#define EV_REPEAT 2
// When pushing keys in the Colemak layout, these are... |
#include "rrrr_types.h"
#include "router_result.h"
#include "router_request.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
plan_t plan_create() { plan_t struct_obj;
memset(&struct_obj, 0, sizeof(struct_obj));
return struct_obj; }
/* Reverse the times and stops in a leg.
* Used for creating ar... |
/*
dataset.c
this file is part of gf_mds
author: <NAME> <<EMAIL>>
owner: DIBAF - University of Tuscia, Viterbo, Italy
scientific contact: darpap at unitus dot it
*/
/* includes */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "dataset.h"
/* structure... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions o... |
/*
* convert from text form of subnet specification to binary
* Copyright (C) 2000 <NAME>.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (... |
#include "MPCx58AP.h"
#include "OLED.h"
#define SCL_PIN P1_0
#define SDA_PIN P1_1
#define RES P1_2
#define HIGH 1
#define LOW 0
//typedef unsigned char uint8_t;
uint8_t OledLineNum,OledCursorPos;
void oledSendCommand(uint8_t cmd);
void oledSendStart(uint8_t address);
void oledSendStop(void... |
#include <Arduino.h>
#include "Environment_definitions.h"
#include "MowerStates.h"
#include "BaseStates.h"
#include <esp_freertos_hooks.h>
/************************* MQTT *********************************/
#include <PubSubClient.h>
#define MQTT_TELEMETRY_SEND_INTERVAL_SLOW 5 * 60 * 1000 // in ms
#define MQTT_TELEME... |
/*
* Python procedure manipulation for plpython
*
* src/pl/plpython/plpy_procedure.c
*/
#include "postgres.h"
#include "access/htup_details.h"
#include "access/transam.h"
#include "funcapi.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "plpy_elog.h"
#include "plpy_main.h"
#include "plpy_pro... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#define LA_IMPLEMENTATION
#include "la.h"
#define SV_IMPLEMENTATION
#include "sv.h"
#define DEFAULT_SCREEN_W... |
#include <string.h>
/* Our compression codebook, used for compression */
static char *Smaz_cb[241] = {
"\002s,\266", "\003had\232\002leW", "\003on \216", "", "\001yS",
"\002ma\255\002li\227", "\003or \260", "", "\002ll\230\003s t\277",
"\004fromg\002mel", "", "\003its\332", "\001z\333", "\003ingF", "\001>\... |
#include "main.h"
unsigned char p_hand[5];
unsigned char o_hand[5];
void update_info(unsigned char selected, unsigned char pos, unsigned char oldselected)
{
char temp[40];
char numtemp[3];
char focus = 0;
char leap = 0;
char attack = 0;
char defend = 0;
signed char fatigue = 0;
char co... |
/***********************************************************************
Copyright (c) 2006-2011, Skype Limited. 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 retai... |
#include <ch.h>
#include <hal.h>
#include <chprintf.h>
#include <slre.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "wifi.h"
#define HAVE_DATA_EVENT EVENT_MASK(1)
static void u_printf(SerialDriver *sd, const char *fmt, ...) {
if (sd) {
va_list ap;
va_start(ap, fmt);
chvprintf((... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
//#include <aos/debug.h>
#include <aos/kernel.h>
#include <aos/ble.h>
#include <aos/gatt.h>
//#include <yoc/partition.h>
#include <yoc/ota_server.h>
#define OTA_PACKET_SIZE (8192)
#define OTA_PACKET_START (0xFF)
#define OTA_PACKET_END (0xFE)
#ifndef ... |
/*
* Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 lis... |
/*
* QEMU OldWorld PowerMac (currently ~G3 Beige) hardware System Emulator
*
* Copyright (c) 2004-2007 <NAME>
* Copyright (c) 2007 <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 Sof... |
//
// Little cms
// Copyright (C) 1998-2003 <NAME>, <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, c... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "hash.h"
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys... |
/* SPDX-License-Identifier: GPL-2.0 */
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <dlfcn.h>
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include <sys/ucontext.h>
#include <errno.h>
#include ... |
#pragma once
#include "PEStructs.h"
#ifdef _WIN10_
#include "NativeStructs10.h"
#elif _WIN81_
#include "NativeStructs81.h"
#elif _WIN8_
#include "NativeStructs8.h"
#elif _WIN7_
#include "NativeStructs7.h"
#else
#error Unsupported OS build version
#endif
#define MAKEINTRESOURCEW(i) ((PWCH)((ULONG_PTR)((USHORT)(i))))
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.