[tuxdroid-svn] r85 - firmware/tuxdefs
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-02-27 11:19:48
|
Author: jaguarondi Date: 2007-02-27 12:02:57 +0100 (Tue, 27 Feb 2007) New Revision: 85 Modified: firmware/tuxdefs/commands.h firmware/tuxdefs/config.h firmware/tuxdefs/remote.h Log: - ADD: svn:eol-style properties Property changes on: firmware/tuxdefs/commands.h ___________________________________________________________________ Name: svn:eol-style + native Modified: firmware/tuxdefs/config.h =================================================================== --- firmware/tuxdefs/config.h 2007-02-27 09:56:22 UTC (rev 84) +++ firmware/tuxdefs/config.h 2007-02-27 11:02:57 UTC (rev 85) @@ -1,124 +1,124 @@ -/* KySoH iTux agent - * - * Config options for tux - * David Bourgeois - * -------------------------------------------------------- - * $Id$ - */ - -#ifndef _CONFIG_H_ -#define _CONFIG_H_ - -#include <avr/eeprom.h> - -#include "commands.h" - -/* - * Standalone events - */ - -#define SHORT_EVENT 16 -#define LONG_EVENT 31 -#define END_OF_ACTIONS 0xFF /* action time that indicates the end of commands */ - -/* Startup event */ -#define STARTUP_E_SEQ {\ - 24, RESET_WINGS_CMD, OPEN_EYES_CMD, LED_ON_CMD, 0, /* set wings low, open the eyes if closed and light them */\ - 20, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ - 18, PLAY_SOUND_CMD, 4, 0, 0, /* play the 'hello' sound */\ - 10, LED_OFF_CMD, CLOSE_MOUTH_CMD, 0, 0,\ - 0, COND_RESET_CMD, INFO_TUXCORE_CMD, 0, 0, /* reset the conditional flags */\ - END_OF_ACTIONS\ -} - -/* Head button event */ -#define HEAD_E_SEQ {\ - 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ - END_OF_ACTIONS\ -} - -/* Left flipper button event */ -#define LEFT_FLIP_E_SEQ {\ - 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ - END_OF_ACTIONS\ -} - -/* Right flipper event */ -#define RIGHT_FLIP_E_SEQ {\ - 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ - END_OF_ACTIONS\ -} - -/* Start charging event */ -#define CHARGER_START_E_SEQ {\ - 0, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ - 0, LED_BLINK_CMD, 4, 50, 0, /* blink led's twice */\ - 0, PLAY_SOUND_CMD, 3, 0, 0, /* play a sound */\ - END_OF_ACTIONS\ -} - -/* Unplug event */ -#define UNPLUG_E_SEQ {\ - 3, PLAY_SOUND_CMD, 2, 0, 0, /* play a sound */\ - 0, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ - END_OF_ACTIONS\ -} - -/* RF connection event */ -#define RF_CONN_E_SEQ {\ - 0, LED_ON_CMD, 0, 0, 0, /* tun on the leds */\ - END_OF_ACTIONS\ -} - -/* RF disconnection event */ -#define RF_DISCONN_E_SEQ {\ - 0, LED_OFF_CMD, 0, 0, 0, /* tun off the leds */\ - END_OF_ACTIONS\ -} - -/* Tux greeting event */ -#define TUX_GR_E_SEQ {\ - 5, PLAY_SOUND_CMD, 6, 0, 0, /* play a sound */\ - 5, MOVE_MOUTH_CMD, 2, 0, 0,\ - END_OF_ACTIONS\ -} - -/* Tux greeting reply event */ -#define TUX_GR_REPL_E_SEQ {\ - 10, PLAY_SOUND_CMD, 7, 0, 0, /* play a sound */\ - 10, MOVE_MOUTH_CMD, 2, 0, 0,\ - 10, WAVE_WINGS_CMD, 2, 5, 0,\ - END_OF_ACTIONS\ -} - -/* Tux greeting second reply event */ -#define TUX_GR_REPL2_E_SEQ {\ - 10, PLAY_SOUND_CMD, 8, 0, 0, /* play a sound */\ - 10, MOVE_MOUTH_CMD, 2, 0, 0,\ - 0, WAVE_WINGS_CMD, 2, 5, 0,\ - END_OF_ACTIONS\ -} - -/* - * Configuration settings - */ -typedef struct -{ - uint8_t ir_feedback; /* flashes the leds when an ir code is received */ - uint8_t led_off_when_closed_eyes; /* turns off the leds when the eyes are closed */ - uint8_t tux_greeting; /* greeting when another tux is seen */ -} -tuxcore_config_t; - -typedef struct -{ - uint8_t automute; /* mutes the speaker when no sounds are played and unmute it when sound arrives, you can't use the line in in this mode as the insertion of a plug is not detected so the speaker won't be unmuted */ -} -tuxaudio_config_t; - -/* Default configurations */ -#define TUXCORE_CONFIG {1, 1, 0} -#define TUXAUDIO_CONFIG {0} - - -#endif /* _CONFIG_H_ */ +/* KySoH iTux agent + * + * Config options for tux + * David Bourgeois + * -------------------------------------------------------- + * $Id$ + */ + +#ifndef _CONFIG_H_ +#define _CONFIG_H_ + +#include <avr/eeprom.h> + +#include "commands.h" + +/* + * Standalone events + */ + +#define SHORT_EVENT 16 +#define LONG_EVENT 31 +#define END_OF_ACTIONS 0xFF /* action time that indicates the end of commands */ + +/* Startup event */ +#define STARTUP_E_SEQ {\ + 24, RESET_WINGS_CMD, OPEN_EYES_CMD, LED_ON_CMD, 0, /* set wings low, open the eyes if closed and light them */\ + 20, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ + 18, PLAY_SOUND_CMD, 4, 0, 0, /* play the 'hello' sound */\ + 10, LED_OFF_CMD, CLOSE_MOUTH_CMD, 0, 0,\ + 0, COND_RESET_CMD, INFO_TUXCORE_CMD, 0, 0, /* reset the conditional flags */\ + END_OF_ACTIONS\ +} + +/* Head button event */ +#define HEAD_E_SEQ {\ + 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ + END_OF_ACTIONS\ +} + +/* Left flipper button event */ +#define LEFT_FLIP_E_SEQ {\ + 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ + END_OF_ACTIONS\ +} + +/* Right flipper event */ +#define RIGHT_FLIP_E_SEQ {\ + 0, LED_BLINK_CMD, 2, 30, 0, /* blink led's once */\ + END_OF_ACTIONS\ +} + +/* Start charging event */ +#define CHARGER_START_E_SEQ {\ + 0, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ + 0, LED_BLINK_CMD, 4, 50, 0, /* blink led's twice */\ + 0, PLAY_SOUND_CMD, 3, 0, 0, /* play a sound */\ + END_OF_ACTIONS\ +} + +/* Unplug event */ +#define UNPLUG_E_SEQ {\ + 3, PLAY_SOUND_CMD, 2, 0, 0, /* play a sound */\ + 0, MOVE_MOUTH_CMD, 2, 0, 0, /* move the mouth */\ + END_OF_ACTIONS\ +} + +/* RF connection event */ +#define RF_CONN_E_SEQ {\ + 0, LED_ON_CMD, 0, 0, 0, /* tun on the leds */\ + END_OF_ACTIONS\ +} + +/* RF disconnection event */ +#define RF_DISCONN_E_SEQ {\ + 0, LED_OFF_CMD, 0, 0, 0, /* tun off the leds */\ + END_OF_ACTIONS\ +} + +/* Tux greeting event */ +#define TUX_GR_E_SEQ {\ + 5, PLAY_SOUND_CMD, 6, 0, 0, /* play a sound */\ + 5, MOVE_MOUTH_CMD, 2, 0, 0,\ + END_OF_ACTIONS\ +} + +/* Tux greeting reply event */ +#define TUX_GR_REPL_E_SEQ {\ + 10, PLAY_SOUND_CMD, 7, 0, 0, /* play a sound */\ + 10, MOVE_MOUTH_CMD, 2, 0, 0,\ + 10, WAVE_WINGS_CMD, 2, 5, 0,\ + END_OF_ACTIONS\ +} + +/* Tux greeting second reply event */ +#define TUX_GR_REPL2_E_SEQ {\ + 10, PLAY_SOUND_CMD, 8, 0, 0, /* play a sound */\ + 10, MOVE_MOUTH_CMD, 2, 0, 0,\ + 0, WAVE_WINGS_CMD, 2, 5, 0,\ + END_OF_ACTIONS\ +} + +/* + * Configuration settings + */ +typedef struct +{ + uint8_t ir_feedback; /* flashes the leds when an ir code is received */ + uint8_t led_off_when_closed_eyes; /* turns off the leds when the eyes are closed */ + uint8_t tux_greeting; /* greeting when another tux is seen */ +} +tuxcore_config_t; + +typedef struct +{ + uint8_t automute; /* mutes the speaker when no sounds are played and unmute it when sound arrives, you can't use the line in in this mode as the insertion of a plug is not detected so the speaker won't be unmuted */ +} +tuxaudio_config_t; + +/* Default configurations */ +#define TUXCORE_CONFIG {1, 1, 0} +#define TUXAUDIO_CONFIG {0} + + +#endif /* _CONFIG_H_ */ Property changes on: firmware/tuxdefs/config.h ___________________________________________________________________ Name: svn:eol-style + native Modified: firmware/tuxdefs/remote.h =================================================================== --- firmware/tuxdefs/remote.h 2007-02-27 09:56:22 UTC (rev 84) +++ firmware/tuxdefs/remote.h 2007-02-27 11:02:57 UTC (rev 85) @@ -1,57 +1,57 @@ -/* KySoH iTux agent - * - * General command listing - * David Bourgeois - * -------------------------------------------------------- - * $Id$ - */ - -#ifndef _REMOTE_H_ -#define _REMOTE_H_ - -#define K_0 0x00 -#define K_1 0x01 -#define K_2 0x02 -#define K_3 0x03 -#define K_4 0x04 -#define K_5 0x05 -#define K_6 0x06 -#define K_7 0x07 -#define K_8 0x08 -#define K_9 0x09 -#define K_STANDBY 0X0C -#define K_MUTE 0X0D -#define K_VOLUMEPLUS 0X10 -#define K_VOLUMEMINUS 0X11 -#define K_ESCAPE 0X12 -#define K_YES 0X13 -#define K_NO 0X14 -#define K_BACKSPACE 0X15 -#define K_STARTVOIP 0X16 -#define K_RECEIVECALL 0X17 -#define K_HANGUP 0X18 -#define K_STAR 0X19 -#define K_SHARP 0X1A -#define K_RED 0X1B -#define K_GREEN 0X1C -#define K_BLUE 0X1D -#define K_YELLOW 0X1E -#define K_CHANNELPLUS 0X20 -#define K_CHANNELMINUS 0X21 -#define K_UP 0X22 -#define K_DOWN 0X23 -#define K_LEFT 0X24 -#define K_RIGHT 0X25 -#define K_OK 0X26 -#define K_FASTREWIND 0X32 -#define K_FASTFORWARD 0X34 -#define K_PLAYPAUSE 0X35 -#define K_STOP 0X36 -#define K_RECORDING 0X37 -#define K_PREVIOUS 0X38 -#define K_NEXT 0X39 -#define K_MENU 0X3A -#define K_MOUSE 0X3B -#define K_ALT 0X3C - -#endif /* _REMOTE_H_ */ +/* KySoH iTux agent + * + * General command listing + * David Bourgeois + * -------------------------------------------------------- + * $Id$ + */ + +#ifndef _REMOTE_H_ +#define _REMOTE_H_ + +#define K_0 0x00 +#define K_1 0x01 +#define K_2 0x02 +#define K_3 0x03 +#define K_4 0x04 +#define K_5 0x05 +#define K_6 0x06 +#define K_7 0x07 +#define K_8 0x08 +#define K_9 0x09 +#define K_STANDBY 0X0C +#define K_MUTE 0X0D +#define K_VOLUMEPLUS 0X10 +#define K_VOLUMEMINUS 0X11 +#define K_ESCAPE 0X12 +#define K_YES 0X13 +#define K_NO 0X14 +#define K_BACKSPACE 0X15 +#define K_STARTVOIP 0X16 +#define K_RECEIVECALL 0X17 +#define K_HANGUP 0X18 +#define K_STAR 0X19 +#define K_SHARP 0X1A +#define K_RED 0X1B +#define K_GREEN 0X1C +#define K_BLUE 0X1D +#define K_YELLOW 0X1E +#define K_CHANNELPLUS 0X20 +#define K_CHANNELMINUS 0X21 +#define K_UP 0X22 +#define K_DOWN 0X23 +#define K_LEFT 0X24 +#define K_RIGHT 0X25 +#define K_OK 0X26 +#define K_FASTREWIND 0X32 +#define K_FASTFORWARD 0X34 +#define K_PLAYPAUSE 0X35 +#define K_STOP 0X36 +#define K_RECORDING 0X37 +#define K_PREVIOUS 0X38 +#define K_NEXT 0X39 +#define K_MENU 0X3A +#define K_MOUSE 0X3B +#define K_ALT 0X3C + +#endif /* _REMOTE_H_ */ Property changes on: firmware/tuxdefs/remote.h ___________________________________________________________________ Name: svn:eol-style + native |