]> granicus.if.org Git - esp-idf/commit
ulp: fix calculation or ulp_run argument
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 7 Aug 2018 13:03:23 +0000 (16:03 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 13 Aug 2018 20:23:54 +0000 (23:23 +0300)
commitc2e424e7afa12a6fded27e1dde6cf007b46d2181
tree954960456bf89ca18d1b0d61689ee4d3a3565e2d
parenta0191b28b200417817d4e215ba7382d650bc7110
ulp: fix calculation or ulp_run argument

The argument to ulp_run should be expressed in 32-bit words. Both the
address of ulp_entry and RTC_SLOW_MEM already are uint32_t*, so their
difference is the difference in addresses divided by sizeof(uint32_t).
Therefore the extra division by sizeof(uint32_t) is not needed.
docs/en/api-guides/ulp.rst
examples/system/ulp/main/ulp_example_main.c
examples/system/ulp_adc/main/ulp_adc_example_main.c