MIPI_BaseC_WebinarFRTK/04_Lecture04/06_example_tv_p22.c

17 lines
339 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
const int TV_PAL = 1;
const int TV_SECAM = 0;
const int TV_WORK = 1;
const int TV_TEST = 0;
int main(int argc, char **argv)
{
int tv_system = TV_SECAM;
int tv_input = TV_TEST;
printf("TV Diagnostic %s %s",
tv_system == TV_PAL ? "PAL" : "SECAM",
tv_input ? "WORK" : "TEST");
return 0;
}