You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.4 KiB
96 lines
2.4 KiB
/*
|
|
* splitflap_pins.h
|
|
*
|
|
* Created on: 29.09.2022
|
|
* Author: jonas
|
|
*/
|
|
|
|
#ifndef SPLITFLAP_PINS_H_
|
|
#define SPLITFLAP_PINS_H_
|
|
|
|
/* Magnet sensor */
|
|
#define MAG_MOTOR0_GPIO GPIOB
|
|
#define MAG_MOTOR0_PORT PORTB
|
|
#define MAG_MOTOR0_PIN 19U
|
|
|
|
#define MAG_MOTOR1_GPIO GPIOB
|
|
#define MAG_MOTOR1_PORT PORTB
|
|
#define MAG_MOTOR1_PIN 18U
|
|
|
|
#define MAG_MOTOR2_GPIO GPIOA
|
|
#define MAG_MOTOR2_PORT PORTA
|
|
#define MAG_MOTOR2_PIN 13U
|
|
|
|
#define MAG_MOTOR3_GPIO GPIOB
|
|
#define MAG_MOTOR3_PORT PORTB
|
|
#define MAG_MOTOR3_PIN 3U
|
|
|
|
/* motor 0 */
|
|
#define STEPPER_MOTOR0_IN1_GPIO GPIOC
|
|
#define STEPPER_MOTOR0_IN1_PORT PORTC
|
|
#define STEPPER_MOTOR0_IN1_PIN 11U
|
|
|
|
#define STEPPER_MOTOR0_IN2_GPIO GPIOC
|
|
#define STEPPER_MOTOR0_IN2_PORT PORTC
|
|
#define STEPPER_MOTOR0_IN2_PIN 10U
|
|
|
|
#define STEPPER_MOTOR0_IN3_GPIO GPIOC
|
|
#define STEPPER_MOTOR0_IN3_PORT PORTC
|
|
#define STEPPER_MOTOR0_IN3_PIN 9U
|
|
|
|
#define STEPPER_MOTOR0_IN4_GPIO GPIOC
|
|
#define STEPPER_MOTOR0_IN4_PORT PORTC
|
|
#define STEPPER_MOTOR0_IN4_PIN 8U
|
|
|
|
/* motor 1 */
|
|
#define STEPPER_MOTOR1_IN1_GPIO GPIOA
|
|
#define STEPPER_MOTOR1_IN1_PORT PORTA
|
|
#define STEPPER_MOTOR1_IN1_PIN 1U
|
|
|
|
#define STEPPER_MOTOR1_IN2_GPIO GPIOA
|
|
#define STEPPER_MOTOR1_IN2_PORT PORTA
|
|
#define STEPPER_MOTOR1_IN2_PIN 2U
|
|
|
|
#define STEPPER_MOTOR1_IN3_GPIO GPIOA
|
|
#define STEPPER_MOTOR1_IN3_PORT PORTA
|
|
#define STEPPER_MOTOR1_IN3_PIN 5U
|
|
|
|
#define STEPPER_MOTOR1_IN4_GPIO GPIOA
|
|
#define STEPPER_MOTOR1_IN4_PORT PORTA
|
|
#define STEPPER_MOTOR1_IN4_PIN 12U
|
|
|
|
/* motor 2 */
|
|
#define STEPPER_MOTOR2_IN1_GPIO GPIOD
|
|
#define STEPPER_MOTOR2_IN1_PORT PORTD
|
|
#define STEPPER_MOTOR2_IN1_PIN 4U
|
|
|
|
#define STEPPER_MOTOR2_IN2_GPIO GPIOD
|
|
#define STEPPER_MOTOR2_IN2_PORT PORTD
|
|
#define STEPPER_MOTOR2_IN2_PIN 5U
|
|
|
|
#define STEPPER_MOTOR2_IN3_GPIO GPIOD
|
|
#define STEPPER_MOTOR2_IN3_PORT PORTD
|
|
#define STEPPER_MOTOR2_IN3_PIN 6U
|
|
|
|
#define STEPPER_MOTOR2_IN4_GPIO GPIOD
|
|
#define STEPPER_MOTOR2_IN4_PORT PORTD
|
|
#define STEPPER_MOTOR2_IN4_PIN 7U
|
|
|
|
/* motor 3 */
|
|
#define STEPPER_MOTOR3_IN1_GPIO GPIOD
|
|
#define STEPPER_MOTOR3_IN1_PORT PORTD
|
|
#define STEPPER_MOTOR3_IN1_PIN 0U
|
|
|
|
#define STEPPER_MOTOR3_IN2_GPIO GPIOD
|
|
#define STEPPER_MOTOR3_IN2_PORT PORTD
|
|
#define STEPPER_MOTOR3_IN2_PIN 1U
|
|
|
|
#define STEPPER_MOTOR3_IN3_GPIO GPIOD
|
|
#define STEPPER_MOTOR3_IN3_PORT PORTD
|
|
#define STEPPER_MOTOR3_IN3_PIN 2U
|
|
|
|
#define STEPPER_MOTOR3_IN4_GPIO GPIOD
|
|
#define STEPPER_MOTOR3_IN4_PORT PORTD
|
|
#define STEPPER_MOTOR3_IN4_PIN 3U
|
|
|
|
#endif /* SPLITFLAP_PINS_H_ */
|
|
|