These files support a comparison of unit test frameworks, documented at: http://www.pabigot.com/c/c-unit-test-frameworks/
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
/* See http://blog.regehr.org/archives/1063 | |
*/ | |
#include <type_traits> | |
#include <cstdint> | |
#include <limits> | |
#include <typeinfo> | |
#ifndef ARGTYPE | |
#define ARGTYPE uint32_t | |
#endif /* ARGTYPE */ |
Files supporting Diagnostics in Template Meta-Programming in C++
Files supporting Ultimate Overloads.
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
# | |
# Makefile for msp430 | |
# | |
# 'make' builds everything | |
# 'make clean' deletes everything except source files and Makefile | |
# You need to set TARGET, MCU and SOURCES for your project. | |
# TARGET is the name of the executable file to be produced | |
# $(TARGET).elf $(TARGET).hex and $(TARGET).txt nad $(TARGET).map are all generated. | |
# The TXT file is used for BSL loading, the ELF can be used for JTAG use | |
# |
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
# BSPACM - Makefile for ARM Cortex-M instruction delay experiment | |
# | |
# Written in 2014 by Peter A. Bigot <http://pabigot.github.io/bspacm/> | |
# | |
# To the extent possible under law, the author(s) have dedicated all | |
# copyright and related and neighboring rights to this software to | |
# the public domain worldwide. This software is distributed without | |
# any warranty. | |
# | |
# You should have received a copy of the CC0 Public Domain Dedication |
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
/* BSPACM - nRF51 DS18B20 OneWire interface | |
* | |
* Copyright 2012-2015, Peter A. Bigot | |
* | |
* 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 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
lilith[4835]$ node pb.js | |
pump cb 2 0 [Error: second call, carrying on] | |
ws finished 4 49152 |
This gist has patches to the Nordic PPK software to help it run under Linux.
Some other hints:
- If you get whining about unable to find JLINKARM.dll, modify the
This gist contains example code to demonstrate failures in the nRF52
SAADC peripheral when using the CONFIG.BURST
feature in both scan-mode
and non-scan-mode acquisitions.
The issue is discussed at: https://devzone.nordicsemi.com/f/nordic-q-a/45339/saadc-burst-problems-in-scan-vs-non-scan-acquisitions
The example directly manipulates SAADC peripheral registers, and runs under nrfcxx. The SAADC-specific material is self-contained and should be trivially portable to other frameworks or plain C.
OlderNewer