Added: Display error messages if wrong board type is selected at compilation time

This commit is contained in:
pascallanger 2016-01-28 11:26:31 +01:00
parent 9a63038a5f
commit 017a21c17f

View File

@ -13,6 +13,14 @@
along with Multiprotocol. If not, see <http://www.gnu.org/licenses/>.
*/
// Check selected board type
#ifndef ARDUINO_AVR_PRO
#error You must select the board type "Arduino Pro or Pro Mini"
#endif
#if F_CPU != 16000000L || not defined(__AVR_ATmega328P__)
#error You must select the processor type "ATmega328(5V, 16MHz)"
#endif
//******************
// Protocols
//******************