1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Commit Graph

5568 Commits

Author SHA1 Message Date
Martino Facchin
b2a6b61a2f add weak setupUSB() hook
override this function to insert additional USB endpoints
2015-07-16 13:12:14 +02:00
Martino Facchin
ec43b6c829 remove useless variable 2015-07-16 13:12:14 +02:00
Martino Facchin
1aec25b855 add PluggableUSB module 2015-07-16 13:12:14 +02:00
Martino Facchin
1f534eac35 move _initEndpoints from PROGMEM to RAM 2015-07-16 13:12:14 +02:00
Martino Facchin
2c5dd20298 Use generic composite device descriptor 2015-07-16 13:12:13 +02:00
Martino Facchin
5ee69a70ee Move EP defines to header 2015-07-16 13:12:13 +02:00
Martino Facchin
09460dd8c9 Remove HID core library 2015-07-16 13:12:13 +02:00
Matthijs Kooijman
7fd6244621 Enable C11 support
This uses the gnu11 standard, which is C11 with GNU extensions.
Previously, gnu89 was being used, which is pretty ancient by now. C99
brings some important improvements, some of which were already available
and used even without this option. C11 is more recent and brings more
minor improvements. Most notable feature is the static_assert statement,
allowing checking invariants at compiletime using the full C
expressions.
2015-07-16 13:06:10 +02:00
Matthijs Kooijman
ebeb7843d2 Check for __cplusplus >= 201103L as well as __GXX_EXPERIMENTAL_CXX0X__
Gcc 4.8 defines __cplusplus as 201103L, so we can check for that now. It
still also defines __GXX_EXPERIMENTAL_CXX0X__, but this could help on
other compilers, or if gcc ever decides to stop defining the
experimental macro.
2015-07-16 13:06:10 +02:00
Matthijs Kooijman
ddf4d878fd Enable C++11 support
This uses the gnu++11 standard, which is C++11 with GNU extensions.
C++11 should be full compatible with the previously used C++98
standards, so all pre-existing sketches should continue to work.
2015-07-16 13:06:09 +02:00
Matthijs Kooijman
770a695c85 Explicitely specify C and C++ standards to use
This does not change anything, it just makes the defaults explicit.
2015-07-16 13:06:09 +02:00
Cristian Maglie
c28e6b20c4 WiFi lib version bump to 1.2.5 2015-07-14 23:40:40 +02:00
Cristian Maglie
6e9e514a2d Ethernet lib version bump to 1.1.0 2015-07-14 23:39:03 +02:00
Peter Van Hoyweghen
89184a3668 Use new style SPI::beginTransaction() api, make SPI_CLOCK configurable, select hardware or software SPI based on SPI_CLOCK. 2015-07-14 23:06:54 +02:00
Peter Van Hoyweghen
50f9e539d8 Ensure minimum spi pulse width. 2015-07-14 21:20:39 +02:00
Martyn Ranyard
94af627772 Bootloaders: wrong #ifdefs, should be defined() not just tested (i.e. noteq 0)
Close #126
2015-07-14 16:16:31 +02:00
Cristian Maglie
94fcb02e0f Removed typos in EthernetClient.cpp 2015-07-14 15:56:48 +02:00
Alasdair Allan
e5805926d0 Added Multicast UDP support
Fix #1531
2015-07-14 15:56:25 +02:00
Martyn Ranyard
59b5311cdf Bootloaders: adds support for 328-nonp chips 2015-07-14 12:55:22 +02:00
Martyn Ranyard
3831c9c519 -O2 in new avr-gcc makes too big a bootloader to fit on 328(and 328p) 2015-07-14 12:37:36 +02:00
Martyn Ranyard
8f5ca0a943 Fixed EEPE flag check.
Here, using the flag itself makes the bootloader build where it currently does not for the 328 amongst others
2015-07-14 12:28:13 +02:00
Cristian Maglie
da243c9e09 Merge branch 'PR_18Wifi' of https://github.com/facchinm/Arduino 2015-07-14 10:16:55 +02:00
Cristian Maglie
a33c93b194 Ethernet: fixed wrong handling of timeouts in DHCP
The signed math doesn't handle correctly cases where the lease
time is set to infinity (0xFFFFFFFF).

