repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
amplework/ZAlertView
Example/Pods/Target Support Files/ZAlertView/ZAlertView-umbrella.h
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double ZAlertViewVersionNumber; FOUNDATION_EXPORT const unsigned char ZAlertViewVersionString[];
dukemido/library_c
main.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "cJSON.h" #include "BOOK.h" #include "MEMBERS.h" #include "date.h" #include "ADMIN.h" // We're using this library as JSON PARSER https://github.com/DaveGamble/cJSON void print_menu(); void executeTask(int); int filesExists(const char*); ...
stevenpelley/atomic-memory-trace
src/annotation.h
// Copyright (c) 2013 <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, publish, distr...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_uart1.c
<filename>cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_uart1.c #if !defined(NO_HWSERIAL) #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S103) ||\ defined(STM8S003) ||defined(STM8S001) || defined(STM8S903) || defined (STM8AF52Ax) || defined (STM8AF62Ax) #include "stm8s_uart1.c" #end...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/PortNames.c
/* ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * 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. Redistrib...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_tim6.c
#if defined(STM8S903) || defined(STM8AF622x) #include "stm8s_tim6.c" #endif /* (STM8S903) || (STM8AF622x) */
SeanGau/Arduino_Core_STM8
variants/NUCLEO_8L152R8/PeripheralPins.c
<filename>variants/NUCLEO_8L152R8/PeripheralPins.c /* ******************************************************************************* * Copyright (c) 2018, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_irtim.c
<gh_stars>100-1000 #if defined (STM8Lxx) #include "stm8l15x_irtim.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_comp.c
<gh_stars>100-1000 #if defined (STM8Lxx) #include "stm8l15x_comp.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_tim4.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined(STM8Sxx) #if !defined(STM8S903) || !defined(STM8AF622x) #include "stm8s_tim4.c" #endif /* (STM8S903) || (STM8AF622x) */ #endif #if defined(STM8Lxx) #include "stm8l15x_tim4.c" #endif
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_uart4.c
<reponame>SeanGau/Arduino_Core_STM8 /** ******************************************************************************** * @file stm8s_uart4.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the UART4 peripheral. ***********...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/stm8_def.h
<gh_stars>100-1000 #ifndef _STM8_DEF_ #define _STM8_DEF_ /** * @brief STM8 core version number */ #define STM8_CORE_VERSION_MAJOR (0x01U) /*!< [31:24] major version */ #define STM8_CORE_VERSION_MINOR (0x00U) /*!< [23:16] minor version */ #define STM8_CORE_VERSION_PATCH (0x00U) /*!< [15:8] patch version */ ...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_rst.c
<reponame>SeanGau/Arduino_Core_STM8<filename>cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_rst.c #if defined (STM8Sxx) #include "stm8s_rst.c" #elif defined (STM8Lxx) #include "stm8l15x_rst.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_gpio.c
#if defined (STM8Sxx) #include "stm8s_gpio.c" #elif defined (STM8Lxx) #include "stm8l15x_gpio.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_tim3.c
#if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \ defined(STM8S005) || defined(STM8AF52Ax) || defined(STM8AF62Ax) || defined(STM8AF626x) #include "stm8s_tim3.c" #endif /* (STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) */ #if defined(STM8Lxx) #include ...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_syscfg.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined (STM8Lxx) #include "stm8l15x_syscfg.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_i2c.c
#if defined (STM8Sxx) #include "stm8s_i2c.c" #elif defined (STM8L15X_MD) || defined (STM8L15X_MDP) || defined (STM8L15X_HD) || defined (STM8L15X_LD) \ || defined (STM8L05X_LD_VL) || defined (STM8L05X_MD_VL) || defined (STM8L05X_HD_VL) || defined (STM8AL31_L_MD) #include "stm8l15x_i2c.c" #endif
SeanGau/Arduino_Core_STM8
variants/NUCLEO_8S208RB/stm8s_it.c
<reponame>SeanGau/Arduino_Core_STM8 /** ****************************************************************************** * @file stm8s_it.c * @author MCD Application Team * @version V2.2.0 * @date 30-September-2014 * @brief Main Interrupt Service Routines. *************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_tim1.c
#if defined (STM8Sxx) #include "stm8s_tim1.c" #elif defined (STM8Lxx) #include "stm8l15x_tim1.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_can.c
#if defined (STM8S208) || defined (STM8AF52Ax) #include "stm8s_can.c" #endif /* (STM8S208) || (STM8AF52Ax) */
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_uart2.c
/** ******************************************************************************** * @file stm8s_uart2.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the UART2 peripheral. ***********************************************...
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_tim3.c
<filename>system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_tim3.c /** ****************************************************************************** * @file stm8s_tim3.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the TIM3...
SeanGau/Arduino_Core_STM8
cores/arduino/board.c
#include "board.h" #ifdef __cplusplus extern "C" { #endif void __libc_init_array(void); void init(void) { hw_config_init(); } #ifdef __cplusplus } #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/PinNames.h
#ifndef _PINNAMES_H #define _PINNAMES_H #include "PinNamesTypes.h" #include "PortNames.h" #ifdef __cplusplus extern "C" { #endif typedef enum { PA_0 = (PortA << 4) + 0x00, PA_1 = (PortA << 4) + 0x01, PA_2 = (PortA << 4) + 0x02, PA_3 = (PortA << 4) + 0x03, PA_4 = (PortA...
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_can.c
<filename>system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_can.c /** ****************************************************************************** * @file stm8s_can.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the CAN pe...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_rtc.c
<filename>cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_rtc.c #if defined (STM8Lxx) #include "stm8l15x_rtc.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/timer.h
<reponame>SeanGau/Arduino_Core_STM8<gh_stars>100-1000 /** ****************************************************************************** * @file timer.h * @author WI6LABS * @version V1.0.0 * @date 16-September-2016 * @brief Header for timer module *************************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_awu.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined (STM8Sxx) #include "stm8s_awu.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_spi.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined (STM8Sxx) #include "stm8s_spi.c" #elif defined (STM8Lxx) #include "stm8l15x_spi.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_uart3.c
#if !defined(NO_HWSERIAL) #if defined(STM8S208) ||defined(STM8S207) || defined(STM8S007) || defined (STM8AF52Ax) ||\ defined (STM8AF62Ax) #include "stm8s_uart3.c" #endif #endif /* !NO_HWSERIAL */
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/PinAF_STM8Lxx.h
<filename>cores/arduino/stm8/PinAF_STM8Lxx.h /* ******************************************************************************* * Copyright (c) 2018, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_dma.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined (STM8Lxx) #include "stm8l15x_dma.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/twi.h
/** ****************************************************************************** * @file twi.h * @author WI6LABS * @version V1.0.0 * @date * @brief Header for twi module ****************************************************************************** * @attention * * <h2><center>&copy; COPYRIG...
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_tim4.c
/** ****************************************************************************** * @file stm8s_tim4.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the TIM4 peripheral. ********************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_itc.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined (STM8Sxx) #include "stm8s_itc.c" #elif defined (STM8Lxx) #include "stm8l15x_itc.c" #endif
SeanGau/Arduino_Core_STM8
variants/NUCLEO_8L152R8/stm8l15x_it.c
<reponame>SeanGau/Arduino_Core_STM8 /** ****************************************************************************** * @file Project/STM8L15x_StdPeriph_Template/stm8l15x_it.c * @author MCD Application Team * @version V1.6.1 * @date 30-September-2014 * @brief Main Interrupt Service Routines. * ...
SeanGau/Arduino_Core_STM8
cores/arduino/WInterrupts.c
/* Copyright (c) 2011-2012 Arduino. All right 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 option) any later version. ...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_adc.c
<reponame>SeanGau/Arduino_Core_STM8 #if defined(STM8S105) || defined(STM8S005) || defined(STM8S103) || defined(STM8S003) || \ defined(STM8S903) || defined(STM8AF626x) || defined(STM8AF622x) #include "stm8s_adc1.c" #endif #if defined(STM8S208) || defined(STM8S207) || defined (STM8S007) || defined (STM8AF52Ax) ||\ ...
SeanGau/Arduino_Core_STM8
cores/arduino/pins_arduino.h
/* Copyright (c) 2011 Arduino. All right 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 option) any later version. This ...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/interrupt.c
<filename>cores/arduino/stm8/interrupt.c /** ****************************************************************************** * @file interrupt.c * @author WI6LABS * @version V1.0.0 * @date 16-September-2016 * @brief provide an interface to enable/disable interruptions * *****************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/clock.c
<filename>cores/arduino/stm8/clock.c /** ****************************************************************************** * @file clock.c * @author WI6LABS * @version V1.0.0 * @date * @brief provide clock services for time purpose * *******************************************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_uart4.c
<filename>cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_uart4.c #if !defined(NO_HWSERIAL) #if defined(STM8AF622x) #include "stm8s_uart4.c" #endif #endif /* !NO_HWSERIAL */
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/digital_io.c
<gh_stars>100-1000 /** ****************************************************************************** * @file digital_io.c * @author WI6LABS * @version V1.0.0 * @date 16-September-2016 * @brief Provide an interface to configure hw ios * **********************************************************...
SeanGau/Arduino_Core_STM8
system/Drivers/STM8Sxx_StdPeriph_Driver/src/stm8s_tim5.c
/** ****************************************************************************** * @file stm8s_tim5.c * @author MCD Application Team * @version V2.3.0 * @date 16-June-2017 * @brief This file contains all the functions for the TIM5 peripheral. ***************************************************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/analog.c
<reponame>SeanGau/Arduino_Core_STM8<filename>cores/arduino/stm8/analog.c /** ****************************************************************************** * @file analog.c * @author WI6LABS * @version V1.0.0 * @date 16-September-2016 * @brief provide analog services (ADC + PWM) * *************...
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_pwr.c
#if defined (STM8Lxx) #include "stm8l15x_pwr.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_clk.c
#if defined (STM8Sxx) #include "stm8s_clk.c" #elif defined (STM8Lxx) #include "stm8l15x_clk.c" #endif
SeanGau/Arduino_Core_STM8
cores/arduino/stm8/STM8_StdPeriph_Driver/stm8xx_exti.c
#if defined (STM8Sxx) #include "stm8s_exti.c" #elif defined (STM8Lxx) #include "stm8l15x_exti.c" #endif
creffett/statick
tests/plugins/tool/clang-format_tool_plugin/valid_package/indents.c
<reponame>creffett/statick int main() { //this should be indented }
opensalad/logger_plugin
src/abstract_logger.h
#pragma once #include <logger.h> #include <QMap> #include <QString> namespace ad { class AbstractLogger : public Logger<QString, QMap<QString, QString>> { public: enum LoggerFlag { Append = 0x00000001, CleanOnStart = 0x00000002, SplitToFiles = 0x00000003 }; public: AbstractLogger() : __level(L...
opensalad/logger_plugin
src/stream_logger.h
<reponame>opensalad/logger_plugin<filename>src/stream_logger.h #pragma once #include "abstract_logger.h" namespace ad { class StreamLogger : public AbstractLogger { public: StreamLogger(); void log(LogLevel level, string_t const &message) override; void setId(string_t const &id) override; void setPattern(st...
opensalad/logger_plugin
src/file_logger.h
#pragma once #include "logger_global.h" #include "qt_logger.h" #include <QUuid> #include <QFile> namespace ad { class LOGGER_EXPORT FileLogger : public QtLogger { public: FileLogger(); FileLogger(QString const &path); ~FileLogger() override; void setLoggerUuid(QString const &uuid); QString formatMessage(L...
opensalad/logger_plugin
src/qt_logger.h
<filename>src/qt_logger.h #pragma once #include "abstract_logger.h" namespace ad { class QtLogger : public AbstractLogger { public: void trace(string_t const& message) { log(LogLevel::Trace, message); } void debug(string_t const& message) { log(LogLevel::Debug, message); } void info(string_t const& message) {...
opensalad/logger_plugin
include/logger_factory.h
<reponame>opensalad/logger_plugin #pragma once #include <factory.h> #include <logger.h> #include <QSet> template <typename k, typename v> class QMap; class QString; #define LOGGER(classname) \ static ad::LoggerFactory::logger_t& logger = ad::LoggerFactory::getLoggerFor(#classname) namespace ad { class LoggerFacto...
opensalad/logger_plugin
src/invalid_logger.h
#pragma once #include <logger.h> #include <QString> #include <QMap> namespace ad { class InvalidLogger : public Logger<char const *, char const **> { public: void log(LogLevel, string_t const &) override {} void setId(string_t const &) override {} void setPattern(string_t const &) override {} void setPatter...
avinmore/CarTrack
Pods/Target Support Files/Pods-CarTrackTests/Pods-CarTrackTests-umbrella.h
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_CarTrackTestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_CarTrackTestsVersionStr...
kikko/ofxKinectForWindows2
src/ofxKinectForWindows2/Source/BodyFrame.h
<reponame>kikko/ofxKinectForWindows2 #pragma once #include "Base.h" #include "../Utils.h" #include "ofMain.h" #include "FaceFrame.h" namespace ofxKinectForWindows2 { enum ProjectionCoordinates { DepthCamera, ColorCamera }; // ------- class Joint { public: Joint(){} Joint(const _Joint& j, const _JointO...
kikko/ofxKinectForWindows2
src/ofxKinectForWindows2/Source/FaceFrame.h
#pragma once #include "Base.h" #include "../Utils.h" #include "ofMain.h" #include <Kinect.Face.h> namespace ofxKinectForWindows2 { namespace Source { // ------- class FaceFrame /*: public Base*/ { public: FaceFrame::~FaceFrame(); string getTypeName() const; void init(IKinectSensor *, UINT64 bodyId...
kikko/ofxKinectForWindows2
src/ofxKinectForWindows2/Source/VGB.h
#pragma once #include "Base.h" #include "../Utils.h" #include "ofMain.h" #include <Kinect.VisualGestureBuilder.h> namespace ofxKinectForWindows2 { namespace Source { class Gesture { public: Gesture() : gesture(NULL), confidence(0), detected(false), firstFrameDetected(false), progress(0){...
xzwjandyou/Spider
redis-3.2.7/src/version.h
<reponame>xzwjandyou/Spider<gh_stars>0 #define REDIS_VERSION "3.2.7"
EchoZuo/ECAutoScrollBanner
ECAutoScrollBanner/ECAutoScrollBanner.h
// // ECAutoScrollBanner.h // ECAutoScrollBanner // // Created by EchoZuo on 2017/11/21. // Copyright © 2017年 Echo.Z. All rights reserved. // // ********************** 轮播图封装 ********************** // // 轮播图封装。可以实现自动定时翻页、手动翻页;垂直和水平滚动等。支持纯文本、本地图片、网络图片以及其他view试图。 @import UIKit; typedef NS_ENUM(NSInteger, ECAutoS...
FullOfBytes/Fiwix
mm/memory.c
/* * fiwix/mm/memory.c * * Copyright 2018-2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #include <fiwix/kernel.h> #include <fiwix/asm.h> #include <fiwix/mm.h> #include <fiwix/mman.h> #include <fiwix/bios.h> #include <fiwix/ramdisk.h> #include <fiwix/process.h> #include ...
FullOfBytes/Fiwix
fs/buffer.c
/* * fiwix/fs/buffer.c * * Copyright 2018-2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ /* * buffer.c implements a cache using the LRU (Least Recently Used) algorithm, * with a free list as a doubly circular linked list and a chained hash table * with doubly linked l...
FullOfBytes/Fiwix
include/fiwix/sysrq.h
/* * fiwix/include/fiwix/sysrq.h * * Copyright 2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #ifndef _FIWIX_SYSRQ_H #define _FIWIX_SYSRQ_H #define SYSRQ_STACK 0x00000002 /* Stack backtrace */ #define SYSRQ_TASKS 0x00000004 /* Task list */ #define SYSRQ_UNDEF 0x80000000...
FullOfBytes/Fiwix
drivers/char/console.c
<reponame>FullOfBytes/Fiwix /* * fiwix/drivers/char/console.c * * Copyright 2018-2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #include <fiwix/asm.h> #include <fiwix/kernel.h> #include <fiwix/ctype.h> #include <fiwix/console.h> #include <fiwix/devices.h> #include <fiwix...
FullOfBytes/Fiwix
fs/namei.c
/* * fiwix/fs/namei.c * * Copyright 2018-2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #include <fiwix/types.h> #include <fiwix/sleep.h> #include <fiwix/sched.h> #include <fiwix/fs.h> #include <fiwix/filesystems.h> #include <fiwix/stat.h> #include <fiwix/mm.h> #include ...
yixiangLuo/Liquid_Crystal
bingham.h
#ifndef BINGHAM_H #define BINGHAM_H #define PI 3.14159265359 /* the dividing number, which is denoted as d in the paper */ #define Divide (-30) /* total number of 2D interpolation nodes along x(and y) axis, in calculating Z, Z(x1^2) and Z(x2^2) */ #define InterpNodesNumAxis_2D_Z 1201 /* total number of 2D interpolati...
yixiangLuo/Liquid_Crystal
header.h
<filename>header.h #ifndef ENERGYFUNCTIONAL #define ENERGYFUNCTIONAL #define PI 3.14159265359 #define Alpha1 22.0 //11~-2 16~-6 22~-12 #define Alpha2 0.04 #define Eta 50.0 #define S 0.48 //强锚定边界条件的特征值参数(0,1) #define PointNumInRadius 32 #define PointNumInTheta 32 #define PointNumInPhi 32 #define PointTotal...
yixiangLuo/Liquid_Crystal
calcEnergy.c
#include "calcEnergy.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include "header.h" #include "bingham.h" #include "initEnergySpace.h" extern energySpace* energyDataPointer; extern binghamDataSpace* binghamDataPointer; extern mpi_comm_data* mpi_comm_space; extern clock_t comm_start, ...
yixiangLuo/Liquid_Crystal
initEnergySpace.c
#include "initEnergySpace.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include "gaussian_nodes.h" void energySpaceFree(energySpace* energyDataPointer){ int i; if(!energyDataPointer) return; //释放自由变量 //free((void *)energyDataPointer->freeVars); //释放自变量B free((void *)energyDataP...
yixiangLuo/Liquid_Crystal
main.c
#include <stdlib.h> #include <stdio.h> #include <mpi.h> #include <math.h> #include <string.h> #include <time.h> #include "header.h" #include "initEnergySpace.h" #include "bingham.h" #include "calcEnergy.h" #include "para_lbfgs.h" energySpace* energyDataPointer; binghamDataSpace* binghamDataPointer; mpi_comm_data* mpi...
yixiangLuo/Liquid_Crystal
calcEnergy.h
#ifndef CALCENERGY_H #define CALCENERGY_H #include <mpi.h> #define Radius_Low(rank) ((rank)/(ThetaSlice*PhiSlice)*(PointNumInRadius/RadiusSlice)) #define Radius_Up(rank) (((rank)/(ThetaSlice*PhiSlice)+1)*(PointNumInRadius/RadiusSlice)) #define Theta_Low(rank) ((rank)%(ThetaSlice*PhiSlice)/PhiSlice*(PointNumInTheta/Th...
yixiangLuo/Liquid_Crystal
initEnergySpace.h
<reponame>yixiangLuo/Liquid_Crystal #ifndef INITENERGYSPACE_H #define INITENERGYSPACE_H #include "header.h" energySpace* initEnergySpace(); void energySpaceFree(energySpace* energyDataPointer); double* linearSpace_Energy(int size, energySpace* energyDataPointer); void freeMatrixSpace(double** dataSpace,...
yixiangLuo/Liquid_Crystal
bingham.c
#include "bingham.h" #include <stdlib.h> #include <stdio.h> #include <math.h> /* 2D interpolation function */ double hermiteInterpolate(double areaSpacing, double x1, double x2, double y1, double y2, double f11, double f12, double f21, double f22, double f11dx, double f12dx, double f21dx, double f22dx, double f11dy,...
saltyfishie98/bike-alarm
onBike/lib/MotionSense/MotionSense.h
#ifndef BIKEALARM #define BIKEALARM #define test #include <Arduino.h> #include <Wire.h> #include <MPU6050.h> #define MPU_ADDR (0x68) class MotionSense { public: MotionSense(MPU6050* objectPtr) : objPtr(objectPtr) {} void begin_MPU6050(); void begin_MPU6050MotionSensor(); void runOnMotion(void ...
saltyfishie98/bike-alarm
library/LoRaComm/LoRaComm.h
<filename>library/LoRaComm/LoRaComm.h #ifndef LORA_COMM #define LORA_COMM #include <Arduino.h> #include <LoRa.h> enum class LORACOMM { TX, RX }; class LoRaComm { public: LoRaComm(LoRaClass* ObjAddr) : LoRaObj(ObjAddr) {} void begin(LORACOMM selection, bool overidePin = false, uint8_t ove...
dagothar/apollo
src/hud.h
<reponame>dagothar/apollo #ifndef _HUD_H #define _HUD_H #include <iomanip> #include <GL/glut.h> #include "main.h" #include "control.h" #include "display.h" #include "simulink.h" #include "log.h" /*--------------------------------------------------------------- STALE ---------------------------...
dagothar/apollo
apollo/simulink/autopilot_rtwin/autopilot.h
/* * autopilot.h * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 19:43:27 2011 * * Target selection: rtwin.tlc * Note: GRT includes ex...
dagothar/apollo
src/simulink.h
<gh_stars>0 #ifndef _SIM_H #define _SIM_H #include <windows.h> #include "PracticalSocket.h" #include "main.h" #include "lander.h" /*--------------------------------------------------------------- STALE ---------------------------------------------------------------*/ //parametry komunikacji con...
dagothar/apollo
apollo/simulink/autopilot_rtwin/autopilot_private.h
/* * autopilot_private.h * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 19:43:27 2011 * * Target selection: rtwin.tlc * Note: GRT inc...
dagothar/apollo
src/main.h
#ifndef _MAIN_H #define _MAIN_H /*--------------------------------------------------------------- STALE GLOBALNE ---------------------------------------------------------------*/ const double exp_dt = 0.01; //zalozona czestosc odswiezania stanu //stale fizyczne extern double g; //stala grawitacji e...
dagothar/apollo
apollo/simulink/autopilot_rtwin/rtGetNaN.h
/* * rtGetNaN.h * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 19:43:27 2011 * * Target selection: rtwin.tlc * Note: GRT includes ext...
dagothar/apollo
src/map.h
#ifndef _MAP_H #define _MAP_H #include <GL/glut.h> #include "model.h" #include "vectors.h" #include "init.h" #include "msg.h" #include "main.h" /*--------------------------------------------------------------- KOLORY I STALE ---------------------------------------------------------------*/ //k...
dagothar/apollo
apollo/simulink/autopilot_rtwin/autopilot_types.h
<reponame>dagothar/apollo<filename>apollo/simulink/autopilot_rtwin/autopilot_types.h /* * autopilot_types.h * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated ...
dagothar/apollo
src/model.h
<reponame>dagothar/apollo #ifndef _MODEL_H #define _MODEL_H #include <vector> #include <sstream> #include <string> #include <fstream> #include <iostream> #include <GL/glut.h> //#include "log.h" struct Material { std::string name; GLfloat ambient[4]; GLfloat diffuse[4]; GLfloat s...
dagothar/apollo
src/log.h
#ifndef _LOG_H #define _LOG_H #include "main.h" #include "lander.h" /*--------------------------------------------------------------- ZMIENNE ---------------------------------------------------------------*/ //zapis danych do pliku extern bool logging; //czy logowac? const double log_dt = 0.1; //c...
dagothar/apollo
apollo/simulink/autopilot_rtwin/autopilot_data.c
<filename>apollo/simulink/autopilot_rtwin/autopilot_data.c<gh_stars>0 /* * autopilot_data.c * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 ...
dagothar/apollo
apollo/simulink/r_rtwin/r_data.c
<gh_stars>0 /* * r_data.c * * Real-Time Workshop code generation for Simulink model "r.mdl". * * Model version : 1.180 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Sun Jul 17 16:28:22 2011 * * Target selection: rtwin.tlc * Note: GRT includes e...
dagothar/apollo
src/init.h
<filename>src/init.h<gh_stars>0 #ifndef _INIT_H #define _INIT_H #include "vectors.h" #include "display.h" #include "map.h" #include "main.h" /*--------------------------------------------------------------- KOLORY ---------------------------------------------------------------*/ //kolory const fl...
dagothar/apollo
src/lander.h
#ifndef _LANDER_H #define _LANDER_H #include <vector> #include <GL/glut.h> #include "main.h" #include "init.h" #include "model.h" #include "vectors.h" #include "map.h" #include "simulink.h" #include "msg.h" /*--------------------------------------------------------------- STALE LADOWNIKA -----...
dagothar/apollo
apollo/simulink/r_rtwin/r.c
/* * r.c * * Real-Time Workshop code generation for Simulink model "r.mdl". * * Model version : 1.180 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Sun Jul 17 16:28:22 2011 * * Target selection: rtwin.tlc * Note: GRT includes extra infrastructu...
dagothar/apollo
src/msg.h
<reponame>dagothar/apollo<filename>src/msg.h #ifndef _MSG_H #define _MSG_H #include <vector> #include <string> #include <GL/glut.h> #include "main.h" #include "init.h" /*--------------------------------------------------------------- STALE --------------------------------------------------------...
dagothar/apollo
apollo/simulink/autopilot_rtwin/autopilot.c
<reponame>dagothar/apollo<gh_stars>0 /* * autopilot.c * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 19:43:27 2011 * * Target selection...
dagothar/apollo
src/sound.h
#ifndef _SOUND_H #define _SOUND_H #include <windows.h> #include <SDL/SDL.h> #include <SDL/SDL_mixer.h> #include "display.h" #include "main.h" /*--------------------------------------------------------------- LISTA DZWIEKOW ---------------------------------------------------------------*/ //maks...
dagothar/apollo
apollo/simulink/r_rtwin/r_types.h
/* * r_types.h * * Real-Time Workshop code generation for Simulink model "r.mdl". * * Model version : 1.180 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Sun Jul 17 16:28:22 2011 * * Target selection: rtwin.tlc * Note: GRT includes extra infras...
dagothar/apollo
src/control.h
#ifndef _CONTROL_H #define _CONTROL_H #include "main.h" #include "map.h" #include "log.h" #include "msg.h" /*--------------------------------------------------------------- ZMIENNE ---------------------------------------------------------------*/ //sterowanie WSADem extern bool WSAD_flag; //0 - s...
dagothar/apollo
src/display.h
#ifndef _DISPLAY_H #define _DISPLAY_H #include <GL/glut.h> #include "main.h" #include "init.h" #include "hud.h" #include "lander.h" #include "simulink.h" #include "sound.h" /*--------------------------------------------------------------- PARAMETRY OKNA I KAMERY -------------------------------...
dagothar/apollo
src/vectors.h
<filename>src/vectors.h<gh_stars>0 #ifndef _VEC_H #define _VEC_H #include <cmath> #include "model.h" struct Quaternion; struct Vector { double x, y, z; Vector(); Vector(const Vector &v); Vector(const Quaternion &q); Vector(const double _x, const double _y, const double _z); ...
dagothar/apollo
apollo/simulink/autopilot_rtwin/rtmodel.h
<reponame>dagothar/apollo /* * rtmodel.h: * * Real-Time Workshop code generation for Simulink model "autopilot.mdl". * * Model version : 1.184 * Real-Time Workshop version : 7.5 (R2010a) 25-Jan-2010 * C source code generated on : Tue Jul 19 19:43:27 2011 * * Target selection: rtwin.tlc...
MistEO/meojson
include/json_exception.h
#pragma once #include <exception> #include <string> namespace json { class exception : public std::exception { public: exception() = default; exception(const std::string& msg); exception(const exception&) = default; exception& operator=(const exception&) = default; ...