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.
sm_servo.h
- Committer:
- GaspardD
- Date:
- 2019-09-29
- Revision:
- 3:1b7eb426247e
- Parent:
- 2:e9d928fd327a
- Child:
- 4:efa207509f63
File content as of revision 3:1b7eb426247e:
#ifndef H_SM_SERVO #define H_SM_SERVO #include "utils.h" #define SERVO_PERIOD_DURATION_MS 20 //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