Martino Facchin
a261e6cf7c
remove HID from core
2015-07-17 12:16:09 +02:00
Martino Facchin
b2381506a2
sam: add HID library
2015-07-17 12:13:21 +02:00
Martino Facchin
af290fc5a3
rework HID-based libraries and add Due fallback
2015-07-16 13:13:53 +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
Federico Fissore
5e98cd8528
Examples: mass code format. See example_formatter.conf
2015-07-06 15:19:05 +02:00
Matthew Lowe
39c3f8bf61
Support for repeated starts added to SAM Wire library
...
Additional interface method ported to avr for compatibility
Fix issue #2428 .
2015-07-03 16:59:30 +02:00
Martino Facchin
98d0a72fdd
Merge pull request #1869 from kevin-pololu/due-wire-available
...
SAM Wire: fixed NACK/timeout behavior of requestFrom() and available()
2015-07-01 12:43:44 +00:00
Federico Fissore
5f31f4b8dd
Fixed missing "sketch" folders in some paths of both AVR and SAM cores
2015-06-29 16:10:54 +02:00
Federico Fissore
e097439eab
Compiler: sketch files get compiled into "sketch"
2015-06-29 15:11:45 +02:00
Federico Fissore
5a35be06da
Compiler: cores files get compiled under "core", libraries under "libraries". Fixes #2997
2015-06-29 15:11:45 +02:00
Cristian Maglie
2cbdc121e9
Fixed unused variables warnings and indentation
2015-05-29 20:02:50 +02:00
Martino Facchin
a7d81d0b1c
pulseIn: add alternative implementation based on micros()
2015-05-29 15:01:38 +02:00
Martino Facchin
bb3963c0e9
pulseIn: add ASM implementation for Due
2015-05-29 15:01:38 +02:00
Christopher Andrews
527c7c2572
Updated printLn on SAM core
2015-05-23 01:56:06 +10:00
Federico Fissore
9166828bfe
Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc . Fixes #3191
2015-05-20 17:10:06 +02:00
Cristian Maglie
977ccc6910
Added missing license on samd's pgmspace.h
...
Fixes #3145
2015-05-19 20:01:50 +02:00
Federico Fissore
42b07f0337
Libraries bundled with cores will take the type of that core, instead of relying on an undocumented 'types' property. Fixes #2875
2015-05-19 12:24:11 +02:00
Martino Facchin
7f8cba667d
Due watchdog: change flags to effectively reset board
2015-05-08 14:16:12 +02:00
Bob Cousins
d2c510d166
Add Due watchdog functions; modified according to feedback supplied
2015-05-08 14:16:12 +02:00
Bob Cousins
4725d75054
Add watchdog routines for Due.
2015-05-08 14:16:12 +02:00
Arnav Gupta
4d029de000
saveHex: rename recipe.hex -> recipe.output
...
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Arnav Gupta
78936541b7
update Sketch menu, add Save hex option
...
* Moving Upload options from "File" menu to "Sketch" menu as those
are sketch actions more than file actions.
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Federico Fissore
90026f3764
Disabling uncertified warning, leaving vids/pids
2015-04-27 10:55:16 +02:00
Federico Fissore
d805fb4e1f
Renamed compiler.warning_flags pref to compiler.warning_level
...
Provided a default value for compiler.warning_flags
Releasing avr core 1.6.5
2015-04-24 09:27:28 +02:00
Cristian Maglie
c944a4c84d
Updated Stream.cpp in SAM core to the latest version
2015-04-21 18:11:05 +02:00
Federico Fissore
f7fe11c825
Reviewed warnings key names and dropdown in Preferences
2015-04-13 17:18:23 +02:00
Federico Fissore
b42c6667e1
Better preference for setting warnings level. See 61592d78fa (commitcomment-10668365)
2015-04-13 12:22:37 +02:00
Federico Fissore
ea5155656a
Starting 1.6.3
...
Updated toolchains: linux statically compiled, added gcc lto plugin (disabled)
2015-03-30 15:06:59 +02:00
Federico Fissore
6e498ee5b9
LibraryManager: better type filtering
2015-03-27 14:51:19 +01:00
Federico Fissore
e884789322
Not using gcc version, hard to maintain
2015-03-27 14:51:15 +01:00
Federico Fissore
7d6729ab93
Fixed platforms(.txt)
2015-03-27 14:51:12 +01:00
Martino Facchin
ab5aea40a6
Stream: set findMulti function as protected
...
let's not expose it until the API is not accepted
widely by the dev mailing list
2015-03-24 17:13:14 +01:00
Martino Facchin
c25dc61bd6
Merge pull request #2814 from facchinm/test_pr2696
...
Fix findUntil in Stream library
2015-03-24 15:24:42 +00:00
Jim Leonard (Xuth)
f43a7a698e
Fix findUntil in Stream library
...
PR #2696 without timeout-related changes
2015-03-24 12:31:50 +01:00
Federico Fissore
c46e667e7a
Started working on 1.6.2
2015-03-11 11:42:55 +01:00
Federico Fissore
39d1dfc999
Added warning for uncertified boards
2015-03-10 08:52:41 +01:00
Cristian Maglie
606604d7d6
Update revision log. Version set to 1.6.1.
2015-02-19 18:22:43 +01:00
Cristian Maglie
a39364193f
"objcopy" recipes are no more tied to "hex" extension
...
This allow to define specific recipes for every platform
but keeps backward compatibility.
See #2614
2015-02-16 14:39:55 +01:00
Arnav Gupta
79a74aa667
rename hex -> output
...
using generic term 'output', because for samx32,
output is .bin format and not .hex
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-02-10 04:31:51 +05:30
Cristian Maglie
e93be4855f
Corrected some email contacts.
2015-02-05 16:47:22 +01:00
Cristian Maglie
0e013406bc
Merge branch 'sam-usart-mode-fix' into ide-1.5.x
2015-01-19 13:43:42 +01:00
Cristian Maglie
00f23d3aad
sam: Fixed initialization of UART/USART mode register
2015-01-14 00:08:59 +01:00
Chris
7e9cf6d612
sam: updated UART/USART modes
2015-01-09 20:25:09 +00:00
Cristian Maglie
20ac20f629
Arduino custom type boolean is now mapped to bool type
...
Fixes #2151
Fixes #2147
2015-01-07 14:56:19 +01:00
Cristian Maglie
5e97168fbc
sam: USART modes now fails if used on UART
2015-01-06 15:47:44 +01:00
Cristian Maglie
37ea166e19
sam: refined UART/USART class inheritance
...
Let Usart inherit all methods from Uart.
2015-01-05 15:35:32 +01:00
Cristian Maglie
16d836108f
sam: fix code format and indent in UART/USART class
2015-01-05 15:34:09 +01:00
Collin Kidder
cabfd8ed21
Fixed flush so that it actually is sure to flush all outstanding data.
2015-01-04 13:37:28 -05:00
Collin Kidder
76280e8778
Correct an issue where write could send data out of order.
2014-12-31 08:42:26 -05:00
Collin Kidder
eff20deb27
Add ability to set interrupt priority for UART/USARTs.
2014-12-24 10:36:40 -05:00
Collin Kidder
2fedb00552
Switch all of the transmit interrupt code to UARTClass. Also, turn USARTClass into a stub because it did nothing differently from the UART code anyway. Now all serial ports use transmit interrupts.
2014-12-24 10:20:37 -05:00
Collin Kidder
bb341c6d92
Modifications to make serial transmit interrupt work more reliably. Also, added the availableForWrite function.
2014-12-23 22:37:58 -05:00
Collin Kidder
4eb05c303b
Change RingBuffer to have buffer size of 128 and also set its members volatile since they are all accessed and modified in interrupt handlers.
2014-12-23 22:36:35 -05:00
Collin Kidder
065459c18f
Implement transmit buffering with interrupts for USART devices
2014-12-21 20:57:08 -05:00
Cristian Maglie
b9e186e45a
Upped version to 1.6.0
2014-11-18 14:48:01 +01:00
Cristian Maglie
d1714a9fb8
[sam] Added -MMD flag to tell compiler to produce dependencies files
...
Now a full rebuild of the sketch is triggered only if needed.
2014-10-22 13:36:14 +02:00
Cristian Maglie
3687289727
Merge pull request #2330 from spiritinlife/ide-1.5.x
...
Add #include "Print.h" in Server.h Ide 1.5.x
2014-10-01 13:29:29 +02:00
Cristian Maglie
21939e6f89
[sam] Fixed compile error when using math functions
...
Fixes #2338
2014-09-30 17:34:25 +02:00
George Chailazopoulos
2c289ace73
Add #include "Print.h" in Server.h
2014-09-26 22:59:02 +03:00
Cristian Maglie
974613a0a2
[sam] Fixed architecture specific macro digitalPinToTimer, added comment to uninplemented portModeRegister
...
Fix #1833
2014-09-22 00:38:02 +02:00
Cristian Maglie
84518e442c
Fixed attribution rights for SAM delayMicroseconds function
2014-09-16 12:31:16 +02:00
Cristian Maglie
8018a26e3d
Merge pull request #2299 from cmaglie/ide-1.5.x-spi-updates
...
Missing SPI Transaction API methods on Due (SAM3X)
2014-09-12 14:07:03 +02:00
Cristian Maglie
69e37647a6
Ported #1397 to SAM.
2014-09-12 12:06:00 +02:00
Cristian Maglie
6a5b82f062
[sam] Implementation of SPI multibyte transfer
2014-09-11 17:50:00 +02:00
Cristian Maglie
5f88564b2b
[sam] Simplified formula for SPI speed
2014-09-11 13:57:08 +02:00
Cristian Maglie
848dd39313
[sam] SPI library: added SPI_HAS_EXTENDED_CS_PIN_HANDLING flag
...
This allows to check if SPI provides extended API to allow automatic
CS pin handling.
2014-09-11 13:57:07 +02:00
Cristian Maglie
11cf45d6d6
Fix indent and small cosmetic changes
2014-09-10 18:22:02 +02:00
Cristian Maglie
37ee800abd
Correct implementation of gcc specific internal functions
...
The following empty stubs has been replaced by the gcc
flag -fno-threadsafe-static:
int __cxa_guard_acquire(__guard *);
void __cxa_guard_release (__guard *);
void __cxa_guard_abort (__guard *);
The following empty stubs has been moved into their specific
module abi.cpp:
void __cxa_pure_virtual(void) __attribute ((noreturn));
void __cxa_deleted_virtual(void) __attribute ((noreturn));
Fix #107
2014-09-06 12:42:25 +02:00
Cristian Maglie
07e3e83424
Added new/delete stubs for Arduino Due
...
Fix #1485
A better implementation may be desirable as discussed in #108
2014-09-06 10:26:59 +02:00
Cristian Maglie
b7b9da7710
Updated version to 1.5.8
2014-09-05 10:11:47 +02:00
PaulStoffregen
daa7e7dcc9
Fix interrupt masking on Arduino Due
2014-08-01 16:44:47 -07:00
PaulStoffregen
ef06410d16
Add SPI_HAS_TRANSACTION symbol for Arduino Due
2014-08-01 13:00:29 -07:00
PaulStoffregen
abb37e202f
SPI Transactions for Arduino Due
2014-08-01 05:57:13 -07:00
Cristian Maglie
6200ec2039
Merge pull request #2194 from Fede85/ide-1.5.x_lib-description
...
Ide 1.5.x lib description
2014-07-21 12:16:20 +02:00
Fede85
dd77375fe9
missing paragraph field in library.properties
2014-07-18 20:08:01 +02:00
Fede85
b02e85ceb2
modified sentences in library.properties files
2014-07-18 19:41:34 +02:00
Matt Robinson
61a3558946
Cast empty string to char* to fix compiler warning
...
Stream::find(char *target) passes an empty terminator string to
Stream::findUntil(char *target, char *terminator) which caused a compiler
warning with the updated toolchain, so cast it to a char*.
2014-07-17 16:51:35 +01:00
Cristian Maglie
75ec6a1b31
Due: Wire.setClock can be called at any time
...
See #2157
2014-07-06 00:36:22 +02:00
Kristian Lauszus
9d20959b6a
Implemented setClock for the Due as well
...
This allows users to change the I2C clock frequency
2014-07-02 19:47:23 +02:00
Cristian Maglie
c2c122b079
Merge branch 'master' into matthijskooijman-ide-1.5.x-timer-variant
...
Conflicts:
app/src/processing/app/debug/Compiler.java
hardware/arduino/sam/cores/arduino/main.cpp
2014-07-01 18:34:46 +02:00
Cristian Maglie
c2e5f67ea6
Updated arm gcc to version 4.8.3-2014q1
2014-06-25 11:59:47 +02:00
Cristian Maglie
4df2c8982a
Updated arm gcc to 4.8.3
2014-06-25 11:57:49 +02:00
Cristian Maglie
3a4381955e
Updated arm gcc to 4.7.4
2014-06-25 11:56:50 +02:00
Cristian Maglie
7f9e9b1cc2
Merge branch 'master' into HEAD
2014-06-13 10:29:12 +02:00
Chris
e079baa18d
Fix for Due Wire library
...
Fix reading and use of TWI status register.
Also, update endTransmission to be compatible with original & give more
useful return.
2014-05-23 12:06:43 +02:00
Cristian Maglie
abbebed7dd
Removed 'USB_MANUFACTURER' constant redefinition for known VIDs.
...
See #1877
2014-04-20 20:49:04 +02:00
Cristian Maglie
b673b72cfb
Merge branch 'ide-1.5.x-warnings' of github.com:matthijskooijman/Arduino into ide-1.5.x
2014-04-20 19:36:29 +02:00
Cristian Maglie
f0738fdf9f
Merge branch 'ide-1.5.x_serial_config' of github.com:bluesign2k/Arduino into ide-1.5.x
2014-04-10 21:55:29 +02:00
Cristian Maglie
b0e29179a5
Added extra flags support through platform.local.txt on sam
...
See #1985
2014-04-10 21:47:09 +02:00
Chris
d02fde6e37
Add config options to due Serial1, 2, and 3
...
Adds ability to set length, parity and stop bit configuration to
hardware serial ports using USART module (Serial1, Serial2, and Serial
3) on Due to allow compatibility with avr devices.
2014-04-07 21:55:23 +01:00
Cristian Maglie
2659b47587
Update revision log. Upped version to 1.5.6
2014-02-19 18:14:31 +01:00
Matthijs Kooijman
5c6ee6127c
Remove const specifier from channelToTC array in analogWrite on SAM
...
Members of this array are later passed to functions that accept
non-const pointers. These functions probably don't modify their
arguments, so a better solution would be to update those functions to
accept const pointers. However, they look like third-party code, so that
would require changing the code again on every update. Removing const
here fixes at least the compiler warning for now.
This helps towards #1792 .
2014-02-19 16:09:31 +01:00
Matthijs Kooijman
4b3db72a46
Fix two signedness warnings
...
This helps towards #1792
2014-02-19 16:09:30 +01:00
Matthijs Kooijman
1c6a57e15d
Include stdio.h in dtostrf.c
...
This makes the declaration of sprintf available, so the function is not
implicitely declared, which triggers two compiler warnings.
This helps towards #1792
2014-02-19 16:09:30 +01:00
Matthijs Kooijman
8e35973ff9
Remove check that is always false
...
len is an unsigned variable, so it will never be less than 0.
This helps towards #1792 .
2014-02-19 16:09:30 +01:00
Matthijs Kooijman
b196a4a9c5
Suppress "unused parameter" warnings
...
A bunch of functions have parameters they do not use, but which cannot
be removed for API compatibility.
In syscalls_sam3.c, there are a lot of these, so this adds an "UNUSED"
macro which adds the "unused" variable attribute if supported (GCC
specific), or is just a noop on other compilers.
In CDC.cpp, there's only three of these variables, so this commit just
forces a dummy evaluation of them to suppress the warnings.
This helps towards #1792 .
2014-02-19 16:09:30 +01:00
Matthijs Kooijman
4cf21dcdd1
Don't store peeked characters in a char variable
...
peekNextDigit() returns an int, so it can return -1 in addition to all
256 possible bytes. By putting the result in a signe char, all bytes
over 128 will be interpreted as "no bytes available". Furthermore, it
seems that on SAM "char" is unsigned by default, causing the
"if (c < 0)" line a bit further down to always be false.
Using an int is more appropriate.
A different fix for this issue was suggested in #1399 . This fix helps
towards #1728 .
2014-02-19 16:09:30 +01:00