text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/scsi_spock.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 162 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box distribution.
*
* Defini... | /content/code_sandbox/src/include/86box/usb.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 288 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/thread.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 510 |
```objective-c
/*
* VARCem Virtual ARchaeological Computer EMulator.
* An emulator of (mostly) x86-based PC systems and devices,
* using the ISA,EISA,VLB,MCA and PCI system buses, roughly
* spanning the era between 1981 and 1995.
*
* Definitions for the centralized PNG image... | /content/code_sandbox/src/include/86box/png_struct.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 579 |
```objective-c
#ifndef _UNIX_SDL_H
#define _UNIX_SDL_H
extern void sdl_close(void);
extern int sdl_inits(void);
extern int sdl_inith(void);
extern int sdl_initho(void);
extern int sdl_pause(void);
extern void sdl_resize(int x, int y);
extern void sdl_enable(int enable);
extern void sdl_set_fs(int fs);
extern void ... | /content/code_sandbox/src/include/86box/unix_sdl.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 92 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_voodoo_common.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 4,424 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_ega.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,258 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/disksizes.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,297 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_voodoo_fb.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 211 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/keyboard.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 3,482 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/dma.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 841 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/discord.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 176 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/mem.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 5,482 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_xga.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,554 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/cartridge.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 177 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* Emulation of BusLogic B... | /content/code_sandbox/src/include/86box/scsi_buslogic.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 254 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_voodoo_setup.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 146 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* Header of the emulation... | /content/code_sandbox/src/include/86box/net_dp8390.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 2,626 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/pit_fast.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 632 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/win.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 408 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_voodoo_banshee_blitter.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 165 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/ui.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 582 |
```objective-c
/*Variables :
byte/word/doubleword mode
word has MA13/MA15->MA0
ET4000 treats doubleword as byte
row 0 -> MA13
row 1 -> MA14
*/
#ifndef VIDEO_SVGA_RENDER_REMAP_H
#define VIDEO_SVGA_RENDER_REMAP_H
// S3 - enhanced mode mappings CR31.3 can force doubleword mode
// ... | /content/code_sandbox/src/include/86box/vid_svga_render_remap.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,162 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/cdrom_image.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 233 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/plat_dir.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 533 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/pic.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 861 |
```objective-c
#ifndef VIDEO_VOODOO_RENDER_H
#define VIDEO_VOODOO_RENDER_H
#if !(defined i386 || defined __i386 || defined __i386__ || defined _X86_ || defined _M_IX86 || defined __amd64__ || defined _M_X64)
# define NO_CODEGEN
#endif
#ifndef NO_CODEGEN
void voodoo_codegen_init(voodoo_t *voodoo);
void voodoo_codeg... | /content/code_sandbox/src/include/86box/vid_voodoo_render.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 3,303 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_vga.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 239 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/zip.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 871 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/cdrom_mitsumi.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 142 |
```objective-c
#ifndef SOUND_SN76489_H
#define SOUND_SN76489_H
enum {
SN76496,
NCR8496,
PSSJ
};
extern const device_t sn76489_device;
extern const device_t ncr8496_device;
extern int sn76489_mute;
typedef struct sn76489_t {
int stat[4];
int latch[4];
int count[4];
int ... | /content/code_sandbox/src/include/86box/snd_sn76489.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 267 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/hdc_ide_sff8038i.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 646 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/cdrom.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 5,123 |
```objective-c
#ifndef _WIN32
# define SOCKET int
#else
# include <winsock2.h>
# include <ws2tcpip.h>
#endif
enum net_socket_types {
/* Only TCP is supported for now. */
NET_SOCKET_TCP
};
SOCKET plat_netsocket_create(int type);
SOCKET plat_netsocket_create_server(int type, unsigned short port);
void ... | /content/code_sandbox/src/include/86box/plat_netsocket.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 202 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/fdd_fdi.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 204 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/ini.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,354 |
```objective-c
#ifndef EMU_I82335_H
#define EMU_I82335_H
extern void i82335_init(void);
#endif /*EMU_I82335_H*/
``` | /content/code_sandbox/src/include/86box/i82335.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 33 |
```objective-c
#ifndef EMU_PCI_DUMMY_H
#define EMU_PCI_DUMMY_H
extern void pci_dummy_init(int min_slot, int max_slot, int nb_slot, int sb_slot);
#endif /*EMU_PCI_DUMMY_H*/
``` | /content/code_sandbox/src/include/86box/pci_dummy.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 46 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/cdrom_interface.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 213 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/agpgart.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 257 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/hdd.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,960 |
```objective-c
struct nmc93cxx_eeprom_t;
typedef struct nmc93cxx_eeprom_t nmc93cxx_eeprom_t;
typedef struct nmc93cxx_eeprom_params_t {
uint16_t nwords;
char *filename;
uint16_t *default_content;
} nmc93cxx_eeprom_params_t;
/* Read from the EEPROM. */
uint16_t nmc93cxx_eeprom_read(nmc93cxx_eeprom_t *e... | /content/code_sandbox/src/include/86box/net_eeprom_nmc93cxx.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 175 |
```objective-c
see COPYING for more details
*/
#ifndef EMU_NMI_H
#define EMU_NMI_H
extern int nmi_mask;
extern int nmi;
extern int nmi_auto_clear;
extern void nmi_init(void);
extern void nmi_write(uint16_t port, uint8_t val, void *priv);
#endif /*EMU_NMI_H*/
``` | /content/code_sandbox/src/include/86box/nmi.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 74 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/m_amstrad.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 199 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/apm.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 224 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/vid_pgc.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,908 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/snd_ac97.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 2,041 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/fdd.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,598 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* Emulation of SCSI fixed... | /content/code_sandbox/src/include/86box/scsi_disk.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 408 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/row.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 246 |
```objective-c
/*
* VARCem Virtual ARchaeological Computer EMulator.
* An emulator of (mostly) x86-based PC systems and devices,
* using the ISA,EISA,VLB,MCA and PCI system buses, roughly
* spanning the era between 1981 and 1995.
*
* Definitions for the printers module.
*
... | /content/code_sandbox/src/include/86box/printer.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 598 |
```objective-c
#ifndef SOUND_RESID_H
#define SOUND_RESID_H
#ifdef __cplusplus
extern "C" {
#endif
void *sid_init(void);
void sid_close(void *priv);
void sid_reset(void *priv);
uint8_t sid_read(uint16_t addr, void *priv);
void sid_write(uint16_t addr, uint8_t val, void *priv);
void sid_fillbuf(int16_t *bu... | /content/code_sandbox/src/include/86box/snd_resid.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 112 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/scsi_ncr53c8xx.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 293 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/bugger.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 267 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/snd_opl.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 526 |
```objective-c
#ifndef VIDEO_VOODOO_REGS_H
#define VIDEO_VOODOO_REGS_H
enum {
SST_status = 0x000,
SST_intrCtrl = 0x004,
SST_vertexAx = 0x008,
SST_vertexAy = 0x00c,
SST_vertexBx = 0x010,
SST_vertexBy = 0x014,
SST_vertexCx = 0x018,
SST_vertexCy = 0x01c,
SST_startR = 0x0020,
SS... | /content/code_sandbox/src/include/86box/vid_voodoo_regs.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 7,224 |
```objective-c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of th... | /content/code_sandbox/src/include/86box/fdd_86f.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,127 |
```objective-c
/*Registers :
alphaMode
fbzMode & 0x1f3fff
fbzColorPath
*/
#ifndef VIDEO_VOODOO_CODEGEN_X86_H
#define VIDEO_VOODOO_CODEGEN_X86_H
#ifdef _MSC_VER
# include <intrin.h>
#else
# include <xmmintrin.h>
#endif
#define BLOCK_NUM 8
#define BLOCK_MASK (BLOCK_NUM - 1)
#define BLOCK_SIZE 8192
#defi... | /content/code_sandbox/src/include/86box/vid_voodoo_codegen_x86.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 35,001 |
```objective-c
#ifndef CRC64SPEED_H
#define CRC64SPEED_H
#include "crcspeed.h"
#include "stdbool.h"
/* Does not require init */
uint64_t crc64(uint64_t crc, const void *data, const uint64_t len);
void crc64speed_cache_table(void);
/* All other crc functions here require _init() before usage. */
bool crc64speed_init(v... | /content/code_sandbox/src/crcspeed/crc64speed.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 191 |
```c
* 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 conditions and the following disclaime... | /content/code_sandbox/src/crcspeed/crc64speed.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 2,664 |
```c
/*
* Originally by: crc64.c Version 1.4 16 Dec 2013 Mark Adler
* Modifications by Matt Stancliff <matt@genges.com>:
* - removed CRC64-specific behavior
* - added generation of lookup tables by parameters
* - removed inversion of CRC input/result
* - removed automatic initialization in favor of expl... | /content/code_sandbox/src/crcspeed/crcspeed.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 2,781 |
```objective-c
* 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 conditions and the following... | /content/code_sandbox/src/crcspeed/crcspeed.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 684 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_device.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,227 |
```objective-c
/*
OpenGL loader generated by glad 0.1.36 on Sat Jan 7 18:24:33 2023.
Language/Generator: C/C++
Specification: gl
APIs: gl=3.0
Profile: core
Extensions:
GL_ARB_buffer_storage,
GL_ARB_debug_output,
GL_ARB_sync
Loader: True
Local files: False
O... | /content/code_sandbox/src/include/glad/glad.h | objective-c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 26,703 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 1,266 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_pcscsi.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 19,940 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_ncr53c8xx.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 28,852 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* Emulation of SCSI fixed disks.
*... | /content/code_sandbox/src/scsi/scsi_disk.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 17,406 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* Emulation of BusLogic ISA and PCI... | /content/code_sandbox/src/scsi/scsi_buslogic.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 20,585 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_t128.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 5,557 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_ncr5380.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 5,850 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_ncr53c400.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 9,253 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_x54x.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 17,762 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_aha154x.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 14,090 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_spock.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 13,405 |
```c
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box di... | /content/code_sandbox/src/scsi/scsi_cdrom.c | c | 2016-06-25T22:29:10 | 2024-08-16T19:09:21 | 86Box | 86Box/86Box | 2,616 | 45,591 |
```php
<?php
/*
Plugin Name: 91yun serverspeeder
Plugin URI:
Description: serverspeeder
Version: 0.0.1
Author: 91yun
Author URI:
Text Domain: 91yun.org
*/
//require_once("ss.php");
//echo var_dump($ss);
//exit;
class serverspeeder91yun{
//
function __construct() {
//
register_activation_hook( __FILE__... | /content/code_sandbox/91yun-serverspeeder.php | php | 2016-03-11T18:31:52 | 2024-08-15T10:09:17 | serverspeeder | 91yun/serverspeeder | 2,919 | 372 |
```shell
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#
#url
APX=path_to_url
#
INSTALLPACK=path_to_url
#
CHECKSYSTEM=path_to_url
#bin
BINURL=path_to_url
#
Get_Dist_Name()
{
if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
release='C... | /content/code_sandbox/serverspeeder.sh | shell | 2016-03-11T18:31:52 | 2024-08-15T10:09:17 | serverspeeder | 91yun/serverspeeder | 2,919 | 1,781 |
```php
<?php
if(!empty($_GET["release"])){
$release = $_GET["release"];
$releasever = $_GET["releasever"];
$kernel_result = $_GET["kernel_result"];
$bit = $_GET["bit"];
$serverspeederver = $_GET["serverspeederver"];
$binfile = $_GET["binfile"];
echo '';
echo '<br>';
echo '<pre class="lang:sh decode:true " styl... | /content/code_sandbox/serverspeederlist.php | php | 2016-03-11T18:31:52 | 2024-08-15T10:09:17 | serverspeeder | 91yun/serverspeeder | 2,919 | 382 |
```shell
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#
#url
APX=path_to_url
#
INSTALLPACK=path_to_url
#
CHECKSYSTEM=path_to_url
#bin
BINURL=path_to_url
#
Get_Dist_Name()
{
if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
release='C... | /content/code_sandbox/serverspeeder-v.sh | shell | 2016-03-11T18:31:52 | 2024-08-15T10:09:17 | serverspeeder | 91yun/serverspeeder | 2,919 | 972 |
```shell
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#
#url
APX=path_to_url
#
INSTALLPACK=path_to_url
#
CHECKSYSTEM=path_to_url
#bin
BIN=downloadurl
#
Get_Dist_Name()
{
if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
DISTRO='CentO... | /content/code_sandbox/serverspeeder-all.sh | shell | 2016-03-11T18:31:52 | 2024-08-15T10:09:17 | serverspeeder | 91yun/serverspeeder | 2,919 | 2,668 |
```python
# -*- coding: utf-8 -*-
import logging
import lxml
import os
import os.path
import re
import requests
from AdvancedHTMLParser import AdvancedHTMLParser
from glob import iglob
from urllib.parse import urlparse
from cmsis.PackLint import PackLinter, VersionParser
from cmsis.Pack import Pack, Api, SemanticVer... | /content/code_sandbox/linter.py | python | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 3,617 |
```c
/* your_sha256_hash------
*
* $Date: 30. November 2011
* $Revision: V0.02
*
* Project: CMSIS-RTOS API
* Title: os_sample.c
*
* Description: This file shows the usage of the CMSIS-RTOS API.
*
*
* Version 0.02
* Initial Proposal Phase
* your_sha256_hash---- */
#inclu... | /content/code_sandbox/CMSIS/RTOS/Template/os_sample.c | c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 557 |
```unknown
@Library("cmsis")
import com.arm.dsg.cmsis.jenkins.ArtifactoryHelper
DOCKERINFO = [
'staging': [
'registryUrl': 'mcu--docker-staging.eu-west-1.artifactory.aws.arm.com',
'registryCredentialsId': 'artifactory',
'k8sPullSecret': 'artifactory-mcu-docker-staging',
'namespace':... | /content/code_sandbox/Jenkinsfile | unknown | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 3,976 |
```objective-c
/* your_sha256_hash------
* $Date: 5. February 2013
* $Revision: V1.02
*
* Project: CMSIS-RTOS API
* Title: cmsis_os.h template header file
*
* Version 0.02
* Initial Proposal Phase
* Version 0.03
* osKernelStart added, optional feature: main started as thread
* ... | /content/code_sandbox/CMSIS/RTOS/Template/cmsis_os.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 8,593 |
```c
/* your_sha256_hash------
*
* $Date: 30. November 2011
* $Revision: V0.02
*
* Project: CMSIS-RTOS API
* Title: os_sample1.c
*
* Description: This file shows the usage of the CMSIS-RTOS API.
*
* Version 0.02
* Initial Proposal Phase
* your_sha256_hash---- */
#define o... | /content/code_sandbox/CMSIS/RTOS/Template/os_sample1.c | c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 230 |
```objective-c
#include "cmsis_os.h" // CMSIS RTOS header file
extern void thread_sample (void const *argument); // prototype
typedef struct a {
char y[100];
} a_element;
osThreadDef (thread_sample, osPriorityBelowNormal, 2, 100);
osPoolDef(MyPool, 10, struct a);
osMessageQDef(M... | /content/code_sandbox/CMSIS/RTOS/Template/my_objects.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 103 |
```gas
;/*****************************************************************************
; * @file: startup_LPC177x_8x.s
; * @purpose: CMSIS Cortex-M3 Core Device Startup File
; * for the NXP LPC177x_8x Device Series
; * @version: V1.20
; * @date: 07. October 2010
; *------- <<< Use Configuration Wizard ... | /content/code_sandbox/CMSIS/RTOS/Template/startup_LPC177x_8x.s | gas | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 2,442 |
```unknown
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ProjectOpt xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="project_opt.xsd">
<SchemaVersion>1.0</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Extensions>
<cExt>*.c</cExt>
<aExt>*.s*; *.src; *.a*</aExt>... | /content/code_sandbox/CMSIS/RTOS/Template/Template.uvopt | unknown | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 3,701 |
```unknown
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Project xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="project_proj.xsd">
<SchemaVersion>1.1</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Targets>
<Target>
<TargetName>Target 1</TargetName>
<... | /content/code_sandbox/CMSIS/RTOS/Template/Template.uvproj | unknown | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 4,710 |
```objective-c
#ifndef MEMORYPOOL_H
#define MEMORYPOOL_H
#include <stdint.h>
#include <string.h>
#include "cmsis_os.h"
namespace rtos {
/*! Define and manage fixed-size memory pools of objects of a given type.
\tparam T data type of a single object (element).
\tparam queue_sz maximum number of objec... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/MemoryPool.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 439 |
```c++
#include "RtosTimer.h"
#include <string.h>
#include "cmsis_os.h"
//#include "error.h"
namespace rtos {
RtosTimer::RtosTimer(void (*periodic_task)(void const *argument), os_timer_type type, void *argument) {
#ifdef CMSIS_OS_RTX
_timer.ptimer = periodic_task;
memset(_timer_data, 0, sizeof(_timer_d... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/RtosTimer.cpp | c++ | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 164 |
```objective-c
#ifndef MAIL_H
#define MAIL_H
#include <stdint.h>
#include <string.h>
#include "cmsis_os.h"
namespace rtos {
/*! The Mail class allow to control, send, receive, or wait for mail.
A mail is a memory block that is send to a thread or interrupt service routine.
\tparam T data type of a sing... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Mail.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 729 |
```objective-c
#ifndef THREAD_H
#define THREAD_H
#include <stdint.h>
#include "cmsis_os.h"
#define DEFAULT_STACK_SIZE 0x1000
namespace rtos {
/*! The Thread class allow defining, creating, and controlling thread functions in the system. */
class Thread {
public:
/*! Create a new thread, and start it executing ... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Thread.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 632 |
```objective-c
/* mbed Microcontroller Library
*/
#ifndef RTOS_H
#define RTOS_H
#include "Thread.h"
#include "Mutex.h"
#include "RtosTimer.h"
#include "Semaphore.h"
#include "Mail.h"
#include "MemoryPool.h"
#include "Queue.h"
using namespace rtos;
#endif
``` | /content/code_sandbox/CMSIS/RTOS/Template/CPP/rtos.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 64 |
```objective-c
#ifndef QUEUE_H
#define QUEUE_H
#include <stdint.h>
#include <string.h>
#include "cmsis_os.h"
#include "error.h"
namespace rtos {
/*! The Queue class allow to control, send, receive, or wait for messages.
A message can be a integer or pointer value to a certain type T that is send
to a thread or ... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Queue.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 456 |
```objective-c
#ifndef TIMER_H
#define TIMER_H
#include <stdint.h>
#include "cmsis_os.h"
namespace rtos {
/*! The RtosTimer class allow creating and and controlling of timer functions in the system.
A timer function is called when a time period expires whereby both on-shot and
periodic timers are possible. A time... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/RtosTimer.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 334 |
```objective-c
#ifndef SEMAPHORE_H
#define SEMAPHORE_H
#include <stdint.h>
#include "cmsis_os.h"
namespace rtos {
/*! The Semaphore class is used to manage and protect access to a set of shared resources. */
class Semaphore {
public:
/*! Create and Initialize a Semaphore object used for managing resources.
... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Semaphore.h | objective-c | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 249 |
```c++
#include "Thread.h"
namespace rtos {
Thread::Thread(void (*task)(void const *argument),
void *argument,
osPriority priority,
uint32_t stacksize) {
// The actual fields of os_thread_def are implementation specific in every CMSIS-RTOS
#ifdef CMSIS_OS_RTX
_thre... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Thread.cpp | c++ | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 283 |
```c++
#include "Mutex.h"
#include <string.h>
//#include "error.h"
namespace rtos {
Mutex::Mutex() {
#ifdef CMSIS_OS_RTX
memset(_mutex_data, 0, sizeof(_mutex_data));
_osMutexDef.mutex = _mutex_data;
#endif
_osMutexId = osMutexCreate(&_osMutexDef);
if (_osMutexId == NULL) {
// error("Error init... | /content/code_sandbox/CMSIS/RTOS/Template/CPP/Mutex.cpp | c++ | 2016-02-18T08:04:18 | 2024-08-16T08:24:23 | CMSIS_5 | ARM-software/CMSIS_5 | 1,295 | 169 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.