software/videomixer: support test mode without pots

This commit is contained in:
Sebastien Bourdeauducq 2013-09-13 18:32:01 +02:00
parent a0f0285bb9
commit be9acc045f
1 changed files with 13 additions and 2 deletions

View File

@ -12,6 +12,7 @@
#include "dvisampler0.h"
#include "dvisampler1.h"
#ifdef POTS_BASE
static int scale_pot(int raw, int range)
{
int pot_min = 64000;
@ -44,7 +45,7 @@ static void additive_blend(int p0, int p1)
fb_blender_f1_write(scale_pot(p1, 255));
}
static void pots_service(void)
static void ui_service(void)
{
static int last_event;
static int additive_blend_enabled;
@ -74,6 +75,16 @@ static void pots_service(void)
}
}
#else
static void ui_service(void)
{
fb_blender_f0_write(0xff);
fb_blender_f1_write(0xff);
}
#endif
static void fb_service(void)
{
int c;
@ -125,7 +136,7 @@ int main(void)
while(1) {
dvisampler0_service();
dvisampler1_service();
pots_service();
ui_service();
fb_service();
membw_service();
}