It is based on https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/

Revision:
2:4580c3869b7b
Parent:
0:caf1d0bc4b90
Child:
3:65021ea3fae5
--- a/rotary_encoder_base/rotary_encoder_base.hpp	Fri Feb 26 05:30:53 2016 +0000
+++ b/rotary_encoder_base/rotary_encoder_base.hpp	Fri Feb 26 16:08:52 2016 +0000
@@ -1,8 +1,10 @@
-#ifndef INCLUDED_ROTARY_ENCODER_BASE_H
-#define INCLUDED_ROTARY_ENCODER_BASE_H
+#ifndef INCLUDED_MBED_STL_ROTARY_ENCODER_BASE_H
+#define INCLUDED_MBED_STL_ROTARY_ENCODER_BASE_H
 
 #include "rotary_encoder.hpp"
 
+namespace mbed_stl {
+
 class rotary_encoder_base : public rotary_encoder {
 public:
     rotary_encoder_base(TIM_TypeDef* timer_type,
@@ -20,4 +22,7 @@
     TIM_HandleTypeDef* timer_handler_;
 };
 
+
+} /* namespace mbed_stl */
+
 #endif