-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqs_memory.c
More file actions
43 lines (33 loc) · 748 Bytes
/
qs_memory.c
File metadata and controls
43 lines (33 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* File: qs_memory.c
* Author: Fernando Morani
*
* Created on 10 aprile 2022, 9.24
*/
#include "qs_memory.h"
uint16_t hexpars_len;
uint32_t flashAddr;
uint8_t statoHex;
uint8_t recordType;
void FLASH_WriteHex(char *__strHex, uint16_t __len)
{
/*
char c;
for(hexpars_len=0; hexpars_len<__len; hexpars_len++)
{
c = __strHex++;
switch( statoHex )
{
case 0:
if( c == ':' ) // inizio hex ?
{
hex_cpb(__strHex, recordType);
statoHex = 1;
}
break;
case 1:
break;
}
}
*/
}