repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
MrJaeqx/ESA--WORK
youbot/youbot_driver/src/soem/oshw/linux/oshw.c
/****************************************************************************** * * *** *** * *** *** *** * *** **** ********** *** ***** *** **** ***** * ********* ********** *** ********* ...
MrJaeqx/ESA--WORK
youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_powerpc/oro_arch.h
#ifndef __ORO_ARCH_POWERPC__ #define __ORO_ARCH_POWERPC__ #include "oro_atomic.h" #include "oro_system.h" #endif /* __ORO_ARCH_POWERPC__ */
MrJaeqx/ESA--WORK
youbot/youbot_driver_ros_interface/include/youbot_driver_ros_interface/YouBotConfiguration.h
<gh_stars>1-10 /****************************************************************************** * Copyright (c) 2011 * Locomotec * * Author: * <NAME> * * * This software is published under a dual-license: GNU Lesser General Public * License LGPL 2.1 and BSD license. The dual-license implies that users of this ...
MrJaeqx/ESA--WORK
youbot/youbot_driver/include/youbot_driver/soem/ethercatconfiglist.h
<reponame>MrJaeqx/ESA--WORK /* * Simple Open EtherCAT Master Library * * File : ethercatconfiglist.h * Version : 1.3.0 * Date : 24-02-2013 * Copyright (C) 2005-2013 <NAME> v.o.f. * Copyright (C) 2005-2013 <NAME> * Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven * * SOEM is fre...
dvuckovic/infero
src/infero/clustering/ClusteringDBscan.h
<reponame>dvuckovic/infero /* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue...
dvuckovic/infero
src/infero/clustering/Clustering.h
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
dvuckovic/infero
src/infero/models/InferenceModelONNX.h
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
dvuckovic/infero
src/infero/api/examples/runner.c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
dvuckovic/infero
src/infero/api/infero.h
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
arves100/SLikeNet
DependentExtensions/SQLite3Plugin/Logger/ServerOnly/jpeg_memory_dest.h
/* * This file was taken from RakNet 4.082 without any modifications. * Please see licenses/RakNet license.txt for the underlying license and related copyright. */ // From http://www.codeguru.com/forum/archive/index.php/t-378333.html #include "jpeglib.h" /* This a custom destination manager for jpeglib that...
arves100/SLikeNet
Source/include/slikenet/LocklessTypes.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
DependentExtensions/Lobby2/Rooms/RoomsPlugin.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
DependentExtensions/SQLite3Plugin/Logger/ClientOnly/Optional/Ogre3D_DX9_BackbufferGrabber.h
/* * This file was taken from RakNet 4.082 without any modifications. * Please see licenses/RakNet license.txt for the underlying license and related copyright. */ #ifndef OGRE3D_DX9_BACKBUFFER_GRABBER_H #define OGRE3D_DX9_BACKBUFFER_GRABBER_H #include "DX9_BackbufferGrabber.h" #include "OgreRenderWindow....
arves100/SLikeNet
DependentExtensions/Autopatcher/MemoryCompressor.h
<gh_stars>100-1000 /* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.t...
arves100/SLikeNet
Samples/MasterServer/MasterCommon.h
<reponame>arves100/SLikeNet /* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet ...
arves100/SLikeNet
DependentExtensions/Ogre3DInterpDemo/TransformationHistory.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
DependentExtensions/Autopatcher/AutopatcherMySQLRepository/AutopatcherMySQLRepository.h
<reponame>arves100/SLikeNet /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be fo...
arves100/SLikeNet
DependentExtensions/Lobby2/Steam/Lobby2Client_Steam.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
Samples/iOS/ChatClient/ChatClient/ServerDetailsViewController.h
/* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.txt file in the same...
arves100/SLikeNet
DependentExtensions/Lobby2/Lobby2ResultCode.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
Samples/CrashReporter/CrashReporter.h
<reponame>arves100/SLikeNet /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be fo...
arves100/SLikeNet
DependentExtensions/openssl/include/x86/debug/openssl/modes.h
/* ==================================================================== * Copyright (c) 2008 The OpenSSL Project. All rights reserved. * * Rights for redistribution and usage in source and binary * forms are granted according to the OpenSSL license. */ #include <stddef.h> typedef void (*block128_f) (const unsign...
arves100/SLikeNet
Samples/WindowsStore8/App.xaml.h
/* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.txt file in the sam...
arves100/SLikeNet
Source/include/slikenet/osx_adapter.h
<gh_stars>100-1000 /* * Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt) * * This source code is licensed under the MIT-style license found in the * license.txt file in the root directory of this source tree. * * * This file declares adapters for all MS-specific functions used throughout SLikeNet. ...
arves100/SLikeNet
DependentExtensions/Lobby2/Lobby2Message.h
<reponame>arves100/SLikeNet /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be fo...
arves100/SLikeNet
Samples/PHPDirectoryServer2/PHPDirectoryServer2.h
<gh_stars>100-1000 /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in th...
arves100/SLikeNet
DependentExtensions/Lobby2/Rooms/IntervalTimer.h
<filename>DependentExtensions/Lobby2/Rooms/IntervalTimer.h /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant ...
arves100/SLikeNet
DependentExtensions/SQLite3Plugin/SQLite3PluginCommon.h
<gh_stars>100-1000 /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in th...
arves100/SLikeNet
DependentExtensions/Lobby2/Lobby2Presence.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
arves100/SLikeNet
Samples/WinPhone8/Direct3DBase.h
<reponame>arves100/SLikeNet<filename>Samples/WinPhone8/Direct3DBase.h /* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * o...
arves100/SLikeNet
DependentExtensions/SQLite3Plugin/Logger/ClientOnly/Optional/SQLiteClientLogger_PacketLogger.h
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.tx...
DatBoiJay3/xenia
src/xenia/gpu/vulkan/shaders/bin/rect_list_geom.h
<reponame>DatBoiJay3/xenia<gh_stars>1-10 // generated from `xb genspirv` // source: rect_list.geom const uint8_t rect_list_geom[] = { 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, 0x08, 0x00, 0xFB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x11, ...
DatBoiJay3/xenia
src/xenia/gpu/vulkan/shaders/bin/dummy_frag.h
<reponame>DatBoiJay3/xenia // generated from `xb genspirv` // source: dummy.frag const uint8_t dummy_frag[] = { 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, 0x08, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x2B...
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
Chapter07/loop_funct.c
<reponame>PacktPublishing/Secret-Recipes-of-the-Python-Ninja double add(double x, double y) { return x + y; } int main(void) { int i = 0; double x = 0; while (i < 1000000000) { x += 1.0; add(x, x); i++; } return 0; }
nliviu/dallas-onewire
include/DallasOnewire.h
<filename>include/DallasOnewire.h #pragma once #include "Dallas.h" class DallasOnewire : public Dallas { public: DallasOnewire(uint8_t pin); ~DallasOnewire(); };
nliviu/dallas-onewire
include/mgos_dallas_onewire.h
#pragma once #include "mgos_dallas_interface.h" #ifdef __cplusplus extern "C" { #endif /* * Initializes the mgos_dallas_onewire driver with a GPIO `pin` * Return value: handle opaque pointer. */ Dallas *mgos_dallas_create_onewire(uint8_t pin); #ifdef __cplusplus } #endif
nliviu/dallas-onewire
src/mgos_dallas_onewire_c.c
<gh_stars>0 #include <stdbool.h> bool mgos_dallas_onewire_init(void) { return true; }
jasonfish4/crb00m
src/Driver.c
#include <ntifs.h> #include <ntdef.h> #include <wdf.h> #include <intrin.h> #define WP_OFF 0 #define WP_ON 1 #define BASE_SIGNATURE 0 #define NT_SIGNATURE 1 #define K32_ADDRESS NULL #define K32_SHELL_BUFFER NULL #define K32_SIZE 0 typedef unsigned long long QWORD; DRIVER_INITIALIZE DriverEntry; PDEVICE_OBJECT pDevice...
p2/sqlk
sqlk.h
<reponame>p2/sqlk // // sqlk.h // sqlk // // Created by <NAME> on 11/12/11. // Copyright (c) 2011 <NAME>. All rights reserved. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // /// SQLog() calls NSLog with some formatting if DEBUG is defin...
p2/sqlk
Classes/SQLiteObject.h
// // SQLiteObject.h // SQLiteKit // // Created by <NAME> on 22.09.09. // Copyright 2009 <NAME>. All rights reserved. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import <Foundation/Foundation.h> #import "FMDatabase.h" #import "FMResu...
p2/sqlk
Classes/SQLKColumnStructure.h
// // SQLiteStructureTableRow.h // SQLiteKit // // Created by <NAME> on 11.09.10. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import <Foundation/Foundation.h> @class SQLKTableStructure; /** * Instances of this class represent colu...
p2/sqlk
Classes/SQLKTableStructure.h
// // SQLiteStructureTable.h // SQLiteKit // // Created by <NAME> on 11.09.10. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import <Foundation/Foundation.h> @class SQLKStructure; @class SQLKColumnStructure; @class FMDatabase; /** *...
p2/sqlk
Unit Testing (iOS)/SQLKTestObject.h
<filename>Unit Testing (iOS)/SQLKTestObject.h<gh_stars>0 // // SQLKTestObject.h // sqlk // // Created by <NAME> on 7/14/12. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import "SQLiteObject.h" @interface SQLKTestObject : SQLiteObject ...
p2/sqlk
Unit Testing (iOS)/UnitTesting_iOS.h
// // UnitTesting_iOS.h // Unit Testing (iOS) // // Created by <NAME> on 7/8/12. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import <SenTestingKit/SenTestingKit.h> @interface UnitTesting_iOS : SenTestCase @end
p2/sqlk
Classes/SQLKStructure.h
// // SQLiteStructure.h // SQLiteKit // // Created by <NAME> on 11.09.10. // Copyright 2010 <NAME>. All rights reserved. // This sourcecode is released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0.html // #import <Foundation/Foundation.h> @class SQLKTableStructure; @class ...
PINTO0309/ros_intel_movidius_ncs
movidius_ncs_lib/include/movidius_ncs_lib/ncs_manager.h
<filename>movidius_ncs_lib/include/movidius_ncs_lib/ncs_manager.h /* * Copyright (c) 2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
knu21-coders/N-Gine
Engine(Dx11)/NGineHashMap.h
#pragma once #include "framework.h" class NgineMap { private: void* _map[10] = { 0 }; public: void Add(const WCHAR* unicode_name, void** _target) { if(unicode_name[0] == '\0') return; } };
knu21-coders/N-Gine
Engine(Dx11)/Engine(Dx11).h
#pragma once #include "resource.h" #include "DXFamily.h" #include "Win32_.h"
knu21-coders/N-Gine
Engine(Dx11)/framework.h
<filename>Engine(Dx11)/framework.h // header.h : include file for standard system include files, // or project specific include files // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Files #include <windows.h> #include <...
knu21-coders/N-Gine
Engine(Dx11)/Shader.h
<gh_stars>1-10 #pragma once #include "framework.h" inline HRESULT CompileShader(const WCHAR* szFileName, const D3D_SHADER_MACRO* defines, LPCSTR szEntryPoint, LPCSTR szShaderModel, ID3DBlob** ppBlobOut) { HRESULT hr = S_OK; DWORD dwShaderFlags = D3DCOMPILE_ENABLE_STRICTNESS; #ifdef _DEBUG dwShaderFlags |= D3DCOM...
erfanjazebnikoo/radio_group_form_field
ios/Classes/RadioGroupFormFieldPlugin.h
<filename>ios/Classes/RadioGroupFormFieldPlugin.h<gh_stars>0 #import <Flutter/Flutter.h> @interface RadioGroupFormFieldPlugin : NSObject<FlutterPlugin> @end
potato512/DeviceLocation
SYCLLocation/SYCLLocation.h
// // SYCLLocation.h // zhangshaoyu // // Created by zhangshaoyu on 16/11/24. // Copyright © 2016年 zhangshaoyu. All rights reserved. // github学习地址:https://github.com/potato512/SYCLLocation #import <CoreLocation/CoreLocation.h> // 导入位置头文件 #import <CoreLocation/CLLocationManager.h> @interface SYCLLocation : CLLoc...
olehnikolaiev/sgx-ra-sample
sgx_stub.c
/* Copyright 2017 Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redist...
samludford/syncopate
BeatMachine/BeatMachine/ALAudioPlayer.h
// // ALAudioPlayer.h // SimpleSampler // // Created by Work on 24/04/2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <OpenAl/al.h> #import <OpenAL/alc.h> #include <AudioToolbox/AudioToolbox.h> @interface ALAudioPlayer : NSObject + (ALAudioPlayer *) sharedIns...
samludford/syncopate
Framework/Syncopate/build/Syncopate.build/Release-iphonesimulator/Syncopate.build/DerivedSources/Syncopate_vers.c
<reponame>samludford/syncopate const unsigned char SyncopateVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:Syncopate PROJECT:Syncopate-1" "\n"; const double SyncopateVersionNumber __attribute__ ((used)) = (double)1.;
samludford/syncopate
Framework/Syncopate/Syncopate/Syncopate.h
// // Syncopate.h // Syncopate // // Created by Work on 23/07/2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Syncopate. FOUNDATION_EXPORT double SyncopateVersionNumber; //! Project version string for Syncopate. FOUNDATION_EXPORT const unsigned c...
KLIANS/ErrorView
LErrorView/LErrorView.h
<filename>LErrorView/LErrorView.h<gh_stars>0 // // LErrorView.h // SYStickProject // // Created by KLIANS on 2017/10/25. // Copyright © 2017年 dengsir. All rights reserved. // #import <Foundation/Foundation.h> @interface LErrorView : NSObject @end
gummoni/FreeRTOS_Job
job.h
/* The MIT License (MIT) Copyright (c) 2018 <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, publis...
MintPond/coin-zcoin
src/znodesync-interface.h
#ifndef ZNODESYNC_INTERFACE_H #define ZNODESYNC_INTERFACE_H #include "masternode-sync.h" /** * Class for getting sync status with either version of znodes (legacy and evo) * This is temporary measure, remove it when transition to evo znodes is done on mainnet */ class CZnodeSyncInterface { private: // is it e...
MintPond/coin-zcoin
src/qt/notifyznodewarning.h
#ifndef ZCOIN_NOTIFYZNODEWARNING_H #define ZCOIN_NOTIFYZNODEWARNING_H class NotifyZnodeWarning { public: ~NotifyZnodeWarning(); static void notify(); static bool shouldShow(); static bool nConsidered; }; #endif //ZCOIN_NOTIFYZNODEWARNING_H
MintPond/coin-zcoin
src/znodeman.h
<gh_stars>0 // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef ZNODEMAN_H #define ZNODEMAN_H #include "znode.h" #include "sync.h" using namespace std; class CZnodeM...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/file_test/file_test_main.c
<reponame>granum-space/cansat-2017-2018<gh_stars>0 #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int file_test_main(int argc, char *argv[]) #endif { printf("Hello world, this is file test!\n"); int fd = open("/mnt/s...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/gps_test/gps_test_main.c
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <termios.h> #include <sys/ioctl.h> #include "../../include/gpsutils/minmea.h" #define MSG_BUF_SIZE 256 static size_t _msg_carret; static char _msg_buffer[MSG_BUF_SIZE]; #ifdef CONFIG_BUILD_KERNEL int main(int a...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/madgwick/quaternion.c
<filename>research/Madgwick/Madgwick/src/madgwick/quaternion.c /* * quaternion.c * * Created on: 01 нояб. 2017 г. * Author: developer */ #include "quaternion.h" #include <math.h> quaternion_t quat_mult(quaternion_t * a, double k) { quaternion_t result; result.w = a->w * k; result.x = a->x * k; resul...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/magnetometer.c
/* * magnetometer.c * * Created on: 2 нояб. 2017 г. * Author: developer */ /* * magnetometer.c * * Created on: 26 окт. 2017 г. * Author: developer */ #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_spi.h" #include "magnetometer.h" #include "diag/Trace.h" #define BIT_READ 1 #define BIT_WRITE 0...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/mpu_test/mpu_test_main.c
<gh_stars>0 #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <unistd.h> #include <errno.h> #include <nuttx/sensors/mpu6000.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int mpu_test_main(int argc, char *argv[]) #endif { printf("This is MPU6000 test...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/src/devctl.c
<reponame>granum-space/cansat-2017-2018<gh_stars>0 #include <stdlib.h> #include <stdbool.h> #include <string.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_i2c.h" #include "stm32f4xx_hal_spi.h" #include "stm32f4xx_hal_uart.h" #include "stm32f4xx_hal_gpio.h" #include "FreeRTOS.h" #include "semphr.h" #include "...
granum-space/cansat-2017-2018
research/omnubus-reborn/src/bmp280_local.c
<reponame>granum-space/cansat-2017-2018<gh_stars>0 /* * bmp280_local.c * * Created on: 5 янв. 2018 г. * Author: snork */ #include "bmp280_local.h" #include "FreeRTOS.h" #include "task.h" #include "board_ctl.h" static void _rtos_delay_ms(uint32_t ms) { vTaskDelay(ms*configTICK_RATE_HZ/1000); } void bmp...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/main.c
// // This file is part of the GNU ARM Eclipse distribution. // Copyright (c) 2014 <NAME>. // // ---------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <math.h> #include "diag/Trace.h" #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_rcc.h" #inc...
granum-space/cansat-2017-2018
research/omnubus-reborn/drivers/src/bmp280.c
<gh_stars>0 /* **************************************************************************** * Copyright (C) 2015 - 2016 Bosch Sensortec GmbH * * File : bmp280.c * * Date : 2016/07/01 * * Revision : 2.0.5(Pressure and Temperature compensation code revision is 1.1) * * Usage: Sensor Driver for BMP280 sensor * ...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/sonar/sonar_main.c
<gh_stars>0 #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <nuttx/sensors/gy_us42.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int sonar_main(int argc, char *argv[]) #endif { printf("hello world, this is sonar app!\n"); int fd = open("/dev/sonar0"...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/granum/common.h
/* * common.h * * Created on: 31 мая 2018 г. * Author: developer */ #ifndef APPS_GRANUM_GRANUM_COMMON_H_ #define APPS_GRANUM_GRANUM_COMMON_H_ #include <nuttx/fs/fs.h> extern int nrf_fd; extern int file_fd; extern int raspberry_fd; #define DEBUG (void)//printf typedef enum { GR_STATE_BOOTING = 0, GR_ST...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/src/stm32f4xx_hal_spi_msp.c
<reponame>granum-space/cansat-2017-2018<filename>research/omnubus-reborn/system-usr/src/stm32f4xx_hal_spi_msp.c #include "stm32f4xx_hal.h" static void _spi3_init(SPI_HandleTypeDef * hspi) { (void)hspi; // SPI3 находится на порту C __HAL_RCC_GPIOC_CLK_ENABLE(); // FIXME: Нигде не выключается GPIO_InitTypeDef bmp...
granum-space/cansat-2017-2018
research/omnubus-reborn/src/bmp280_local.h
/* * bmp280_local.h * * Created on: 5 янв. 2018 г. * Author: snork */ #ifndef BMP280_LOCAL_H_ #define BMP280_LOCAL_H_ #include <bmp280.h> void bmp280_local_init(struct bmp280_t * device); #endif /* BMP280_LOCAL_H_ */
granum-space/cansat-2017-2018
src/board/rpi/hum-test/humidity.h
<filename>src/board/rpi/hum-test/humidity.h /* * humidity.h * * Created on: 11 мая 2018 г. * Author: developer */ #ifndef HUMIDITY_H_ #define HUMIDITY_H_ #include <stdint.h> #include <stdio.h> typedef enum { AM2320_ERROR_OK = 0, AM2320_ERROR_OPEN, AM2320_ERRROR_IOCTL, AM2320_ERROR_WRITE, AM2320_ERROR...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/granum/threads/madgwick_thread.h
<gh_stars>0 /* * madgwick_thread.h * * Created on: 31 мая 2018 г. * Author: developer */ #ifndef APPS_GRANUM_GRANUM_THREADS_MADGWICK_THREAD_H_ #define APPS_GRANUM_GRANUM_THREADS_MADGWICK_THREAD_H_ pthread_addr_t madgwick_thread(pthread_addr_t arg); #endif /* APPS_GRANUM_GRANUM_THREADS_MADGWICK_THREAD_H_ *...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/lumen/lumen_main.c
<filename>src/board/omnibus/apps/granum/lumen/lumen_main.c #include <stdio.h> #include <unistd.h> #include <sys/ioctl.h> #include <fcntl.h> #include <nuttx/sensors/tsl2561.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int lumen_main(int argc, char *argv[]) #endif { printf("hello world, thi...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/granum/granum_main.c
<filename>src/board/omnibus/apps/granum/granum/granum_main.c #include <sys/stat.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <math.h> ...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/mavlink_test/mavlink_test_main.c
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <sys/stat.h> #include <nuttx/config.h> #include <nuttx/sensors/mpu6000.h> #include <nuttx/...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/lsmd6s3/lsm6ds3.c
#include "../lsmd6s3/lsm6d53_defs.h" #include "../lsmd6s3/lsm6ds3.h" #include "diag/Trace.h" // Запись результата операции в функцию error и переход на метку end в случае, если error != 0 #define SET_AND_GOTO_END_IF_ERROR(x) if (0 != (error = (x))) { goto end; } // =================================================...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/blinky/blinky_main.c
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int blinky_main(int argc, char *argv[]) #endif { printf("hello world, this is blinky app!\n"); int fd = open("/dev/userleds", O_WRONLY); if (fd < 0) { perror...
granum-space/cansat-2017-2018
src/board/rpi/hum-test/humidity.c
<gh_stars>0 /* * humidity.c * * Created on: 11 мая 2018 г. * Author: developer */ #include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <linux/i2c-dev.h> #include <sys/ioctl.h> #include <fcntl.h> #include "humidity.h" #define I2C_DEVICE "/dev/i2c-1" #define AM2320_ADDR 0x5C ...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/granum/common.c
/* * common.c * * Created on: 4 июл. 2018 г. * Author: developer */ #include <sys/types.h> #include "common.h" void send_telem(void * ptr, size_t len) { write(file_fd, ptr, len); fsync(file_fd); write(nrf_fd, ptr, len); write(raspberry_fd, ptr, len); }
granum-space/cansat-2017-2018
src/board/servo_ctl/Project/STM8S_StdPeriph_test/main.c
<reponame>granum-space/cansat-2017-2018 /** ****************************************************************************** * @file Project/main.c * @author MCD Application Team * @version V2.2.0 * @date 30-September-2014 * @brief Main program body ***********************************************...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/src/devctl_connectors.c
#include "devctl.h" #include "granum_common.h" int8_t gr_dev_bmp280_reg_write(uint8_t dev_addr, uint8_t reg_addr, uint8_t * buffer, uint8_t count) { gr_device_selector_t selector = {.pin = BMP280_SS}; gr_dev_writereg(BMP280_IF, selector, reg_addr, buffer, count); }
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/granum_common.h
/* * granum_common.h * * Created on: 10 февр. 2018 г. * Author: developer */ #ifndef GRANUM_COMMON_H_ #define GRANUM_COMMON_H_ #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_i2c.h" #include "FreeRTOS.h" #include "semphr.h" typedef struct { enum { GR_IF_PARAM_SPEED_SLOW, GR_IF_PARAM_SPEED_FAST, ...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/lsm_test/lsm_test_main.c
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <nuttx/config.h> #include <nuttx/sensors/lsm303c.h> #define DEBUG printf #ifdef CONFIG_B...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/board_ctl.h
<filename>research/omnubus-reborn/system-usr/board_ctl.h /* * board-def.h * * Created on: 5 янв. 2018 г. * Author: snork */ #ifndef BOARD_CTL_H_ #define BOARD_CTL_H_ // Определения как сввязаться с тем, что расположено на плате #include <stdbool.h> #include "stm32f4xx_hal.h" void brctl_init(void); // Д...
granum-space/cansat-2017-2018
research/omnubus-reborn/src/main.c
<filename>research/omnubus-reborn/src/main.c #include <stdio.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "diag/Trace.h" #include <stm32f4xx_hal.h> // // //SPI_HandleTypeDef spi; // //void init_hw() //{ // spi.Instance = SPI3; // // spi.Init.BaudRatePrescaler = SPI_BAUDRATEPRE...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/madgwick/quaternion.h
/* * quaternion.h * * Created on: 01 нояб. 2017 г. * Author: developer */ #ifndef MADGWICK_QUATERNION_H_ #define MADGWICK_QUATERNION_H_ typedef struct { double x, y, z; } vector_t; typedef struct { double w, x, y, z; } quaternion_t; quaternion_t quat_mult(quaternion_t * a, double k); double quat_abs(q...
granum-space/cansat-2017-2018
research/omnubus-reborn/freertos-usr/src/hooks.c
/* * hooks.c * * Created on: 5 янв. 2018 г. * Author: snork */ #include "FreeRTOS.h" #include "task.h" #include <stdlib.h> void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ) { (void)xTask; (void)pcTaskName; abort(); } void vApplicationGetIdleTaskMemory(StaticTask_t ** pxIdleTa...
granum-space/cansat-2017-2018
src/board/omnibus/apps/graphics/ft80x/ft80x_regs.c
/**************************************************************************** * apps/graphics/ft80x/ft80x_regs.c * * Copyright (C) 2018 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
granum-space/cansat-2017-2018
src/board/servo_ctl/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/main.c
<gh_stars>0 /** ****************************************************************************** * @file UART1_Printf\main.c * @brief This file contains the main function for: retarget the C library printf * /scanf functions to the UART1 example. * @author MCD Application Team * @version V2.2.0...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/src/board_ctl.c
/* * board_ctl.c * * Created on: 5 янв. 2018 г. * Author: snork */ #include "board_ctl.h" #include <stdbool.h> #include "stm32f4xx_hal.h" //static SPI_HandleTypeDef _spi1; //static SPI_HandleTypeDef _spi2; static SPI_HandleTypeDef _spi3 = { .Instance = SPI3 }; #define BMP280_SPI (&_spi3) inline stati...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/granum/threads/madgwick_thread.c
<filename>src/board/omnibus/apps/granum/granum/threads/madgwick_thread.c /* * madgwick_thread.c * * Created on: 31 мая 2018 г. * Author: developer */ #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <time.h> ...
granum-space/cansat-2017-2018
src/board/rpi/hum-test/main.c
<filename>src/board/rpi/hum-test/main.c /* * main.c * * Created on: 12 мая 2018 г. * Author: developer */ #include "humidity.h" int main() { while (1) { float humidity, temperature; am2320_errors_t err = 0; err = am2320_get_data(&humidity, &temperature); printf("error: %d h: %.1f t: %.1f\n", e...
granum-space/cansat-2017-2018
src/board/servo_ctl/Project/stm8_granum_servo_ctl/main.c
/** ****************************************************************************** * @file Project/main.c * @author MCD Application Team * @version V2.2.0 * @date 30-September-2014 * @brief Main program body ****************************************************************************** ...
granum-space/cansat-2017-2018
src/board/omnibus/apps/granum/nrf_test/nrf_test_main.c
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <unistd.h> #include <nuttx/wireless/nrf24l01.h> #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else int nrf_test_main(int argc, char *argv[]) #endif { printf("This is NRF24L01+ test app!\n"); int fd = open(...
granum-space/cansat-2017-2018
research/Madgwick/Madgwick/src/lsmd6s3/lsm6ds3.h
<filename>research/Madgwick/Madgwick/src/lsmd6s3/lsm6ds3.h<gh_stars>1-10 #ifndef LSM6DS3_H_ #define LSM6DS3_H_ #include <stddef.h> #include <stdint.h> #include <stdbool.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_def.h" #include "stm32f4xx_hal_i2c.h" // Модуль для работы с датчиком STMicro LSM6DS3 /* * М...
granum-space/cansat-2017-2018
research/omnubus-reborn/system-usr/devctl.h
<gh_stars>0 #ifndef DEVCTL_H_ #define DEVCTL_H_ //Уровень абстракции, маскирующий конкретные интерфейсы взаимодействия с устройствами на omnibus #include "granum_common.h" // gr_error_t gr_if_set_params(gr_interface_t * iface, gr_interface_params_t * params); //Функции для работы с регистровыми устройствами (датчик...