text
stringlengths
3.08k
10.5k
#include "InfoScreen.h" #include "config.h" #include "Object.h" #include "CRT.h" #include "IncSet.h" #include "ListItem.h" #include "Platform.h" #include "StringUtils.h" #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdarg.h> /*{ #include "Process.h" #include "Panel.h" #include "FunctionBar.h...
/****************************************************************************** * Spine Runtimes Software License v2.5 * * Copyright (c) 2013-2016, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable, and * non-transferable license to use, install, execute, ...
/* * 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...
/* $XConsortium: LuvGcL.c,v 1.3 93/09/07 21:31:45 rws Exp $ */ /* * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. * All Rights Reserved * * This file is a component of an X Window System-specific implementation * of XCMS based on the TekColor Color Management System. Permission is ...
/* * Copyright (c) 1994-2003 Massachusetts Institute of Technology * Copyright (c) 2003 <NAME> * Copyright (c) 2013 <NAME> and <NAME> * * 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; ei...
/* * iterativeMenu.c * * Created on: 23 gen 2019 * Author: <NAME> ** * Macros used: * gnuplot(x) -> system("/usr/local/Cellar/gnuplot/5.2.5/bin/gnuplot "" -p 'gnuplot-scripts/"x"'") * Matrix -> double** * Vector -> double* */ #include "an1.iteratives.h" int iterativeMenu(); /** iterativeMenu ***...
/*************************************** $Header$ Provide traceback capability when parse errors are encountered. ***************************************/ /* COPYRIGHT */ #include <stdio.h> #include <string.h> #include "functions.h" #include "trctabs.c" #include "trcftabs.c" typedef struct { int state; in...
#include <HsFFI.h> #include <botan/ffi.h> // Utility Functions int hs_botan_hex_encode(const uint8_t *x, HsInt x_off, HsInt x_len, char *out); int hs_botan_hex_encode_lower(const uint8_t *x, HsInt x_off, HsInt x_len, char *out); HsInt hs_botan_hex_decode(const char* hex_str, HsInt in_off, HsInt in_len, uint8_t* out); ...
#include "mex.h" #include <stddef.h> #if !defined(HAVE_OCTAVE) && ( !defined(MX_API_VER) || ( MX_API_VER < 0x07030000 ) ) typedef int mwIndex; typedef int mwSize; #endif /* % Copyright 2005-2016 CVX Research, Inc. % See the file LICENSE.txt for full copyright information. % The command 'cvx_where' will show where thi...
#include "shell.h" #include "mini_uart.h" #include "utils.h" #include "mailbox.h" #include "reboot.h" #include "string.h" #include "../include/cpio.h" #include "memory.h" #include "timer.h" #include "exception.h" #include "math.h" #include "mm.h" #include "../include/sched.h" #include "syscall.h" #include "peripherals/...
/** * minish.c * <NAME> * 29/09/2020 * * Core functionallity of Minimalist Shell. */ #include <stdlib.h> #include <unistd.h> #include <string.h> #include <dirent.h> #include <sys/wait.h> #include "logger.h" #include "minish.h" #include "strarray.h" #define COLOR_GREEN "\033[1;32m" #define COLOR_RESET "\033[0...
#include "xlsxioread_process.h" #include <xlsxio_read.h> #include <string.h> #include "jsxlsxio_pointers.h" static napi_ref cell_callback = NULL; static napi_ref row_callback = NULL; static napi_ref callback_data = NULL; static napi_async_context async_context = NULL; static napi_env async_env = NULL; static int xlsx...
/* * Copyright (C) 2016-2017 Redis Labs * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This progra...
#pragma once #include <stdbool.h> #include <stdlib.h> #include "cc.h" // ============================================================================= // Data structures. // ============================================================================= typedef struct { const void **data; int capacity; int l...
/* mklfsimage -- Create a LittleFS by waking a directory tree Written 2021 by <NAME> This is free software released under the exact same terms as stated in license.txt for the Basic interpreter. */ #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #in...
/* * Copyright (c) 2019, Institute of Electronics and Computer Science (EDI) * * 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...
// TFS_LIB // Written 2019 by <NAME>, <EMAIL> // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. Please see CC0 Public Domain Dedication. #define _GN...
/* * 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 ...
/*************************************************************************** Namco ND-1 machine.c Functions to emulate general aspects of the machine (RAM, ROM, interrupts, I/O ports) ***************************************************************************/ #include "driver.h" #include "cpu/m6809/m6809....
/* * syringe.c v1.6 * A General Purpose DLL & Code Injection Utility * Author: <NAME> (Steiner) <smcintyre [at] securestate [dot] com> * * * Copyright (c) 2011-2015, SecureState LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are perm...
#include "global.h" #include "word.c" //#include "load.c" #include "save.c" #include "timer.c" #include "../UI/Interface.c" TabKamus K; Stack S; MATRIKS M; SetStr E; Queue G; char kata[18]; infotype temp; infoqueue temp1; boolean endK, endGame, playing; int dictordinat; int sumscore; int selectedBoard; void initGame...
/*================================================================= * <NAME> * October 2013 * An attempt to make my Othello AI faster by using C * Syntax in MATLAB: * * [ nextBoards, actions] = getAllValid( b, tok ) *=================================================================*/ #include <math.h> #include ...
/* * CGlib * * A Low-Level GPU Graphics and Utilities API * * Copyright (C) 2011 Intel Corporation. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, includin...
#pragma ident "$Id: input.c,v 1.7 2017/09/06 22:07:52 dechavez Exp $" /*====================================================================== * * Handle user input * *====================================================================*/ #include "qmon.h" #define PROMPT_NORMAL "> " #define PROMPT_EXIT "[ shutdo...
// infotest1.c -- test if we get info via /_o2/si // #include <stdio.h> #include "o2.h" #include "string.h" #define N_ADDRS 10 #define EXPECTED_COUNT 6 const char *status_strings[] = { "O2_LOCAL_NOTIME", "O2_REMOTE_NOTIME", "O2_BRIDGE_NOTIME", "O2_TO_OSC_NOTIME", "O2_LOCAL", "O2_REMOTE", ...
/* **************************************************************** File: "IAexp.c" -- Author: <NAME> Date: 15 January 1997 Definitions of basic interval exponential procedures: exp, log and the two symmetric/antisymmetric extensions of the power function to negative...
#include <getopt.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "analyzer.h" #include "ast.h" #include "iloc_generator.h" #include "lexer.h" #include "parser.h" #include "scanner.h" #include "tokens.h" #include "walrus.h" /** * Main entry point for the application. Parses...
/* crypto/sm2/sm2_err.c */ /* ==================================================================== * Copyright (c) 2015 The GmSSL 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: * ...
/*------------------------------------------------------------------------- * * indexfsm.c * POSTGRES free space map for quickly finding free pages in relations * * * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ...
/* Virtual Multiheap-fit is a space-saving dynamic memory allocator with virtual memory Copyright (c) 2016-2017 <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 restricti...
#include <stdbool.h> #include <stdint.h> #include <assert.h> #include "github.com/lobaro/util-ringbuf/drv_ringbuf.h" #include "github.com/lobaro/c-utils/lobaroAssert.h" #include "github.com/lobaro/c-utils/logging.h" #include "slip.h" #include "FreeRTOS.h" #include "task.h" #include "fcs16.h" static SemaphoreHandle_t t...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include <malloc.h> #define MAX 1024 unsigned char clip_value(unsigned char x, unsigned char min_val, unsigned char max_val) { if ( x > max_val ){ return max_val; } else if ( x < min_val ){ return min_val; } else { return x; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/defs.h> static char env_var[1000][1000]; static int env_length=0; static char envBuffer[100]; char* getvar(char* name){ int i; for (i=0; *name != '='; i++) envBuffer[i] = *name++; envBuffer[i] = '\0'; return &envBuffer[0]; } char* getallenv...
/* * @brief This file contains USB HID Generic example using USB ROM Drivers. * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the ...
/* * * Copyright (c) International Business Machines Corp., 2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
#include "boot-loader/9x.h" #include <stdlib.h> #include <string.h> #include "boot-loader/boot-loader-utils.h" #include "drives.h" #include "lickdir.h" #include "menu/grub4dos.h" #include "utils.h" #define MENU_ITEM_KEY "menuitem=LICK," #define MENU_ITEM MENU_ITEM_KEY START_LOADER_DESC "\n" #define LICK_SECTION_1 "[...
/* * This file and its contents are supplied under the terms of the * Common Development and Distribution License ("CDDL"), version 1.0. * You may only use this file in accordance with the terms of version * 1.0 of the CDDL. * * A full copy of the text of the CDDL should have accompanied this * source. A copy o...
/* * build: gcc -o eet_file eet-file.c `pkg-config --cflags --libs eet` */ #include <Eet.h> #include <stdio.h> #include <string.h> static int create_eet_file(void) { Eet_File *ef; char buf[1024], *ptr; int size, len, i; const char *some_strings[] = { "And some more strings", "spread across se...
/* Copyright 2014, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the...
#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include <sched.h> #include <unistd.h> #include <errno.h> #include <sys/wait.h> #include <math.h> #include <stdbool.h> #include "sclog4c/sclog4c.h" #include "modbus_device.h" #include "leg_control/modbus_utils.h" #include "leg_control/rate...
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <unistd.h> int make_server_socket(int); void read_til_crnl(FILE *); void process_rq(char *, int); void header(FILE *, char *); void cannot_do(int); void do_404(char *, int); int isa...
/** * \file * * \brief Interprocessor Communication (IPC) example on core 0 for SAM. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* * pnmpsnr.c: Compute error (RMSE, PSNR) between images * * * Derived from pnmpnsmr by <NAME>, part of his fiasco package, * On 2001.03.04. * Copyright (C) 1994-2000 <NAME> <<EMAIL>> */ #include <stdio.h> #include <math.h> #include "pam.h" #define MAXFILES 16 static int udiff(unsigned int const subtra...
#include "pharo.h" #include "parameters.h" #include <getopt.h> #include <unistd.h> #include "debug.h" void printVersion(); void printUsage(); int findImageNameIndex(int argc, char* argv[]){ //The first parameters is the executable name for(int i=1; i < argc; i ++){ if(strcmp(argv[i], "--") == 0 || (strncmp("--",...
/* * mex_bundle_3_db_new.c * * Copyright 2008 (C) <NAME> * * This program is part of VLG, available in the terms of the GNU * General Public Licenseversion 2. */ #include <mexutils.h> #define MAX_NUM_A 12 void reproject_projective_point( const double a[], const double b[], double x[2]) { doub...
#define PY_SSIZE_T_CLEAN #include "Python.h" #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define PY_ARRAY_UNIQUE_SYMBOL PYIFT_ARRAY_API #include "numpy/arrayobject.h" #include "_livewire.h" #include "_shortestpath.h" PyObject *euclidean_distance_transform_grid(PyObject *self, PyObject *args) { PyArrayObje...
#include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <wait.h> #include <stdio.h> #include <string.h> #include <dirent.h> int it = 0, uit = 0; char type[60][20]; char utype[10][20]; char name[60][20]; float age[60]; char filename[60][100]; void getAnimal(); void getUniqueAnimal(); ...
#include "rsplitimpl.h" /* Parse a single option. */ error_t parse_opt (int key, char *arg, struct argp_state *state) { /* Get the input argument from argp_parse, which we know is a pointer to our arguments structure. */ struct arguments *arguments = state->input; switch (key) { case 'q': case 's':...
#include <SDL/SDL.h> #include <SDL/SDL_image.h> #include "defines.h" #include "gestion_map.h" #include "gen_map.h" #include <setjmp.h> #include "perso/affichage.h" jmp_buf env; int main(int argc,char* argv[]) { srand(time(NULL)); int sortir = 1; map_t * MapTest; int ** echantest; Personnage D...
/* $Id$ */ /*Debugging tool */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2005 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; ...
/* Copyright libuv project and contributors. 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,...
#include"lgraph.h" #include"disjset.h" #include"heap.h" #include<stdio.h> #include<stdlib.h> #include<math.h> /* 创建一个图时,输入的节点比真实的节点多1个,留零当作哑节点 初始化一个不相交集合时,也比真实节点多1个 很多细节在图的顶点个数与其它数据结构的耦合 具体在各个函数的循环中体现 */ LGraph CreateGraph(int NumVertex) { LGraph G = (LGraph)malloc(sizeof(struct LGraphRecord)); if (NULL == G) ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "LoggingTree.h" void printTree_preorder(Tree *T, int isLogged, char *str_path, char *str_method, FILE *fp_w, int last); void printTree(Tree *T, int isLogged, char *str_path, char *str_method, FILE *fp_w, int last); int main(){ FILE *fp_r...
/* * Copyright (c) 2022 Renwei * * This is a free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "dave_base.h" #include "dave_tools.h" #include "dave_os.h" #include "uip_tools.h" #include "uip_server_monitor.h" #include "uip_parsing.h"...
/* Exercise 5-20. Expand dcl to handle declarations with function argument types, qualifiers like const , and so on. - based on 5_18 (added error handling and recovery) - Note: This solution is not purely mine - I borrowed some logic/code from "The C Answer book" - For comparison with the solution from "The C Answer...
/* * Copyright (c) <NAME> */ #include "jsini.h" /** * Escapes a unicode character in JSON format and writes the sequence to buffer. * The buffer should be large enough to hold 6-12 bytes depending on the code * point of the character. Returns the number of bytes written to the buffer. * * Inline comments are t...
/* * Functions for pcap file parsing * Authors: <NAME> */ #include <pcap.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include "debug_utils.h" #include "proto_utils.h" #include "loganon_queue.h" #include "loganon_errors.h" /* Pcap file handle for reading */ static pcap_t ...
#include <assert.h> #include <ctype.h> #include <err.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct rule { char ch; bool is_char; int32_t main[3]; int32_t nmain; int32_t alt[3]; int32_t nalt; int32_t index; }; typedef struct rule rule_t; sta...
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> /* R: Number of rows (max 1000) */ /* S: Number of slots per row (max 1000) */ /* U: Number of unavailable slots (max R*S -> 1000000) */ /* P: Number of pools (max 1000) */ /* M: Number of servers (max R*S -> 1000000) */ int R, S, U, P, M; /...
/* * SurgeScript * A scripting language for games * Copyright 2016-2018 <NAME> <alemartf(at)gmail(dot)com> * * 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.o...
/* * $Id: rng64.c,v 1.7 2008/03/21 17:38:39 jms Exp $ * * This software contains proprietary and confidential information of Gradient * Systems Inc. By accepting transfer of this copy, Recipient agrees * to retain this software in confidence, to prevent disclosure to others, and * to make no use of this software other...
#include <ncurses.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #define DX 3 struct Text { char **data; int *len; int num_lines; int max_line_len; }; int min(int x, int y) { return x < y ? x : y; } int max(int x, int y) { return x < y ? y : x; } int read_text(c...
/* $Id: monwin.c,v 1.1.1.1 2003/07/21 16:18:41 pturner Exp $ * * monitor Panel * */ #include <stdio.h> #include <Xm/Xm.h> #include <Xm/Text.h> #include <Xm/BulletinB.h> #include <Xm/DialogS.h> #include <Xm/Form.h> #include <Xm/Frame.h> #include <Xm/Label.h> #include <Xm/PushB.h> #include <Xm/RowColumn.h> #include <...
//<NAME> //func.c // //The functions from the program are written here #include "breakout.h" //Resets the board to its original state void resetBoard(Brick brick[][7], int row, int col, int width, int height){ int i,j; for(i = 0; i < row; i++){ for(j = 0; j < col; j++){ brick[i][j].alive = true; brick[i][j]....
/* * LIBOIL - Library of Optimized Inner Loops * Copyright (c) 2003,2004 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain ...
/* Code rewritten from Adafruit Arduino library for the TFT * by <NAME> * The TFT itself is Adafruit product 1480 * Included below is the text header from the original Adafruit library * followed by the code */ /*************************************************** This is an Arduino Library for the Adafruit 2....
/* * Copyright (c) 1998 by the University of Southern California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and * its documentation in source and binary forms for lawful * purposes and without fee is hereby granted, provided * that the above copyright notice a...
/* * MicroStorm - BLE Tracking * src/controller.c * * Copyright (c) 2022 <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 th...
/* * Copyright (C) 2000-2006 <NAME> <<EMAIL>> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #ifndef _SYS_STAT_H # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead." #endif #include <bits/align64bit.h> #include <endian.h> /* Versions of the `struct stat' data ...
/* * Acess2 Kernel * - By <NAME> (thePowersGang) * * pmemmap.c * - Physical memory map manipulation */ #define DEBUG 0 #include <acess.h> #include <pmemmap.h> // === CODE === void PMemMap_DumpBlocks(tPMemMapEnt *map, int NEnts) { for( int i = 0; i < NEnts; i ++ ) { Log_Debug("PMemMap", "%i: %i 0x%02x %08llx+...
#include "quat_att_control.h" #include "inttypes.h" #include "debug.h" #include <float.h> #include <uORB/topics/actuator_controls.h> #include <quat/utils/pid.h> #include <quat/utils/compass_utils.h> #include <quat/utils/util.h> #include <math.h> #include <stdbool.h> controlStruct_t controlData; uint32_t controll...
/* * BME280 Driver Wrapper for Pico * * @version 1.0.0 * @author <NAME> * @copyright 2021 * @licence MIT * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pico/stdlib.h> #include <hardware/i2c.h> // The Bosch Sensortec BME280 sensor driver is required: // https://githu...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include "main/host/syscall/time.h" #include <errno.h> #include <stddef.h> #include "lib/logger/logger.h" #include "main/core/worker.h" #include "main/host/process.h" #include "main/host/syscall/protected.h" #include "main/host/syscall_condition...
/****************************************************************************** * Copyright (c) 2019 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /****************************************************************...
#include <stdio.h> #include <stdlib.h> #include "render.h" // CREATE TRANSITIONS // // Linear transitions are now created to smoothly connect each // phoeneme. This transition is spread between the ending frames // of the old phoneme (outBlendLength), and the beginning frames // of the new phoneme (inBlendLength). //...
/* ======================================== * * Copyright YOUR COMPANY, THE YEAR * All Rights Reserved * UNPUBLISHED, LICENSED SOFTWARE. * * CONFIDENTIAL AND PROPRIETARY INFORMATION * WHICH IS THE PROPERTY OF your company. * * ======================================== */ #include "project.h" #includ...
// Copyright (C) 2015-2020 <NAME>, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // (1) Redistributions of source code must retain the above copyright // notice,...
/* * Copyright (c) 2019, <EMAIL> * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-12-01 sogwms The first version */ #include "my_motor_speed.h" #include <rtdevice.h> #include <drv_config.h> #define DBG_SECTION_NAME "my_motor_speed" #define DBG_LEVE...
/********************************************************** Sig_hist: Creates a signal-data histogram and calculates the I/Q gain imbalance and non-orthogonality. Vers Programmer Date Reason ---------------------------------------------------------- 1.0 ?. ??? 1999 Original Development ...
/* * Copyright (c) 2013 ASMlover. 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 the above copyright * notice, this list ofconditions ...
/* * Virtio Block Device * * Copyright IBM, Corp. 2008 * * Authors: * <NAME> <<EMAIL>> * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * */ #include "qemu-common.h" #include "virtio.h" #include "pc.h" #include "sysemu.h" #include "c...
/** ****************************************************************************** * File Name : TIM.c * Description : This file provides code for the configuration * of the TIM instances. ****************************************************************************** * @...
/****************************************************************************/ /* */ /* */ /* This code and any software associated is covered by */ ...
// //TODO ADC configure vide pmsm control // **************************************************************************** // Variables for CPU control // **************************************************************************** // adc static cal int *adc_cal; RET_VARS ret1 = RET_DEFAULTS; /* // *******************...
/* * Copyright (C) 1991, 1992 <NAME> * Copyright (C) 1997 <NAME> * Copyright (C) 2007 <NAME> */ /* * This file builds a disk-image from two different files: * * - setup: 8086 machine code, sets up system parm * - system: 80386 code for actual system * * It does some checking that all files are of the cor...
#include <stdlib.h> #include <string.h> #include <assert.h> #include <spotify/api.h> #include "album.h" #include "artist.h" #include "buf.h" #include "commands.h" #include "debug.h" #include "ezxml.h" #include "toplistbrowse.h" #include "sp_opaque.h" #include "track.h" #include "util.h" static int toplistbrowse_cal...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "main.h" /* useful to get program running, but may want to set to 0 after bugs are out */ #define db_flag 1 enum { MD_LINEAR = 1, MD_BINARY, MD_HASH }; int main(int argc, char *argv[]) { int mode, i, j, k, n, n...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "cicle_graph.h" #include "../misc/perm.h" #include "../misc/util.h" #include "../misc/list.h" // #define RECORD struct cicle_graph { int *blacks; int *grays; int size; #ifdef RECORD List *ops; #endif }; inline int length_cicle_graph(...
#include "klib.h" #include "gdt.h" #include "isr.h" extern void gdt_flush(uint32_t); extern void idt_flush(uint32_t); static void init_gdt(void); static void gdt_set_gate(int32_t, uint32_t, uint32_t, uint8_t, uint8_t); static void init_idt(void); static void idt_set_gate(uint8_t, uint32_t, uint16_t, uint8_t); gdt_e...
/** * @file error.c * Provides several functions to handle errors. * * This project is released under MIT License. * * @author <NAME> */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <error.h> static const char *PICC_error_messages[PICC_NB_ERRORS] = { "Scheduler deadlock.", "Can'...
/* * Copyright (C) 2009 <NAME> * Hochschule fuer Technik Rapperswil, Switzerland * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) a...
#include "screen.h" #include "../libc/mem.h" #include "../libc/types.h" #include "io_ports.h" void kprint(const char *message) { kprint_at(message, -1, -1, WHITE_ON_BLACK); } void kprintln(const char *message) { kprint_at(message, -1, -1, WHITE_ON_BLACK); print_char('\n', -1, -1, 0); } void kprint_at(con...
/* Unix SMB/CIFS implementation. handle unexpected packets Copyright (C) <NAME> 2000 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 3 of the License, or (at your ...
/* $NetBSD: ipaq_lcdreg.h,v 1.1 2001/07/10 18:09:33 ichiro Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>(<EMAIL>). * * Redistribution and use in source and binary forms, with or without...
/* * Copyright (c) 1987 Fujitsu * * 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, di...
/* Main include file for TeX in C. Originally by <NAME>, December 23, 1987. These routines are also used by Metafont (with some name changes). */ #include "config.h" #ifdef TeX #define dump_file fmtfile #define dump_path TEXFORMATPATH #define write_out writedvi #define out_file dvifile #define out_buf dvibuf...
/* * File: spi_io.c.example * Author: <NAME> * Year: 2015 * e-mail: <EMAIL> * License at the end of file. */ // Modified 2017 by <NAME> (<EMAIL>) for teaching FSMs #include "spi_io.h" #include <MKL25Z4.h> #include "debug.h" /****************************************************************************** ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* render_sprite_projection.c :+: :+: :+: ...
/***************************************************************************** * smsh.c - SmSH - The Smith Shell * * (Pronounced Smoosh) * * * * B...
/** ****************************************************************************** * File Name : CAN.c * Description : This file provides code for the configuration * of the CAN instances. ****************************************************************************** * @...