20 #include "uart\uart_lib.h" 69 PMIC.CTRL |= PMIC_LOLVLEX_bm;
volatile Bool ushell_active
void ushell_task_init(void)
This function initializes the hardware/software ressources required for ushell task.
void mci_set_motor_speed(U8 speed)
U16 g_regulation_period
Define the sampling period.
void CLKSYS_Prescalers_Config(CLK_PSADIV_t PSAfactor, CLK_PSBCDIV_t PSBCfactor)
This function changes the prescaler configuration.
Bool g_tick
Use for control the sampling period value.
#define CLKSYS_Enable(_oscSel)
This macro enables the selected oscillator.
void mc_init()
use to init programm
void mc_inrush_task(void)
the purpose of this function is to manage the delay used when the overcurrent detection is disabled...
void mci_run(void)
mci_run run the motor with parameter
void CLKSYS_PLL_Config(OSC_PLLSRC_t clockSource, uint8_t factor)
This function configures the internal high-frequency PLL.
uint8_t CLKSYS_Main_ClockSource_Select(CLK_SCLKSEL_t clockSource)
This function selects the main system clock source.
U16 motor_speed
User Speed Order.
void mc_regulation_loop()
launch speed control or no regulation
void mc_ADC_Scheduler(void)
Launch the scheduler for the ADC.
XMEGA Clock System driver header file.
int main(void)
Main Entry.
#define CLKSYS_IsReady(_oscSel)
This macro check if selected oscillator is ready.
U8 mc_get_potentiometer_value(void)
Get the potentiometer value.
void ushell_task(void)
Entry point of the explorer task management.