brushless6 2.0.0.0
main.c File Reference

Brushless6 Click example. More...

#include "board.h"
#include "log.h"
#include "brushless6.h"

Functions

void brushless6_calibration ()
 
void brushless6_setings ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Brushless6 Click example.

Description

Brushless 6 click is designed to drive a three-phase sensorless.

The demo application is composed of two sections :

Application Init

This function initializes and configures the logger and the click board.

Application Task

This function drives the motor in both directions increasing and decreasing the speed of the motor.

NOTE

The maximal PWM Clock frequency for this click board is 500 Hz. So, the user will need to decrease the MCU's main clock frequency in MCU Settings in order to get up-to 500 Hz PWM clock frequency.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ brushless6_calibration()

void brushless6_calibration ( )

◆ brushless6_setings()

void brushless6_setings ( )

◆ main()

int main ( void )