aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Arduino.h
AgeCommit message (Collapse)Author
2015-05-29pulseIn: add alternative implementation based on micros()Martino Facchin
pulseInLong is suitable for long pulses in interrupt context
2015-05-21Modified randomSeed, now uses unsigned long.Chris--A
2015-01-07Arduino custom type boolean is now mapped to bool typeCristian Maglie
Fixes #2151 Fixes #2147
2014-08-08Merge branch 'master' into ide-1.5.xCristian Maglie
2014-08-08Added replacement stub for cstdlib atexit() funciton.Christopher Andrews
This is an empty stub to simply allow use of complex types with a non global static lifetime. For more complex handling the function 'atexit' can be redefined in user code. For more information see: https://github.com/arduino/Arduino/pull/2229 https://github.com/arduino/Arduino/issues/1919
2014-06-27initVariant() is now declared as external "C" function.Cristian Maglie
See #2080 for more details.
2014-06-25Allow variants to define an initVariant() function that is called at startup.Matthijs Kooijman
See #2080 and #2139.
2014-05-16Support TIMER1CMatthijs Kooijman
Some devices, such as the atmega2560 or the atmega256rfr2 have a timer1c output. It seems this output is not connected to anything on the Arduino Mega, but this allows using it on third party hardware nonetheless.
2014-02-19Instead of #defining true and false, include stdbool.hMatthijs Kooijman
In C++, true and false are language keywords, so there is no need to define them as macros. Including stdbool.h in C++ effectively changes nothing. In C, true, false and also the bool type are not available, but including stdbool.h will make them available. Using stdbool.h means that we get true, false and the bool type in whatever way the compiler thinks is best, which seems like a good idea to me. This also fixes the following compiler warnings if a .c file includes both stdbool.h and Arduino.h: warning: "true" redefined [enabled by default] #define true 0x1 warning: "false" redefined [enabled by default] #define false 0x0 This fixes #1570 and helps toward fixing #1728. This only changed the AVR core, the SAM core already doesn't define true and false (but doesn't include stdbool.h either).
2014-02-13Added license for Arduino.h, binary.h and main.cpp (master branch)Cristian Maglie
See #1847 and #1117
2014-02-10Added license for Arduino.h, binary.h and main.cppCristian Maglie
See #1847
2014-01-22Centrally decide which hardware UARTS are availableMatthijs Kooijman
Before, this decision was made in few different places, based on sometimes different register defines. Now, HardwareSerial.h decides wich UARTS are available, defines USE_HWSERIALn macros and HardwareSerial.cpp simply checks these macros (together with some #ifs to decide which registers to use for UART 0). For consistency, USBAPI.h also defines a HAVE_CDCSERIAL macro when applicable. For supported targets, this should change any behaviour. For unsupported targets, the error messages might subtly change because some checks are moved or changed. Additionally, this moves the USBAPI.h include form HardareSerial.h into Arduino.h and raises an error when both CDC serial and UART0 are available (previously this would silently use UART0 instead of CDC, but there is not currently any Atmel chip available for which this would occur).
2014-01-16Define a _NOP() macroMatthijs Kooijman
Recent avr-libc releases define one, but this allows using it also on older avr-libc releases.
2014-01-06Removed = char from #define. See ↵Federico Fissore
https://github.com/arduino/Arduino/issues/1792#issuecomment-31650586
2014-01-06Added new EULER constant. Fixes #1792Federico Fissore
2013-10-31Using NOT_AN_INTERRUPT defined constantCristian Maglie
2013-05-11Merged 1.0.5Cristian Maglie
Still missing: - updates to WiFi lib for sam. - updates to examples of Ehternet and WiFi for sam. Merge remote-tracking branch 'arduino/master' into ide-1.5.x Conflicts: app/src/processing/app/Base.java app/src/processing/app/Editor.java app/src/processing/app/helpers/FileUtils.java app/src/processing/app/i18n/Resources_fr.po app/src/processing/app/i18n/Resources_fr.properties build/shared/revisions.txt hardware/arduino/avr/libraries/Ethernet/examples/DnsWebClient/DnsWebClient.ino hardware/arduino/avr/libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino hardware/arduino/avr/libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino hardware/arduino/avr/libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino hardware/arduino/avr/libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino hardware/arduino/avr/libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino hardware/arduino/avr/libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino libraries/WiFi/examples/WiFiTwitterClient/WiFiTwitterClient.ino libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino
2013-04-04Added support for all variants of SanguinoKristian Sloth Lauszus
2012-12-10fixed permissions on a lot of text files. see #1116Federico Fissore
2012-11-02Added general yield()-hook for cooperative scheduling development (part 2)Cristian Maglie
2012-10-31Added general yield()-hook for cooperative scheduling developmentCristian Maglie
2012-10-09Adding ATmega644P check to ATmega1284P check.David A. Mellis
2012-09-13Moving ATmega32U4 Timer 2 #undef's to Leonardo pins_arduino.h file.David A. Mellis
2012-08-08Fix for tone() on Leonardo.Shigeru KANEMOTO
2012-01-02Adding INPUT_PULLUP option pinMode(). (Paul Stoffregen).David A. Mellis
This also changes pinMode(pin, INPUT); to explicitly disable the pull-up resistor, even if it was previously set. http://code.google.com/p/arduino/issues/detail?id=246
2011-12-30Simplifying microseconds <-> clock cycles conversions. (Rob Tillaart)David A. Mellis
This should fix problems with overflows in pulseIn(). It may make millis() slightly less precise for clock speeds that aren't multiple of 1 million, but we don't really support those anyway. http://code.google.com/p/arduino/issues/detail?id=675
2011-12-02Updated reference voltage defines for ATmega1284P.David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=728
2011-10-24Moving ARDUINO_MAIN from main.cpp to wiring_digital.c and hiding PA, PB, etc.David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=677 http://code.google.com/p/arduino/issues/detail?id=691
2011-10-24Correcting analogReference() constants for ATtiny24/44/84 and 25/45/85.David A. Mellis
DEFAULT, EXTERNAL, and INTERNAL have different values on those processors.
2011-09-16added support for TIMER4D used for PWM on Leonardo and Micro D6Zach Eveland
2011-03-04Factoring pin definitions out of the core.David A. Mellis
That is, there's now a pins/ directory in a platform, which includes multiple directories, each of which has its own pins_arduino.h. The boards.txt gets a new preferences, <BOARD>.build.pins, whose values is a sub-directory of the pins/ directory (possibly with a "platform:" prefix). That sub-directory is then placed in the include path during compilation.
2011-03-03Moving all pin definitions into pins_arduino.h.David A. Mellis
This is a step towards providing portability across AVR's by simply including an appropriate header file.
2011-03-03Removing optimized digitalWrite(), digitalRead(), pinMode().David A. Mellis
2011-03-02Re-arranging header files and small fixes to optimized core functions.David A. Mellis
2011-03-01Moving wiring.h contents into Arduino.h.David A. Mellis
2011-03-01Renamed WProgram.h to Arduino.h.David A. Mellis