Skip to content

Commit 689a13f

Browse files
authored
Merge pull request #4 from BlueAndi/feature/bootloader
Build env. update + submodules
2 parents 26d5a9e + 99f4501 commit 689a13f

10 files changed

Lines changed: 281 additions & 67 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## 3.0.0
44

5-
* Build environment updated for using MSYS2 MinGW UCRT 64-bit.
6-
* Using VSCP-framework v ...
7-
* Using VSCP-bootloader v ...
5+
* Build environment updated for using MSYS2 MinGW UCRT 64-bit.
6+
* Using VSCP-framework v2.1.0
7+
* Using VSCP-bootloader v3.0.0
88

99
## 2.0.0
1010

11-
* [VSCP-framework repository](https://github.com/BlueAndi/vscp-framework) was restructured and the CLI tools moved to this dedicated repository.
12-
* vscp-helper-lib updated to v15.0.0. The linux variant is only in release mode available. The windows variant in release and debug mode.
13-
* ```dataNum``` variable in the VSCP message (from VSCP-framework) was renamed to ```dataSize```. Therefore the source code was updated accordingly.
11+
* [VSCP-framework repository](https://github.com/BlueAndi/vscp-framework) was restructured and the CLI tools moved to this dedicated repository.
12+
* vscp-helper-lib updated to v15.0.0. The linux variant is only in release mode available. The windows variant in release and debug mode.
13+
* ```dataNum``` variable in the VSCP message (from VSCP-framework) was renamed to ```dataSize```. Therefore the source code was updated accordingly.

logger/main.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ This module contains the main entry point.
5757
CONSTANTS
5858
*******************************************************************************/
5959

60+
#ifndef VERSION
61+
/** Version */
62+
#define VERSION "x.x.x"
63+
#endif /* VERSION */
64+
65+
#ifndef BUILDTYPE
66+
/** Build type */
67+
#define BUILDTYPE "debug"
68+
#endif /* BUILDTYPE */
69+
6070
/** Program name */
6171
#define MAIN_PROG_NAME "VSCP logger"
6272

logger/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
################################################################################
3434

3535
# Software version
36-
VERSION= 0.2.0
36+
VERSION= 3.0.0
3737

3838
# Binary file name
3939
BIN= vscpLoggerPc

nodeSim/main.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ This module contains the main entry point.
6767
CONSTANTS
6868
*******************************************************************************/
6969

70+
#ifndef VERSION
71+
/** Version */
72+
#define VERSION "x.x.x"
73+
#endif /* VERSION */
74+
75+
#ifndef BUILDTYPE
76+
/** Build type */
77+
#define BUILDTYPE "debug"
78+
#endif /* BUILDTYPE */
79+
7080
/** Program name */
7181
#define MAIN_PROG_NAME "VSCP level 1 node"
7282

nodeSim/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
################################################################################
3434

3535
# Software version
36-
VERSION= 0.5.0
36+
VERSION= 3.0.0
3737

3838
# Binary file name
3939
BIN= vscpExamplePc

nodeSim/vscp_user/vscp_tp_adapter.c

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static const char* vscp_tp_adapter_protocolTypes[] =
132132
/* 12 */ "Enter Boot Loader Mode",
133133
/* 13 */ "Enter Boot Loader Mode ACK",
134134
/* 14 */ "Enter Boot Loader Mode NACK",
135-
/* 15 */ "Start Block Data Transfer",
135+
/* 15 */ "Start Block",
136136
/* 16 */ "Block Data",
137137
/* 17 */ "Block Data ACK",
138138
/* 18 */ "Block Data NACK",
@@ -167,8 +167,11 @@ static const char* vscp_tp_adapter_protocolTypes[] =
167167
/* 47 */ "Reserved",
168168
/* 48 */ "Activate New Image ACK",
169169
/* 49 */ "Activate New Image NACK",
170-
/* 50 */ "Start Block Data Transfer ACK",
171-
/* 51 */ "Start Block Data Transfer NACK"
170+
/* 50 */ "Start Block ACK",
171+
/* 51 */ "Start Block NACK",
172+
/* 52 */ "Block Chunk ACK",
173+
/* 53 */ "Block Chunk NACK",
174+
/* 54 */ "Boot Loader Check"
172175
};
173176

174177
/** User friendly strings for VSCP helper library function return status. */
@@ -250,8 +253,6 @@ static const char* vscp_tp_adapter_errorStr[] =
250253
extern void vscp_tp_adapter_init(void)
251254
{
252255
/* Nothing to do */
253-
254-
return;
255256
}
256257

257258
/**
@@ -290,6 +291,20 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
290291
LOG_WARNING_INT32("Couldn't receive event: ", vscphlpRet);
291292
LOG_WARNING_STR("vscphlp_receiveEventEx failed: ", vscp_tp_adapter_getErrorStr(vscphlpRet));
292293
}
294+
/* Any simulated message available? */
295+
else if (TRUE == vscp_tp_adapter_messageReceived)
296+
{
297+
*msg = vscp_tp_adapter_rxMessage;
298+
299+
vscp_tp_adapter_messageReceived = FALSE;
300+
301+
status = TRUE;
302+
}
303+
else
304+
{
305+
/* Nothing to do. */
306+
;
307+
}
293308
}
294309
/* Handle all level 1 events? */
295310
else if (VSCP_TP_ADAPTER_LVL_1 == client->lvl)
@@ -318,17 +333,13 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
318333
status = TRUE;
319334
}
320335
}
336+
else
337+
{
338+
/* Skip it. */
339+
;
340+
}
321341
}
322342
}
323-
/* Any simulated message available? */
324-
else if (TRUE == vscp_tp_adapter_messageReceived)
325-
{
326-
*msg = vscp_tp_adapter_rxMessage;
327-
328-
vscp_tp_adapter_messageReceived = FALSE;
329-
330-
status = TRUE;
331-
}
332343

333344
if (FALSE != status)
334345
{
@@ -677,8 +688,6 @@ extern void vscp_tp_adapter_disconnect(void)
677688
}
678689

679690
vscp_tp_adapter_isConnected = FALSE;
680-
681-
return;
682691
}
683692

684693
/**
@@ -690,7 +699,6 @@ extern void vscp_tp_adapter_simulateReceivedMessage(vscp_RxMessage const * const
690699
{
691700
vscp_tp_adapter_rxMessage = *msg;
692701
vscp_tp_adapter_messageReceived = TRUE;
693-
return;
694702
}
695703

696704
/*******************************************************************************
@@ -851,8 +859,6 @@ static void vscp_tp_adapter_showMessage(vscp_Message const * const msg, BOOL isR
851859
}
852860

853861
printf("\n");
854-
855-
return;
856862
}
857863

858864
/**

0 commit comments

Comments
 (0)