maixbit (uart): working on data tx

When the data to send is too long the program gives an exception.
This commit is contained in:
Yannis Huber
2020-06-16 00:05:32 +02:00
committed by Ron Evans
parent 7814964693
commit d599959711
8 changed files with 417 additions and 26 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"device/riscv"
)
var clockFrequency uint32 = kendryte.SYSCTL.CLK_FREQ.Get()
var clockFrequency int64 = int64(kendryte.SYSCTL.CLK_FREQ.Get())
// ticksToNanoseconds converts RTC ticks to nanoseconds.
func ticksToNanoseconds(ticks timeUnit) int64 {