Skip to content

Commit 8c76040

Browse files
committed
VSCP framework head revision merged
1 parent d76e3df commit 8c76040

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1895
-1275
lines changed

VSCP/src/VSCP.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ VSCP::VSCP() :
8989
mStatusLampPin(0), /* Status Lamp pin */
9090
mInitButtonPin(0), /* Segment initialization button pin */
9191
mStatusLampState(VSCP_LAMP_STATE_OFF), /* Status lamp startup state is off */
92-
mStatusLampPeriod(200), /* 200 ms status lamp blinking period */
92+
mStatusLampFastPeriod(250), /* 250 ms fast status lamp blinking period */
93+
mStatusLampSlowPeriod(1000), /* 1 s slow status lamp blinking period */
9394
mStatusLampTimer(), /* Status lamp timer for blinking */
9495
mVSCPTimerPeriod(250), /* 250 ms VSCP timer period */
9596
mVSCPTimer() /* Timer instance used to handle the VSCP framework timers */
@@ -289,16 +290,21 @@ void VSCP::processStatusLamp(void)
289290
digitalWrite(mStatusLampPin, HIGH);
290291
break;
291292

292-
case VSCP_LAMP_STATE_BLINK:
293-
mStatusLampTimer.start(mStatusLampPeriod, false);
293+
case VSCP_LAMP_STATE_BLINK_SLOW:
294+
mStatusLampTimer.start(mStatusLampSlowPeriod, false);
295+
break;
296+
297+
case VSCP_LAMP_STATE_BLINK_FAST:
298+
mStatusLampTimer.start(mStatusLampFastPeriod, false);
294299
break;
295300

