Skip to content

Commit 052bf5b

Browse files
authored
Merge pull request #31 from bm-l/pcnt-enum-fix
Fix PCNT enum to match original C source
2 parents a5f217d + 6f92f7d commit 052bf5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nesper/esp/driver/pcnt.nim

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ type
6363

6464
type
6565
pcnt_evt_type_t* {.size: sizeof(cint).} = enum
66-
PCNT_EVT_L_LIM = 0, ## !< PCNT watch point event: Minimum counter value
67-
PCNT_EVT_H_LIM = 1, ## !< PCNT watch point event: Maximum counter value
68-
PCNT_EVT_THRES_0 = 2, ## !< PCNT watch point event: threshold0 value event
69-
PCNT_EVT_THRES_1 = 3, ## !< PCNT watch point event: threshold1 value event
70-
PCNT_EVT_ZERO = 4, ## !< PCNT watch point event: counter value zero event
66+
PCNT_EVT_THRES_1 = 4, ## !< PCNT watch point event: threshold1 value event
67+
PCNT_EVT_THRES_0 = 8, ## !< PCNT watch point event: threshold0 value event
68+
PCNT_EVT_L_LIM = 16, ## !< PCNT watch point event: Minimum counter value
69+
PCNT_EVT_H_LIM = 32, ## !< PCNT watch point event: Maximum counter value
70+
PCNT_EVT_ZERO = 64, ## !< PCNT watch point event: counter value zero event
7171
PCNT_EVT_MAX
7272

7373

0 commit comments

Comments
 (0)