Changeset 555

Show
Ignore:
Timestamp:
04/28/08 14:02:02 (3 weeks ago)
Author:
agr
Message:

sampl default check rate

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nano-RK/projects/SAMPL/client/main.c

    r554 r555  
    191191 
    192192// 100 ms by default 
    193   last_flood_check_rate = 100
     193  last_flood_check_rate = DEFAULT_CHECK_RATE
    194194  // Setup some default values 
    195195  ff_state = IDLE_STATE; 
     
    452452 
    453453  check_period.secs = 0; 
    454   check_period.nano_secs = 100 * NANOS_PER_MS; 
     454  check_period.nano_secs = DEFAULT_CHECK_RATE * NANOS_PER_MS; 
    455455  val = bmac_set_rx_check_rate (check_period); 
    456456 
     
    568568 
    569569        check_period.secs = 0; 
    570         check_period.nano_secs = 100 * NANOS_PER_MS; 
     570        check_period.nano_secs = DEFAULT_CHECK_RATE * NANOS_PER_MS; 
    571571        val = bmac_set_rx_check_rate (check_period); 
    572572      } 
     
    616616        p2p_pending=0; 
    617617        check_period.secs = 0; 
    618         check_period.nano_secs = 100 * NANOS_PER_MS; 
     618        check_period.nano_secs = DEFAULT_CHECK_RATE * NANOS_PER_MS; 
    619619        val = bmac_set_rx_check_rate (check_period); 
    620620        nrk_led_clr (RED_LED); 
  • nano-RK/projects/SAMPL/include/sampl.h

    r554 r555  
    5959#define MAX_DELAY_PER_LEVEL     5 
    6060#define MAX_HOPS                32 
     61 
     62 
     63#define DEFAULT_CHECK_RATE      100 
    6164 
    6265// error flags for packets