some desperate code size savings

This commit is contained in:
marqs committed 2018-04-16 20:08:11 +03:00
1 parent 183b0fa78f
commit c91988e5fb
3 files changed
+10 -7

No files matched your search

+1 -2
View File
@@ -207,7 +207,7 @@ void tvp_init()
}
void tvp_set_gain_offset(color_setup_t *col) {
tvp_writereg(TVP_BG_CGAIN, ((col->c_gain << 4) | (col->c_gain & 0xF)));
tvp_writereg(TVP_BG_CGAIN, ((col->c_gain << 4) | col->c_gain));
tvp_writereg(TVP_R_CGAIN, col->c_gain);
tvp_writereg(TVP_R_FGAIN, col->r_f_gain);
tvp_writereg(TVP_G_FGAIN, col->g_f_gain);
@@ -215,7 +215,6 @@ void tvp_set_gain_offset(color_setup_t *col) {
tvp_writereg(TVP_R_FOFFSET_MSB, col->r_f_off);
tvp_writereg(TVP_G_FOFFSET_MSB, col->g_f_off);
tvp_writereg(TVP_B_FOFFSET_MSB, col->b_f_off);
}
// Configure H-PLL (sampling rate, VCO gain and charge pump current)