Fixes #2571
Fixes #2601
Fixes #2642
Fixes #985
2015-07-14 09:57:01 +02:00
Cristian Maglie
50dff341f2 Ethernet: fix calculation of T2 in DHCP 2015-07-14 09:57:01 +02:00
Cristian Maglie
2b089e6b58 Ehternet: removed useless _lastCheck field in DHCP
it seems that _lastCheck, besides the name, was simply used as flag
to detect if _secTimeout is initialized. Now the check is removed
and _secTimeout is initalized in the proper place.
2015-07-14 09:57:01 +02:00
Peter Van Hoyweghen
5a04ab2a32 Don't pulse error led if avrdude enters programming mode twice 2015-07-13 21:49:42 +02:00
Peter Van Hoyweghen
eca360bf42 Fix typo: SPI_CLOCK_DIV128 2015-07-13 21:30:34 +02:00
Peter Van Hoyweghen
c8b5e99267 Configure the serial port to use. Prefer native USB port if the Arduino has one. 2015-07-13 21:30:33 +02:00
Peter Van Hoyweghen
64e52d8016 Implement bitbang SPI for slow clock devices. (Sylvan Butler). 2015-07-13 21:22:00 +02:00
Peter Van Hoyweghen
a17a757722 Configure SPI pins as input when target is not in reset. 2015-07-13 21:22:00 +02:00
Peter Van Hoyweghen
15da182399 Support at89sx mcu's by adding the possibility to specify the polarity of the target reset signal. 2015-07-13 21:21:58 +02:00
Peter Van Hoyweghen
56e09109df The delay between reset and the enter progmode command got lost when introducing the SPI library. Put it back in. 2015-07-13 21:21:57 +02:00
Peter Van Hoyweghen
93b31b6cfa Simply use pin 10 to reset the target. It works for all Arduino's and allows the same "ArduinoISP shield" to be used on all of them. Such a shield has an ISP connector that: - wires MISO,MOSI, SCK, GND and 5V to the ISP connector of the programming Arduino - wires RESET to pin 10 of the programming Arduino. 2015-07-13 21:21:57 +02:00
Peter Van Hoyweghen
ad2a32fd24 Avoid delay in heartbeat. That way we can also set the baudrate back to the value used in the IDE. In fact, with this fix, baud rates of up to 115200 work also. 2015-07-13 21:21:57 +02:00
Randall Bohn (Huckle)
aeaed27e13 Use SPI library. 2015-07-13 21:18:17 +02:00
Randall Bohn (Huckle)
8dfe833e49 Set error if GET_SIGN_ON not followed by CRC_EOP 2015-07-13 21:13:54 +02:00
Randall Bohn (Huckle)
d968c7a8ee Don't start_pmode if we're already in pmode. 2015-07-13 21:13:53 +02:00
Randall Bohn (Huckle)
a2a06f56cc Be more specific about datatypes in the parameter struct. 2015-07-13 21:13:53 +02:00
Federico Fissore
ce595ce818 Updating translations 2015-07-10 12:31:43 +02:00
Martino Facchin
1fb0f84c46 WiFi: move init from constructor to method
Zero SPI library is not responding correctly when invoked before main()

AVR compatibility ok
fixes arduino/ArduinoCore-samd#18
2015-07-10 12:05:55 +02:00
Martino Facchin
27bc345ff8 Merge pull request #3490 from facchinm/PR3123
Merging PR3123
2015-07-09 13:45:19 +00:00
Martino Facchin
e75d029c81 Ethernet: add getSocketNumber to keywords 2015-07-09 15:42:45 +02:00
Aberto Panu
c5f0815f27 Add EthernetClient getSocketNumber() function 2015-07-09 15:42:26 +02:00
Federico Fissore
5d388e1646 Cleanup and java8 goodness 2015-07-09 15:20:38 +02:00
Federico Fissore
43f33d8220 Tools marked as installed but missing (as when you want to use a system installed avr-gcc) sets to "" the final build preference. Fixes #3074 2015-07-09 15:16:19 +02:00
Martino Facchin
2f3914eb97 LiquidCrystal: bumb version to 1.0.3
fix compatibility with Galileo and Edison
2015-07-09 15:04:26 +02:00
Federico Fissore
8f4c08af86 Added missing conditionals in keywords.txt. Fixes #966 2015-07-09 13:13:22 +02:00
Federico Fissore
28e8eb41cc Removed old app/format folder and its contents 2015-07-09 12:51:54 +02:00
Federico Fissore
2c05841588 EditorStatus rewritten: less shared state, shorter and cleaner code. Also fixes #666 2015-07-09 12:02:59 +02:00
Federico Fissore
444babdcb8 Merge pull request #3483 from sandeepmistry/issue-2911
Hide stack trace when the SerialUploader cannot find the selected board
2015-07-09 09:25:41 +02:00