mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
merging ide-1.5.x
This commit is contained in:
Binary file not shown.
@ -52,9 +52,9 @@ import static processing.app.I18n._;
|
|||||||
* files and images, etc) that comes from that.
|
* files and images, etc) that comes from that.
|
||||||
*/
|
*/
|
||||||
public class Base {
|
public class Base {
|
||||||
public static final int REVISION = 152;
|
public static final int REVISION = 153;
|
||||||
/** This might be replaced by main() if there's a lib/version.txt file. */
|
/** This might be replaced by main() if there's a lib/version.txt file. */
|
||||||
static String VERSION_NAME = "0152";
|
static String VERSION_NAME = "0153";
|
||||||
/** Set true if this a proper release rather than a numbered revision. */
|
/** Set true if this a proper release rather than a numbered revision. */
|
||||||
static public boolean RELEASE = false;
|
static public boolean RELEASE = false;
|
||||||
|
|
||||||
|
@ -302,6 +302,15 @@ public class Preferences {
|
|||||||
|
|
||||||
// other things that have to be set explicitly for the defaults
|
// other things that have to be set explicitly for the defaults
|
||||||
setColor("run.window.bgcolor", SystemColor.control);
|
setColor("run.window.bgcolor", SystemColor.control);
|
||||||
|
|
||||||
|
fixPreferences();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void fixPreferences() {
|
||||||
|
String baud = get("serial.debug_rate");
|
||||||
|
if ("14400".equals(baud) || "28800".equals(baud) || "38400".equals(baud)) {
|
||||||
|
set("serial.debug_rate", "9600");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,6 +159,8 @@ public class Serial implements SerialPortEventListener {
|
|||||||
if (portId.getName().equals(iname)) {
|
if (portId.getName().equals(iname)) {
|
||||||
//System.out.println("looking for "+iname);
|
//System.out.println("looking for "+iname);
|
||||||
port = (SerialPort)portId.open("serial madness", 2000);
|
port = (SerialPort)portId.open("serial madness", 2000);
|
||||||
|
port.setDTR(true);
|
||||||
|
port.setRTS(true);
|
||||||
input = port.getInputStream();
|
input = port.getInputStream();
|
||||||
output = port.getOutputStream();
|
output = port.getOutputStream();
|
||||||
port.setSerialPortParams(rate, databits, stopbits, parity);
|
port.setSerialPortParams(rate, databits, stopbits, parity);
|
||||||
|
@ -121,8 +121,8 @@ public class SerialMonitor extends JFrame implements MessageConsumer {
|
|||||||
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
||||||
|
|
||||||
String[] serialRateStrings = {
|
String[] serialRateStrings = {
|
||||||
"300","1200","2400","4800","9600","14400",
|
"300","1200","2400","4800","9600",
|
||||||
"19200","28800","38400","57600","115200"
|
"19200","57600","115200"
|
||||||
};
|
};
|
||||||
|
|
||||||
serialRates = new JComboBox();
|
serialRates = new JComboBox();
|
||||||
|
@ -99,7 +99,7 @@ public class PdeKeywords extends CTokenMarker {
|
|||||||
//String htmlFilename = second.substring(tab + 1).trim();
|
//String htmlFilename = second.substring(tab + 1).trim();
|
||||||
String coloring = pieces[1].trim();
|
String coloring = pieces[1].trim();
|
||||||
|
|
||||||
if (coloring.length() > 0) {
|
if (coloring.length() > 0 && Character.isDigit(coloring.charAt(coloring.length() - 1))) {
|
||||||
// text will be KEYWORD or LITERAL
|
// text will be KEYWORD or LITERAL
|
||||||
boolean isKey = (coloring.charAt(0) == 'K');
|
boolean isKey = (coloring.charAt(0) == 'K');
|
||||||
// KEYWORD1 -> 0, KEYWORD2 -> 1, etc
|
// KEYWORD1 -> 0, KEYWORD2 -> 1, etc
|
||||||
|
BIN
build/linux/dist/lib/librxtxSerial.so
vendored
Executable file → Normal file
BIN
build/linux/dist/lib/librxtxSerial.so
vendored
Executable file → Normal file
Binary file not shown.
BIN
build/macosx/template.app/Contents/Resources/Java/librxtxSerial.jnilib
Executable file → Normal file
BIN
build/macosx/template.app/Contents/Resources/Java/librxtxSerial.jnilib
Executable file → Normal file
Binary file not shown.
@ -1,4 +1,12 @@
|
|||||||
|
|
||||||
|
ARDUINO 1.5.3 BETA
|
||||||
|
|
||||||
|
[ide]
|
||||||
|
* Removed useless baud rates from serial monitor
|
||||||
|
|
||||||
|
[arduino core]
|
||||||
|
* sam: Fixed delayMicrosecond() when interrupts are disabled
|
||||||
|
|
||||||
ARDUINO 1.5.2 BETA - 2013.02.06
|
ARDUINO 1.5.2 BETA - 2013.02.06
|
||||||
|
|
||||||
[ide]
|
[ide]
|
||||||
|
BIN
build/windows/dist/rxtxSerial.dll
vendored
BIN
build/windows/dist/rxtxSerial.dll
vendored
Binary file not shown.
@ -233,7 +233,7 @@ esplora.bootloader.lock_bits=0x2F
|
|||||||
esplora.build.mcu=atmega32u4
|
esplora.build.mcu=atmega32u4
|
||||||
esplora.build.f_cpu=16000000L
|
esplora.build.f_cpu=16000000L
|
||||||
esplora.build.vid=0x2341
|
esplora.build.vid=0x2341
|
||||||
esplora.build.pid=0x8036
|
esplora.build.pid=0x803c
|
||||||
esplora.build.board=ARDUINO_ESPLORA
|
esplora.build.board=ARDUINO_ESPLORA
|
||||||
esplora.build.core=arduino
|
esplora.build.core=arduino
|
||||||
esplora.build.variant=leonardo
|
esplora.build.variant=leonardo
|
||||||
|
@ -41,12 +41,6 @@ extern "C"{
|
|||||||
|
|
||||||
void yield(void);
|
void yield(void);
|
||||||
|
|
||||||
#include "wiring.h"
|
|
||||||
#include "wiring_digital.h"
|
|
||||||
#include "wiring_analog.h"
|
|
||||||
#include "wiring_shift.h"
|
|
||||||
#include "WInterrupts.h"
|
|
||||||
|
|
||||||
/* sketch */
|
/* sketch */
|
||||||
extern void setup( void ) ;
|
extern void setup( void ) ;
|
||||||
extern void loop( void ) ;
|
extern void loop( void ) ;
|
||||||
@ -195,6 +189,12 @@ extern const PinDescription g_APinDescription[] ;
|
|||||||
// Include board variant
|
// Include board variant
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
|
|
||||||
|
#include "wiring.h"
|
||||||
|
#include "wiring_digital.h"
|
||||||
|
#include "wiring_analog.h"
|
||||||
|
#include "wiring_shift.h"
|
||||||
|
#include "WInterrupts.h"
|
||||||
|
|
||||||
// USB Device
|
// USB Device
|
||||||
#define USB_VID 0x2341 // arduino LLC vid
|
#define USB_VID 0x2341 // arduino LLC vid
|
||||||
#define USB_PID_LEONARDO 0x0034
|
#define USB_PID_LEONARDO 0x0034
|
||||||
|
@ -49,13 +49,6 @@ void delay( uint32_t ms )
|
|||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
void delayMicroseconds( uint32_t us )
|
|
||||||
{
|
|
||||||
uint32_t start = micros();
|
|
||||||
while ((micros() - start) < us)
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
#if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
||||||
extern signed int putchar( signed int c ) ;
|
extern signed int putchar( signed int c ) ;
|
||||||
/**
|
/**
|
||||||
|
@ -62,8 +62,16 @@ extern void delay( uint32_t dwMs ) ;
|
|||||||
*
|
*
|
||||||
* \param dwUs the number of microseconds to pause (uint32_t)
|
* \param dwUs the number of microseconds to pause (uint32_t)
|
||||||
*/
|
*/
|
||||||
extern void delayMicroseconds( uint32_t dwUs ) ;
|
static inline void delayMicroseconds(uint32_t) __attribute__((always_inline, unused));
|
||||||
|
static inline void delayMicroseconds(uint32_t usec){
|
||||||
|
uint32_t n = usec * (VARIANT_MCK / 3000000);
|
||||||
|
asm volatile(
|
||||||
|
"L_%=_delayMicroseconds:" "\n\t"
|
||||||
|
"subs %0, #1" "\n\t"
|
||||||
|
"bge L_%=_delayMicroseconds" "\n"
|
||||||
|
: "+r" (n) :
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,16 @@
|
|||||||
#ifndef _VARIANT_ARDUINO_DUE_X_
|
#ifndef _VARIANT_ARDUINO_DUE_X_
|
||||||
#define _VARIANT_ARDUINO_DUE_X_
|
#define _VARIANT_ARDUINO_DUE_X_
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* Definitions
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/** Frequency of the board main oscillator */
|
||||||
|
#define VARIANT_MAINOSC 12000000
|
||||||
|
|
||||||
|
/** Master clock frequency */
|
||||||
|
#define VARIANT_MCK 84000000
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
@ -40,23 +50,6 @@ extern "C"{
|
|||||||
# include <syscalls.h> /** RedHat Newlib minimal stub */
|
# include <syscalls.h> /** RedHat Newlib minimal stub */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
|
||||||
* Definitions
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#define ArduinoDueX_DevEd
|
|
||||||
|
|
||||||
/** Name of the board */
|
|
||||||
#define VARIANT_NAME "Arduino_DueX_Dev_Ed"
|
|
||||||
|
|
||||||
/** Frequency of the board main oscillator */
|
|
||||||
#define VARIANT_MAINOSC 12000000
|
|
||||||
|
|
||||||
/** Master clock frequency */
|
|
||||||
#define VARIANT_MCK 84000000
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Pins
|
* Pins
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
Reference in New Issue
Block a user