Split init into configure and init

* Implemented configure, init, exit functions:
    When a configuration is changed, interrupts for reset pins
    should be disabled

* Moved variables shared between code files to simtrace.h
This commit is contained in:
Christina Quast
2015-04-09 22:38:47 +02:00
parent abcf3038d2
commit 95d6616ba1
8 changed files with 95 additions and 72 deletions

View File

@@ -35,8 +35,8 @@
#include <string.h>
extern uint8_t rcvdChar;
extern uint32_t char_stat;
volatile uint32_t char_stat;
volatile bool rcvdChar = 0;
//#define BUFLEN 14
// FIXME: Remove:
@@ -49,7 +49,7 @@ extern uint32_t char_stat;
uint8_t idx; // number of items in the buffer
} ring_buffer;
*/
ring_buffer buf = { {0}, 0 };
volatile ring_buffer buf = { {0}, 0 };
void buf_push(uint8_t item)
{