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.

HALCOGEN code for generic GIO

Other Parts Discussed in Thread: HALCOGEN

Regarding RM46 series. 

Generate Halcogen for project, but want to use a NHET pin for general i/o.   I don't understand how to write the code to address the pin.   Halcogen outputs code for the dedicated pins (NHET, SPI, etc), but I can't seem to understand how to "override" a pin to use as general i/o.

Thanks.

  • Hello William,

     I have forwarded your question to one of our experts and they should respond soon.

  • Hi

    In HALCoGen ( Say NHET1 to be used as GIO ) go to HET1->Pin 0-7 Tab, configure the Pull and direction configurations. ( Igonre all other Tabs in HET).

    Call
    hetInit(); --> This will do all Direction and Pull settings for you

    Then you can use the Gio Port drivers , with port mentioned as hetPORT1
    void gioSetDirection(gioPORT_t *port, uint32 dir);
    void gioSetBit(gioPORT_t *port, uint32 bit, uint32 value);
    void gioSetPort(gioPORT_t *port, uint32 value);