Commit 146c1411 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

softpll: fix compilation warnings

parent 29b5155a
......@@ -2,12 +2,14 @@
#define __FREESTANDING_TRACE_H__
#ifdef CONFIG_WR_NODE
#include <wrc.h>
#define TRACE_WRAP(...)
#define TRACE_DEV(...) wrc_debug_printf(0, __VA_ARGS__)
#else /* WR_SWITCH */
#include <pp-printf.h>
#define TRACE(...) pp_printf(__VA_ARGS__)
#define TRACE_DEV(...) pp_printf(__VA_ARGS__)
......
......@@ -658,6 +658,8 @@ static int spll_measure_frequency(int osc)
case SPLL_OSC_EXT:
reg = &SPLL->F_EXT;
break;
default:
return 0;
}
timer_delay_ms(2000);
......
......@@ -10,6 +10,8 @@
/* spll_common.c - common data structures and functions used by the SoftPLL */
#include <string.h>
#include <pp-printf.h>
#include "trace.h"
#include "spll_defs.h"
#include "spll_common.h"
......
......@@ -13,6 +13,7 @@
#include "spll_external.h"
#include "spll_debug.h"
#include <pp-printf.h>
#include "trace.h"
#include "irq.h"
......@@ -58,7 +59,7 @@ void external_start(struct spll_external_state *s)
spll_debug (DBG_EVENT | DBG_EXT, DBG_EVT_START, 1);
}
int external_locked(struct spll_external_state *s)
int external_locked(volatile struct spll_external_state *s)
{
if (!s->helper->ld.locked || !s->main->ld.locked)
return 0;
......@@ -90,7 +91,7 @@ static int align_sample(int channel, int *v)
return 0; // sample not valid
}
void external_align_fsm( struct spll_external_state *s )
void external_align_fsm(volatile struct spll_external_state *s)
{
int v;
switch(s->align_state) {
......
......@@ -35,8 +35,8 @@ void external_init(volatile struct spll_external_state *s, int ext_ref,
void external_start(struct spll_external_state *s);
int external_locked(struct spll_external_state *s);
int external_locked(volatile struct spll_external_state *s);
void external_align_fsm( struct spll_external_state *s );
void external_align_fsm(volatile struct spll_external_state *s);
#endif // __SPLL_EXTERNAL_H
......@@ -11,6 +11,8 @@
#include "spll_main.h"
#include "spll_debug.h"
#include <pp-printf.h>
#include "trace.h"
#define MPLL_TAG_WRAPAROUND 100000000
......
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