/* * XIOH power sequence * Copyright (C) 2013 Avencall * * config.h - global software behavior configuration * Authors: * 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 CONFIG_H #define CONFIG_H /* The timing values used in the main program depend on the period * of Timer_A. Use identity for a 1 ms [+0%; +n%] period. * (Use 2 * (x) for a 0.5 ms [+0%; +n%] period, and so over.) */ #define MS(x) (x) //////////////////////////////////////////////////////////////////// /* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING: * production firmwares MUST be built with: * define WATCHDOG * undef TRACE_SERIAL * undef TEST_LOOP_SPEED * undef LOOP_REBOOT * * Please also commit in the main branch with those options. */ /* define WATCHDOG to get one :) * Note that undefining WATCHDOG disables *all* reset on watchdog, regardless * on the implementation. */ #define WATCHDOG //#undef WATCHDOG /* define TRACE_SERIAL to get debugging traces capabilities on the * MSP430 serial port * WARNING: This might disable some functions too, check the code * to see exactly what that does in this particular version */ //#define TRACE_SERIAL #undef TRACE_SERIAL /* define TEST_LOOP_SPEED (and TRACE_SERIAL) to trace the number * of iterations in the main loop in each state */ //#define TEST_LOOP_SPEED #undef TEST_LOOP_SPEED /* define LOOP_REBOOT if you want that the board reboot forever * define it to the number of ms to spend in the MACHINE_RUNNING state. */ //#define LOOP_REBOOT MS(5000) #undef LOOP_REBOOT #endif /* CONFIG_H */