forked from gatsby/datalink_repo
adapted to pl update (individual time adjustment mode).
This commit is contained in:
@@ -32,8 +32,9 @@
|
|||||||
#define PRESET_LOW 0x00000018
|
#define PRESET_LOW 0x00000018
|
||||||
#define TIME_ADJ_INT 0x0000001C
|
#define TIME_ADJ_INT 0x0000001C
|
||||||
#define TIME_ADJ_FRAC 0x00000020
|
#define TIME_ADJ_FRAC 0x00000020
|
||||||
#define TIME_ADJ_TRIG 0x00000024
|
#define TIME_ADJ_MODE 0x00000024
|
||||||
#define CNTSTEP_OPT 0x00000028
|
#define TIME_ADJ_TRIG 0x00000028
|
||||||
|
#define CNTSTEP_OPT 0x0000002c
|
||||||
|
|
||||||
#define TM_RESET_CODE 0x5253542E
|
#define TM_RESET_CODE 0x5253542E
|
||||||
/***************** Macros (Inline Functions) Definitions *********************/
|
/***************** Macros (Inline Functions) Definitions *********************/
|
||||||
@@ -202,6 +203,7 @@ void TimeCtrl_TimeAdjust(TIMECTRL_INST *instPtr, const TIME_WORD* tmWord, TIMECT
|
|||||||
}
|
}
|
||||||
TMC_Write(instPtr, TIME_ADJ_FRAC, tmWord->frac_part);
|
TMC_Write(instPtr, TIME_ADJ_FRAC, tmWord->frac_part);
|
||||||
TMC_Write(instPtr, TIME_ADJ_INT, tmWord->int_part);
|
TMC_Write(instPtr, TIME_ADJ_INT, tmWord->int_part);
|
||||||
|
TMC_Write(instPtr, TIME_ADJ_MODE, type);
|
||||||
TMC_Write(instPtr, TIME_ADJ_TRIG, type);
|
TMC_Write(instPtr, TIME_ADJ_TRIG, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user