summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/servo.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/servo.h')
-rw-r--r--stmhal/servo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/servo.h b/stmhal/servo.h
index 0fca8fea17..18fd493d52 100644
--- a/stmhal/servo.h
+++ b/stmhal/servo.h
@@ -23,6 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifndef MICROPY_INCLUDED_STMHAL_SERVO_H
+#define MICROPY_INCLUDED_STMHAL_SERVO_H
void servo_init(void);
void servo_timer_irq_callback(void);
@@ -31,3 +33,5 @@ extern const mp_obj_type_t pyb_servo_type;
MP_DECLARE_CONST_FUN_OBJ_2(pyb_servo_set_obj);
MP_DECLARE_CONST_FUN_OBJ_2(pyb_pwm_set_obj);
+
+#endif // MICROPY_INCLUDED_STMHAL_SERVO_H