|
这个程序大概什么意思,逐句求解一下!
/*Enable Function for PSC0*/
void PSC0_lPSC_enable(unsigned int PD, unsigned int LPSC_num) {
*(unsigned int*) (PSC0_MDCTL+4*LPSC_num) = (*(unsigned int*) (PSC0_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0003;
PSC0_PTCMD = 0x1<
while( (PSC0_PTSTAT & (0x1<
while( (*(unsigned int*)(PSC0_MDSTAT+4 * LPSC_num) & 0x3F) !=0x3);
}
/*Enable Function for PSC1*/
void PSC1_lPSC_enable(unsigned int PD, unsigned int LPSC_num) {
*(unsigned int*) (PSC1_MDCTL+4*LPSC_num) = (*(unsigned int*) (PSC1_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0003;
PSC1_PTCMD = 0x1<
while( (PSC1_PTSTAT & (0x1<
while( (*(unsigned int*)(PSC1_MDSTAT+4 * LPSC_num) & 0x3F) !=0x3);
}
|
|