296301
default:
297302
break;
298303
}
299304
}
300305
/* Shall the lamp blink? */
301-
else if (VSCP_LAMP_STATE_BLINK == mStatusLampState)
306+
else if ((VSCP_LAMP_STATE_BLINK_SLOW == mStatusLampState) ||
307+
(VSCP_LAMP_STATE_BLINK_FAST == mStatusLampState))
302308
{
303309
/* Toggle status lamp? */
304310
if (true == mStatusLampTimer.isTimeout())

VSCP/src/VSCP.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,18 @@ class VSCP
245245
/* Never copy the VSCP framework */
246246
VSCP& operator=(const VSCP& vscp);
247247

248-
bool mIsInitialized; /**< Is framework initialized or not */
248+
bool mIsInitialized; /**< Is framework initialized or not */
249249

250-
int mStatusLampPin; /**< Status lamp pin */
251-
int mInitButtonPin; /**< Segment initialization button pin */
250+
int mStatusLampPin; /**< Status lamp pin */
251+
int mInitButtonPin; /**< Segment initialization button pin */
252252

253-
VSCP_LAMP_STATE mStatusLampState; /**< Current state of the status lamp */
254-
const unsigned int mStatusLampPeriod; /**< Status lamp blinking periode in ms */
255-
SwTimer mStatusLampTimer; /**< Status lamp timer used for blinking */
253+
VSCP_LAMP_STATE mStatusLampState; /**< Current state of the status lamp */
254+
const unsigned int mStatusLampFastPeriod; /**< Fast status lamp blinking periode in ms */
255+
const unsigned int mStatusLampSlowPeriod; /**< Slow status lamp blinking periode in ms */
256+
SwTimer mStatusLampTimer; /**< Status lamp timer used for blinking */
256257

257-
const unsigned int mVSCPTimerPeriod; /**< VSCP timer period in ms */
258-
SwTimer mVSCPTimer; /**< VSCP timer */
258+
const unsigned int mVSCPTimerPeriod; /**< VSCP timer period in ms */
259+
SwTimer mVSCPTimer; /**< VSCP timer */
259260

260261
/**
261262
* Process the status lamp.

VSCP/src/framework/vscp_action.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
/* The MIT License (MIT)
2-
*
2+
*
33
* Copyright (c) 2014 - 2015, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
6-
*
6+
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
99
* in the Software without restriction, including without limitation the rights
1010
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1111
* copies of the Software, and to permit persons to whom the Software is
1212
* furnished to do so, subject to the following conditions:
13-
*
13+
*
1414
* The above copyright notice and this permission notice shall be included in all
1515
* copies or substantial portions of the Software.
16-
*
16+
*
1717
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1818
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1919
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2020
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2121
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
24-
*
24+
*
2525
*/
2626

2727
/*******************************************************************************
@@ -35,9 +35,6 @@
3535
@section desc Description
3636
@see vscp_action.h
3737
38-
@section svn Subversion
39-
$Rev: 449 $
40-
$Date: 2015-01-05 20:23:52 +0100 (Mo, 05 Jan 2015) $
4138
*******************************************************************************/
4239

4340
/*******************************************************************************

VSCP/src/framework/vscp_action.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
/* The MIT License (MIT)
2-
*
2+
*
33
* Copyright (c) 2014 - 2015, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
6-
*
6+
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
99
* in the Software without restriction, including without limitation the rights
1010
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1111
* copies of the Software, and to permit persons to whom the Software is
1212
* furnished to do so, subject to the following conditions:
13-
*
13+
*
1414
* The above copyright notice and this permission notice shall be included in all
1515
* copies or substantial portions of the Software.
16-
*
16+
*
1717
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1818
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1919
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2020
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2121
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
24-
*
24+
*
2525
*/
2626

2727
/*******************************************************************************
@@ -36,10 +36,6 @@
3636
This module contains the user specific decision matrix (standard, extension
3737
and next generation) actions.
3838
39-
@section svn Subversion
40-
$Author: amerkle $
41-
$Rev: 449 $
42-
$Date: 2015-01-05 20:23:52 +0100 (Mo, 05 Jan 2015) $
4339
*******************************************************************************/
4440
/** @defgroup vscp_action VSCP actions
4541
* This module contains the user specific decision matrix (standard, extension

VSCP/src/framework/vscp_app_reg.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
/* The MIT License (MIT)
2-
*
2+
*
33
* Copyright (c) 2014 - 2015, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
6-
*
6+
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
99
* in the Software without restriction, including without limitation the rights
1010
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1111
* copies of the Software, and to permit persons to whom the Software is
1212
* furnished to do so, subject to the following conditions:
13-
*
13+
*
1414
* The above copyright notice and this permission notice shall be included in all
1515
* copies or substantial portions of the Software.
16-
*
16+
*
1717
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1818
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1919
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2020
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2121
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
24-
*
24+
*
2525
*/
2626

2727
/*******************************************************************************
@@ -35,10 +35,6 @@
3535
@section desc Description
3636
@see vscp_app_reg.h
3737
38-
@section svn Subversion
39-
$Author: amerkle $
40-
$Rev: 449 $
41-
$Date: 2015-01-05 20:23:52 +0100 (Mo, 05 Jan 2015) $
4238
*******************************************************************************/
4339

4440
/*******************************************************************************

VSCP/src/framework/vscp_app_reg.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
/* The MIT License (MIT)
2-
*
2+
*
33
* Copyright (c) 2014 - 2015, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
6-
*
6+
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
99
* in the Software without restriction, including without limitation the rights
1010
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1111
* copies of the Software, and to permit persons to whom the Software is
1212
* furnished to do so, subject to the following conditions:
13-
*
13+
*
1414
* The above copyright notice and this permission notice shall be included in all
1515
* copies or substantial portions of the Software.
16-
*
16+
*
1717
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1818
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1919
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2020
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2121
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
24-
*
24+
*
2525
*/
2626

2727
/*******************************************************************************
@@ -35,16 +35,12 @@
3535
@section desc Description
3636
This module contains the access to the application specific registers.
3737
38-
@section svn Subversion
39-
$Author: amerkle $
40-
$Rev: 449 $
41-
$Date: 2015-01-05 20:23:52 +0100 (Mo, 05 Jan 2015) $
4238
*******************************************************************************/
4339
/** @defgroup vscp_app_reg VSCP application registers
4440
* This module provides the access to the application registers.
4541
* @{
4642
*/
47-
43+
4844
/*
4945
* Don't forget to set JAVADOC_AUTOBRIEF to YES in the doxygen file to generate
5046
* a correct module description.

0 commit comments

Comments
 (0)