github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/board/raspberrypi/console.go (about)

     1  // Raspberry Pi support for tamago/arm
     2  // https://github.com/f-secure-foundry/tamago
     3  //
     4  // Copyright (c) the pi package authors
     5  //
     6  // Use of this source code is governed by the license
     7  // that can be found in the LICENSE file.
     8  
     9  // +build !linkprintk
    10  
    11  package pi
    12  
    13  import (
    14  	_ "unsafe"
    15  
    16  	"github.com/f-secure-foundry/tamago/soc/bcm2835"
    17  )
    18  
    19  //go:linkname printk runtime.printk
    20  func printk(c byte) {
    21  	bcm2835.MiniUART.Tx(c)
    22  }