提交 2d3028d9 编写于 作者: wuyangyong's avatar wuyangyong

update pic32ethernet

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1709 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 e7003777
......@@ -40,7 +40,7 @@ static void thread_led2_entry(void* parameter)
{
// .. Toggle the LED
mPORTDToggleBits(BIT_2);
rt_thread_delay( RT_TICK_PER_SECOND*5 ); /* delay 1s */
rt_thread_delay( RT_TICK_PER_SECOND/2 ); /* delay 0.5s */
}
}
......
......@@ -38,7 +38,7 @@
// The following is used by the main application
#define SYS_FREQ (80000000UL)
#define PB_DIV 8
#define PB_DIV (1 << ((OSCCON&_OSCCON_PBDIV0_MASK)>>_OSCCON_PBDIV0_POSITION) )
#define PRESCALE 256
#define TOGGLES_PER_SEC RT_TICK_PER_SECOND
#define T1_TICK (SYS_FREQ/PB_DIV/PRESCALE/TOGGLES_PER_SEC)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册