- lower underscore function names
void my_function_name(void)
- Lower camel case variables
int myVariable = 10
- Lower case underscore structs and enums custom types ending in
_t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define COUNTOF(x) (sizeof(x)/sizeof(x[0])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from argparse import ArgumentParser | |
from intelhex import IntelHex | |
import os | |
def xxd(in_path, out_path, offset=0): | |
"""convert binary to hex""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file [file name].c | |
* @copyright [copy write holder] | |
* | |
* @brief [description] | |
*/ | |
/******************************************************************************* | |
* Includes | |
*******************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file [file name].h | |
* @authors [Author] | |
* @copyright [Copyright holder] | |
* | |
* @brief [description] | |
*/ | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from intelhex import IntelHex | |
import struct | |
h = IntelHex() | |
for x in range(16535): | |
h.puts(x, struct.pack("B", x & 0xFF)) | |
h.tofile("sequence.hex", "hex") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# python 3 | |
from serial import Serial | |
import time | |
import argparse | |
import re | |
from threading import Thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# python 3 | |
from serial import Serial | |
import time | |
import argparse | |
from threading import Thread | |
class Command(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from numpy import loadtxt | |
import numpy as np | |
import pprint | |
import argparse | |
import json | |
from collections import namedtuple | |
pp = pprint.PrettyPrinter(indent=4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.io as sio | |
import scipy.signal as ssi | |
import peakutils | |
import pprint as pp | |
import itertools | |
import argparse | |
OlderNewer