Search found 2 matches

by Lamonde
Thu Oct 25, 2018 12:30 pm
Forum: ESP-IDF
Topic: Make issue
Replies: 1
Views: 3870

Make issue

Hello,

Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

I've got a makefile issue, I am not able to solve it by myself.
I googled a lot but did not find the answer.
Could someone please help me?

I followed the

https://docs.espressif.com/projects/esp-idf/en ...
by Lamonde
Wed Jan 03, 2018 4:01 pm
Forum: General Discussion
Topic: Minimum requirements to start the Hardware Counter
Replies: 7
Views: 14470

Re: Minimum requirements to start the Hardware Counter

This should clear the counter:

esp_err_t pcnt_counter_clear(pcnt_unit_t pcnt_unit)
{
PCNT_CHECK(pcnt_unit < PCNT_UNIT_MAX, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG);
PCNT_ENTER_CRITICAL(&pcnt_spinlock);
PCNT.ctrl.val |= (BIT(PCNT_PLUS_CNT_RST_U0_S + (pcnt_unit * 2)));
// may be a delay here ...
PCNT ...

Go to advanced search