Hardware manual

77
Function
void init_irc ( void)
Arguments
void
no arguments
Description
This function sets up TPU for index mark detection for 1st and 2nd motor.
Function
void init_hal ( void)
Arguments
void
no arguments
Description
This function sets up registers and I/O ports in such a way, that the read of hall sensor is possible.
Function
void init_sampling ( void)
Arguments
void
no arguments
Description
This function sets up TPU main unit to generate interrupts with sampling frequency: pxmc_sfikhz.
It also puts pxmc_sfi_isr to the interrupt vector table.