2018-11-01から1ヶ月間の記事一覧

Makefileでのヘッダファイルの依存関係の追加

問題設定 まず以下の4つのファイルを作る /* main.c */ #include "foo.h" int main(){ foo(10); return 0; } /* foo.h */ void foo(int a); /* foo.c */ #include "foo.h" #include <stdio.h> void foo(int a){ printf("%d\n", a); } #Makefile PROG = myapp SRCS = m</stdio.h>…

05

はじめに Githubで公開されている,GitHub - bztsrc/raspi3-tutorial: Bare metal Raspberry Pi 3 tutorialsのコードを読んでいく.今回は05_uart0を理解することを目的とする. 周辺知識 uart0について The SoCs used on the Raspberry Pis have two built-…

04

はじめに Githubで公開されている,GitHub - bztsrc/raspi3-tutorial: Bare metal Raspberry Pi 3 tutorialsのコードを読んでいく.今回は04_mailboxesを理解することを目的とする. Mailboxについて Mailboxの役割はARMとVideoCore間の通信を補助すること.…

03

はじめに Githubで公開されている,GitHub - bztsrc/raspi3-tutorial: Bare metal Raspberry Pi 3 tutorialsのコードを読んでいく.今回は03_uart1を理解することを目的とする.対象ファイル:uart.c, main.c キーワード:uart, GPIO uart.c #include "gpio.…