Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

rp2xxx: PIO: Support more directives

Aperta
#737 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
embedded-iot

Direzione di ricerca

Start with the RP2350 datasheet section 11.3.1 and the directive list in the issue, then find where the project parses PIO .define, .set and .side_set today. Decide which new directives are in scope and whether the redundant .set <count> should stay, which the issue leaves open. Check the PinMappingOptions side-set count against the program directive, using #736 as context. Done means agreed directives parse and the count is set once, with tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

rp

From 11.3.1 in the RP2350 [datasheet](https://pip-assets.raspberrypi.com/categories/1214-rp2350/documents/RP-008373-DS-2-rp2350-datasheet.pdf?disposition=inline]:

.define (PUBLIC) <symbol> <value>
.clock_div <divider>
.fifo <fifo_config>
.mov_status rxfifo < <n>
.mov_status txfifo < <n>
.mov_status irq <(prev|next)> set <n>
.in <count> (left|right) (auto) (<threshold>)
.program <name>
.origin <offset>
.out <count> (left|right) (auto) (<threshold>)
.pio_version <version>
.set <count>
.side_set <count> (opt) (pindirs)
.wrap_target
.wrap
.lang_opt <lang> <name> <option>
.word <value>

Many of these are new to rp2350.

Also, some seem redundant: e.g. What is the purpose of .set <count> if we are setting it explicitly in SET_COUNT?

I noticed this when I found the bug fixed in #736: whether side set is optional is ONLY set in the directive, but the count is set twice, once in the program, once when setting up pins with PinMappingOptions. I don't know if we do anything with the value collected from the directive.

Lingua principale
Zig
Stelle
2.3k
Fork
198
Merge medio
1g 8h
PR unite (30g)
37

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ZigEmbeddedGroup/microzig

Tutte le issue di ZigEmbeddedGroup/microzig

Issue simili

Altre issue su Embedded & IoT

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.