This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

elm chan cc2538



ive been working out code to try and write a file system to an sd card using the file system from elmchan webite. i have example code from the LM3 microcntroller in order to port it. i think i've worked out most of the kinks, but im trying to set up my pins to associate them with the proper registers like the Tx and Rx, for ssi communication,  and assigning them to port A pin 5 and pin 0 for example. but im getting an error code when i try to use:

 IOCPinConfigPeriphOutput (uint32_t GPIO_A_BASE, uint8_t GPIO_PIN_5, uint32_t IOC_MUX_OUT_SEL_SSI0_TXD);

im putting this into my pinout function to set up my pin configuration. do i have to do an override or am i using the wrong function? if anyone has example code for a mu that is closer to the mu i am using, that would be appreciated  

  • Hi Andres,

    The code line that you provided is expected to produce a compilation error - you should not specify the types before the constants that you use as arguments. The following stroked-through symbols shall be removed :

    IOCPinConfigPeriphOutput (uint32_t GPIO_A_BASE, uint8_t GPIO_PIN_5, uint32_t IOC_MUX_OUT_SEL_SSI0_TXD);

    If that does not help, please copy and paste here the exact error lines that you are receiving.

    Best regards,

    OD