Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO デジタル出力 #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

GPIO デジタル出力 #8

wants to merge 2 commits into from

Conversation

Chikurin1014
Copy link
Collaborator

とりあえずLチカ & 適当に構造化

@Chikurin1014 Chikurin1014 self-assigned this Oct 27, 2024
@Chikurin1014 Chikurin1014 linked an issue Oct 27, 2024 that may be closed by this pull request
@Chikurin1014
Copy link
Collaborator Author

Chikurin1014 commented Oct 27, 2024

GPIOの初期化手順

GPIOクロックの有効化

ピン出力のリセット (ピン番号を直接指定)

ピン設定の適用

  • ピン番号
  • モード (Input, Output Push Pull, Output Open Drain, Alternate Function Push Pull Alternate Function Open Drain
  • プル状態 (No Pull-up or Pull-down activation, Pull-up activation, Pull-down activation
  • 周波数 (LOW: ~ 2 MHz, MID: 4 ~ 10 MHz, HIGH: 10 ~ 50 MHz)
  • (Alternate ... モードをAlternate functionにした際に使用)

@Chikurin1014 Chikurin1014 marked this pull request as draft October 27, 2024 11:41
@H1rono
Copy link
Member

H1rono commented Oct 27, 2024

CubeMXが生成した部分を書き換えちゃうと再生成した時に困るから適切に戻してほしい 🙏
(今の段階でそこまで構造に手を加えられないというのはある)

@Chikurin1014 Chikurin1014 marked this pull request as ready for review October 31, 2024 06:11
Copy link
Member

@H1rono H1rono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

別にこれだけならマージしなくていいかなと思ったんですが、closeしていいですか

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants