Commit def7e908 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

softpll: code snapshot correctly compiling

Conflicts:

	rt/dev/softpll_ng.c
parent b5cb2d10
......@@ -23,8 +23,8 @@ static volatile struct SPLL_WB *SPLL = (volatile struct SPLL_WB *) BASE_SOFTPLL;
#include "spll_main.h"
#include "spll_ptracker.h"
static struct spll_helper_state helper;
static struct spll_main_state mpll;
static volatile struct spll_helper_state helper;
static volatile struct spll_main_state mpll;
void _irq_entry()
{
......@@ -85,14 +85,14 @@ void spll_test()
timer_delay(10000);
spll_init();
uint32_t t1 = timer_get_tics();
helper_init(&helper, 2);
helper_init(&helper, 0);
helper_start(&helper);
mpll_init(&mpll, 2, CHAN_TCXO);
mpll_init(&mpll, 0, CHAN_TCXO);
enable_irq();
// mpll_init(&mpll, 0, CHAN_TCXO);
while(!helper.ld.locked) ;//TRACE("%d\n", helper.phase.ld.locked);
TRACE("Helper locked, starting main\n");
mpll_start(&mpll);
while(!mpll.ld.locked) ;//TRACE("%d\n", helper.phase.ld.locked);
......
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