Configure TC for 2-bit Gray Counter for Stepper Motor.
uint32_t tc_init_2bit_gray( Tc * p_tc, uint32_t ul_channel, uint32_t ul_steppermode)
Data direction | Parameter name | Description |
---|---|---|
[out] |
p_tc |
Module hardware register base address pointer |
[in] |
ul_channel |
Channel to configure |
[in] |
ul_steppermode |
Stepper motor mode register value to set |
0 for OK.