Make microzig_main automatically call `init` for board
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 18/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- embedded-iot, zig
- Bereich
- embedded-iot
Rechercherichtung
The hook point is microzig_main in core/src/start.zig, which already calls the app and HAL init. Read how the board module is referenced there and how the nordic and wch example apps call board.init() today. The open question is ordering: whether the board init replaces or runs alongside chip/cpu init, and this needs a maintainer decision before any code. Done means a settled ordering rule, with examples updated to stop calling board.init() manually.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
From this comment from @tact1m4n3.
In the nordic and wch hals (maybe others) we have the example apps explicitly call board.init().
Maybe we should add logic to microzig_main to call it if its present. It already does this for the app and for the hal.
Makes sense to me, my only real concern is whether this call should supercede an init for the chip/cpu, or be called in addition to it.
- If its the former, then the board init should probably call the chip init, which should probably call the cpu init.
- This grants extra flexibility (A board might opt not to call a chip init, for the reason below)
- But it's also extra boilerplate (more boards should call chip init, which should call cpu init) and duplicated code (they might opt to manually do some work, which is more places to make sure to update)
- If it's the latter, I think we run the risk of some configs doing extra work (best case) or trashing each other.
- For example, a chip setting up RCC to set up the clocks, only for a board, with an external clock, to immediately set them up again with an external clock.
- Vorherrschende Sprache
- Zig
- Sterne
- 2.3k
- Forks
- 198
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 37
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ZigEmbeddedGroup/microzig
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
ZigEmbeddedGroup/microzig#1086 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 69/100
ZigEmbeddedGroup/microzig#1085 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ZigEmbeddedGroup/microzig#1061 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ZigEmbeddedGroup/microzig#1059 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
regz: AVR peripherals generated at address 0 when the register-group name matches the module (ATDF)Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
ZigEmbeddedGroup/microzig#1072 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ZigEmbeddedGroup/microzig
Ähnliche Issues
-
[BUG] OTA Requestor accepts reserved provider endpoint 0xFFFFEvtl. vergeben @Chapoly1305 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
project-chip/connectedhomeip#74742 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Xinyuan-LilyGO/T-Display-S3#352 · 3 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
lsongdev/node-bluetooth#62 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
adidshaft/grok-gadgets#202 ·
Maintainer antworten meist innerhalb von 1 Tag