github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/board/nxp/mx6ullevk/console.go (about) 1 // MCIMX6ULL-EVK support for tamago/arm 2 // https://github.com/f-secure-foundry/tamago 3 // 4 // Copyright (c) F-Secure Corporation 5 // https://foundry.f-secure.com 6 // 7 // Use of this source code is governed by the license 8 // that can be found in the LICENSE file. 9 10 // +build !linkprintk 11 12 package mx6ullevk 13 14 import ( 15 _ "unsafe" 16 17 "github.com/f-secure-foundry/tamago/soc/imx6" 18 ) 19 20 // On the MCIMX6ULL-EVK the serial console is UART1, therefore standard 21 // output is redirected there. 22 23 //go:linkname printk runtime.printk 24 func printk(c byte) { 25 imx6.UART1.Tx(c) 26 }