Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: sm_servo.h
- Revision:
- 2:e9d928fd327a
- Child:
- 3:1b7eb426247e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sm_servo.h Sat Sep 28 22:58:02 2019 +0000 @@ -0,0 +1,34 @@ +#ifndef H_SM_SERVO +#define H_SM_SERVO + +#include "utils.h" + +#define SERVO_PERIOD_DURATION_MS 10 //20ms is default but 10ms seems ok +#define SERVO_PULSE_MIDDLE_US 1500 +#define SERVO_PULSE_MAX_US 2100 +#define SERVO_PULSE_MIN_US 800 + +/* +Enums +*/ + +typedef enum{ + SERVO_INIT, + SERVO_COMMAND +}E_STATE_SERVO; + +/* +Variables +*/ + + + +/* +Functions +*/ +void init_sm_servo(); +void update_sm_servo(); +void output_sm_servo(); + + +#endif \ No newline at end of file