Commit 7a91e4f6 authored by Maciej Lipinski's avatar Maciej Lipinski

[hack] enables to disable interrupts in LM32 - a hackish way to stop PLL loop…

[hack]  enables to disable interrupts in LM32 - a hackish way to stop PLL loop and let the VXCO running on its own - was done purely experimentally
parent 5edf11ed
ptp-noposix @ 1495e6e7
Subproject commit ef04daa548b29950dac29b1b34ac172ce4c9d3da
Subproject commit 1495e6e7d3ace3cf5f4bd8e26885dd955c8b38fa
......@@ -27,7 +27,7 @@ int halexp_lock_cmd(const char *port_name, int command, int priority)
switch(command)
{
case HEXP_LOCK_CMD_ENABLE_TRACKING:
return hal_enable_tracking(port_name);
return hal_enable_tracking(port_name,priority);
/* Start locking - i.e. tell the HAL locking state machine to use the port (port_name) as the source of the reference
......
......@@ -593,13 +593,13 @@ static hal_port_state_t *lookup_port(const char *name)
return NULL;
}
int hal_enable_tracking(const char *port_name)
int hal_enable_tracking(const char *port_name, int enable)
{
hal_port_state_t *p = lookup_port(port_name);
if(!p) return PORT_ERROR;
return rts_enable_ptracker(p->hw_index, 1) < 0 ? PORT_ERROR : PORT_OK;
return rts_enable_ptracker(p->hw_index, enable) < 0 ? PORT_ERROR : PORT_OK;
}
/* Triggers the locking state machine, called by the PTPd during the WR link setup phase. */
......
......@@ -68,7 +68,7 @@ int hal_add_cleanup_callback(hal_cleanup_callback_t cb);
int hal_port_start_lock(const char *port_name, int priority);
int hal_port_check_lock(const char *port_name);
int hal_enable_tracking(const char *port_name);
int hal_enable_tracking(const char *port_name, int enable);
int hal_extsrc_check_lock(void); // added by ML
int hal_init_timing();
......
......@@ -284,11 +284,11 @@ static int rtu_daemon_init(uint16_t poly, unsigned long aging_time)
for(i = MIN_PORT; i <= MAX_PORT; i++) {
// MIN_PORT <= port <= MAX_PORT, thus no err returned
err = rtu_learn_enable_on_port(i,1);
err = rtu_learn_enable_on_port(i,0);
err = rtu_pass_all_on_port(i,1);
err = rtu_pass_bpdu_on_port(i,0);
err = rtu_set_fixed_prio_on_port(i,0);
err = rtu_set_unrecognised_behaviour_on_port(i,1);
err = rtu_set_unrecognised_behaviour_on_port(i,0);
}
// init filtering database
......
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