mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-20 07:18:33 +03:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user