repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/loaders/loader_nvctrl.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.891280 | #pragma once
#ifndef LIBRARY_LOADER_NVCTRL_H
#define LIBRARY_LOADER_NVCTRL_H
// #define Bool bool
#include <X11/Xlib.h>
#include "NVCtrl/NVCtrlLib.h"
#define LIBRARY_LOADER_NVCTRL_H_DLOPEN
#include <string>
#include <dlfcn.h>
#include <memory>
class libnvctrl_loader {
public:
libnvctrl_loader();
libnvctrl_loader... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/loaders/loader_x11.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.183404 | #pragma once
#include <X11/Xlib.h>
#include <memory>
#include <string>
#include <dlfcn.h>
class libx11_loader {
public:
libx11_loader();
libx11_loader(const std::string& library_name) { Load(library_name); }
~libx11_loader();
bool Load(const std::string& library_name);
bool IsLoaded() { return loaded_; }
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/loaders/loader_nvml.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.185164 | // This is generated file. Do not modify directly.
// Path to the code generator: /home/crz/git/MangoHud/generate_library_loader.py .
#ifndef LIBRARY_LOADER_NVML_H
#define LIBRARY_LOADER_NVML_H
#if USE_SYSTEM_NVML
#include <nvml.h>
#else
#include "nvml.h"
typedef nvmlProcessInfo_t nvmlProcessInfo_v1_t;
#endif
#define... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/logging.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.486844 | #pragma once
#ifndef MANGOHUD_LOGGING_H
#define MANGOHUD_LOGGING_H
#include <iostream>
#include <vector>
#include <fstream>
#include <chrono>
#include <thread>
#include <condition_variable>
#include "timing.hpp"
#include "overlay_params.h"
struct logData{
double fps;
float frametime;
float cpu_load;
float c... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/memory.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.516596 | #pragma once
#ifndef MANGOHUD_MEMORY_H
#define MANGOHUD_MEMORY_H
#include <cstdint>
extern float memused, memmax, swapused;
extern int mem_temp;
extern uint64_t proc_mem_resident, proc_mem_shared, proc_mem_virt;
void update_meminfo();
void update_mem_temp();
void update_procmem();
#endif //MANGOHUD_MEMORY_H
|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/util/os_socket.c | null | null | null | null | null | null | C | 2026-05-04T18:40:08.645316 | /*
* Copyright 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
#include <errno.h>
#include "os_socket.h"
#if defined(__linux__)
#include <fcntl.h>
#include <poll.h>
#include <stddef.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
int
os_socket_listen_abstract(cons... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/c11_compat.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.647452 | /* Copyright 2019 Intel Corporation */
/* SPDX-License-Identifier: MIT */
#include "no_extern_c.h"
#ifndef _C11_COMPAT_H_
#define _C11_COMPAT_H_
#if defined(__cplusplus)
/* This is C++ code, not C */
#elif (__STDC_VERSION__ >= 201112L)
/* Already C11 */
#else
/*
* C11 static_assert() macro
* assert.h only ... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/util/macros.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.648253 | // /*
// * Copyright © 2014 Intel Corporation
// *
// * Permission is hereby granted, free of charge, to any person obtaining a
// * copy of this software and associated documentation files (the "Software"),
// * to deal in the Software without restriction, including without limitation
// * the rights to use, cop... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/util/detect_os.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.649389 | /* SPDX-License-Identifier: MIT */
/* Copyright 2008 VMware, Inc. */
/**
* Auto-detect the operating system family.
*
* See also:
* - http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
* - echo | gcc -dM -E - | sort
* - http://msdn.microsoft.com/en-us/library/b0084kay.aspx
*
* @author José Fonseca... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/c99_compat.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.650541 | /**************************************************************************
*
* Copyright 2007-2013 VMware, Inc.
* 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... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/no_extern_c.h | null | null | null | null | null | null | C | 2026-05-04T18:40:08.651102 | /**************************************************************************
*
* Copyright 2014 VMware, Inc.
* 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 wit... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/util/os_time.c | null | null | null | null | null | null | C | 2026-05-04T18:40:08.851258 | /**************************************************************************
*
* Copyright 2008-2010 VMware, Inc.
* 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... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/mesa/util/os_socket.h | null | null | null | null | null | null | C | 2026-05-04T18:40:09.054928 | /*
* Copyright 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*
* Socket operations helpers
*/
#ifndef _OS_SOCKET_H_
#define _OS_SOCKET_H_
#include <stdio.h>
#include <stdbool.h>
#ifdef _MSC_VER
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#ifdef __cplusplus
extern "C" {
#endif
int os_socket_acc... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/hotload.c | null | null | null | null | null | null | C | 2026-05-04T18:40:11.618643 | #include "hotload.h"
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define FSEVENT_CALLBACK(name) void name(ConstFSEventStreamRef stream,\
void *context,\
size_t file_count,\
... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/hashtable.h | null | null | null | null | null | null | C | 2026-05-04T18:40:11.627507 | #ifndef HASHTABLE_H
#define HASHTABLE_H
typedef unsigned long (*table_hash_func)(void *key);
typedef int (*table_compare_func)(void *key_a, void *key_b);
struct bucket
{
void *key;
void *value;
struct bucket *next;
};
struct table
{
int count;
int capacity;
table_hash_func hash;
table_comp... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/hotkey.h | null | null | null | null | null | null | C | 2026-05-04T18:40:11.628539 | #ifndef SKHD_HOTKEY_H
#define SKHD_HOTKEY_H
#include <Carbon/Carbon.h>
#include <stdint.h>
#include <stdbool.h>
#define Modifier_Keycode_Alt 0x3A
#define Modifier_Keycode_Shift 0x38
#define Modifier_Keycode_Cmd 0x37
#define Modifier_Keycode_Ctrl 0x3B
#define Modifier_Keycode_Fn 0x3F
enum osx_event_... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/event_tap.c | null | null | null | null | null | null | C | 2026-05-04T18:40:11.631186 | #include "event_tap.h"
bool event_tap_enabled(struct event_tap *event_tap)
{
bool result = (event_tap->handle && CGEventTapIsEnabled(event_tap->handle));
return result;
}
bool event_tap_begin(struct event_tap *event_tap, event_tap_callback *callback)
{
event_tap->handle = CGEventTapCreate(kCGSessionEventT... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/hotkey.c | null | null | null | null | null | null | C | 2026-05-04T18:40:11.633498 | #include "hotkey.h"
#define HOTKEY_FOUND ((1) << 0)
#define MODE_CAPTURE(a) ((a) << 1)
#define HOTKEY_PASSTHROUGH(a) ((a) << 2)
#define LRMOD_ALT 0
#define LRMOD_CMD 6
#define LRMOD_CTRL 9
#define LRMOD_SHIFT 3
#define LMOD_OFFS 1
#define RMOD_OFFS 2
static char arg[] = "-c";
static char *... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/carbon.h | null | null | null | null | null | null | C | 2026-05-04T18:40:11.647074 | #ifndef SKHD_CARBON_H
#define SKHD_CARBON_H
#include <Carbon/Carbon.h>
struct carbon_event
{
EventTargetRef target;
EventHandlerUPP handler;
EventTypeSpec type;
EventHandlerRef handler_ref;
char * volatile process_name;
};
char *find_process_name_for_pid(pid_t pid);
bool carbon_event_init(struct ... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/carbon.c | null | null | null | null | null | null | C | 2026-05-04T18:40:11.647597 | #include "carbon.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
static inline char *
find_process_name_for_psn(ProcessSerialNumber *psn)
{
CFStringRef process_name_ref;
if (CopyProcessName(psn, &process_name_ref) == noErr) {
char *process_name = copy_cfstring(process_n... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/event_tap.h | null | null | null | null | null | null | C | 2026-05-04T18:40:11.659669 | #ifndef SKHD_EVENT_TAP_H
#define SKHD_EVENT_TAP_H
#include <stdbool.h>
#include <Carbon/Carbon.h>
struct event_tap
{
CFMachPortRef handle;
CFRunLoopSourceRef runloop_source;
CGEventMask mask;
};
#define EVENT_TAP_CALLBACK(name) \
CGEventRef name(CGEventTapProxy proxy, \
CGEventTyp... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/locale.c | null | null | null | null | null | null | C | 2026-05-04T18:40:11.661186 | #include "locale.h"
#include "hashtable.h"
#include "sbuffer.h"
#include <Carbon/Carbon.h>
#include <IOKit/hidsystem/ev_keymap.h>
#define array_count(a) (sizeof((a)) / sizeof(*(a)))
static struct table keymap_table;
static char **keymap_keys;
static char *copy_cfstring(CFStringRef string)
{
CFIndex num_bytes = C... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/hotload.h | null | null | null | null | null | null | C | 2026-05-04T18:40:11.662141 | #ifndef SKHD_HOTLOAD_H
#define SKHD_HOTLOAD_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include <Carbon/Carbon.h>
#define HOTLOADER_CALLBACK(name) void name(char *absolutepath, char *directory, char *filename)
typedef HOTLOADER_CALLBACK(hotloader_callback);
struct watched_entry;
struct hotloader
{
FSEven... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/log.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.246374 | #ifndef SKHD_LOG_H
#define SKHD_LOG_H
static bool verbose;
static inline void
debug(const char *format, ...)
{
if (!verbose) return;
va_list args;
va_start(args, format);
vfprintf(stdout, format, args);
va_end(args);
}
static inline void
warn(const char *format, ...)
{
va_list args;
va_s... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/locale.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.255578 | #ifndef SKHD_LOCALE_H
#define SKHD_LOCALE_H
#include <stdint.h>
#define CF_NOTIFICATION_CALLBACK(name) \
void name(CFNotificationCenterRef center, \
void *observer, \
CFNotificationName name, \
const void *object, \
CFDictionaryRef userInfo)
typedef CF_NOTIF... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/parse.c | null | null | null | null | null | null | C | 2026-05-04T18:40:12.274496 | #include "parse.h"
#include "tokenize.h"
#include "locale.h"
#include "hotkey.h"
#include "hashtable.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
static struct mode *
find_or_init_default_mode(struct parser *parser)
{
struct mode *default_mode;
if ((d... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/notify.c | null | null | null | null | null | null | C | 2026-05-04T18:40:12.275573 | void notify_init(void)
{
class_replaceMethod(objc_getClass("NSBundle"),
sel_registerName("bundleIdentifier"),
method_getImplementation((void *)^{return CFSTR("com.asmvik.skhd");}),
NULL);
}
void notify(const char *subtitle, const char *format,... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/service.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.291640 | #ifndef SERVICE_H
#define SERVICE_H
#include <spawn.h>
#include <sys/stat.h>
#define MAXLEN 512
#define _PATH_LAUNCHCTL "/bin/launchctl"
#define _NAME_SKHD_PLIST "com.asmvik.skhd"
#define _PATH_SKHD_PLIST "%s/Library/LaunchAgents/"_NAME_SKHD_PLIST".plist"
#define _SKHD_PLIST \
"<?xml version=\"1.0\" encoding=... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/parse.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.298484 | #ifndef SKHD_PARSE_H
#define SKHD_PARSE_H
#include "tokenize.h"
#include <stdbool.h>
struct load_directive
{
char *file;
struct token option;
};
struct table;
struct parser
{
char *file;
struct token previous_token;
struct token current_token;
struct tokenizer tokenizer;
struct table *mod... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/sbuffer.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.324512 | #ifndef SBUFFER_H
#define SBUFFER_H
#include <stdlib.h>
#include <stdint.h>
struct buf_hdr
{
size_t len;
size_t cap;
char buf[0];
};
#define buf_MAX(a, b) ((a) > (b) ? (a) : (b))
#define buf_OFFSETOF(t, f) (size_t)((char *)&(((t *)0)->f) - (char *)0)
#define buf__hdr(b) ((struct buf_hdr *)((char *)(b) -... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/skhd.c | null | null | null | null | null | null | C | 2026-05-04T18:40:12.331422 | #include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdarg.h>
#include <getopt.h>
#include <signal.h>
#include <string.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <Carbon/Carbon.h>
#include <CoreFoundation/CoreFoundation.h>
#incl... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/synthesize.c | null | null | null | null | null | null | C | 2026-05-04T18:40:12.359831 | #include <Carbon/Carbon.h>
#include "synthesize.h"
#include "locale.h"
#include "parse.h"
#include "hotkey.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
static inline void
create_and_post_keyevent(uint16_t key, bool pressed)
{
CGPostKeyboardEvent((CGCharCode)0, (CGKeyCode)key, ... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/synthesize.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.369062 | #ifndef SKHD_SYNTHESIZE_H
#define SKHD_SYNTHESIZE_H
void synthesize_key(char *key_string);
void synthesize_text(char *text);
#endif
|
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/tokenize.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.938734 | #ifndef SKHD_TOKENIZE_H
#define SKHD_TOKENIZE_H
static const char *modifier_flags_str[] =
{
"alt", "lalt", "ralt",
"shift", "lshift", "rshift",
"cmd", "lcmd", "rcmd",
"ctrl", "lctrl", "rctrl",
"fn", "hyper", "meh",
};
static const char *literal_keycode_str[] =
{
"return", ... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/tokenize.c | null | null | null | null | null | null | C | 2026-05-04T18:40:12.939588 | #include "tokenize.h"
#include <ctype.h>
#define array_count(a) (sizeof((a)) / sizeof(*(a)))
int token_equals(struct token token, const char *match)
{
const char *at = match;
for (int i = 0; i < token.length; ++i, ++at) {
if ((*at == 0) || (token.text[i] != *at)) {
return false;
}
... |
asmvik/skhd | https://github.com/asmvik/skhd | null | null | null | null | 7,944 | null | null | mit | null | null | null | null | null | null | null | src/timing.h | null | null | null | null | null | null | C | 2026-05-04T18:40:12.968677 | #ifndef MACOS_TIMING_H
#define MACOS_TIMING_H
#include <stdint.h>
#include <CoreServices/CoreServices.h>
#include <mach/mach_time.h>
#define BEGIN_SCOPED_TIMED_BLOCK(note) \
do { \
struct timing_info timing; \
if (profile) begin_timing(&timing, note)
#define END_SCOPED_TIMED_BLOCK() \
if (... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_io.h | null | null | null | null | null | null | C | 2026-05-04T18:40:15.674345 | #ifndef _COAP_IO_H
#define _COAP_IO_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include "lwip/ip_addr.h"
#include "espconn.h"
#include "pdu.h"
#include "hash.h"
coap_tid_t coap_send(struct espconn *pesp_conn, coap_pdu_t *pdu);
coap_tid_t coap_send_confirmed(struct espconn *pesp_conn, coap_pdu_t *pdu);
#ifdef __cpl... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_server.h | null | null | null | null | null | null | C | 2026-05-04T18:40:15.675752 | #ifndef _COAP_SERVER_H
#define _COAP_SERVER_H 1
#ifdef __cplusplus
extern "C" {
#endif
size_t coap_server_respond(char *req, unsigned short reqlen, char *rsp, unsigned short rsplen);
#ifdef __cplusplus
}
#endif
#endif
|
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_client.h | null | null | null | null | null | null | C | 2026-05-04T18:40:15.679588 | #ifndef _COAP_CLIENT_H
#define _COAP_CLIENT_H 1
#ifdef __cplusplus
extern "C" {
#endif
void coap_client_response_handler(char *data, unsigned short len, unsigned short size, const uint32_t ip, const uint32_t port);
#ifdef __cplusplus
}
#endif
#endif
|
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_io.c | null | null | null | null | null | null | C | 2026-05-04T18:40:15.691992 | #include <string.h>
#include "coap_io.h"
#include "node.h"
#include "espconn.h"
#include "coap_timer.h"
extern coap_queue_t *gQueue;
/* releases space allocated by PDU if free_pdu is set */
coap_tid_t coap_send(struct espconn *pesp_conn, coap_pdu_t *pdu) {
coap_tid_t id = COAP_INVALID_TID;
uint32_t ip = 0, port =... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_client.c | null | null | null | null | null | null | C | 2026-05-04T18:40:15.722171 | #include "user_config.h"
#include <stdint.h>
#include "coap.h"
#include "hash.h"
#include "node.h"
extern coap_queue_t *gQueue;
void coap_client_response_handler(char *data, unsigned short len, unsigned short size, const uint32_t ip, const uint32_t port)
{
NODE_DBG("coap_client_response_handler is called.\n");
c... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap.h | null | null | null | null | null | null | C | 2026-05-04T18:40:15.722704 | #ifndef COAP_H
#define COAP_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
#include "lauxlib.h"
#define MAXOPT 16
#define MAX_MESSAGE_SIZE 1152
#define MAX_PAYLOAD_SIZE 1024
#define MAX_REQUEST_SIZE 576
#define MAX_REQ_SCRATCH_SIZE 60
#define COAP_RESPONSE_CLASS(C) (((C) >> 5) & ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap.c | null | null | null | null | null | null | C | 2026-05-04T18:40:15.729145 | #include "user_config.h"
#include <stdio.h>
#include <string.h>
#include "coap.h"
#include "uri.h"
extern void endpoint_setup(void);
extern const coap_endpoint_t endpoints[];
#ifdef COAP_DEBUG
void coap_dumpHeader(coap_header_t *hdr)
{
printf("Header:\n");
printf(" ver 0x%02X\n", hdr->ver);
printf(" t ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_timer.h | null | null | null | null | null | null | C | 2026-05-04T18:40:15.760989 | #ifndef _COAP_TIMER_H
#define _COAP_TIMER_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include "node.h"
#define SYS_TIME_MAX (0xFFFFFFFF / 1000)
#define COAP_DEFAULT_RESPONSE_TIMEOUT 2 /* response timeout in seconds */
#define COAP_DEFAULT_MAX_RETRANSMIT 4 /* max number of retransmissions */
#define COAP_TICKS_P... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_server.c | null | null | null | null | null | null | C | 2026-05-04T18:40:15.761500 | #include "user_config.h"
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include "coap.h"
size_t coap_server_respond(char *req, unsigned short reqlen, char *rsp, unsigned short rsplen)
{
NODE_DBG("coap_server_respond is called.\n");
size_t rlen = rsplen;
coap_packet_t pkt;
pkt.content.p = NULL;
... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/coap_timer.c | null | null | null | null | null | null | C | 2026-05-04T18:40:16.455260 | #include "node.h"
#include "coap_timer.h"
#include "os_type.h"
#include "osapi.h"
#include "pm/swtimer.h"
static os_timer_t coap_timer;
static coap_tick_t basetime = 0;
void coap_timer_elapsed(coap_tick_t *diff){
coap_tick_t now = system_get_time() / 1000; // coap_tick_t is in ms. also sys_timer
if(now>=basetim... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/hash.h | null | null | null | null | null | null | C | 2026-05-04T18:40:16.629559 | #ifndef _HASH_H
#define _HASH_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include "coap.h"
typedef unsigned char coap_key_t[4];
/* CoAP transaction id */
/*typedef unsigned short coap_tid_t; */
typedef int coap_tid_t;
#define COAP_INVALID_TID -1
void coap_transaction_id(const uint32_t ip, const uint32_t port, cons... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/hash.c | null | null | null | null | null | null | C | 2026-05-04T18:40:16.630652 | #include "hash.h"
#include <string.h>
/* Caution: When changing this, update COAP_DEFAULT_WKC_HASHKEY
* accordingly (see int coap_hash_path());
*/
void coap_hash(const unsigned char *s, unsigned int len, coap_key_t h) {
size_t j;
while (len--) {
j = sizeof(coap_key_t)-1;
while (j) {
h[j] = ((h[j] ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/endpoints.c | null | null | null | null | null | null | C | 2026-05-04T18:40:16.663744 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "coap.h"
#include "lua.h"
#include "lauxlib.h"
#include "os_type.h"
#include "user_interface.h"
#include "user_config.h"
void build_well_known_rsp(char *rsp, uint16_t rsplen);
void endpoint_setup(void)
{
coap_setup();
}
static const coap_endpo... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/uri.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.085272 | /* uri.c -- helper functions for URI treatment
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "coap.h"
#include "uri.h"
#ifndef assert
// #warning "assertions are disabled"
# define assert(x) do { \
if(!x) NODE_ERR("uri.c assert!\n"); \
} while (0)
#endif
/... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/uri.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.249204 | /* uri.h -- helper functions for URI treatment
*
* Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
*
* This file is part of the CoAP library libcoap. Please see
* README for terms of use.
*/
#ifndef _COAP_URI_H_
#define _COAP_URI_H_
#define COAP_DEFAULT_SCHEME "coap" /* the default scheme for Co... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/digests.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.304870 | /*
* Copyright (c) 2015, DiUS Computing Pty Ltd (jmattsson@dius.com.au)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/digests.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.351761 | #ifndef _CRYPTO_DIGESTS_H_
#define _CRYPTO_DIGESTS_H_
#include <stdint.h>
#include <stddef.h>
typedef void (*create_ctx_fn)(void *ctx);
typedef void (*update_ctx_fn)(void *ctx, const uint8_t *msg, int len);
typedef void (*finalize_ctx_fn)(uint8_t *digest, void *ctx);
typedef int32_t ( *read_fn )(int fd, void *ptr, si... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/node.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.375351 | #include <string.h>
#include <stdlib.h>
#include "node.h"
static inline coap_queue_t *
coap_malloc_node(void) {
return (coap_queue_t *)calloc(1,sizeof(coap_queue_t));
}
void coap_free_node(coap_queue_t *node) {
free(node);
}
int coap_insert_node(coap_queue_t **queue, coap_queue_t *node) {
coap_queue_t *p, *q;
... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/pdu.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.386138 | #ifndef _PDU_H
#define _PDU_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include "coap.h"
/** Header structure for CoAP PDUs */
typedef struct {
coap_rw_buffer_t scratch;
coap_packet_t *pkt;
coap_rw_buffer_t msg; /**< the CoAP msg to send */
} coap_pdu_t;
coap_pdu_t *coap_new_pdu(void);
void coap_delete_pdu... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/str.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.410072 | /* str.c -- strings to be used in the CoAP library
*
* Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
*
* This file is part of the CoAP library libcoap. Please see
* README for terms of use.
*/
#include <stdlib.h>
#include <stddef.h>
#include "str.h"
str * coap_new_string(size_t size) {
str *s = (s... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/str.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.417799 | /* str.h -- strings to be used in the CoAP library
*
* Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
*
* This file is part of the CoAP library libcoap. Please see
* README for terms of use.
*/
#ifndef _COAP_STR_H_
#define _COAP_STR_H_
#include <string.h>
typedef struct {
size_t length; /* length ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/node.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.486675 | #ifndef _NODE_H
#define _NODE_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include "hash.h"
#include "pdu.h"
struct coap_queue_t;
typedef uint32_t coap_tick_t;
/*
1. queue(first)->t store when to send PDU for the next time, it's a base(absolute) time
2. queue->next->t store the delta between time and base-time. que... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/coap/pdu.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.508528 | #include <stdlib.h>
#include "pdu.h"
coap_pdu_t * coap_new_pdu(void) {
coap_pdu_t *pdu = NULL;
pdu = (coap_pdu_t *)calloc(1,sizeof(coap_pdu_t));
if(!pdu){
NODE_DBG("coap_new_pdu malloc error.\n");
return NULL;
}
pdu->scratch.p = (uint8_t *)calloc(1,MAX_REQ_SCRATCH_SIZE);
if(!pdu->scratch.p){
N... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/mech.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.690527 | /*
* Copyright 2016 Dius Computing Pty Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of co... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/mech.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.855838 | #ifndef _MECH_H_
#define _MECH_H_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
typedef struct
{
const char *key;
size_t keylen;
const char *iv;
size_t ivlen;
const char *data;
size_t datalen;
char *out;
size_t outlen;
enum { OP_ENCRYPT, OP_DECRYPT } op;
} crypto_op_t;
typedef struc... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/sha2.c | null | null | null | null | null | null | C | 2026-05-04T18:40:17.933270 | /*
* FILE: sha2.c
* AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
*
* Copyright (c) 2000-2001, Aaron D. Gifford
* Copyright (c) 2015, DiUS Computing Pty Ltd (jmattsson@dius.com.au)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/sdk-aes.h | null | null | null | null | null | null | C | 2026-05-04T18:40:17.959825 | #ifndef _SDK_AES_H_
#define _SDK_AES_H_
#define AES_BLOCKSIZE 16
void *aes_encrypt_init (const char *key, size_t len);
void aes_encrypt (void *ctx, const char *plain, char *crypt);
void aes_encrypt_deinit (void *ctx);
void *aes_decrypt_init (const char *key, size_t len);
void aes_decrypt (void *ctx, const char *cryp... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/crypto/sha2.h | null | null | null | null | null | null | C | 2026-05-04T18:40:18.008426 | #ifndef __SHA2_H__
#define __SHA2_H__
#include <stdint.h>
#include <stddef.h>
/**************************************************************************
* SHA256/384/512 declarations
**************************************************************************/
#define SHA256_BLOCK_LENGTH 64
#define SHA256_DIGEST_L... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/dht/dht.h | null | null | null | null | null | null | C | 2026-05-04T18:40:18.025371 | //
// FILE: dht.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.14
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: http://arduino.cc/playground/Main/DHTLib
//
// HISTORY:
// see dht.cpp file
//
#ifndef dht_h
#define dht_h
// #if ARDUINO < 100
// #include <WProgram.h>
// #else
// #include <... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/dht/dht.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.036610 | //
// FILE: dht.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.14
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: http://arduino.cc/playground/Main/DHTLib
//
// HISTORY:
// 0.1.14 replace digital read with faster (~3x) code => more robust low MHz machines.
// 0.1.13 fix negative dht_tempe... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/NmraDcc.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.078502 | //------------------------------------------------------------------------
//
// Model Railroading with Arduino - NmraDcc.cpp
//
// Copyright (c) 2008 - 2020 Alex Shepherd
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/gpio16.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.106812 | #include "ets_sys.h"
#include "osapi.h"
#include "driver/gpio16.h"
void ICACHE_FLASH_ATTR
gpio16_output_conf(void)
{
WRITE_PERI_REG(PAD_XPD_DCDC_CONF,
(READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC to output rtc_gpio0
WRITE_PERI_REG(RTC_GP... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/i2c_master.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.152729 | /*
* ESPRESSIF MIT License
*
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/input.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.333307 | #include "platform.h"
#include "driver/uart.h"
#include "driver/input.h"
#include <stdint.h>
#include "mem.h"
static void input_handler(platform_task_param_t flag, uint8 priority);
static struct input_state {
char *data;
int line_pos;
size_t len;
const char *prompt;
uart_cb_t uart_cb;
... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/key.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.456817 | /******************************************************************************
* Copyright 2013-2014 Espressif Systems (Wuxi)
*
* FileName: key.c
*
* Description: key driver, now can use different gpio and install different function
*
* Modification history:
* 2014/5/1, v1.0 create this file.
*************... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/onewire.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.536397 | /*
Adaptation of Paul Stoffregen's One wire library to the NodeMcu
The latest version of this library may be found at:
http://www.pjrc.com/teensy/td_libs_OneWire.html
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/pwm.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.560246 | /******************************************************************************
* Copyright 2013-2014 Espressif Systems (Wuxi)
*
* FileName: pwm.c
*
* Description: pwm driver
*
* Modification history:
* 2014/5/1, v1.0 create this file.
************************************************************************... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/pwm2.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.598197 | /*
* Software PWM using soft-interrupt timer1.
* Supports higher frequencies compared to Espressif provided one.
*
* Nikolay Fiykov
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "mem.h"
#include "pin_map.h"
#include "platform.h"
#include "hw_timer.h"
#include "driver/pwm2.h"
#include "us... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/rotary.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.646274 | /*
* Driver for interfacing to cheap rotary switches that
* have a quadrature output with an optional press button
*
* This sets up the relevant gpio as interrupt and then keeps track of
* the position of the switch in software. Changes are enqueued to task
* level and a task message posted when required. If the ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/spi.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.658564 | #include "driver/spi.h"
typedef union {
uint32 word[2];
uint64 dword;
} spi_buf_t;
static uint32_t spi_clkdiv[2];
/******************************************************************************
* FunctionName : spi_lcd_mode_init
* Description : SPI master initial function for driving LCD TM035PDZV36
* P... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/sigma_delta.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.673397 |
#include "platform.h"
#include "driver/sigma_delta.h"
void sigma_delta_setup( void )
{
GPIO_REG_WRITE(GPIO_SIGMA_DELTA,
GPIO_SIGMA_DELTA_SET(GPIO_SIGMA_DELTA_ENABLE) |
GPIO_SIGMA_DELTA_TARGET_SET(0x00) |
GPIO_SIGMA_DELTA_PRESCALE_SET(0x00));
}
void sigma_... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/switec.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.731131 | /*
* Module for interfacing with Switec instrument steppers (and
* similar devices). These are the steppers that are used in automotive
* instrument panels and the like. Run off 5 volts at low current.
*
* Code inspired by:
*
* SwitecX25 Arduino Library
* Guy Carpenter, Clearwater Software - 2012
*
* Licens... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/driver/uart.c | null | null | null | null | null | null | C | 2026-05-04T18:40:18.745080 | /******************************************************************************
* Copyright 2013-2014 Espressif Systems (Wuxi)
*
* FileName: uart.c
*
* Description: Two UART mode configration and interrupt handler.
* Check your hardware connection while use this mode.
*
* Modification history:
* ... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/esp-gdbstub/gdbstub-cfg.h | null | null | null | null | null | null | C | 2026-05-04T18:40:18.927608 | #ifndef GDBSTUB_CFG_H
#define GDBSTUB_CFG_H
/*
Enable this define if you're using the RTOS SDK. It will use a custom exception handler instead of the HAL
and do some other magic to make everything work and compile under FreeRTOS.
*/
#ifndef GDBSTUB_FREERTOS
#define GDBSTUB_FREERTOS 0
#endif
/*
Enable this to make th... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/esp-gdbstub/gdbstub-entry.h | null | null | null | null | null | null | C | 2026-05-04T18:40:19.120657 | #ifndef GDBSTUB_ENTRY_H
#define GDBSTUB_ENTRY_H
#ifdef __cplusplus
extern "C" {
#endif
void gdbstub_init_debug_entry();
void gdbstub_do_break();
void gdbstub_icount_ena_single_step();
void gdbstub_save_extra_sfrs_for_exception();
void gdbstub_uart_entry();
int gdbstub_set_hw_breakpoint(int addr, int len);
int gdbstu... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/esp-gdbstub/gdbstub.c | null | null | null | null | null | null | C | 2026-05-04T18:40:19.198738 | /******************************************************************************
* Copyright 2015 Espressif Systems
*
* Description: A stub to make the ESP8266 debuggable by GDB over the serial
* port.
*
* License: ESPRESSIF MIT License
*****************************************************************************... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/fatfs/diskio.c | null | null | null | null | null | null | C | 2026-05-04T18:40:19.222742 | /*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2016 */
/*-----------------------------------------------------------------------*/
/* If a working storage control module is available, it should be */
/* attached to t... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/esp-gdbstub/gdbstub.h | null | null | null | null | null | null | C | 2026-05-04T18:40:19.231264 | #ifndef GDBSTUB_H
#define GDBSTUB_H
#ifdef __cplusplus
extern "C" {
#endif
void gdbstub_init();
void gdbstub_redirect_output(int enable);
#ifdef __cplusplus
}
#endif
#endif
|
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/fatfs/diskio.h | null | null | null | null | null | null | C | 2026-05-04T18:40:19.301949 | /*-----------------------------------------------------------------------/
/ Low level disk interface modlue include file (C)ChaN, 2014 /
/-----------------------------------------------------------------------*/
#ifndef _DISKIO_DEFINED
#define _DISKIO_DEFINED
#ifdef __cplusplus
extern "C" {
#endif
/* St... |
nodemcu/nodemcu-firmware | https://github.com/nodemcu/nodemcu-firmware | null | null | null | null | 7,911 | null | null | mit | null | null | null | null | null | null | null | app/fatfs/fatfs_prefix_lib.h | null | null | null | null | null | null | C | 2026-05-04T18:40:19.312366 | #define f_chdir fatfslib_f_chdir
#define f_chdrive fatfslib_f_chdrive
#define f_chmod fatfslib_f_chmod
#define f_close fatfslib_f_close
#define f_closedir fatfslib_f_closedir
#define f_getcwd fatfslib_f_getcwd
#define f_getfree fatfslib_f_getfree
#define f_getlabel fatfslib_f_getlabel
#define f_lseek fa... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/esp32-idf-wasi/main/m3_api_esp_wasi.h | null | null | null | null | null | null | C | 2026-05-04T18:40:21.970083 | //
// m3_api_esp_wasi.h
//
// Created by Volodymyr Shymanskyy on 01/07/20.
// Copyright © 2019 Volodymyr Shymanskyy. All rights reserved.
//
#ifndef m3_api_esp_wasi_h
#define m3_api_esp_wasi_h
#include "m3_core.h"
d_m3BeginExternC
typedef struct m3_wasi_context_t
{
i32 exit_code;
u32 ... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/cpp/wasm/test_prog.wasm.h | null | null | null | null | null | null | C | 2026-05-04T18:40:21.971583 | unsigned char test_prog_wasm[] = {
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x22, 0x07, 0x60,
0x02, 0x7f, 0x7f, 0x01, 0x7f, 0x60, 0x01, 0x7f, 0x00, 0x60, 0x00, 0x00,
0x60, 0x00, 0x01, 0x7f, 0x60, 0x03, 0x7f, 0x7f, 0x7f, 0x01, 0x7f, 0x60,
0x00, 0x01, 0x7e, 0x60, 0x01, 0x7f, 0x01, 0x7f, 0x02, 0x94, 0... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/esp32-idf-wasi/main/m3_api_esp_wasi.c | null | null | null | null | null | null | C | 2026-05-04T18:40:21.976581 | //
// m3_api_esp_wasi.c
//
// Created by Volodymyr Shymanskyy on 01/07/20.
// Copyright © 2019 Volodymyr Shymanskyy. All rights reserved.
//
#define _POSIX_C_SOURCE 200809L
#include "m3_api_esp_wasi.h"
#include "m3_env.h"
#include "m3_exception.h"
#if defined(ESP32)
typedef uint32_t __wasi_size_t;
#include "ext... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/cpp/wasm/test_prog.c | null | null | null | null | null | null | C | 2026-05-04T18:40:21.977859 | #include <stddef.h>
#include <stdint.h>
extern int sum(int, int);
extern int ext_memcpy(void*, const void*, size_t);
int32_t counter = 0;
#define WASM_EXPORT __attribute__((used)) __attribute__((visibility ("default")))
int WASM_EXPORT test(int32_t arg1, int32_t arg2)
{
int x = arg1 + arg2;
int y = arg1 - a... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/cpp/wasm3_cpp/include/wasm3_cpp.h | null | null | null | null | null | null | C | 2026-05-04T18:40:21.984280 | #pragma once
#include <tuple>
#include <algorithm>
#include <type_traits>
#include <iostream>
#include <vector>
#include <array>
#include <memory>
#include <string>
#include <iterator>
#include <cassert>
extern "C"
{
#include "wasm3.h"
}
namespace wasm3 {
/** @cond */
namespace detail {
typedef uin... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/app/main.c | null | null | null | null | null | null | C | 2026-05-04T18:40:21.986117 | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include "wasm3.h"
#include "m3_api_libc.h"
#if defined(d_m3HasWASI) || defined(d_... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/android/app/src/main/cpp/main.c | null | null | null | null | null | null | C | 2026-05-04T18:40:21.995060 | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "m3/wasm3.h"
#include "m3/m3_api_libc.h"
#include "m3/extra/coremark_minimal.wasm.h"
#defin... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/android/app/src/main/cpp/jni.c | null | null | null | null | null | null | C | 2026-05-04T18:40:22.004858 | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <inttypes.h>
#include <pthread.h>
#include <unistd.h>
#include <jni.h>
extern int main();
... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/app_fuzz/fuzzer.c | null | null | null | null | null | null | C | 2026-05-04T18:40:22.006026 | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdint.h>
#include <stddef.h>
#include "wasm3.h"
#define FATAL(...) __builtin_trap()
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/fomu/include/crc.h | null | null | null | null | null | null | C | 2026-05-04T18:40:22.851101 | #ifndef __CRC_H
#define __CRC_H
#ifdef __cplusplus
extern "C" {
#endif
unsigned short crc16(const unsigned char *buffer, int len);
unsigned int crc32(const unsigned char *buffer, unsigned int len);
#ifdef __cplusplus
}
#endif
#endif
|
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/fomu/include/generated/mem.h | null | null | null | null | null | null | C | 2026-05-04T18:40:22.851619 | #ifndef __GENERATED_MEM_H
#define __GENERATED_MEM_H
#define VEXRISCV_DEBUG_BASE 0xf00f0000
#define VEXRISCV_DEBUG_SIZE 0x00000010
#define SRAM_BASE 0x10000000
#define SRAM_SIZE 0x00020000
#define ROM_BASE 0x00000000
#define ROM_SIZE 0x00002000
#define SPIFLASH_BASE 0x20000000
#define SPIFLASH_SIZE 0x00200000
#endi... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/fomu/include/rgb.h | null | null | null | null | null | null | C | 2026-05-04T18:40:22.984289 | #ifndef _RGB_H_
#define _RGB_H_
void rgb_init(void);
void rgb_set(uint8_t r, uint8_t g, uint8_t b);
// The amount of time to stay off or on
void rgb_on_time(uint8_t ms);
void rgb_off_time(uint8_t ms);
// The amount of time to breathe in/out
void rgb_in_time(uint8_t ms);
void rgb_out_time(uint8_t ms);
enum led_regis... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/fomu/include/console.h | null | null | null | null | null | null | C | 2026-05-04T18:40:22.995376 | #ifndef __CONSOLE_H
#define __CONSOLE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*console_write_hook)(char);
typedef char (*console_read_hook)(void);
typedef int (*console_read_nonblock_hook)(void);
void console_set_write_hook(console_write_hook h);
void console_set_read_hook(console_read_hook r, console... |
wasm3/wasm3 | https://github.com/wasm3/wasm3 | null | null | null | null | 7,907 | null | null | mit | null | null | null | null | null | null | null | platforms/embedded/fomu/include/irq.h | null | null | null | null | null | null | C | 2026-05-04T18:40:22.995915 | #ifndef __IRQ_H
#define __IRQ_H
#ifdef __cplusplus
extern "C" {
#endif
#include <system.h>
#ifdef __picorv32__
// PicoRV32 has a very limited interrupt support, implemented via custom
// instructions. It also doesn't have a global interrupt enable/disable, so
// we have to emulate it via saving and restoring a mask ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.