Ver código fonte

Reduce C++ header overhead

main
PaulStoffregen 6 anos atrás
pai
commit
c03419bc19
2 arquivos alterados com 6 adições e 1 exclusões
  1. +5
    -0
      teensy3/Arduino.h
  2. +1
    -1
      teensy3/wiring.h

+ 5
- 0
teensy3/Arduino.h Ver arquivo

@@ -1,4 +1,9 @@
// This header file is in the public domain.

#ifndef Arduino_h
#define Arduino_h

#include "WProgram.h"
#include "pins_arduino.h"

#endif

+ 1
- 1
teensy3/wiring.h Ver arquivo

@@ -64,7 +64,7 @@ T map(T x, A in_min, B in_max, C out_min, D out_max, typename std::enable_if<std
{
return (x - (T)in_min) * ((T)out_max - (T)out_min) / ((T)in_max - (T)in_min) + (T)out_min;
}
#include <algorithm> // c++ min, max
//#include <algorithm> // this isn't really needed, is it? (slows down compiling)
#include <utility>
// https://forum.pjrc.com/threads/44596-Teensyduino-1-37-Beta-2-(Arduino-1-8-3-support)?p=145150&viewfull=1#post145150
template<class A, class B>

Carregando…
Cancelar
Salvar