github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/board/raspberrypi/console.go (about)

     1  // Raspberry Pi support for tamago/arm
     2  // https://github.com/usbarmory/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  //go:build !linkprintk
    10  // +build !linkprintk
    11  
    12  package pi
    13  
    14  import (
    15  	_ "unsafe"
    16  
    17  	"github.com/usbarmory/tamago/soc/bcm2835"
    18  )
    19  
    20  //go:linkname printk runtime.printk
    21  func printk(c byte) {
    22  	bcm2835.MiniUART.Tx(c)
    23  }