aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifi_dnld/src/nor_flash.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2013-12-01 17:21:54 +0100
committerCristian Maglie <c.maglie@bug.st>2014-01-22 09:38:34 +0100
commit99f7ef7c673e02d559eb55d064f38a105393c8f6 (patch)
tree1fff463c237324630e68b6cd4961b7786d905446 /firmwares/wifishield/wifi_dnld/src/nor_flash.h
parentf1cd85da7ad0030d1fb1102aa9e3119851e1c4aa (diff)
Centrally decide which hardware UARTS are available
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).
Diffstat (limited to 'firmwares/wifishield/wifi_dnld/src/nor_flash.h')
0 files changed, 0 insertions, 0 deletions