Robot Aided Drafting
|
Top‑level application entry point and hardware initialization. More...
#include "main.h"
#include "pins.h"
#include "joint_inputs.h"
#include "motors.h"
#include "us_sensor.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stm32f4xx_hal.h>
Go to the source code of this file.
Macros | |
#define | STEP_PERIOD_US 2000U |
#define | SCHEDULER_POLL_MS 1U |
Functions | |
void | schedulerUpdate (void) |
void | SystemClock_Config (void) |
System Clock Configuration. | |
int | main (void) |
The application entry point. | |
void | Error_Handler (void) |
This function is executed in case of error occurrence. | |
Variables | |
TIM_HandleTypeDef | htim1 |
TIM_HandleTypeDef | htim3 |
TIM_HandleTypeDef | htim5 |
Top‑level application entry point and hardware initialization.
: Main program body
Definition in file main.c.
#define SCHEDULER_POLL_MS 1U |
#define STEP_PERIOD_US 2000U |
void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
None |
Error_Handler.
Referenced by SystemClock_Config().
int main | ( | void | ) |
void SystemClock_Config | ( | void | ) |
System Clock Configuration.
None |
Clock configured to 16 MHz
Configure the main internal regulator output voltage
Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef structure.
Initializes the CPU, AHB and APB buses clocks
References Error_Handler().
Referenced by main().
TIM_HandleTypeDef htim1 |
TIM_HandleTypeDef htim3 |
TIM_HandleTypeDef htim5 |