repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
pengqiangsheng/esp8266_DazzleLed_ws2812
matrix_pal.h
<reponame>pengqiangsheng/esp8266_DazzleLed_ws2812 #ifndef MATRIX_PAL_H #define MATRIX_PAL_H /* Usage - matrix_pal(); * * This is one of the few routines I have with pixel counting. * * * currentPalette, targetPalette * thisrot * thisindex * bgclr * bgbri * thisdir * thisbright */ void matrix_pal()...
pengqiangsheng/esp8266_DazzleLed_ws2812
make_palettes.h
<filename>make_palettes.h #ifndef MAKE_PALETTES_H #define MAKE_PALETTES_H void SetupRandom16Palette() { for (int i = 0; i < 16; i++) targetPalette[i] = CHSV(random8(), random8(192,255), random8(128,255)); } // SetupRandom16Palette() void SetupRandom4Palette() { targetPalette = CRGBPalette16(CHSV(random8(), 255...
pengqiangsheng/esp8266_DazzleLed_ws2812
addglitter.h
<filename>addglitter.h #ifndef ADDGLITTER_H #define ADDGLITTER_H /* Usage - addGlitter(80); // Higher = more * * chanceOfGlitter */ void addglitter( fract8 chanceOfGlitter) { if( random8() < chanceOfGlitter) { leds[ random8(NUM_LEDS-1) ] += CRGB::White; } } #endif
pengqiangsheng/esp8266_DazzleLed_ws2812
noise8_pal.h
<filename>noise8_pal.h #ifndef NOISE8_PAL_H #define NOISE8_PAL_H /* This is adapted from a routine created by <NAME> */ /* Usage - noise8(); * */ uint16_t dist = 12345; // A random number for our noise generator. uint16_t scale = 30; // Wouldn't recommend changing this on the fly, or the animat...
pengqiangsheng/esp8266_DazzleLed_ws2812
three_sin_pal.h
<filename>three_sin_pal.h #ifndef THREE_SIN_PAL_H #define THREE_SIN_PAL_H // three_sin_pal variables --------------------------------------------------------------------- int wave1; int wave2; int wave3; uint8_t mul1; uint8_t mul2; uint8_t mul3; void three_sin_pal() { wave1 += beatsin8(10,-4,4); wave2 += beat...
pengqiangsheng/esp8266_DazzleLed_ws2812
circnoise_pal_1.h
<reponame>pengqiangsheng/esp8266_DazzleLed_ws2812 #ifndef CIRCNOISE_PAL_1_H #define CIRCNOISE_PAL_1_H /* This is adapted from a routine created by <NAME> */ /* Usage - circnoise_pal_1(); * */ // moves a noise up and down while slowly shifting to the side void circnoise_pal_1() { uint8_t scale = 1000; ...
pengqiangsheng/esp8266_DazzleLed_ws2812
circnoise_pal_4.h
#ifndef CIRCNOISE_PAL_4_H #define CIRCNOISE_PAL_4_H /* This is adapted from a routine created by <NAME> */ /* Usage - circnoise_pal_4(); * */ // no x/y shifting but scrolling along z void circnoise_pal_4() { uint8_t scale = 1000; // the "zoom factor" for the noise for (uint1...
pengqiangsheng/esp8266_DazzleLed_ws2812
two_sin.h
#ifndef TWO_SIN_H #define TWO_SIN_H /* Usage - two_sin(); * * Loads of variables to play with * */ // two_sin_pal variables------------------------------------------------------------------------- uint8_t thathue = 140; // You can change the starting hue for other wave. u...
pengqiangsheng/esp8266_DazzleLed_ws2812
one_sin_pal.h
<reponame>pengqiangsheng/esp8266_DazzleLed_ws2812<filename>one_sin_pal.h #ifndef ONE_SIN_PAL_H #define ONE_SIN_PAL_H /* There's lots of values to play with here, as well as selecting your own palettes * */ /* * Usage - one_sin_pal(); * * allfreq - What is the frequency * bgbri - The background brightness ...
saulofr/contiki-ng
os/net/mac/tsch/tsch-schedule.c
/* * Copyright (c) 2014, SICS Swedish ICT. * 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 c...
msemegen/CML
templates/stm32l4/12RB/system.c
<filename>templates/stm32l4/12RB/system.c /* * Name: system.c * * Copyright (c) <NAME> and contributors. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for details. */ // std #include <stdint.h> // externals #include <stm32l4xx.h> uint32_t SystemCoreClock = 400...
vmxdev/mows
example_vars.c
<reponame>vmxdev/mows #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "mows.h" static mows *m; static void http_index(mows *m, mows_request *r, int s) { char http[3000], vars[2500]; size_t nvars, i; (void)m; snprintf(vars, sizeof(vars), "<h4>Variables example</h4>" "<a ...
vmxdev/mows
example_headers.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "mows.h" static mows *m; static void http_index(mows *m, mows_request *r, int s) { char http[3000], headers[2500]; size_t nheaders, i; (void)m; snprintf(headers, sizeof(headers), "<h1>HEADERS:</h1><br />"); nheaders = mows...
vmxdev/mows
mows.h
<gh_stars>1-10 #ifndef mows_h_included #define mows_h_included #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef enum MOWS_PARAM { MOWS_PARAM_NTHREADS } MOWS_PARAM; typedef struct mows_params mows_params; typedef struct mows mows; typedef struct mows_request mows_request; typedef struct mows_respo...
vmxdev/mows
example_hello.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "mows.h" static mows *m; static void http_index(mows *m, mows_request *r, int s) { char http[300], greeting[50]; (void)m; snprintf(greeting, sizeof(greeting), "<h1>Hello, world!</h1>"); snprintf(http, sizeof(http), "HTTP/1...
vmxdev/mows
example_redirect.c
<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "mows.h" static mows *m; static void http_index(mows *m, mows_request *r, int s) { (void)m; (void)r; mows_redirect302("redirect.html", s); } void ctrl_c_handler(int s) { (void)s; mows_stop(m); mows_free(m);...
vmxdev/mows
mows.c
<gh_stars>1-10 /* * mows * * Copyright (c) 2019, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" ...
mikefero/performance-metrics
ext/php_5to7_macros.h
<reponame>mikefero/performance-metrics #ifndef __PHP_5TO7_MACROS_H__ #define __PHP_5TO7_MACROS_H__ /* Macro definitions for PHP v5.5, 5.6, and 7.0 support */ #if PHP_VERSION_ID >= 70000 typedef zval php_zend_resource_list_entry; typedef zend_resource* php_zend_resource; typedef zend_object *php_zend_object; ty...
mikefero/performance-metrics
ext/utils.h
<gh_stars>1-10 #ifndef __UTILS_H__ #define __UTILS_H__ #include "hdr_time.h" #define SECONDS_TO_NANOSECONDS ((uint64_t) 1e9) #define NANOSECONDS_TO_MICROSECONDS ((uint64_t) 1e3) #ifdef _WIN32 # define EPOCH_DELTA 116444736000000000llu /* Delta since 1970/01/01 (Win32 epoch to Unix epoch) */ #endif #define LOWEST_TR...
mikefero/performance-metrics
ext/php_performance_metrics.h
<gh_stars>1-10 #ifndef __PHP_PERFORMANCE_METRICS_H__ #define __PHP_PERFORMANCE_METRICS_H__ #ifdef PHP_WIN32 # define PHP_PERFORMANCE_METRICS_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 # define PHP_PERFORMANCE_METRICS_API __attribute__ ((visibility("default"))) #else # define PHP_PERFORMANCE_MET...
mikefero/performance-metrics
ext/ewma.h
<reponame>mikefero/performance-metrics<gh_stars>1-10 #ifndef __METER_H__ #define __METER_H__ #include <stdint.h> #include <stdbool.h> #include "hdr_atomic.h" #include "hdr_thread.h" #include "utils.h" /** * Structure calculating exponentially weighted moving averages */ typedef struct _performance_metrics_Exponen...
mikefero/performance-metrics
ext/performance_metrics.c
#ifdef HAVE_CONFIG_H # include "config.h" #endif #include <php.h> #include <php_ini.h> #include <ext/standard/info.h> #if HAVE_SPL # include <ext/spl/spl_exceptions.h> # include <Zend/zend_exceptions.h> #else # error SPL must be enabled #endif #include "php_performance_metrics.h" #include "utils.h" /* Enable and in...
fenix31415/StaminaNPC
src/Utils.h
#pragma once namespace Utils { void damageav(RE::Actor* a, RE::ACTOR_VALUE_MODIFIERS::ACTOR_VALUE_MODIFIER i1, RE::ActorValue i2, float val); RE::PlayerCharacter* getPlayer(); }
fenix31415/StaminaNPC
src/Hooks.h
#pragma once #include "PCH.h" #include "SKSE/Trampoline.h" #include <xbyak\xbyak.h> namespace Hooks { void apply_hooks(); }
fenix31415/StaminaNPC
src/Settings.h
#pragma once #include "PCH.h" struct Settings { using ISetting = AutoTOML::ISetting; using bSetting = AutoTOML::bSetting; using fSetting = AutoTOML::fSetting; static void load() { try { const auto table = toml::parse_file("Data/SKSE/Plugins/StaminaNPC.toml"s); for (const auto& setting : ISetting::get_set...
fenix31415/StaminaNPC
src/CharacterHandler.h
#pragma once namespace CharHandler { bool is_strong_attack(RE::Actor* actor); bool is_strong_bash(RE::Actor* actor); float get_attack_cost(char* _a, RE::BGSAttackData* attack = nullptr); float get_block_cost(RE::HitData* data); void TESObjectWEAP__Fire_140235240_hooked(RE::TESObjectWEAP* weap, RE::TESObjectREFR*...
free-stardust/leetcode
leetcode-c/50.pow-x-n.c
<reponame>free-stardust/leetcode<filename>leetcode-c/50.pow-x-n.c<gh_stars>0 /* * @lc app=leetcode.cn id=50 lang=c * * [50] Pow(x, n) * * https://leetcode-cn.com/problems/powx-n/description/ * * algorithms * Medium (37.35%) * Likes: 625 * Dislikes: 0 * Total Accepted: 172.3K * Total Submissions: 460.5...
sakib1361/Xamarin-VPN
iOS/MAC/Prebuilt/sharpie-build/Build/Intermediates.noindex/OpenVPNAdapter.build/Release-iphoneos/OpenVPNAdapter iOS.build/DerivedSources/OpenVPNAdapter_vers.c
<gh_stars>1-10 extern const unsigned char OpenVPNAdapterVersionString[]; extern const double OpenVPNAdapterVersionNumber; const unsigned char OpenVPNAdapterVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:OpenVPNAdapter PROJECT:OpenVPNAdapter-1" "\n"; const double OpenVPNAdapterVersionNumber __attribute__ ((...
sakib1361/Xamarin-VPN
iOS/MAC/Prebuilt/sharpie-build/Build/Products/Release-iphoneos/OpenVPNAdapter.framework/Headers/OpenVPNProperties.h
// // OpenVPNProperties.h // OpenVPN Adapter // // Created by <NAME> on 26.04.17. // // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, OpenVPNTransportProtocol); @class OpenVPNServerEntry; @interface OpenVPNProperties : NSObject /** This username must be used with profile */ @property (nullable, ...
sakib1361/Xamarin-VPN
iOS/MAC/Prebuilt/sharpie-build/Build/Products/Release-iphoneos/OpenVPNAdapter.framework/Headers/Umbrella-Header.h
<reponame>sakib1361/Xamarin-VPN<filename>iOS/MAC/Prebuilt/sharpie-build/Build/Products/Release-iphoneos/OpenVPNAdapter.framework/Headers/Umbrella-Header.h // // OpenVPNAdapter.h // OpenVPNAdapter // // Created by <NAME> on 09.03.17. // // @import Foundation; //! Project version number for OpenVPNAdapter. FOUNDATIO...
Andy4495/ConnectedStatusMonitor
Coordinates.h
<reponame>Andy4495/ConnectedStatusMonitor<gh_stars>0 struct Coord { int x; int y; }; struct Layout { Layout(); Coord WeatherTitle; Coord WeatherTempValue; Coord WeatherTempUnits; Coord WeatherLuxValue; Coord WeatherLuxUnits; Coord WeatherRHValue; Coord WeatherRHUnits; Coord WeatherPValue; Coord...
Andy4495/ConnectedStatusMonitor
dst.h
<gh_stars>0 #ifndef DST_IL_H #define DST_IL_H /* dst.h Definitions for local daylight saving time. These are specific to Illinois, USA. Manually edit for other locations. */ #define DST_FIRST_YEAR 2018 #define MAX_DST_YEAR 2029 #define DAYLIGHT_TZ_STRING "CDT" #define STANDARD_TZ_STRING "CST" #defi...
iocainst/microjson
example2.c
/* example2.c - second example in the programming guide * * This file is Copyright (c) 2014 by <NAME> * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <stdio.h> #include <stdlib.h> #include "mjson.h" #define MAXCHANNELS 72 static bool usedflags[MAXCHANNELS]; static int PR...
iocainst/microjson
test_microjson.c
<gh_stars>1-10 /* test_mjson.c - unit test for JSON parsing into fixed-extent structures * * This file is Copyright (c) 2010 by the GPSD project * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <...
ismaeelvaris/PharmacySystem
PharmacySystem/DatabaseManager.h
#pragma once #include <string> #include <vector> #include <iostream> #include <sstream> #include "sqlite3.h" #include "Constants.h" /* Import DB Models */ #include "User.cpp" #include "Store.cpp" #include "Item.cpp" #include "Prescription.cpp" #include "Purchase.cpp" #include "Inventory.cpp" #include "Review.cpp" #inc...
ismaeelvaris/PharmacySystem
PharmacySystem/DatabaseUtils.h
#pragma once #include <iostream> #include <string> using namespace std; static class DatabaseUtils { public: static bool DatabaseUtils::dateStringIsBetweenDates(string currentDate, string date1, string date2); };
ismaeelvaris/PharmacySystem
PharmacySystem/BatchProcesses.h
#pragma once void printbatchLog(); string ZeroFillNumber(string str, int digits); string SpaceFillString(string str, int size); string RemoveSpaces(string str); vector<string> getRecords(ofstream &batchLog, int sequenceNo, string fileName); void writeFile(vector<string> records, int sequenceNo, string fileName); ...
ismaeelvaris/PharmacySystem
PharmacySystem/main.h
<gh_stars>1-10 #include <iostream> #include <string> #include <algorithm> #include <stdexcept> // Used for out_of_range error #include <iomanip> #include "DatabaseManager.h" #include "User.cpp" #include "DatabaseManagerTests.h" // Controllers #include "LoginRegistrationController.cpp" #include "ManageStore.cpp" #inclu...
ismaeelvaris/PharmacySystem
PharmacySystem/Constants.h
<filename>PharmacySystem/Constants.h #ifndef CONSTANTS_H #define CONSTANTS_H namespace DatabaseConstants { const char DatabaseName[] = "warehouse.db"; const char BetaDatabaseName[] = "warehouse-test.db"; } #endif
ismaeelvaris/PharmacySystem
PharmacySystem/DatabaseManagerTests.h
<reponame>ismaeelvaris/PharmacySystem #pragma once #include <string> #include <vector> #include <iostream> #include <sstream> #include "sqlite3.h" #include "Constants.h" #include "DatabaseManager.h" void runTests(DatabaseManager *dbm);
236212005/mongoose
src/mqtt.c
<reponame>236212005/mongoose #include "mqtt.h" #include "arch.h" #include "base64.h" #include "event.h" #include "log.h" #include "url.h" #include "util.h" #define MQTT_CLEAN_SESSION 0x02 #define MQTT_HAS_WILL 0x04 #define MQTT_WILL_RETAIN 0x20 #define MQTT_HAS_PASSWORD <PASSWORD> #define MQTT_HAS_USER_NAME 0x80 enum...
236212005/mongoose
src/fs_packed.c
<filename>src/fs_packed.c #include "fs.h" struct packed_file { const char *data; size_t size; size_t pos; }; const char *mg_unpack(const char *path, size_t *size, time_t *mtime); const char *mg_unlist(size_t no); #if MG_ENABLE_PACKED_FS #else const char *mg_unpack(const char *path, size_t *size, time_t *mtime) ...
236212005/mongoose
examples/esp32/main/main.c
<reponame>236212005/mongoose // Copyright (c) 2020 Cesanta Software Limited // All rights reserved #include "esp_spiffs.h" #include "freertos/FreeRTOS.h" #include "mongoose.h" #define WIFI_SSID "WIFI_NETWORK" // SET THIS! #define WIFI_PASS "<PASSWORD>" // SET THIS! #define FS_ROOT "/spiffs" // SPIFFS is flat, so ...
236212005/mongoose
examples/mqtt-client-aws-iot/main.c
// Copyright (c) 2020 Cesanta Software Limited // All rights reserved // // Example MQTT client. It performs the following steps: // 1. Connects to the AWS IoT MQTT server // 2. When connected, subscribes to the topic `s_rx_topic` // 3. Publishes message `hello` to the `s_tx_topic` periodically // // This exam...
236212005/mongoose
examples/mqtt-client/main.c
<reponame>236212005/mongoose<filename>examples/mqtt-client/main.c // Copyright (c) 2020 Cesanta Software Limited // All rights reserved // // Example MQTT client. It performs the following steps: // 1. Connects to the MQTT server specified by `s_url` variable // 2. When connected, subscribes to the topic `s_sub_t...
236212005/mongoose
src/fs_fat.c
#include "fs.h" #if MG_ENABLE_FATFS #include <ff.h> static int ff_stat(const char *path, size_t *size, time_t *mtime) { FILINFO fi; if (path[0] == '\0' || strcmp(path, MG_FATFS_ROOT) == 0) { if (size) *size = 0; if (mtime) *mtime = 0; return MG_FS_DIR; } else if (f_stat(path, &fi) == 0) { if (si...
TorinKwok/AeroGearOTP
AeroGearOTP/Classes/AGTotp.h
// // Taken with small modifications // // Copyright 2011 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless...
TorinKwok/AeroGearOTP
AeroGearOTP_Mac/AeroGearOTP_Mac.h
<gh_stars>0 // // AeroGearOTP_Mac.h // AeroGearOTP_Mac // // Created by <NAME> on 27/01/2018. // #import <Cocoa/Cocoa.h> //! Project version number for AeroGearOTP_Mac. FOUNDATION_EXPORT double AeroGearOTP_MacVersionNumber; //! Project version string for AeroGearOTP_Mac. FOUNDATION_EXPORT const unsigned char Aero...
teared/mikktspace-houdini
source/Calculator.h
#ifndef __Calculator_h__ #define __Calculator_h__ #include "mikktspace.h" class Calculator { public: // Initialize MikkTSpaceInterface with callbacks and run calculator. void callMorty(GU_Detail * gdp, bool basic = true); // Return number of primitives in the geometry. static int getNumFaces(const S...
teared/mikktspace-houdini
source/SOP_ComputeTangents.h
<reponame>teared/mikktspace-houdini #ifndef __SOP_ComputeTangents_h__ #define __SOP_ComputeTangents_h__ #include <SOP/SOP_Node.h> // Compute Tangents SOP // // Computes and stores tangents suitable for normal map baking using a robust // tangent basis calculator written by <NAME>. All operations // performing via Cal...
teared/mikktspace-houdini
source/Calculator.c
#include <GU/GU_Detail.h> #include "Calculator.h" // Initialize MikkTSpaceInterface with callbacks and run calculator. void Calculator::callMorty(GU_Detail *gdp, bool basic) { SMikkTSpaceInterface iface; iface.m_getNumFaces = getNumFaces; iface.m_getNumVerticesOfFace = getNumVerticesOfFace; iface.m_get...
teared/mikktspace-houdini
source/SOP_ComputeTangents.c
#include <GA/GA_Handle.h> #include <GU/GU_Detail.h> #include <OP/OP_AutoLockInputs.h> #include <OP/OP_Operator.h> #include <OP/OP_OperatorTable.h> #include <PRM/PRM_Include.h> #include <UT/UT_DSOVersion.h> #include "Calculator.h" #include "SOP_ComputeTangents.h" static PRM_Name modeName("basic", "Basic Mode"); PRM_Te...
dobal36/c_project
sumFun.c
#include <stdio.h> int sum( int x , int y) { return x+y; }
dilworm/dandelion
src/3rd/luaclib/lua-util.c
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <stdint.h> #include <lua.h> #include <lauxlib.h> static int lget_realtime(lua_State* L) { struct timespec ti; clock_gettime(CLOCK_REALTIME, &ti); lua_newtable(L); lua_pushstring(L, "sec"); lua_pushinteger(L, ti.tv_sec); lua_rawse...
dilworm/dandelion
src/3rd/luaclib/spdlog_time_and_size_file_sink.h
<reponame>dilworm/dandelion<gh_stars>0 #include <ctime> #include "spdlog/spdlog.h" #include "spdlog/sinks/base_sink.h" #include "spdlog/details/file_helper.h" namespace spdlog { namespace sinks { class SizeAndDayFileSink : public sink { public: SizeAndDayFileSink( const filename_t& base_filename, ...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_adc.h
/** * ADC library for STM32F4xx * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/04/library-06-ad-converter-on-stm32f4xx/ * @version v1.1 * @ide Keil uVision * @license GNU GPL v3 * * |--------------------------------------...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_ili9341_ltdc.h
/** * ILI9341 library for LCD on STM32F429 Discovery, with LTDC hardware support * * Only works for STM32F4(2/3)9 because they have LTDC inside * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/06/library-18-ili9341-ltdc-stm32f429-di...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_delay.c
/** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 versio...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_dac_signal.h
<reponame>james54068/engine_monitoring_system /** * DAC with DMA and TIM signal generator feature for STM32F4 * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/09/library-36-dac-signal-generator-stm32f4 * @version v1.0 * @ide Keil ...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_timer_properties.h
<reponame>james54068/engine_monitoring_system /** * Timer properties for all STM32F4xx timers * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link * @version v1.0 * @ide Keil uVision * @license GNU GPL v3 * * |--------------------------------------------------...
james54068/engine_monitoring_system
realtime_FFT/main.h
#ifndef __MAIN_H #define __MAIN_H /* Include core modules */ #include "stm32f4xx.h" /* Include my libraries here */ #include "defines.h" #include "tm_stm32f4_delay.h" #include "tm_stm32f4_ili9341_ltdc.h" #include "tm_stm32f4_adc.h" #include "tm_stm32f4_disco.h" #include "tm_stm32f4_sdram.h" #include "tm_stm32f4_dac_si...
james54068/engine_monitoring_system
ground_vibration_test/mpu6500.h
<filename>ground_vibration_test/mpu6500.h /* #include "module_mpu9250.h" */ #ifndef __MODULE_MPU9250_H #define __MODULE_MPU9250_H #include "stm32f4xx.h" /*====================================================================================================*/ /*============================================================...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_sdram.h
<reponame>james54068/engine_monitoring_system /** * SDRAM on STM32F429 Discovery board * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/05/library-14-working-with-sdram-on-stm32f429-discovery/ * @version v1.0 * @ide Keil uVision ...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_delay.h
/** * Pretty accurate delay functions with SysTick timer * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/04/library-03-stm32f429-discovery-system-clock-and-pretty-precise-delay-library/ * @version v1.2 * @ide Keil uVision * @li...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_disco.h
<reponame>james54068/engine_monitoring_system /** * Leds and button library for STM32F401, STM32F4 and STM32F429 Discovery boards. * Also works with Nucleo boards * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @link http://stm32f4-discovery.com/2014/04/stm32f429-discovery...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_disco.c
<reponame>james54068/engine_monitoring_system /** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 *...
james54068/engine_monitoring_system
realtime_FFT/mcu_setting.h
#ifndef __MCU_SETTING_H #define __MCU_SETTING_H #include "stm32f4xx.h" extern u8 mpu6500A_buf[16]; extern u8 mpu6500B_buf[16]; extern char buff[50]; extern char IMU2[10]; extern char rpm_buff[10]; extern int8_t buff_size; extern __IO int16_t AccelGyroA[7]; extern __IO int16_t Acc...
james54068/engine_monitoring_system
realtime_FFT/LCD/drawing.h
<filename>realtime_FFT/LCD/drawing.h #ifndef __DRAWING_H #define __DRAWING_H #include "stm32f429i_discovery.h" #include "stm32f429i_discovery_lcd.h" #include <string.h> void DrawThickCircle(uint32_t x,uint32_t y,uint32_t radius, uint32_t thickness); void DrawThickSemiCircle(uint32_t x,uint32_t y,uint32_t radius, uint...
james54068/engine_monitoring_system
ground_vibration_test/mcu_setting.c
<reponame>james54068/engine_monitoring_system #include <string.h> #include "mcu_setting.h" #include "stm32f4xx.h" #include "stm32f4xx_it.h" u8 mpu6500A_buf[16]; u8 mpu6500B_buf[16]; char buff[50]; int8_t buff_size; __IO int16_t AccelGyroA[7]; __IO int16_t AccelGyroB[7]; __IO int8_t tem...
james54068/engine_monitoring_system
ground_vibration_test/stm32f4xx_it.c
/** ****************************************************************************** * @file Touch_Panel/stm32f4xx_it.c * @author MCD Application Team * @version V1.0.1 * @date 11-November-2013 * @brief Main Interrupt Service Routines. * This file provides template for all exceptio...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_sdram.c
/** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 versio...
james54068/engine_monitoring_system
realtime_FFT/main.c
/** * Keil project example for FFT on STM32F4 device. * * Works on STM32F429-Discovery board because it has LCD * * @author <NAME> * @email <EMAIL> * @website http://stm32f4-discovery.com * @ide Keil uVision 5 * @packs STM32F4xx Keil packs version 2.2.0 or greater required * @stdperiph STM32F4xx...
james54068/engine_monitoring_system
ground_vibration_test/main.c
<reponame>james54068/engine_monitoring_system /** ****************************************************************************** * @file Touch_Panel/main.c * @author MCD Application Team * @version V1.0.1 * @date 11-November-2013 * @brief This example describes how to configure and use the to...
james54068/engine_monitoring_system
realtime_FFT/stm32f4xx_it.c
/** ****************************************************************************** * @file Touch_Panel/stm32f4xx_it.c * @author MCD Application Team * @version V1.0.1 * @date 11-November-2013 * @brief Main Interrupt Service Routines. * This file provides template for all exceptio...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_dac_signal.c
/** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 versio...
james54068/engine_monitoring_system
ground_vibration_test/functions.h
<reponame>james54068/engine_monitoring_system<filename>ground_vibration_test/functions.h #ifndef __FUNCTIONS_H #define __FUNCTIONS_H #include "stm32f4xx.h" #include "mpu6500.h" extern __IO int TimingDelay; extern int16_t acc1_offset[3]; extern int16_t acc2_offset[3]; void Delay_us(int nTime); void lcd_int(void); v...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_ili9341_ltdc.c
<reponame>james54068/engine_monitoring_system<gh_stars>1-10 /** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | This program is free software: you can redistribute it and/or modify * | it under the terms of the GNU General Public License as pu...
james54068/engine_monitoring_system
realtime_FFT/LCD/drawing.c
<gh_stars>1-10 #include "drawing.h" #include "stm32f429i_discovery.h" #include "stm32f429i_discovery_lcd.h" #include <math.h> #include <string.h> #include <stdio.h> void DrawThickCircle(uint32_t x,uint32_t y,uint32_t radius, uint32_t thickness){ LCD_SetTextColor(LCD_COLOR_BLACK); LCD_DrawFullCircle(x, y, radi...
james54068/engine_monitoring_system
realtime_FFT/functions.c
<filename>realtime_FFT/functions.c #include "functions.h" #include "stm32f4xx.h" #include "mpu6500.h" #include "mcu_setting.h" #include "main.h" #include <stdio.h> int16_t acc1_offset[3]; int16_t acc2_offset[3]; volatile int16_t ACC_FIFO[3][256] = {{0}}; #define MagCorrect_time 10000 #define MagCorrect_Ave 10...
james54068/engine_monitoring_system
realtime_FFT/mpu6500/mpu6500.c
/*====================================================================================================*/ /*====================================================================================================*/ #include "stm32f4xx.h" #include "stm32f4xx_spi.h" #include "mpu6500.h" #include "main.h" #include "functions.h...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_adc.c
<filename>realtime_FFT/fftlib/TM/tm_stm32f4_adc.c /** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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...
james54068/engine_monitoring_system
realtime_FFT/fftlib/TM/tm_stm32f4_spi.c
<reponame>james54068/engine_monitoring_system /** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 *...
TinkerBoard2-Android/external-minijail
gen_constants-inl.h
<gh_stars>0 #if defined(__i386__) || defined(__x86_64__) #include <asm/prctl.h> #endif // __i386__ || __x86_64__ #include <errno.h> #include <fcntl.h> #include <linux/fd.h> #include <linux/fs.h> #include <linux/loop.h> #include <linux/mman.h> #include <linux/net.h> #include <linux/prctl.h> #include <linux/sched.h> #inc...
TinkerBoard2-Android/external-minijail
libminijail.h
<gh_stars>0 /* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * The general pattern of use here: * 1) Construct a minijail with minijail_new() * 2) Apply the desired restrictions to it *...
TinkerBoard2-Android/external-minijail
linux-x86/libconstants.gen.c
/* GENERATED BY MAKEFILE */ #include <errno.h> #include <fcntl.h> #include <linux/prctl.h> #include <linux/sched.h> #include <stddef.h> #include <signal.h> #include <sys/stat.h> #include <sys/types.h> #include "arch.h" #include "libconstants.h" const struct constant_entry constant_table[] = { #ifdef MINIJAIL_ARCH_NR...
TinkerBoard2-Android/external-minijail
system.h
<filename>system.h /* Copyright 2017 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Wrappers for system functionality. */ #ifndef _SYSTEM_H_ #define _SYSTEM_H_ #include <stdbool.h> #include <sys/capability.h>...
TinkerBoard2-Android/external-minijail
minijail0_cli.c
/* Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <dlfcn.h> #include <errno.h> #include <getopt.h> #include <inttypes.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #includ...
X-rays5/elden_pause
elden_pause/include/mem/init_function.h
/* Copyright 2018 Brick 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, distribut...
X-rays5/elden_pause
elden_pause/include/mem/arch.h
/* Copyright 2018 Brick 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, distribut...
X-rays5/elden_pause
elden_pause/include/mem/data_buffer.h
/* Copyright 2018 Brick 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, distribut...
X-rays5/elden_pause
elden_pause/include/mem/rtti.h
<reponame>X-rays5/elden_pause /* Copyright 2018 Brick 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, mod...
X-rays5/elden_pause
elden_pause/framework.h
#pragma once #define _AMD64_ #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #define EXTERN_API extern "C" _declspec(dllexport) // Function typedef #define __typedef_func(func, ret, ...) using func##_t = ret(WINAPI*)(##__VA_ARGS__); func##_t m_##func = nullptr; // Resolve the specified...
X-rays5/elden_pause
elden_pause/include/mem/prot_flags.h
<filename>elden_pause/include/mem/prot_flags.h /* Copyright 2018 Brick 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 ...
X-rays5/elden_pause
elden_pause/include/mem/hasher.h
/* Copyright 2018 Brick 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, distribut...
X-rays5/elden_pause
elden_pause/include/mem/slice.h
<filename>elden_pause/include/mem/slice.h /* Copyright 2018 Brick 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 us...
X-rays5/elden_pause
elden_pause/include/button_state.h
<reponame>X-rays5/elden_pause #pragma once enum class EButtonState { k_Activated, k_Deactivated };
X-rays5/elden_pause
elden_pause/include/mem/execution_handler.h
<gh_stars>10-100 /* Copyright 2018 Brick 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, p...
X-rays5/elden_pause
elden_pause/include/mem/cmd_param-inl.h
<gh_stars>10-100 /* Copyright 2018 Brick 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, p...
X-rays5/elden_pause
elden_pause/include/mem/boyer_moore_scanner.h
/* Copyright 2018 Brick 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, distribut...
X-rays5/elden_pause
elden_pause/include/stub.h
<reponame>X-rays5/elden_pause #pragma once namespace fs = std::filesystem; typedef struct DIOBJECTDATAFORMAT { CONST GUID* pguid; DWORD dwOfs; DWORD dwType; DWORD dwFlags; } DIOBJECTDATAFORMAT, * LPDIOBJECTDATAFORMAT; typedef struct DIDATAFORMAT { DWORD dwSize; DWORD dwObjSize; DWORD dwFl...