/* This file is part of the ChipWhisperer Example Targets Copyright (C) 2012-2015 NewAE Technology Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef AVR_HAL_H_ #define AVR_HAL_H_ //Generic Platform #include "uart.h" //For most platforms we want to use the AVR ADC-pins, since they have a seperate power rail //This can be overridden elsewhere #define trigger_setup() DDRC |= 0x01 #define trigger_high() PORTC |= 0x01 #define trigger_low() PORTC &= ~(0x01) #define init_uart init_uart0 #define putch output_ch_0 #define getch input_ch_0 #define platform_init(); #endif //AVR_HAL_H_