嗨,所有,是引脚与RPI Realppabl引脚,如果是,他们只能定义为输入或输出,以及?我已经在Mikro C PrUnLoCy-IOLOCK()中完成了这一工作;PSPSMAPPIGN NoLoCK(108,输出,αSCK1OUT);//SPI1时钟输入,40 RP108ppsl MAPAPIGN nOLOCK(109,α输出,αSDO1);//SPI1数据输出,39 RP109ppsMappnIn nOLoCK(42,α输出,αSS1OUT);//SPI1 SLAVESEED输出α34 RPI42PPSSMAP NoLoCK(41,μin PU)T,γSDI1);//SPI1数据输入,33 RPI41LoCKIOIOCK();谢谢
以上来自于百度翻译
以下为原文
Hi all,
Are the pins with RPI remappable pins and if so, can they only be defined as inputs or output as well?
I have done this in Mikro C Pro
Unlock_IOLOCK();
PPS_Mapping_NoLock (108, _OUTPUT, _SCK1OUT); // SPI1 Clock Input #40 RP108
PPS_Mapping_NoLock (109, _OUTPUT, _SDO1); // SPI1 Data Output #39 RP109
PPS_Mapping_NoLock (42, _OUTPUT, _SS1OUT); // SPI1 SlaveSelect output#34 RPI42
PPS_Mapping_NoLock (41, _INPUT, _SDI1); // SPI1 Data Input #33 RPI41
Lock_IOLOCK();
Thanks