repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
Atikur10/snake_water_gun_game | project2.c | #include<stdio.h>
#include<stdlib.h>
#include<time.h>
int Compgame(char you, char comp){
// for draw condition
if (you == comp)
{
return 0;
}
// Non Draw conditions
if(you == 's' && comp == 'w'){
return 1;
}
else if(you == 'w' && comp == 's')
{... |
hwxue/xhwXNIMDemo | Example/xhwXNIMDemo/xhwwbViewController.h | //
// xhwwbViewController.h
// xhwXNIMDemo
//
// Created by hwxue on 07/01/2019.
// Copyright (c) 2019 hwxue. All rights reserved.
//
@import UIKit;
@interface xhwwbViewController : UIViewController
@end
|
hwxue/xhwXNIMDemo | Example/xhwXNIMDemo/xhwwbAppDelegate.h | //
// xhwwbAppDelegate.h
// xhwXNIMDemo
//
// Created by hwxue on 07/01/2019.
// Copyright (c) 2019 hwxue. All rights reserved.
//
@import UIKit;
@interface xhwwbAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
ccarr66/SHA-256 | src/sha256.h | <gh_stars>0
#include <algorithm>
#include <cstdint>
#include <climits>
class SHA256
{
public:
using word_ty = uint32_t;
using bitLen_ty = size_t;
static constexpr bitLen_ty byteLen = CHAR_BIT;
static constexpr bitLen_ty blockLen = 512;
static constexpr size_t wordLenInByte = sizeof(word_ty);
s... |
mun4w4r/gibran | include/rpigpio.h | <gh_stars>1000+
#define GPIO_LED_DELAY 100000000
#define GPIO_PERI_BASE_OLD 0x20000000
#define GPIO_PERI_BASE_NEW 0x3F000000
#define GPIO_BASE 0x200000
#define PAGE_SIZE (4*1024)
#define BLOCK_SIZE (4*1024)
#define INP_GPIO(g) *(gpio +((g) /10)) &= ~(7 << (((g) %10) *3))
#define OUT_GPIO(g) *(gpio +((g) /10)) |= ... |
huasali/oc-developer-protocol | oc-developer-protocol/Protocol/CryptUtil.h | <reponame>huasali/oc-developer-protocol
//
// CryptUtil.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/25.
//
#import <Foundation/Foundation.h>
#import "CryptHelper.h"
NS_ASSUME_NONNULL_BEGIN
@interface CryptUtil : NSObject
+ (NSMutableDictionary *)inputData;
+ (NSMutableDictionary *)outputData;
... |
huasali/oc-developer-protocol | oc-developer-protocol/ViewController/ProtocolViewController.h | <filename>oc-developer-protocol/ViewController/ProtocolViewController.h
//
// ProtocolViewController.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/25.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ProtocolViewController : UIViewController
@property (nonatomic, copy) NSString *cla... |
huasali/oc-developer-protocol | oc-developer-protocol/Protocol/AESCryptUtil.h | <reponame>huasali/oc-developer-protocol
//
// AESCryptUtil.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/25.
//
#import <Foundation/Foundation.h>
#import "CryptUtil.h"
NS_ASSUME_NONNULL_BEGIN
@interface AESCryptUtil : CryptUtil
/// AES128 CBC 加密 countPadding
+ (NSData *)aescbcEncryptData:(NSData... |
huasali/oc-developer-protocol | oc-developer-protocol/Protocol/OTPCryptUtil.h | <filename>oc-developer-protocol/Protocol/OTPCryptUtil.h<gh_stars>0
//
// OTPCryptUtil.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/25.
//
#import <Foundation/Foundation.h>
#import "CryptUtil.h"
NS_ASSUME_NONNULL_BEGIN
@interface OTPCryptUtil : CryptUtil
/// One-Time Password
/// @param pwdData ... |
huasali/oc-developer-protocol | oc-developer-protocol/ViewController/ViewController.h | //
// ViewController.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/22.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
huasali/oc-developer-protocol | oc-developer-protocol/Protocol/DHCryptUtil.h | //
// DHCryptUtil.h
// oc-developer-protocol
//
// Created by Huasali on 2021/12/3.
//
#import "CryptUtil.h"
NS_ASSUME_NONNULL_BEGIN
@interface DHCryptUtil : CryptUtil
@end
NS_ASSUME_NONNULL_END
|
huasali/oc-developer-protocol | oc-developer-protocol/Protocol/CryptHelper.h | //
// CryptHelper.h
// oc-developer-protocol
//
// Created by Huasali on 2021/11/25.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
#define StringFrom(fmt, ...) [NSString stringWithFormat:fmt,##__VA_ARGS__]
#define LogRed(frmt,...) NSLog((XCODE_COLORS_ESCAPE @"fg249,73,72;" frmt XCODE_COLORS_RESET)... |
YichengZhong/CodeQL_C-C- | Test_Cl/sort.c | #include"sort.h"
void bub_sort(){
int *in;
int i , j;
in = malloc(N*sizeof(int));
srand((unsigned)time(NULL));
ins(i,0,N){
in[i] = rand()%100;
}
ins(i,0,N){
printf("%d%s",in[i],i == N-1 ? "\n" : "->");
}
ins(i,0,N-1){
ins(j,i,N){
if(in[i] >... |
YichengZhong/CodeQL_C-C- | Test_Cl/main.c | <gh_stars>0
#include"sort.h"
int main(){
bub_sort();
int x = x; // BAD: undefined behavior occurs here
x = 0;
return 0;
}
|
YichengZhong/CodeQL_C-C- | Test_Cl/sort.h | #ifndef SORT_H
#define SORT_H
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#define N 10
#define swap(a,b) {a^=b;b^=a;a^=b;}
#define ins(a,b,c) for( a = b ; a < c ; ++a)
void bub_sort();
#endif |
ZpFate/AnalyticSDWebImage | AnalyticSDWebImage/SecondViewController.h | <reponame>ZpFate/AnalyticSDWebImage
//
// SecondViewController.h
// AnalyticSDWebImage
//
// Created by <NAME> on 2019/9/10.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SecondViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
ZpFate/AnalyticSDWebImage | AnalyticSDWebImage/Person.h | <gh_stars>1-10
//
// Person.h
// AnalyticSDWebImage
//
// Created by <NAME> on 2019/8/9.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface Person : NSObject
@property (nonatomic, copy) void(^runBlock)(NSString *name);
@end
NS_ASSUME_NONNUL... |
ZpFate/AnalyticSDWebImage | AnalyticSDWebImage/SDWebImage/SDWebImageDefine.h | <filename>AnalyticSDWebImage/SDWebImage/SDWebImageDefine.h
/*
* This file is part of the SDWebImage package.
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "SDWebImageCompat.h"
typedef void(^SDWebIm... |
LeoMarin/OpenGL | CollisionDetection/src/CollisionDetection.h | #pragma once
#include "Point.h"
#include "QuadTree.h"
#include "SpatialHash.h"
#include <GLCore.h>
#include <GLCoreUtils.h>
class CollisionDetection : public GLCore::Layer
{
public:
enum class CollisionSystem
{
BruteForce = 0, QuadTree, SpatialHashing
};
CollisionDetection();
virtual ~CollisionDetection();
... |
LeoMarin/OpenGL | CollisionDetection/src/SpatialHash.h | #pragma once
#include <vector>
#include <cmath>
#include "Point.h"
#include <iostream>
class SpatialHash
{
public:
SpatialHash(float boundaryX, float boundaryY, int numberOfCellsPerRow, int numberOfCellsPerColumn);
~SpatialHash();
// Hash function
int GetCellIndex(Point& point);
void FillSpatialHashTable(std::... |
LeoMarin/OpenGL | CollisionDetection/src/QuadTree.h | <reponame>LeoMarin/OpenGL
#pragma once
#include "Point.h"
#include <vector>
class QuadTree
{
public:
enum class ChildPosition
{
UpRight = 0, UpLeft, DownLeft, DownRight, Root
};
QuadTree(); // creating parent node
QuadTree(QuadTree& parent, ChildPosition childPosition); // creating child node
~QuadTree();
... |
LeoMarin/OpenGL | CollisionDetection/src/Point.h | #pragma once
#include <cmath>
struct Vector2
{
float x;
float y;
};
struct Point
{
Vector2 position;
Vector2 speed;
float size;
Point(float posX, float posY, float speedX, float speedY, float size);
void CollisionDetection(Point& other);
void Move(float speed, float boundaryX, float boundaryY);
};
struct ... |
georgelam6/SLECS | src/ComponentManager.h | #pragma once
#include <unordered_map>
#include <memory>
#include "ECSCommon.h"
#include "ComponentArray.h"
class ComponentManager {
private:
std::unordered_map<const char*, ComponentType> m_componentTypes;
std::unordered_map<const char*, std::shared_ptr<IComponentArray>> m_componentArrays;
ComponentType m... |
georgelam6/SLECS | src/ComponentArray.h | <reponame>georgelam6/SLECS<gh_stars>0
#pragma once
#include <unordered_map>
#include <array>
#include <cassert>
#include "ECSCommon.h"
class IComponentArray {
public:
virtual ~IComponentArray() = default;
virtual void EntityDestroyed(EntityHandle ent) = 0;
};
template <typename T>
class ComponentArray : publi... |
georgelam6/SLECS | src/EntityManager.h | #pragma once
#include "ECSCommon.h"
#include <queue>
#include <array>
class EntityManager {
private:
std::queue<EntityHandle> m_availableEntities;
std::array<Signature, MAX_ENTITIES> m_signatures;
uint32_t m_livingEntityCount{0};
public:
EntityManager();
EntityHandle CreateEntity();
void Destroy... |
georgelam6/SLECS | include/SLECS.h | #pragma once
#include <memory>
#include "../src/ECSCommon.h"
#include "../src/ComponentManager.h"
#include "../src/EntityManager.h"
#include "../src/SystemManager.h"
#include "../src/ComponentArray.h"
#include "../src/System.h"
class ECS {
private:
std::unique_ptr<ComponentManager> m_componentManager;
std::u... |
georgelam6/SLECS | src/ECSCommon.h | #pragma once
#include <cstdint>
#include <bitset>
using EntityHandle = std::uint32_t;
using ComponentType = std::uint8_t;
static const std::uint32_t MAX_ENTITIES = 5000;
static const std::uint8_t MAX_COMPONENTS = 32;
using Signature = std::bitset<MAX_COMPONENTS>;
|
georgelam6/SLECS | src/SystemManager.h | <gh_stars>0
#pragma once
#include <unordered_map>
#include <memory>
#include <cassert>
#include "System.h"
class SystemManager {
private:
std::unordered_map<const char*, Signature> m_signatures;
std::unordered_map<const char*, std::shared_ptr<System>> m_systems;
public:
void EntityDestroyed(EntityHandle en... |
georgelam6/SLECS | src/System.h | <reponame>georgelam6/SLECS
#pragma once
#include <set>
#include "ECSCommon.h"
class System {
public:
std::set<EntityHandle> m_entities;
};
|
zyvv/BBUpdate | BBUpdate/BBUpdate.h | //
// BBUpdate.h
// BBUpdate
//
// Created by 张洋威 on 2016/10/20.
// Copyright © 2016年 yhyvr.<EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BBUpdate : NSObject
/**
配置应用商店appID
@param appID 应用商店appID
*/
+ (void)updateWithAppID:(nonnull NSString *)appID;
/**
配置更新弹框提示
@param a... |
iambhavikmistry/banksystem | BankSystem.c | #include<stdio.h>
main()
{
int i,j,k,l,co,n;
float balance=0,add,wid,temp;
char us[6],ps[6],yn;
login:
printf("Enter Username : \n");
fflush(stdin);
scanf("%[^\n]",us);
printf("Enter Password : \n");
fflush(stdin);
scanf("%[^\n]",ps);
// printf("%s",us);
// prin... |
pepstack/pytools | templates/%clib%/src/common/misc.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/src/common/shmipc.h | <filename>templates/%clib%/src/common/shmipc.h
/***********************************************************************
* Copyright (c) 2008-2080, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
pepstack/pytools | templates/%clib%/src/common/timeut.h | <gh_stars>0
/***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
pepstack/pytools | templates/%clib%/src/common/unsema.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/deps/libshttpd/include/shttpd/shttpd.h | <reponame>pepstack/pytools
/**
* Copyright (c) 2004-2008 <NAME> <<EMAIL>>
* All rights reserved
*
* "THE BEER-WARE LICENSE" (Revision 42):
* Sergey Lyubka wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth i... |
pepstack/pytools | templates/%clib%/src/common/ringbuf.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/src/common/threadpool.h | /***********************************************************************
* 2014-06-18: last modified by cheungmine
*
* Copyright (c) 2011, <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
pepstack/pytools | templates/%clib%/src/common/emerglog.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/src/common/threadpool.c | <reponame>pepstack/pytools<gh_stars>0
/**********************************************************************
* 2018-11-20: last modified by cheungmine
*
* Copyright (c) 2011, <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
pepstack/pytools | templates/%clib%/src/common/cstrbuf.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/src/common/readconf.c | <gh_stars>0
/***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
pepstack/pytools | templates/%clib%/src/common/readconf.h | <filename>templates/%clib%/src/common/readconf.h
/***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
pepstack/pytools | templates/%clib%/deps/libclogger/include/clogger/clogger_api.h | <reponame>pepstack/pytools<filename>templates/%clib%/deps/libclogger/include/clogger/clogger_api.h
/**
* clogger_api.h
*/
#ifndef CLOGGER_API_H_PUBLIC
#define CLOGGER_API_H_PUBLIC
#ifdef __cplusplus
extern "C" {
#endif
#include "clogger_def.h"
CLOGGER_API const char * clogger_lib_version(const char **_libname)... |
pepstack/pytools | templates/%clib%/src/common/win32/mman.h | /**
* mman.h
* mmap api for windows only.
*
* In particular, mmap, munmap, and msync are not available on Windows. These
* replacements are used on both Cygwin and MinGW. (On Cygwin the built-in mmap
* has no write support, and is not used).
*
* Special thanks to <NAME> for contributing mmap.c and mman.h
... |
pepstack/pytools | templates/%clib%/src/common/uatomic.h | <gh_stars>0
/***********************************************************************
* Copyright (c) 2008-2080 pepstack.<EMAIL>, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
pepstack/pytools | templates/%clib%/src/common/smallregex.h | <gh_stars>0
/******************************************************************************
* Copyright (c) 2017-2018 Relkom s.r.o <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
pepstack/pytools | templates/%clib%/src/common/uthash_incl.h | /***********************************************************************
* Copyright (c) 2008-2080 cheungmine, pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redis... |
pepstack/pytools | templates/%clib%/src/common/win32/mmap.c | /**
* mman.c
* mmap api for windows only.
*
* In particular, mmap, munmap, and msync are not available on Windows. These
* replacements are used on both Cygwin and MinGW. (On Cygwin the built-in mmap
* has no write support, and is not used).
*
* Special thanks to <NAME> for contributing mmap.c and mman.h
... |
pepstack/pytools | templates/%clib%/deps/libclogger/include/clogger/clogger_def.h | /**
* clogger_def.h
*/
#ifndef CLOGGER_DEF_H_INCLUDED
#define CLOGGER_DEF_H_INCLUDED
#if defined(__cplusplus)
extern "C" {
#endif
#include <stdint.h>
#include <time.h>
#if defined(CLOGGER_DLL)
/* win32 dynamic dll */
# ifdef CLOGGER_EXPORTS
# define CLOGGER_API __declspec(dllexport)
# else
# define CLOGGER_AP... |
pepstack/pytools | templates/%clib%/src/common/md5sum.h | <reponame>pepstack/pytools
/***********************************************************************
* Copyright (c) 2008-2080 pep<EMAIL>, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
pepstack/pytools | templates/%clib%/src/common/rtclock.h | <filename>templates/%clib%/src/common/rtclock.h
/***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
pepstack/pytools | templates/%clib%/src/common/colib_api.h | /**
* colib_api.h
*/
#ifndef _COLIB_API_H_
#define _COLIB_API_H_
#if defined(__cplusplus)
extern "C" {
#endif
#include <common/memapi.h>
#include <common/unitypes.h>
#ifndef coiid_t
typedef ub8 coiid_t;
#endif
#define IID_CompntBase ((coiid_t) 0x00000000)
/**
* Component library (XXX_colib.so) must impl... |
pepstack/pytools | templates/%clib%/src/common/jniutils.h | <filename>templates/%clib%/src/common/jniutils.h<gh_stars>0
/**
* jniutils.h
* JNI utility api.
*/
#include "misc.h"
#include <jni.h>
#ifndef _JNI_UTILS_H_
#define _JNI_UTILS_H_
#ifdef __cplusplus
extern "C" {
#endif
struct JNIRuntimeContext
{
jint jniVersion;
HINSTANCE jvmdll;
Jav... |
pepstack/pytools | templates/%clib%/src/common/shmmbuf-win.h | <filename>templates/%clib%/src/common/shmmbuf-win.h
/***********************************************************************
* Copyright (c) 2008-2080, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
pepstack/pytools | templates/%clib%/src/common/smallregex.c | /******************************************************************************
* Copyright (c) 2017-2018 Relkom s.r.o <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1... |
pepstack/pytools | templates/%clib%/src/common/shmmap.h | <gh_stars>0
/***********************************************************************
* Copyright (c) 2008-2080, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
pepstack/pytools | templates/%clib%/src/common/memord.h | <filename>templates/%clib%/src/common/memord.h
/***********************************************************************
* ©2013-2016 <NAME>.
* Distributed under the simplified BSD license (see the license file that
* should have come with this header).
* Uses Jeff Preshing's semaphore implementation (under the term... |
pepstack/pytools | templates/%clib%/src/common/refcobject.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/pytools | templates/%clib%/src/common/coroutine.h | <reponame>pepstack/pytools
/* coroutine.h
*
* Coroutine mechanics, implemented on top of standard ANSI C. See
* https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html for
* a full discussion of the theory behind this.
*
* To use these macros to define a coroutine, you need to write a
* function that look... |
crnbaker/MONAI | monai/csrc/utils/tensor_description.h | <reponame>crnbaker/MONAI
#include <torch/extension.h>
// Struct to easily cache descriptive information about a tensor.
// This is helpful as regular calls to the size and stride member
// functions of tensors appear to cause memory issues.
struct TensorDescription {
public:
TensorDescription(torch::Tensor tensor)... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c | /*
* FreeRTOS+TCP 2.2.x Labs copy
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restrict... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/Common/FreeRTOS_Plus_UDP_Demos/TraceMacros/Example1/DemoIPTrace.c | /*
* FreeRTOS Kernel V10.0.1
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, ... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/shadow/src/aws_iot_shadow_static_memory.c | <reponame>MicroEJ/FreeRTOS
/*
* AWS IoT Shadow V2.1.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Softw... |
MicroEJ/FreeRTOS | FreeRTOS/Demo/CORTEX_LM3S811_GCC/microej/src/LLMJVM_stub.c | /*
* C
*
* Copyright 2020 MicroEJ Corp. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found with this software.
*/
#include "LLMJVM_impl.h"
int32_t LLMJVM_IMPL_initialize()
{
return LLMJVM_OK;
}
int32_t LLMJVM_IMPL_vmTaskStarted()
{
return LLMJVM_... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/DemoTasks/SimpleTCPEchoServer.c | <filename>FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/DemoTasks/SimpleTCPEchoServer.c
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTO... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/abstractions/platform/freertos/private/iot_taskpool_internal_freertos.h | <filename>FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/abstractions/platform/freertos/private/iot_taskpool_internal_freertos.h<gh_stars>1-10
/*
* IoT Common V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtain... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/mbedtls/include/mbedtls/x509.h | /**
* \file x509.h
*
* \brief X.509 generic defines and structures
*/
/*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the ... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/Common/FreeRTOS_Plus_CLI_Demos/TCPCommandConsole.c | <reponame>MicroEJ/FreeRTOS<gh_stars>1-10
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redist... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/common/include/aws_iot.h | <gh_stars>1-10
/*
* AWS IoT Common V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without ... |
MicroEJ/FreeRTOS | FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/drivers/fsl_usart.h | /*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2018 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_USART_H_
#define _FSL_USART_H_
#include "fsl_common.h"
/*!
* @addtogroup usart_driver
* @{
*/
/**********************************... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/ff_stdio.c | <reponame>MicroEJ/FreeRTOS<filename>FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/ff_stdio.c
/*
* FreeRTOS+FAT build 191128 - Note: FreeRTOS+FAT is still in the lab!
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Authors include <NAME>, <NAME> and <NAME>
*
* Permission is hereby gr... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/shadow/include/aws_iot_shadow.h | /*
* AWS IoT Shadow V2.1.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, in... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/standard/mqtt/include/types/iot_mqtt_types.h | <gh_stars>1-10
/*
* IoT MQTT V2.1.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restri... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/mbedtls/include/mbedtls/certs.h | /**
* \file certs.h
*
* \brief Sample certificates and DHM parameters for testing
*/
/*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/jobs/src/aws_iot_jobs_api.c | /*
* AWS IoT Jobs V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, incl... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/DemoTasks/TCPEchoSelectServer.c | <filename>FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/DemoTasks/TCPEchoSelectServer.c
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTO... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/mbedtls/include/mbedtls/hmac_drbg.h | <reponame>MicroEJ/FreeRTOS
/**
* \file hmac_drbg.h
*
* \brief HMAC_DRBG (NIST SP 800-90A)
*/
/*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except ... |
MicroEJ/FreeRTOS | FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/startup/boot_multicore_slave.c | <filename>FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/startup/boot_multicore_slave.c
//*****************************************************************************
// boot_multicore_slave.c
//
// Provides functions to boot slave core in LPC55xx multicore system
//
// Version : 190215
//
//***... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_Plus_POSIX_with_actor_Windows_Simulator/FreeRTOSConfig.h | <filename>FreeRTOS-Labs/Demo/FreeRTOS_Plus_POSIX_with_actor_Windows_Simulator/FreeRTOSConfig.h
/*
* FreeRTOS Kernel V10.0.1
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and ass... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/trcConfig.h | /*******************************************************************************
* Tracealyzer v2.4.1 Recorder Library
* Percepio AB, www.percepio.com
*
* trcConfig.h
*
* Configuration parameters for the trace recorder library. Before using the
* trace recorder library, please check that the default setti... |
MicroEJ/FreeRTOS | FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/startup/startup_lpc55s69_cm33_core0.c | <filename>FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/startup/startup_lpc55s69_cm33_core0.c
//*****************************************************************************
// LPC55S69_cm33_core0 startup code for use with MCUXpresso IDE
//
// Version : 220119
//************************************... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/Common/FreeRTOS_Plus_TCP_Demos/include/DefaultWebPages.h | /*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/abstractions/platform/freertos/iot_taskpool_freertos.c | <reponame>MicroEJ/FreeRTOS
/*
* FreeRTOS Task Pool v1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the S... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/Common/Demo_IP_Protocols/FTP/FreeRTOS_FTP_server.c | /*
* FreeRTOS+TCP V2.0.3
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, incl... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c | /*
FreeRTOS+TCP V2.0.11
Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without li... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/include/ff_old_config_defines.h | <reponame>MicroEJ/FreeRTOS<gh_stars>1-10
/*
* FreeRTOS+FAT build 191128 - Note: FreeRTOS+FAT is still in the lab!
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Authors include <NAME>, <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtainin... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/jobs/src/private/aws_iot_jobs_internal.h | <filename>FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/jobs/src/private/aws_iot_jobs_internal.h<gh_stars>1-10
/*
* AWS IoT Jobs V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* t... |
MicroEJ/FreeRTOS | FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c | <reponame>MicroEJ/FreeRTOS
/*
* FreeRTOS+TCP V2.2.0
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software with... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/include/ff_format.h | /*
* FreeRTOS+FAT build 191128 - Note: FreeRTOS+FAT is still in the lab!
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Authors include <NAME>, <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associa... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/shadow/shadow_device_operations/mbedtls_config.h | /*
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/jobs/src/aws_iot_jobs_subscription.c | <reponame>MicroEJ/FreeRTOS
/*
* AWS IoT Jobs V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Softwar... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/DemoTasks/UDPSelectServer.c | /*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/abstractions/platform/freertos/include/platform/iot_network_freertos.h | <reponame>MicroEJ/FreeRTOS
/*
* Amazon FreeRTOS Platform V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
*... |
MicroEJ/FreeRTOS | FreeRTOS/Demo/CORTEX_LM3S811_GCC/microej/src/LLBSP.c | /*
* C
*
* Copyright 2020 MicroEJ Corp. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found with this software.
*/
#include "LLBSP_impl.h"
extern void _etext(void);
uint8_t LLBSP_IMPL_isInReadOnlyMemory(void* ptr)
{
return ptr < &_etext;
}
/**
* Writes the char... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/common/src/aws_iot_parser.c | <filename>FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/common/src/aws_iot_parser.c
/*
* AWS IoT Common V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associat... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/portable/lpc18xx/ff_sddisk.c | <filename>FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/portable/lpc18xx/ff_sddisk.c<gh_stars>1-10
/*
* FreeRTOS+FAT build 191128 - Note: FreeRTOS+FAT is still in the lab!
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Authors include <NAME>, <NAME> and <NAME>
*
* Permission is her... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/standard/mqtt/src/iot_mqtt_api.c | <reponame>MicroEJ/FreeRTOS
/*
* IoT MQTT V2.1.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software wi... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/c_sdk/aws/jobs/include/types/aws_iot_jobs_types.h | /*
* AWS IoT Jobs V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, incl... |
MicroEJ/FreeRTOS | FreeRTOS-Labs/Source/FreeRTOS-IoT-Libraries/abstractions/platform/freertos/include/iot_taskpool_freertos.h | /*
* IoT Common V1.0.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.