mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
speed up to initialize
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@249 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
e5aaf80616
commit
48d5840321
@ -134,7 +134,7 @@ my $delay_format =<<'EOF';
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $pollreg_format =<<'EOF';
|
my $pollreg_format =<<'EOF';
|
||||||
timeout = %5$s;%6$s
|
timeout = %5$s * %4$s;%6$s
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
u16 data;
|
u16 data;
|
||||||
@ -142,7 +142,7 @@ my $pollreg_format =<<'EOF';
|
|||||||
{
|
{
|
||||||
if (--timeout)
|
if (--timeout)
|
||||||
{
|
{
|
||||||
OS_Sleep(%4$s);
|
OS_Sleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
DBG_PRINTF("Failed to poll a register! (%%d)\n", __LINE__);
|
DBG_PRINTF("Failed to poll a register! (%%d)\n", __LINE__);
|
||||||
@ -193,7 +193,7 @@ my $fieldclear_format =<<'EOF';
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $pollfield_format =<<'EOF';
|
my $pollfield_format =<<'EOF';
|
||||||
timeout = %4$s;%5$s
|
timeout = %4$s * %3$s;%5$s
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
u16 data;
|
u16 data;
|
||||||
@ -201,7 +201,7 @@ my $pollfield_format =<<'EOF';
|
|||||||
{
|
{
|
||||||
if (--timeout)
|
if (--timeout)
|
||||||
{
|
{
|
||||||
OS_Sleep(%3$s);
|
OS_Sleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
DBG_PRINTF("Failed to poll a register! (%%d)\n", __LINE__);
|
DBG_PRINTF("Failed to poll a register! (%%d)\n", __LINE__);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user