sifive / freedom-tools

Tools for SiFive's Freedom Platform
217 stars 52 forks source link

Adding the examples folder to the output package. #12

Closed sifivekevin closed 5 years ago

sifivekevin commented 5 years ago

Hey Carsten,

I added an examples directory to the trace decoder package that will hold various examples, including the itcprint.c source snippet to add printf style output to trace. I updated the freedom-tools makefile to add the examples directory to the built package, but I have no way (right now) to test it. Does this change look sane to you? Can you run a quick build to see if it works. The trace-decoder/example folder is committed to 'master'

bradseevers commented 5 years ago

Looked the code over and it looks good except need to rename itcprintstr() to itcputs() to mirror C's functions.

Did not compile and run it yet, but will before 19.08 release.