Make microzig_main automatically call `init` for board
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 18/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- embedded-iot, zig
- Domaine
- embedded-iot
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Zig
- Étoiles
- 2.3k
- Forks
- 198
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 37
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ZigEmbeddedGroup/microzig
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
ZigEmbeddedGroup/microzig#1086 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 69/100
ZigEmbeddedGroup/microzig#1085 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ZigEmbeddedGroup/microzig#1061 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ZigEmbeddedGroup/microzig#1059 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
regz: AVR peripherals generated at address 0 when the register-group name matches the module (ATDF)Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
ZigEmbeddedGroup/microzig#1072 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ZigEmbeddedGroup/microzig
Issues similaires
-
[BUG] OTA Requestor accepts reserved provider endpoint 0xFFFFPeut-être pris @Chapoly1305 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
project-chip/connectedhomeip#74742 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
Xinyuan-LilyGO/T-Display-S3#352 · 3 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
lsongdev/node-bluetooth#62 ·
-
docs
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
adidshaft/grok-gadgets#202 ·
Les mainteneurs répondent en général sous 1 jour
-
api-v2
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
adafruit/Adafruit_Wippersnapper_Arduino#1012 ·
Les mainteneurs répondent en général sous 5 jours