34 #include "hal_clocks.h" 36 #include "hal_nop_delay.h" 38 #include "mcp4012_x.h" 41 #include "hw_testing_app.h" 42 #include "product_id.h" 46 static uint32_t flag_rev_pol_pro = 0;
47 static uint32_t flag_led = 0;
48 static uint32_t flag_dc_dc = 0;
49 static uint32_t flag_pot = 0;
50 static uint32_t flag_rc_output = 0;
51 static uint32_t flag_crystal = 0;
52 static uint32_t flag_freq_filter = 0;
64 log_printf(
"\nHARDWARE TEST\n");
65 log_printf(
"START\n");
67 hal_nop_delay_ms(250);
75 if( flag_rev_pol_pro && flag_dc_dc && flag_led && flag_pot && flag_rc_output
76 && flag_crystal && flag_freq_filter )
78 hal_gpio_pin_clear(LED_RED);
79 hal_gpio_pin_set(LED_GREEN);
80 log_printf(
"Status : 1\n");
85 hal_gpio_pin_clear(LED_GREEN);
86 hal_gpio_pin_set(LED_RED);
87 log_printf(
"Status : 0\n");
#define LEDS_ACTIVE_STATE
void mcp4012_init(uint32_t CS_bar_pin_no, uint32_t UD_bar_pin_no, uint32_t SCK_pin_no)
This function is used to initialize MCP4012 in our program. This will set wiper value of MCP4012 to z...
void hfclk_xtal_init_blocking(void)
Function to start the crystal oscillator to be used for HF clock. This function blocks until the crys...
int main(void)
Function for application main entry.