1 // Copyright 2013 Olivier Gillet. 2 // 3 // This program is free software: you can redistribute it and/or modify 4 // it under the terms of the GNU General Public License as published by 5 // the Free Software Foundation, either version 3 of the License, or 6 // (at your option) any later version. 7 // This program is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 // GNU General Public License for more details. 11 // You should have received a copy of the GNU General Public License 12 // along with this program. If not, see <http://www.gnu.org/licenses/>. 13 // 14 // ----------------------------------------------------------------------------- 15 // 16 // Simpler/flatter version of the STM FSK bootloader. 17 18 #include "avr_audio_bootloader/fsk/decoder.h" 19 20 namespace avr_audio_bootloader { 21 22 /* static */ 23 bool Decoder::previous_sample_; 24 25 /* static */ 26 uint16_t Decoder::duration_; 27 28 /* static */ 29 uint8_t Decoder::swallow_; 30 31 /* static */ 32 DecoderState Decoder::state_; 33 34 /* static */ 35 uint8_t Decoder::expected_symbols_; 36 37 /* static */ 38 uint8_t Decoder::preamble_remaining_size_; 39 40 /* static */ 41 uint16_t Decoder::sync_blank_size_; 42 43 /* static */ 44 uint8_t Decoder::symbol_count_; 45 46 /* static */ 47 uint8_t* Decoder::packet_; 48 49 /* static */ 50 uint16_t Decoder::packet_size_; 51 52 /* static */ 53 uint16_t Decoder::packet_count_; 54 55 } // namespace avr_audio_bootloader 56