XMC42_800WPSU_LLC
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
main.c File Reference

Main function. More...

#include <DAVE.h>
#include "lld_conf_code/hrpwm0_csg2.h"
#include "lld_conf_code/CCUx_capture_startup.h"
#include "lld_conf_code/adc.h"
#include <interrupts_control.h>
#include <init_bckgnd.h>

Go to the source code of this file.

Functions

int main (void)
 main() - Application entry point More...
 

Detailed Description

Main function.

Author
Meneses Herrera, David
Date
20.06.2017 800W Server power supply LLC

Definition in file main.c.

Function Documentation

int main ( void  )

main() - Application entry point

Details of function

  • This routine is the application entry point. It is invoked by the device startup code. It is responsible for code.
  • DAVE APP initialization
  • Application initialization
    • Debug pin configuration
    • Comparator configuration (short-circuit detection based on i_resonant comparison)
    • ADC configuration
    • Control loop initialization
    • Start-up timer configuration for application start
  • Background functions
    • Time counter
    • Fan control
    • DAC update according to the load current
Todo:
: consider to move to RAM to turn off the flash

Definition at line 137 of file main.c.

References ADC_START, CCU80_CC82_event_modifications(), control_loop_init(), DEADTIME_F_START, DEADTIME_R_START, DUTY_START, ENABLE_SEC_ON(), fan_temp_control(), HRPWM0_CSG_Init(), I_MON_update(), LED_OFF_DCNOTOK(), MIN_DEADTIME, ORING_OFF(), PR_START, PWM_OFF(), sync_OFF(), time_counter(), and VADC_Init().