// Wait for the PPPD thread to get going and start the PPP
// initialization phase.
- while(phase == PHASE_DEAD )
+ while(phase == PHASE_DEAD)
cyg_thread_delay(100);
// Now loop until the link goes back down.
ppp_tty.options = options;
+ cyg_semaphore_init( &ppp_tty.tx_sem, 0 );
+
// Start the PPPD thread
cyg_thread_create(CYGNUM_PPP_PPPD_THREAD_PRIORITY,
cyg_pppd_main,
cyg_thread_resume(ppp_tty.pppd_thread);
// Start the TX thread
- cyg_semaphore_init( &ppp_tty.tx_sem, 0 );
-
cyg_thread_create(CYGNUM_PPP_PPPD_THREAD_PRIORITY+1,
cyg_ppp_tx_thread,
(CYG_ADDRWORD)&ppp_tty,
// Wait for the PPPD thread to get going and start the PPP
// initialization phase.
- while(phase == PHASE_DEAD )
+ while(phase == PHASE_DEAD)
cyg_thread_delay(100);
return (cyg_ppp_handle_t)&ppp_tty;
//=====================================================================
-int gettimeofday(struct timeval *tv, struct timezone *tz)
-{
- cyg_tick_count_t time = cyg_current_time();
-
- tv->tv_sec = time/CYGNUM_HAL_RTC_DENOMINATOR;
- tv->tv_usec = (time%CYGNUM_HAL_RTC_DENOMINATOR)*10000;
-
-// db_printf("%s: %d %d\n", __PRETTY_FUNCTION__, tv->tv_sec, tv->tv_usec);
-
- return 0;
-}
-
-//=====================================================================
-
char *crypt (const char *key, const char *salt)
{
static char res[13];