Commit 2ce29dd0 authored by Aurelio Colosimo's avatar Aurelio Colosimo

arch-spec: sfp params moved from spec-halexp.c to spec-startup.c

This patch is necessary for integration in wrpc-sw, since the same parameters
are defined in wrc_main.c, when compiling into wrpc-sw
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 839c8ef8
......@@ -5,15 +5,10 @@
#include <softpll_ng.h>
#include "spec.h"
/* Calibration data (should be read from EEPROM, if available) */
#ifdef PPSI_MASTER
int32_t sfp_alpha = -73622176;
#else
int32_t sfp_alpha = 73622176;
#endif
int32_t sfp_deltaTx = 0;
int32_t sfp_deltaRx = 0;
uint32_t cal_phase_transition = 595; /* 7000 */
extern int32_t sfp_alpha;
extern int32_t sfp_deltaTx;
extern int32_t sfp_deltaRx;
extern uint32_t cal_phase_transition;
static int read_phase_val(hexp_port_state_t *state)
{
......
......@@ -22,6 +22,16 @@ static struct pp_net_path net_path;
static struct pp_servo servo;
static struct pp_frgn_master frgn_master;
/* Calibration data (should be read from EEPROM, if available) */
#ifdef PPSI_MASTER
int32_t sfp_alpha = -73622176;
#else
int32_t sfp_alpha = 73622176;
#endif
int32_t sfp_deltaTx = 0;
int32_t sfp_deltaRx = 0;
uint32_t cal_phase_transition = 595; /* 7000 */
void ppsi_main(void)
{
struct pp_instance *ppi = &ppi_static; /* no malloc, one instance */
......
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