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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include "HardwareSerial.h" | |
HardwareSerial Serial(0); | |
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL) {} | |
void HardwareSerial::setInterrupt(void(*arg)() ) |
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
# | |
# Toolchain for cross-compiling to JS using Emscripten | |
# | |
# Modify EMSCRIPTEN_PREFIX to your liking; use EMSCRIPTEN environment variable | |
# to point to it or pass it explicitly via -DEMSCRIPTEN_PREFIX=<path>. | |
# | |
# mkdir build-emscripten && cd build-emscripten | |
# cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchains/generic/Emscripten.cmake | |
# |