Use servo instead of t4-servo

This commit is contained in:
David Rabel 2015-04-03 14:29:52 +02:00
parent 560117e8f3
commit 3ba9009f50
2 changed files with 8 additions and 2 deletions

View file

@ -46,7 +46,8 @@
/* Define which resources to include to meet memory constraints. */
#define REST_RES_INFO 1
#define REST_RES_T4_SERVO 1
#define REST_RES_SERVO 1
#define REST_RES_T4_SERVO 0
#define REST_RES_LEDS 0
#define REST_RES_TOGGLE 0
#define REST_RES_BATTERY 1
@ -465,6 +466,10 @@ PROCESS_THREAD(rest_server_example, ev, data)
SENSORS_ACTIVATE(battery_sensor);
rest_activate_resource(&resource_battery);
#endif
#if defined (PLATFORM_HAS_SERVO) && REST_RES_SERVO
SENSORS_ACTIVATE(servo_sensor);
rest_activate_resource(&res_servo);
#endif
#if defined (PLATFORM_HAS_T4_SERVO) && REST_RES_T4_SERVO
SENSORS_ACTIVATE(t4_servo_sensor);
rest_activate_resource(&resource_t4_servo);

View file

@ -34,7 +34,8 @@
//#define PLATFORM_HAS_LEDS 1
//#define PLATFORM_HAS_BUTTON 1
#define PLATFORM_HAS_T4_SERVO 1
#define PLATFORM_HAS_SERVO
//#define PLATFORM_HAS_T4_SERVO 1
#define PLATFORM_HAS_BATTERY 1
#define SICSLOWPAN_CONF_FRAG 1