[an error occurred while processing this directive]
|
Примерно так
void InitSIO(){
DDR4_D45 = 0; //SIN3 - input
DDR4_D46 = 1; //SCK3 - output
DDR4_D47 = 1; //SOT3 - output
SMCS_STOP = 1; /* stop it */
SMCS_SIE = 0; /* disable interrupt */
SMCS = 0x0207;
CDCR =0x88; /* (10001000) prescaler */
SMCS_BDS = 1;
SMCS_STOP = 0; /* normal operation */
SMCS_STRT = 1; /* enable, if started by data*/
}
E-mail: info@telesys.ru