Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lgeek's full-sized avatar

Cosmin Gorgovan lgeek

View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <linux/kvm.h>
#include <sys/ioctl.h>
int open_kvm() {
int ret;
@lgeek
lgeek / tgy.patch
Created November 5, 2017 12:58
Simonk config for brushless drive
diff --git a/tgy.asm b/tgy.asm
index d74b179..e348a83 100644
--- a/tgy.asm
+++ b/tgy.asm
@@ -165,7 +165,7 @@
.equ BOOT_START = THIRDBOOTSTART
.if !defined(COMP_PWM)
-.equ COMP_PWM = 0 ; During PWM off, switch high side on (unsafe on some boards!)
+.equ COMP_PWM = 1 ; During PWM off, switch high side on (unsafe on some boards!)