Skip to content

Commit 018e85f

Browse files
committed
Bugfix 01.02.01
1 parent 218f126 commit 018e85f

File tree

17 files changed

+73
-43
lines changed

17 files changed

+73
-43
lines changed

Doc/Doc.zip

4.82 MB
Binary file not shown.

Doc/EmbSysLib-Manual.pdf

-2.49 KB
Binary file not shown.

Example/Project/Virtual/CodeBlocks/Virtual.cbp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
<Add library="${EMBSYSLIB}/Src/Hardware/MCU/Virtual/Sys/libusb-1.0.a" />
6262
</Linker>
6363
<Unit filename="../../../Src/Board/Virtual/ReportHandler.h" />
64+
<Unit filename="../../../Src/Board/Virtual/board_pinout.txt" />
6465
<Unit filename="../../../Src/lib.cpp" />
6566
<Unit filename="../../../Src/main.cpp" />
6667
<Extensions>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
start "%EMBSYSLIB%\Tools\VirtualDeviceServer.exe" -d 320x240 -p 1000 -c "VirtualDeviceServer.config.txt"
1+
start "" "%EMBSYSLIB%\Tools\VirtualDeviceServer.exe" -d 320x240 -p 1000 -c "VirtualDeviceServer.config.txt"

Example/Src/Main/Device/DevDigital.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Usage: Connect board with a terminal.
2424
#include "config.h"
2525

2626
//*******************************************************************
27-
int main(void)
27+
int main( void )
2828
{
2929
terminal.printf( "\r\n\nDevDigital," __DATE__ "," __TIME__ "\r\n\n" );
3030

Example/Src/Main/Hardware/HwUSBhost.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ Code: Select control or interrupt transfer with
1818
*/
1919

2020
//*******************************************************************
21-
#define CTRL 1
22-
#define INTER 2
21+
#define USB_CTRL 1
22+
#define USB_INTER 2
23+
24+
#define USB_DEVICE_ENABLE
25+
2326

2427
///------------------------------------------------------------------
2528
/// Select an USB transfer type (CTRL|INTER):
26-
#define TRANSFER_TYPE INTER
29+
#define TRANSFER_TYPE USB_INTER
2730

2831
//*******************************************************************
2932
#include <stdio.h>
@@ -49,7 +52,7 @@ int main(int argc, char** argv)
4952
{
5053
bool err = true;
5154

52-
#if TRANSFER_TYPE == INTER
55+
#if TRANSFER_TYPE == USB_INTER
5356
//------------------------
5457
if( usb.writeInterrupt( writeBuffer ) )
5558
{
@@ -61,7 +64,7 @@ int main(int argc, char** argv)
6164
}
6265
}
6366

64-
#elif TRANSFER_TYPE == CTRL
67+
#elif TRANSFER_TYPE == USB_CTRL
6568
//------------------------
6669
if( usb.writeCtrl( writeBuffer ) )
6770
{

Src/Control/DigitalEncoder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The FIFO can be read out asynchronously.
3333
3434
\example CtrlDigitalEncoder.cpp
3535
*/
36-
class DigitalEncoder : public TaskManager::Task
36+
class DigitalEncoder : protected TaskManager::Task
3737
{
3838
public:
3939
//---------------------------------------------------------------
@@ -80,15 +80,15 @@ class DigitalEncoder : public TaskManager::Task
8080
//
8181
//---------------------------------------------------------------
8282
// Checks Ctrl-Button.
83-
// The default implementation returns the event CTRL_DWN or
84-
// CTRL_UP if the button was pressed/released, otherwise NONE.
83+
// The default implementation returns the event CTRL_DWN or
84+
// CTRL_UP if the button was pressed/released, otherwise NONE.
8585
// The method can be overridden.
8686
//
8787
virtual Event getCtrl( void );
8888

8989
//---------------------------------------------------------------
9090
// Checks Increment (Right/Left).
91-
// Returns LEFT, RIGHT, NONE depending on the event.
91+
// Returns LEFT, RIGHT, NONE depending on the event.
9292
// Abstract method that must be implemented by derived class.
9393
virtual Event getIncrement( void ) = 0;
9494

Src/Control/DigitalIndicator.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ void DigitalIndicator::blink( WORD time, WORD duty )
8888
repeat = true;
8989
maximum = ((DWORD)time*1000)/cycleTime;
9090
limit = ((DWORD)MIN(duty,(WORD)100))*maximum/100;
91-
t = 0;
9291
runUpdate = true;
9392
}
9493

Src/Device/Digital/Digital.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Dev {
2222
/*!
2323
\class Digital
2424
25-
\brief Access to a digital GPIO port pin
25+
\brief Access to a digital port pin
2626
2727
This class is an interface to digital I/O devices.
2828

Src/Hardware/Common/Display/DisplayGraphic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ DisplayGraphic::DisplayGraphic( WORD moduleId,
3434
, report( moduleId )
3535
{
3636
Hsize = width;
37-
Vsize = height;
37+
Vsize = height;
3838

39-
BackColor = RGB2color( 0, 0,255); // Blue
39+
BackColor = RGB2color( 0, 0, 0); // Black
4040
PaintColor = RGB2color(128,128,128); // Gray
4141
TextColor = RGB2color(255,255,255); // White
4242

0 commit comments

Comments
 (0)