text stringlengths 3.08k 10.5k |
|---|
/**
* BSD-2-Clause
*
* Copyright (c) 2020 Tristan
* 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 ... |
#include "lib/containers/map.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#define MAP_BUCKETS_POWER 16
#define MAP_INITIAL_FREE_LIST_CAP 4
struct MapNode;
struct MapNode {
void* key;
int value;
struct MapNode* next;
};
struct Map {
struct MapNode* buckets[1 << MAP_BUCKETS... |
#include <zmk/event_manager.h>
#include <zmk/events/keycode_state_changed.h>
#include <dt-bindings/zmk/keys.h>
#include <kernel.h>
void register_code(const uint32_t keycode) {
ZMK_EVENT_RAISE(zmk_keycode_state_changed_from_encoded(keycode, true, k_uptime_get()));
k_msleep(CONFIG_ZMK_EMBEDDED_STENO_KEY_INTERVA... |
#include <stdio.h>
#include "debug_internal.h"
static void debug_handles_sanity_check(HPyDebugInfo *info)
{
#ifndef NDEBUG
DHQueue_sanity_check(&info->open_handles);
DHQueue_sanity_check(&info->closed_handles);
DebugHandle *h = info->open_handles.head;
while(h != NULL) {
assert(!h->is_closed);
... |
#include "http_server.h"
static const int sigs[] = {SIGIO,SIGHUP,SIGTERM,SIGINT,SIGQUIT,SIGALRM};
static const int sigCount = 6;
// Setup the epoll file descriptor
// then add the signal fd and listening socket
// to the epoll fd
static char SetupEpoll(HTTP_Server *server) {
// MAX_ACTIVE_FD is disca... |
/*!
* @file
* @brief
*/
#include "stm8s.h"
#include <stddef.h>
#include <stdbool.h>
#include "thermistor.h"
#include "tiny_timer.h"
#include "adc1.h"
#include "tiny_event.h"
#include "tiny_timer.h"
#include "tiny_utils.h"
#define ADC_RAW_TABLE_SIZE sizeof raw_adc_counts / sizeof raw_adc_counts[0]
#define ADC_RAW_T... |
/*
* Copyright (c) 2000-2020, <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, pub... |
///////////////////////////////////////////////////////////////////////////////
// i2clcd.h:
//
// This file is part of the VSCP (http://www.vscp.org)
//
// The MIT License (MIT)
//
// Copyright (c) 2000-2018 <NAME>, <NAME> AB <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a co... |
/*
* Copyright (c) Regents of The University of Michigan
* See COPYING.
*/
#include "config.h"
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <syslog.h>
#include <u... |
// #################################################################################################
// # < Profiling Template > #
// # ********************************************************************************************* #
// # You can use... |
/*
* ISC License
*
* Copyright (C) 1986-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/*
* Bitshuffle - Filter for improving compression of typed binary data.
*
* Author: <NAME> <<EMAIL>>
* Website: http://www.github.com/kiyo-masui/bitshuffle
* Created: 2014
*
* See LICENSE file for details about copyright and rights to use.
*
*/
#include "bitshuffle.h"
#include "bitshuffle_core.h"
#include "b... |
/*-
* Copyright (c) 2013 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/**************************************************************
*
* 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 y... |
#include "common.h"
#include "image.h"
#include "fonts.h"
#include "files.h"
#include "window.h"
Display *display;
#define MOVE_TIMEOUT 60000000L
static long timespec_diff(struct timespec *x, struct timespec *y) {
long xnsec = x->tv_sec * 1e9 + x->tv_nsec;
long ynsec = y->tv_sec * 1e9 + y->tv_nsec;
... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include "app_config.h"
#include "app_main.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <soc.h>
#include <drv/porting.h>
#include <drv/tick.h>
#include <boot.h>
#include <boot_wrapper.h>
#include <yoc/partition.h>
#include <yoc/pa... |
#include "projector.h"
void painters_render_scene(SDL_Renderer* renderer,
struct World* W,
struct Camera* C) {
for (int o = 0; o < W->object_count; o++) {
for (int v = 0; v < W->objects[o].vertc; v++) {
W->objects[o].verts_in_front[v]... |
/*
* 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... |
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include <dirent.h>
#include <stdlib.h>
#include <sys/stat.h>
bool flag_verbose = false;
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define LE32_TO_HOST(i) __builtin_bswap32(i)
... |
/* socket.c: Socket-related compatibility routines
Copyright (c) 2011-2015 <NAME>, <NAME>
$Id: socket.c 804 2016-06-01 10:46:07Z 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... |
// IRDistance.c
// Runs on MSP432
// Provide mid-level functions that convert raw ADC
// values from the GP2Y0A21YK0F infrared distance sensors to
// distances in mm.
// <NAME>
// May 25, 2017
/* This example accompanies the books
"Embedded Systems: Introduction to the MSP432 Microcontroller",
ISBN... |
/* -----------------------------------------------------------------------
6-bit packed ASCII functions
Copyright 2006-2008 by <NAME> <<EMAIL>
All Rights Reserved
----------------------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "p... |
#include <multiboot2.h>
#include <kstdlib.h>
#include <memory.h>
#include <io.h>
extern void errors(void);
extern void mem_in16(unsigned short *, unsigned short d);
typedef unsigned long long size_t;
typedef struct _font{
unsigned char color;
unsigned char c;
}FONT;
void write_string(const char *data, size_t si... |
/*
* Copyright (c) 1997 <NAME> <<EMAIL>>
* Initial Power Macintosh COFF version.
* Copyright (c) 1999 <NAME> <<EMAIL>>
* Modifications for an ELF-based IBM evaluation board version.
*
* Module name: main.c
*
* Description:
* This module does most of the real work for the boot loader.... |
/* Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors
*
* 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
*
* U... |
/*
* Copyright (c) 2019, Linaro Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions... |
/*
* MIT License
* Copyright (c) 2019 - present OMRON Corporation
* 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 limita... |
/*
* charset.c -- The charset opreation set.
*
* Copyright (c) 2018, <NAME> <<EMAIL>> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must re... |
#include "manta.h"
static Window* window = NULL;
int swapchain_resize = 0;
int application_start(int argc, char** argv)
{
Timer timer = timer_start(CT_WALL_TICKS);
time_init();
settings_load();
window = window_create("sandbox", settings_get_resolution().x, settings_get_resolution().y, settings_get_window_styl... |
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <getopt.h>
... |
#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... |
// The MIT License (MIT)
//
// Copyright (c) 2010 - 2015 <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,... |
/*
Copyright (c) 2015, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
// backward.c
#include "nn/nn.h"
#include "utils/mem/mem-management.h"
#include "utils/verbosity/verbose.h"
extern linked_list *GPL;
extern bool _nn_random_init_done;
void print_neural_network(nn_Model *model) {
size_t num_layers = model->num_layers;
nn_Layer **layers = model->layers;
size_t num_neurons[... |
/******************************************************************************
*
* Copyright(c) 2007 - 2016 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 Founda... |
/****************************************************************************
This file is part of TeleTram DCC project.
TeleTram DCC 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... |
/*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include "er... |
#include "gestures.h"
#include "control.h"
#include "flash.h"
#include "osd_adjust.h"
#include "pid.h"
#include "profile.h"
#include "rx.h"
#include "sixaxis.h"
#include "util.h"
extern int ledcommand;
extern int ledblink;
extern profile_t profile;
int pid_gestures_used = 0;
void gestures() {
int command = gestur... |
/**
******************************************************************************
* File Name : SDIO.c
* Description : This file provides code for the configuration
* of the SDIO instances.
*****************************************************************************... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011-2012 The ChromiumOS Authors. All rights reserved.
*
* 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; version 2 of th... |
/**
* @file mqtt-adapter.c
* @brief MQTT Adapter Implementation
* @details interfaces with the MQTT broker to write or read data from the broker asynchronously, this is built
* using the PAHO Async C library
* @remarks the async event loop is inside the PAHO Async C library
* @... |
#include "station_manager.h"
#include "esp/esp.h"
/*
* List of preferred access points for ESP device
* SSID and password
*
* ESP will try to scan for access points
* and then compare them with the one on the list below
*/
ap_entry_t
ap_list[] = {
//{ "SSID name", "SSID password" },
{ "<NAME>", "majerle_... |
#include "sparrow.h"
#include <errno.h>
#define TIMEOUT_US 1000000
#define EPOLL_FLAGS EPOLLONESHOT | EPOLLIN
int initListener(ListenerState *listener, int listen_fd, void *(*thread_function)(void *))
{
listener->listen_fd = listen_fd;
listener->thread_pool_lock = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;
... |
/*
* Copyright 2020 Codethink Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2004 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ab... |
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <letmecreate/core/spi.h>
#include <letmecreate/core/i2c.h>
#include <letmecreate/click/gyro.h>
/* I2C address of device */
#define L3GD20_ADDRESS_0 (0x6A)
#define L3GD20_ADDRESS_1 (0x6B)
/* Register addresses */
#define L3GD20_DEVI... |
#include <Message.h>
#include "Action.h"
#define DEFAULT_UUID_LENGTH 37
Message *incomingMessageQueue = NULL;
Message *outgoingMessageQueue = NULL;
#define MESSAGE_TERMINATOR '\n'
#define ADDRESS_TERMINATOR '\x12'
char messageUuidBuffer[DEFAULT_UUID_LENGTH] = { 0 };
char grammarSymbolBuffer[MAXIMUM_GRAMMAR_SYMBOL_L... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
/*
* mod_sockproxy - socket-level proxy support for lighttpd
*
* Copyright(c) 2018 <NAME> <EMAIL> All rights reserved
* License: BSD 3-clause (same as lighttpd)
*/
#include "first.h"
#include <stdlib.h>
#include <string.h>
#include "gw_backend.h"
typedef gw_plugin_config plugin_config;
typedef gw_plugin_data ... |
/* Disciplina: Computacao Concorrente */
/* Prof.: <NAME> */
/* Laboratório: 2 */
/* Codigo: Multiplica uma matriz por um vetor */
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
//variaveis globais
//float *matA; //matriz de entrada
//float *vetX; //vetor de entrada
//float *vetB; //vetor de saida
//fun... |
/**
wmbattery (c) 2010- <NAME> <<EMAIL>>
wmbattery is a dock application shows the current battery level.
See the file LICENSE included in this package for license terms.
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
th... |
/*
* HealthMonitorDbg.c
*
* Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without ... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2019 - <NAME>
* Copyright (C) 2012-2015 - <NAME>
*
* RetroArch 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 Foun... |
/*
* 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... |
/*
Add text labels to a PPM image
by <NAME> -- <EMAIL>
WWW home page: http://www.fourmilab.ch/
June 1995
*/
#define _XOPEN_SOURCE /* get M_PI in math.h */
#include <math.h>
#include <string.h>
#include "pm_c_util.h"
#include "ppm.h"
#include "ppmdraw.h"
#defi... |
/* \file soc-rcc.c
*
* Copyright 2018 The wookey project team <<EMAIL>>
* - <NAME>
* - Arnauld Michelizza
* - <NAME>
* - <NAME>
* - <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... |
/******************************************************************************
*
* Copyright (C) 2016 Xilinx, 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
* in the Software with... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
/*
# 21.675 x 240 = 5202 scanlines/second
# 15625 / 5202 = 3.00365244136870434448 samples/scanline
#
# Again, we're stuck with the LRCLK frequency of 15.625KHz. Our only
# remaining recourse is to cheat a little, and ... |
//
// main.c
// gracet C
//
// Created by stitchmos on 2015/6/1.
// Copyright (c) 2015年 WMLAB @NCU. All rights reserved.
//
#include <stdio.h>
typedef struct Grafcet{
int x0;
int x1;
int x2;
int x3;
int x4;
int x5;
int x6;
int R0;
int R1;
int R2;
int R3_4;
int R... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
#define ERR(source) (fprintf(stderr,"%s:%d\n",__FILE__,__LINE__),\
perror(sourc... |
/* machine description file for SEQUENT BALANCE machines
Copyright (C) 1985, 1986 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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; eithe... |
/*****************************************************************************
* vc1.h:
*****************************************************************************
* Copyright (C) 2012-2013 L-SMASH project
*
* Authors: <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for an... |
/* lspci.c - List PCI devices. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2013 Free Software Foundation, Inc.
*
* GRUB 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 versio... |
/* =============================================================================
Part of midgetv
2019. Copyright <NAME>.
For licence, see LICENCE
=============================================================================
To load and/or start executing of a program in midgetv without
FPGA re... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lizard.h"
#include "order.h"
#include "lizgame.h"
#include "lizhex.h"
#include "lizmisc.h"
char lizard_colour [6][12] = { "Unsettled", "Red", "Green", "Grey", "Black", "Yellow" };
/* ----------------------------------------------... |
/*
* Reed-Solomon ECC handling for the Marvell Kirkwood SOC
* Copyright (C) 2009 Marvell Semiconductor, Inc.
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
... |
#include "model.h"
#include "model_weights.h"
#include "tensor.h"
#include "../config.h"
#include "../util/led_control.h"
#include <math.h>
#include <avr/io.h>
void set_output_led_brightness (
struct float_4tensor *output
) {
set_led_brightness(8, 1, value_to_pwm_level(output->data[0], 1.0));
... |
#include <stdlib.h>
#include <stdio.h>
#define GRAPH_MAX_SIZE 100
/*
* 有向图
* 有向,非负 最短路径
*
* */
// 边
typedef struct Edge {
int parent;
int child;
int value;
struct Edge *next;
} Edge;
// 图,边集(按代价非递减 邻接表 存储)
typedef struct Graph {
int size;
struct Edge *edge[GRAPH_MAX_SIZE];
} Graph;
Edg... |
/***************************************************************************//**
* @file main_gg11.c
* @version 1.0.0
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
***************************************... |
/*===========================================================================*
* *
* ggmail.c - Mail object functions *
* *
* ... |
//
// Created by admin on 29.10.2021.
//
#include <string.h>
#include <zend_API.h>
#include <php.h>
#include <uv.h>
#include "../../constants.h"
#include "helpers.h"
#include "http_server.h"
#define LOG_TAG "TCP SERVER"
char *create_host(const char *host, size_t host_len, zend_long port, size_t *str_len) {
if (h... |
/****************************************************************************
*
* Mesa 3-D graphics library
* Direct3D Driver Interface
*
* ========================================================================
*
* Copyright (C) 1991-2004 SciTech Software, Inc. All rig... |
// Copyright 2020-2021 <NAME>. 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 applicabl... |
#include <stdio.h>
#include <dsballegro.h>
#include "objects.h"
#include "global_data.h"
#include "champions.h"
#include "uproto.h"
#include "gproto.h"
extern struct global_data gd;
extern struct inst *oinst[NUM_INST];
extern struct dungeon_level *dun;
extern struct inventory_info gii;
extern FILE *errorlog;
unsigne... |
/*-
* Copyright (c) 2012-2015 <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following... |
/* Copyright (c) 2019 KrossX <<EMAIL>>
* License: http://www.opensource.org/licenses/mit-license.html MIT License
*/
#include <stdio.h>
typedef __int8 s8;
typedef __int16 s16;
typedef __int32 s32;
typedef __int64 s64;
#define INPUT_SIZE 10240
#include "day17_data.c"
#define DISPSIZE 64
char display[DISPSIZE*DIS... |
#include <fudge.h>
#include <kernel.h>
#include <modules/system/system.h>
#include <modules/ethernet/ethernet.h>
#include <modules/arp/arp.h>
#include "ipv4.h"
#define ARPTABLESIZE 8
static struct ethernet_protocol ethernetprotocol;
static struct arp_hook arphook;
static struct ipv4_arpentry arptab... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <ftw.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <sys/mman.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <unistd.h>
#include "utils.h"
void *__alloc(size_t size, int flag) {
void *... |
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#include <stdio.h>
#include <unistd.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdint.h>
#include <config.h>
#include <getopt.h>
#include "../util/tmap_error.h"
#include "../util/tmap_alloc.h"
#include ... |
/*
* ot_tests.c
*
* Created: 20/02/2022 12:37:55
* Author: dabi
*/
#ifndef F_CPU
#define F_CPU 16000000L
#endif
#include "./usart.h"
#include <stdlib.h>
#include <util/delay.h>
#include "./pms.h"
#include "./timer.h"
#include "./dht11.h"
#include "./ssd1331.h"
#include "string.h"
#include "ot_tests.h"
voi... |
#include <string.h>
#include "stm32l1xx_hal.h"
#include "at_command_set.h"
#include "serial_bsp.h"
#include "re.h"
#include "logging.h"
#include <stdarg.h>
uint8_t Buffer[BUFFER_SIZE];
char Payload[PAYLOAD_SIZE];
extern UART_HandleTypeDef huart3;
CommandTypedef AtCommand[] =
{
/* name|query transmit format|quer... |
/*++
Copyright (c) 1997 Microsoft Corporation.
All rights reserved.
MODULE NAME:
base64.c
ABSTRACT:
The base64 funcionality for ldifldap.lib.
DETAILS:
This code is essentially the same as util\base64, except that it uses
h* memory allocation funciton which use ldifldap's prov... |
/*
* Convert between temperature and EMF (electromotive force) of
* thermocouple (Type N) based on ITS-90 Thermocouple Database:
* https://srdata.nist.gov/its90/main/
*
* This is an auto-generated file.
* (created by: nistcoeff.pl all.tab)
*
* !!! DO NOT EDIT THIS FILE. !!!
*
*/
#include <math.h>
#include "n... |
// Uncomment one of these
// #include "BCM2835.h" /* Raspberry A, A+, B, B+ */
#include "BCM2836.h" /* Raspberry Pi 2, 3 */
extern void mmio_write(unsigned int, unsigned int);
extern unsigned int mmio_read(unsigned int);
extern void delay(unsigned int);
/**
* BCM2835 ARM Peripherals
* https://www.raspberrypi.org/ap... |
#include <stdlib.h>
#include <gtk/gtk.h>
gboolean buttonbool = FALSE;
/* Created structure of GtkWidgets or custom widget at global scope so any
function in the program can access the widgets */
typedef struct {
GtkWidget *value1, *value2, *value3, *value4;
} entrygrouped;
GtkWidget *button2;
/* Entry value gette... |
/*
* Copyright 2019, Intel Corporation
*
* 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 f... |
/*
* Copyright 2009 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your ... |
/*
* 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... |
/***********************************************************************
* pt.c -- thread utility routines
*
* Author: <NAME> <<EMAIL>>
*/
#include "pt.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h> /* for EBUSY */
/*************************************************
* attempt to lock a mutex
*/
in... |
#include <stdio.h>
#include "csapp.h"
/* Recommended max cache and object sizes */
#define MAX_CACHE_SIZE 1049000
#define MAX_OBJECT_SIZE 102400
#define TRUE 1
#define FALSE 0
/* You won't lose style points for including this long line in your code */
static const char *user_agent_hdr = "User-Agent: Mozilla/5.0 (X11;... |
#include <math.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "spectrum.h"
int approx();
void getisotope();
void inlin(wave,line,nline,list,nlist,atom,isotope)
double wave;
linedata *line;
linelist *list;
atominfo *atom;
isodata *isotope;
int *nline,nlist;
{
int i,icode,j,k,l,n;
double code,... |
#include <windows.h>
#include <stdio.h>
#include <psapi.h>
#include <string.h>
#include <time.h>
#include <math.h>
#define WINDOWNAME "Counter-Strike: Global Offensive"
#define PLRSZ 0x18
#define SERVERDLL "server.dll"
#define CLIENTDLL "client.dll"
const DWORD plr_num_offset = 0x93DCF8;
const DWORD plr_list_offset =... |
#include "a7105_spi.h"
struct A7105_SPI_t conf;
void setA7105Spi(SPI_HandleTypeDef *spi) {
conf.spi = spi;
}
void setA7105_SCS(GPIO_TypeDef *SCS_PORT, uint16_t SCS_PIN) {
conf.SCS_PORT = SCS_PORT;
conf.SCS_PIN = SCS_PIN;
}
void setA7105_GIO1(GPIO_TypeDef *GIO1_PORT, uint16_t GIO1_PIN) {
conf.GIO1_PO... |
/*
library name: MPU6050 6 axis module
written by: T.Jaber
Date Written: 25 Mar 2019
Last Modified: 20 April 2019 by <NAME>
Description: MPU6050 Module Basic Functions Device Driver library that use HAL libraries.
References:
- MPU6050 Registers map: https://www.invensense.com/wp-content/uploads/2015/... |
//
// geometry.c
// libmsym
//
// Created by <NAME> on 28/11/14.
// Copyright (c) 2014 <NAME>.
//
// Distributed under the MIT License ( See LICENSE file or copy at http://opensource.org/licenses/MIT )
//
#include <math.h>
#include <float.h>
#include "msym.h"
#include "geometry.h"
#include "linalg.h"
#include ... |
//**********************************************************************;
// Copyright (c) 2016, 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 s... |
#include "windows_inject.h"
#include "whereami.h"
#include "whereami.c"
char * get_current_directory_os()
{
static char dir[1024];
memset((void*)&dir[0],0,1024);
int length = wai_getExecutablePath(0, 0, 0);
if(length>=1024)
return (char*)0;
int dirname_length;
wai_getExecutablePath((... |
/**
* (C) Copyright 2019 Intel Corporation.
*
* 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... |
#include <pebble.h>
#include "letter_layer.h"
#include "model.h"
typedef struct {
char letter;
LetterStatus status;
bool confirmed;
Animation *sequence;
} AnimationContext;
typedef struct {
char letter;
LetterStatus status;
AnimationContext animation;
GRect large_rect;
GRect shrunk_rect;
bool confirmed;
} ... |
#include "fd_i2cm.h"
#include "fd_delay.h"
#include "fd_nrf5.h"
void fd_i2cm_clear_bus(const fd_i2cm_bus_t *bus) {
bool enabled = fd_i2cm_bus_is_enabled(bus);
if (enabled) {
fd_i2cm_bus_disable(bus);
}
fd_gpio_configure_output_open_drain_pull_up(bus->scl);
fd_gpio_set(bus->scl, true);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.