Document PWM output settings
This commit is contained in:
parent
57a6b881b3
commit
4774d5fbe5
1 changed files with 5 additions and 1 deletions
|
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
#include "hpgl.h"
|
#include "hpgl.h"
|
||||||
|
|
||||||
|
// PWM coordinate output settings
|
||||||
#define OUTPUT_PWM_RESOLUTION 15 // In bits
|
#define OUTPUT_PWM_RESOLUTION 15 // In bits
|
||||||
#define OUTPUT_PWM_OFFSET 300 // Minimum value
|
#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_RESOLUTION 14 // In bits
|
||||||
#define OUTPUT_COORDINATE_LIMIT ((1 << OUTPUT_RESOLUTION) - 1)
|
#define OUTPUT_COORDINATE_LIMIT ((1 << OUTPUT_RESOLUTION) - 1)
|
||||||
|
|
||||||
|
|
@ -14,5 +15,8 @@
|
||||||
// overflows during coordinate calculations.
|
// overflows during coordinate calculations.
|
||||||
#define OUTPUT_LENGTH_SCALE (1 << 3)
|
#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);
|
void Output_Init(void);
|
||||||
bool Output_EnqueueMovement(HPGL_Movement_t movement);
|
bool Output_EnqueueMovement(HPGL_Movement_t movement);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue