Updated ToDo list.

Added more info to MS/TP capture utility readme file.
Changed silence timer in BDK to compile smaller.
This commit is contained in:
skarg
2010-05-14 12:14:09 +00:00
parent 54ff09468e
commit 286c372d2c
6 changed files with 90 additions and 10 deletions
+3 -3
View File
@@ -52,9 +52,9 @@ static FIFO_BUFFER Receive_Buffer;
static struct etimer Silence_Timer;
bool rs485_silence_time_elapsed(
uint32_t milliseconds)
uint16_t milliseconds)
{
return timer_elapsed_milliseconds(&Silence_Timer, milliseconds);
return timer_elapsed_milliseconds_short(&Silence_Timer, milliseconds);
}
void rs485_silence_time_reset(
@@ -96,7 +96,7 @@ void rs485_turnaround_delay(
/* wait a minimum 40 bit times since reception */
/* at least 1 ms for errors: rounding, clock tick */
turnaround_time = 1 + ((Tturnaround * 1000UL) / Baud_Rate);
while (!timer_elapsed_milliseconds(&Silence_Timer, turnaround_time)) {
while (!timer_elapsed_milliseconds_short(&Silence_Timer, turnaround_time)) {
/* do nothing - wait for timer to increment */
};
}
+1 -1
View File
@@ -63,7 +63,7 @@ extern "C" {
void rs485_silence_time_reset(
void);
bool rs485_silence_time_elapsed(
uint32_t milliseconds);
uint16_t milliseconds);
#ifdef __cplusplus
}
+40
View File
@@ -121,6 +121,46 @@ bool timer_elapsed_minutes(
return timer_elapsed_milliseconds(t, milliseconds);
}
/*************************************************************************
* Description: Tests to see if time has elapsed
* Returns: true if time has elapsed
* Notes: none
*************************************************************************/
bool timer_elapsed_milliseconds_short(
struct etimer *t,
uint16_t value)
{
uint32_t milliseconds;
milliseconds = value;
return (timer_elapsed_time(t) >= milliseconds);
}
/*************************************************************************
* Description: Tests to see if time has elapsed
* Returns: true if time has elapsed
* Notes: none
*************************************************************************/
bool timer_elapsed_seconds_short(
struct etimer *t,
uint16_t value)
{
return timer_elapsed_seconds(t, value);
}
/*************************************************************************
* Description: Tests to see if time has elapsed
* Returns: true if time has elapsed
* Notes: none
*************************************************************************/
bool timer_elapsed_minutes_short(
struct etimer *t,
uint16_t value)
{
return timer_elapsed_minutes_short(t, value);
}
/*************************************************************************
* Description: Starts an interval timer
* Returns: nothing
+10 -1
View File
@@ -69,7 +69,16 @@ extern "C" {
uint32_t value);
bool timer_elapsed_minutes(
struct etimer *t,
uint32_t seconds);
uint32_t value);
bool timer_elapsed_milliseconds_short(
struct etimer *t,
uint16_t value);
bool timer_elapsed_seconds_short(
struct etimer *t,
uint16_t value);
bool timer_elapsed_minutes_short(
struct etimer *t,
uint16_t value);
/* interval timer */
void timer_interval_start(