1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Clean up unused stuff

This commit is contained in:
Ivan Grokhotkov 2014-12-19 01:39:27 +03:00
parent 2a77249147
commit 43b9dd9edf
7 changed files with 8 additions and 93 deletions

View File

@ -142,44 +142,8 @@ void loop(void);
#define NOT_A_PIN 0 #define NOT_A_PIN 0
#define NOT_A_PORT 0 #define NOT_A_PORT 0
#define NOT_AN_INTERRUPT -1 #define NOT_AN_INTERRUPT -1
#ifdef ARDUINO_MAIN
#define PA 1
#define PB 2
#define PC 3
#define PD 4
#define PE 5
#define PF 6
#define PG 7
#define PH 8
#define PJ 10
#define PK 11
#define PL 12
#endif
#define NOT_ON_TIMER 0
#define TIMER0A 1
#define TIMER0B 2
#define TIMER1A 3
#define TIMER1B 4
#define TIMER1C 5
#define TIMER2 6
#define TIMER2A 7
#define TIMER2B 8
#define TIMER3A 9
#define TIMER3B 10
#define TIMER3C 11
#define TIMER4A 12
#define TIMER4B 13
#define TIMER4C 14
#define TIMER4D 15
#define TIMER5A 16
#define TIMER5B 17
#define TIMER5C 18
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif

View File

@ -68,12 +68,12 @@ public:
void begin(unsigned long baud) { begin(baud, 0); } void begin(unsigned long baud) { begin(baud, 0); }
void begin(unsigned long, uint8_t); void begin(unsigned long, uint8_t);
void end(); void end();
virtual int available(void); int available(void) override;
virtual int peek(void); int peek(void) override;
virtual int read(void); int read(void) override;
int availableForWrite(void); int availableForWrite(void);
virtual void flush(void); void flush(void) override;
virtual size_t write(uint8_t); size_t write(uint8_t) override;
inline size_t write(unsigned long n) { return write((uint8_t)n); } inline size_t write(unsigned long n) { return write((uint8_t)n); }
inline size_t write(long n) { return write((uint8_t)n); } inline size_t write(long n) { return write((uint8_t)n); }
inline size_t write(unsigned int n) { return write((uint8_t)n); } inline size_t write(unsigned int n) { return write((uint8_t)n); }

View File

@ -20,8 +20,8 @@
#ifndef Print_h #ifndef Print_h
#define Print_h #define Print_h
#include <inttypes.h> #include <stdint.h>
#include <stdio.h> // for size_t #include <stddef.h>
#include "WString.h" #include "WString.h"
#include "Printable.h" #include "Printable.h"

View File

@ -1,33 +0,0 @@
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Wiring project - http://wiring.uniandes.edu.co
Copyright (c) 2004-05 Hernando Barragan
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
Modified 24 November 2006 by David A. Mellis
Modified 1 August 2010 by Mark Sproul
*/
#include <stdint.h>
#include <stdio.h>
#include "wiring_private.h"

View File

@ -34,17 +34,6 @@
extern "C"{ extern "C"{
#endif #endif
#define EXTERNAL_INT_0 0
#define EXTERNAL_INT_1 1
#define EXTERNAL_INT_2 2
#define EXTERNAL_INT_3 3
#define EXTERNAL_INT_4 4
#define EXTERNAL_INT_5 5
#define EXTERNAL_INT_6 6
#define EXTERNAL_INT_7 7
#define EXTERNAL_NUM_INTERRUPTS 2
typedef void (*voidFuncPtr)(void); typedef void (*voidFuncPtr)(void);
void initPins(); void initPins();

View File

@ -17,11 +17,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/******************************************************************************
* Includes
******************************************************************************/
#include "Arduino.h" #include "Arduino.h"
#include "EEPROM.h" #include "EEPROM.h"