Prusa MINI Firmware overview
servo.h File Reference

Go to the source code of this file.

Macros

#define BASE_SERVO_ANGLES   servo_angles
 
#define MOVE_SERVO(I, P)   servo[I].move(P)
 

Functions

void servo_init ()
 

Variables

constexpr uint16_t asrc [] = SADATA
 
constexpr uint16_t BASE_SERVO_ANGLES [NUM_SERVOS][2]
 
HAL_SERVO_LIB servo [NUM_SERVOS]
 

Macro Definition Documentation

◆ BASE_SERVO_ANGLES

#define BASE_SERVO_ANGLES   servo_angles

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. module/servo.h

◆ MOVE_SERVO

#define MOVE_SERVO (   I,
 
)    servo[I].move(P)

Function Documentation

◆ servo_init()

void servo_init ( )
Here is the caller graph for this function:

Variable Documentation

◆ asrc

constexpr uint16_t asrc[] = SADATA
constexpr

◆ BASE_SERVO_ANGLES

constexpr uint16_t BASE_SERVO_ANGLES[NUM_SERVOS][2]
constexpr
Initial value:
= {
{ ASRC(0,0), ASRC(0,1) }
}

◆ servo

HAL_SERVO_LIB servo[NUM_SERVOS]