Document PWM output settings

This commit is contained in:
fruchti 2020-12-26 11:04:55 +01:00
parent 57a6b881b3
commit 4774d5fbe5

View file

@ -2,10 +2,11 @@
#include "hpgl.h"
// PWM coordinate output settings
#define OUTPUT_PWM_RESOLUTION 15 // In bits
#define OUTPUT_PWM_OFFSET 300 // Minimum value
#define OUTPUT_PEN_DELAY 200 // In timer ticks
// Resolution for coordinate values as parsed from HPGL
#define OUTPUT_RESOLUTION 14 // In bits
#define OUTPUT_COORDINATE_LIMIT ((1 << OUTPUT_RESOLUTION) - 1)
@ -14,5 +15,8 @@
// overflows during coordinate calculations.
#define OUTPUT_LENGTH_SCALE (1 << 3)
// Delay after initiating pen-up/-down before continuing movements
#define OUTPUT_PEN_DELAY 200 // In timer ticks
void Output_Init(void);
bool Output_EnqueueMovement(HPGL_Movement_t movement);