Revision 277
New buffer size, prevents buffer overflows in cardreader
cardreader.h | ||
---|---|---|
11 | 11 |
#define CR_ERR_NO_START -2 |
12 | 12 |
#define CR_ERR_NO_STOP -3 |
13 | 13 |
|
14 |
#define CR_BUF_SIZE 800 |
|
15 |
|
|
14 | 16 |
typedef enum { |
15 | 17 |
CR_NONE, |
16 | 18 |
CR_GOOD, |
... | ... | |
19 | 21 |
|
20 | 22 |
extern volatile cr_flag_t cr_flag; |
21 | 23 |
extern volatile uint8_t read_card; |
22 |
extern volatile uint8_t cr_buf[512]; |
|
23 |
extern volatile uint16_t cr_buf_idx; |
|
24 |
//extern volatile uint8_t cr_buf[512];
|
|
25 |
//extern volatile uint16_t cr_buf_idx;
|
|
24 | 26 |
|
25 | 27 |
void card_reader_setup(void); |
26 | 28 |
int8_t parse_card(uint8_t *buf, uint8_t *buflen); |
Also available in: Unified diff