demo: display temperature with ring osc frequency

parent 32d04efd
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <uart.h> #include <uart.h>
#include <hw/tdc.h> #include <hw/tdc.h>
#include "temperature.h"
#include "tdc.h" #include "tdc.h"
static volatile struct TDC_WB *tdc = (void *)0xa0000000; static volatile struct TDC_WB *tdc = (void *)0xa0000000;
...@@ -36,6 +37,7 @@ void rofreq() ...@@ -36,6 +37,7 @@ void rofreq()
while(!(tdc->DCTL & TDC_DCTL_ACK)); while(!(tdc->DCTL & TDC_DCTL_ACK));
while(!readchar_nonblock()) { while(!readchar_nonblock()) {
temp();
channel = 0; channel = 0;
do { do {
tdc->FCC = TDC_FCC_ST; tdc->FCC = TDC_FCC_ST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment