- 论坛徽章:
- 0
|
问题如下:
要完成一个时序操作,然后操作一个位SDFLT,需要两个总线周期,如何完成等待两个总线周期。
位的描述
7 SDFLT
Set Defaults
0 Disable
1 Enable
This bit resets all state machines in the SCI. It is necessary to set this bit if using manual card activation.
This bit should not be set when using Cold or Warm reset. This bit is self clearing. This operation
takes two OPB clock cycles to complete.
代码:
341 /* set SDFLT bit */
342 _set_bits(sci_id, SCCTL0, SDFLT);
343 /* need 2 OPB cycles of delay */
/* need 2 OPB cycles of delay */ 这个代码咋么写,平台是ppc linux,
OPB 指 on-chip peripheral bus
提示下思路,在别的平台上的实现也可以 |
|