MCPcopy Create free account
hub / github.com/SmingHub/Sming / write

Method write

Sming/Arch/Host/Components/driver/hw_timer.cpp:78–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 void write(uint32_t ticks)
79 {
80 stop();
81
82 // Determine interval in microseconds
83 divisor = base_ticks_per_us::den * prescale;
84 interval = muldiv64(ticks, divisor, base_ticks_per_us::num);
85 start_time = now();
86
87 state = running;
88 sem.post();
89 }
90
91 void stop()
92 {

Callers 5

hw_timer1_writeFunction · 0.45
fill_regionFunction · 0.45
write_chunkFunction · 0.45
read_chunkFunction · 0.45
writeFlashFileFunction · 0.45

Calls 2

muldiv64Function · 0.85
postMethod · 0.45

Tested by

no test coverage detected