MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / encoder_delay

Function encoder_delay

program/algorithm/encoder.c:44–49  ·  view source on GitHub ↗

! \brief delay function for magnetic encoder */

Source from the content-addressed store, hash-verified

42 \brief delay function for magnetic encoder
43*/
44void encoder_delay(void) {
45 /* use loop functions to delay time */
46 unsigned char delay_counter = 0xff;
47 while (delay_counter)
48 delay_counter--;
49}
50
51/*!
52 \brief read data from the register of the magnetic encoder

Callers 1

encoder_read_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected