This file contains hidden or 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
void setup() | |
{ | |
// DDRB – Port B Data Direction Register (p64) | |
// 8-bit R/W [ : :DDB5:DDB4:DDB3:DDB2:DDB1:DDB0] | |
// PORTB = 1<<DDB1 | 1<<DDB0; | |
pinMode(0, OUTPUT); // 1<<DDB0: PWM output on pin 0 (^OC1A) | |
pinMode(1, OUTPUT); // 1<<DDB1: PWM output on pin 1 (OC1A) | |
// TCCR1 - Timer/Counter1 Control Register (p89) | |
// 8-bit R/W: [CTC1:PWM1A:COM1A1:COM1A0:CS13:CS12:CS11:CS10] |
This file contains hidden or 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 perl | |
# cpanm Inline::C | |
use Inline 'C'; | |
my $a = 10; | |
my $b = 15; | |
print "$a + $b = ", add_c_asm($a, $b), "\n"; |
This file contains hidden or 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 perl | |
use Inline 'C'; | |
my $a = 10; | |
my $b = 15; | |
print "$a + $b = ", add_c_asm($a, $b), "\n"; | |
__END__ |
This file contains hidden or 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 bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.10) | |
project(XMLParserTest) | |
find_package(XercesC REQUIRED) | |
find_package(Boost REQUIRED) | |
find_package(GTest REQUIRED) | |
include_directories(${XERCESC_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS}) | |
add_executable(xml_parser_test xml_parser_test.cpp) |