MCPcopy Create free account
hub / github.com/qilingframework/qiling / create

Function create

examples/mcu/stm32f411_i2c_lcd.py:16–29  ·  view source on GitHub ↗
(path, lcd)

Source from the content-addressed store, hash-verified

14
15
16def create(path, lcd):
17 ql = Qiling([path], archtype=QL_ARCH.CORTEX_M, ostype=QL_OS.MCU, env=stm32f411, verbose=QL_VERBOSE.DEBUG)
18
19 ql.hw.create('i2c1')
20 ql.hw.create('rcc')
21 ql.hw.create('gpioa')
22 ql.hw.create('gpiob')
23
24 ql.hw.i2c1.watch()
25 ql.hw.i2c1.connect(lcd)
26
27 ql.hw.systick.set_ratio(100)
28
29 return ql
30
31
32if __name__ == "__main__":

Callers 1

Calls 5

QilingClass · 0.90
watchMethod · 0.80
createMethod · 0.45
connectMethod · 0.45
set_ratioMethod · 0.45

Tested by

no test coverage detected