Skip to content

peripheralのインスタンスをshared_from_this()でshared_ptr化する #4

@yutatech

Description

@yutatech
  • std::shared_ptr<Spi>(new Spi(REG_SPI0));のような書き方ではclangでビルド時にwarningが出る
  • 全ペリフェラルクラスのGetInstanceで、newでインスタンス生成し直接shared_ptrに変換するのではなく、shared_from_this()で変換するように修正

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions