/* * XIOHV5.12 power sequence * Copyright (C) 2012 Avencall * Authors: * Jean Marc Ouvrard * Noe Rubinstein * Guillaume Knispel * * 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 DEF_H #define DEF_H #include #define CAN_WAIT_TENSION #define MONITOR_TENSIONS #define ARRAY_SIZE(arr) (sizeof (arr) / sizeof (arr[0])) #define SetBit(Port, Mask) ((Port) |= (Mask)) #define ClrBit(Port, Mask) ((Port) &= (~(Mask))) typedef uint16_t u16; typedef uint8_t u8; #endif //DEF_H