[tuxdroid-svn] r284 - svnlook: warning: cannot set LC_CTYPE locale svnlook: warning: environment va
Status: Beta
Brought to you by:
ks156
From: svnlook:warning@affinitic.be:cannot s. L. l. <c2m...@c2...> - 2007-04-22 18:00:26
|
Author: svnlook: warning: cannot set LC_CTYPE locale Date: svnlook: warning: environment variable LANG is EN New Revision: 284 Modified: firmware/tuxdefs/commands.h firmware/tuxdefs/config.h firmware/tuxdefs/remote.h Log: doegox 2007-04-22 20:00:21 +0200 (Sun, 22 Apr 2007) 147 Reindent with: indent -nut -i4 -bad -bap -sob -sc -bl -bli0 -cli0 -cbi4 -nce -ncdw -ss -bls -npsl -ncs -npcs -nprs -saf -sai -saw -nbfda -nhnl -l80 svnlook: warning: cannot set LC_CTYPE locale svnlook: warning: environment variable LANG is EN svnlook: warning: please check that your locale name is correct Modified: firmware/tuxdefs/commands.h =================================================================== --- firmware/tuxdefs/commands.h 2007-04-22 17:47:57 UTC (rev 283) +++ firmware/tuxdefs/commands.h 2007-04-22 18:00:21 UTC (rev 284) @@ -99,8 +99,8 @@ typedef struct { uint8_t version_cmd; - uint8_t cpu_nbr :3; /* 3 lower bits are the CPU number */ - uint8_t ver_major :5; /* 5 higher bits are the major version number */ + uint8_t cpu_nbr:3; /* 3 lower bits are the CPU number */ + uint8_t ver_major:5; /* 5 higher bits are the major version number */ uint8_t ver_minor; uint8_t ver_update; } version_bf_t; @@ -113,28 +113,29 @@ typedef struct { uint8_t version_cmd; - uint8_t cpu_ver_maj; /* 3 lower bits are the CPU number, 5 higher bits are the major version number */ + uint8_t cpu_ver_maj; /* 3 lower bits are the CPU number, 5 higher bits are the major version number */ uint8_t ver_minor; uint8_t ver_update; } version_t; + #define CPU_VER_JOIN(cpu_nbr, ver_major) ((cpu_nbr & 0x7) + (ver_major << 3)) -#define CPU_VER_CPU(cpu_ver_maj) (cpu_ver_maj & 0x07) /* cpu_nbr: 3 lower bits */ -#define CPU_VER_MAJ(cpu_ver_maj) ((cpu_ver_maj & 0xF8) >> 3) /* ver_major: 5 higher bits */ +#define CPU_VER_CPU(cpu_ver_maj) (cpu_ver_maj & 0x07) /* cpu_nbr: 3 lower bits */ +#define CPU_VER_MAJ(cpu_ver_maj) ((cpu_ver_maj & 0xF8) >> 3) /* ver_major: 5 higher bits */ #define REVISION_CMD 0xC9 typedef struct { uint8_t revision_cmd; uint16_t revision; - uint8_t _undefined_; /* XXX reserved, maybe a branch ID? */ + uint8_t _undefined_; /* XXX reserved, maybe a branch ID? */ } revision_t; #define AUTHOR_CMD 0xCA typedef struct { uint8_t author_cmd; - uint16_t author_id; /* official releases have id=0, other authors can have their own id's */ - uint8_t _undefined_; /* XXX reserved */ + uint16_t author_id; /* official releases have id=0, other authors can have their own id's */ + uint8_t _undefined_; /* XXX reserved */ } author_t; /* @@ -147,35 +148,35 @@ * Move commands */ -#define BLINK_EYES_CMD 0x40 /* blink the eyes */ +#define BLINK_EYES_CMD 0x40 /* blink the eyes */ /* 1st parameter: number of movements before the eyes will stop */ -#define STOP_EYES_CMD 0x32 /* stop the eyes motor */ -#define OPEN_EYES_CMD 0x33 /* open the eyes if they are closed */ -#define MOVE_MOUTH_CMD 0x41 /* move the mouth */ +#define STOP_EYES_CMD 0x32 /* stop the eyes motor */ +#define OPEN_EYES_CMD 0x33 /* open the eyes if they are closed */ +#define MOVE_MOUTH_CMD 0x41 /* move the mouth */ /* 1st parameter: number of movements before the mouth will stop */ -#define OPEN_MOUTH_CMD 0x34 /* open the mouth if it is closed */ -#define CLOSE_MOUTH_CMD 0x35 /* close the mouth if it is open */ -#define STOP_MOUTH_CMD 0x36 /* stop the mouth motor */ -#define WAVE_WINGS_CMD 0x80 /* move the wings up and down */ +#define OPEN_MOUTH_CMD 0x34 /* open the mouth if it is closed */ +#define CLOSE_MOUTH_CMD 0x35 /* close the mouth if it is open */ +#define STOP_MOUTH_CMD 0x36 /* stop the mouth motor */ +#define WAVE_WINGS_CMD 0x80 /* move the wings up and down */ /* 1st parameter: number of movements before the wings will stop */ /* 2nd parameter: pwm value between 1 (slow) and 5 (fast) */ -#define STOP_WINGS_CMD 0x30 /* stop the wings motor */ -#define RESET_WINGS_CMD 0x31 /* reset the wings in the low position */ -#define SPIN_LEFT_CMD 0x82 /* spin left of a given angle */ +#define STOP_WINGS_CMD 0x30 /* stop the wings motor */ +#define RESET_WINGS_CMD 0x31 /* reset the wings in the low position */ +#define SPIN_LEFT_CMD 0x82 /* spin left of a given angle */ /* 1st parameter: angle to turn, the unit is approximately 1/8th of a turn */ /* 2nd parameter: pwm value between 1 (slow) and 5 (fast) */ -#define SPIN_RIGHT_CMD 0x83 /* spin right of a given angle */ +#define SPIN_RIGHT_CMD 0x83 /* spin right of a given angle */ /* 1st parameter: angle to turn, the unit is approximately 1/8th of a turn */ /* 2nd parameter: pwm value between 1 (slow) and 5 (fast) */ -#define STOP_SPIN_CMD 0x37 /* stop the spinning motor */ +#define STOP_SPIN_CMD 0x37 /* stop the spinning motor */ /* * IR commands */ -#define TURN_IR_ON_CMD 0x17 /* turn IR led on */ -#define TURN_IR_OFF_CMD 0x18 /* turn IR led off */ -#define IR_SEND_RC5_CMD 0x91 /* send RC5 ir code */ +#define TURN_IR_ON_CMD 0x17 /* turn IR led on */ +#define TURN_IR_OFF_CMD 0x18 /* turn IR led off */ +#define IR_SEND_RC5_CMD 0x91 /* send RC5 ir code */ /* 1st parameter: address - xxTAAAAA (T: toggle bit, A: RC5 5 bits address) */ /* 2nd parameter: command - xxCCCCCC (C: RC5 6 bits command) */ @@ -183,13 +184,13 @@ * LED commands */ -#define LED_ON_CMD 0x1A /* Turn all leds on */ -#define LED_OFF_CMD 0x1B /* Turn all leds off */ -#define LED_L_ON_CMD 0x1C /* Turn left led on */ -#define LED_L_OFF_CMD 0x1D /* Turn left led off */ -#define LED_R_ON_CMD 0x1E /* Turn right led on */ -#define LED_R_OFF_CMD 0x1F /* Turn right led off */ -#define LED_BLINK_CMD 0x9A /* Blink both leds multiple time */ +#define LED_ON_CMD 0x1A /* Turn all leds on */ +#define LED_OFF_CMD 0x1B /* Turn all leds off */ +#define LED_L_ON_CMD 0x1C /* Turn left led on */ +#define LED_L_OFF_CMD 0x1D /* Turn left led off */ +#define LED_R_ON_CMD 0x1E /* Turn right led on */ +#define LED_R_OFF_CMD 0x1F /* Turn right led off */ +#define LED_BLINK_CMD 0x9A /* Blink both leds multiple time */ /* 1st parameter: number of led toggles */ /* 2nd parameter: delay between each led toggle, in multiple of 4ms */ @@ -198,17 +199,17 @@ * * Audio commands can't have 3 parameters, see the above note for details */ -#define PLAY_SOUND_CMD 0x90 /* play a sound from the flash sound bank */ +#define PLAY_SOUND_CMD 0x90 /* play a sound from the flash sound bank */ /* 1st parameter: sound number */ /* 2nd parameter: sound volume */ -#define STORE_SOUND_CMD 0x52 /* start flash sound bank storage [1] */ +#define STORE_SOUND_CMD 0x52 /* start flash sound bank storage [1] */ /* 1st parameter: number of sounds to store */ -#define STORE_INDEX_CMD 0xD0 /* get indexes of the flash sound bank [1] */ +#define STORE_INDEX_CMD 0xD0 /* get indexes of the flash sound bank [1] */ /* 1st parameter: lower address byte */ /* 2nd parameter: middle address byte */ /* 3rd parameter: higher address byte */ -#define TEST_SOUND_CMD 0x10 /* test the audio input and output [1] */ -#define MUTE_CMD 0x92 /* mute/unmute the audio amplifier */ +#define TEST_SOUND_CMD 0x10 /* test the audio input and output [1] */ +#define MUTE_CMD 0x92 /* mute/unmute the audio amplifier */ /* 1st parameter: mute state 0:unmute 1:mute */ /* 2nd parameter: reserved */ @@ -221,7 +222,7 @@ /* * Sleep commands */ -#define SLEEP_CMD 0x93 /* set the CPU in sleep mode */ +#define SLEEP_CMD 0x93 /* set the CPU in sleep mode */ /* 1st parameter: XXX undefined yet */ /* 2nd parameter: XXX undefined yet */ @@ -232,7 +233,7 @@ /* * Status commands */ -#define STATUS_PORTS_CMD 0xC0 /* send core CPU's ports */ +#define STATUS_PORTS_CMD 0xC0 /* send core CPU's ports */ /* 1st parameter: PORTB * PB0: wings motor backward * PB1: spin motor forward @@ -263,8 +264,8 @@ * PD7: eyes closed position switch */ -#define SEND_AUDIOSENSORS_CMD 0xF0 /* send sensors status of the audio CPU to the core CPU */ -#define STATUS_SENSORS1_CMD 0xC1 /* send sensors status of the audio CPU to the computer */ +#define SEND_AUDIOSENSORS_CMD 0xF0 /* send sensors status of the audio CPU to the core CPU */ +#define STATUS_SENSORS1_CMD 0xC1 /* send sensors status of the audio CPU to the computer */ /* 1st parameter: switches and status from the audio CPU * .0: left wing push button * .1: right wing push button @@ -291,12 +292,12 @@ /* 2nd parameter: light level low byte */ /* 3rd parameter: light mode: 0: low light, 1:strong light */ -#define STATUS_POSITION1_CMD 0xC3 /* send position counters which is related to the motor status */ +#define STATUS_POSITION1_CMD 0xC3 /* send position counters which is related to the motor status */ /* 1st parameter: eyes position counter */ /* 2nd parameter: mouth position counter */ /* 3rd parameter: wings position counter */ -#define STATUS_POSITION2_CMD 0xC4 /* send position counters which is related to the motor status */ +#define STATUS_POSITION2_CMD 0xC4 /* send position counters which is related to the motor status */ /* 1st parameter: spin position counter */ /* 2nd parameter: */ /* 3rd parameter: */ @@ -326,13 +327,14 @@ /* 1st parameter: number of pongs pending */ /* 2nd parameter: number of pongs lost by the I2C */ /* 3rd parameter: number of pongs lost by the RF link */ -#define COND_RESET_CMD 0x3E /* reset conditional flags that are resettable */ +#define COND_RESET_CMD 0x3E /* reset conditional flags that are resettable */ /* * Error numbers */ -enum error_numbers_t { +enum error_numbers_t +{ E_STACK_CORRUPTION, /* 3rd parameter: see source code, depends on the function that report the error */ E_STATUS_INVALID, @@ -352,24 +354,27 @@ #define TEST_MODE_CMD 0xB8 /* 1st parameter: core CPU test mode */ -enum test_mode_b_t { - BT_NO_TEST, /* run in normal mode, no tests activated */ - BT_TEST_ALL, /* production tests, enable spinning while plugged, continuous light measurement */ - BT_REMOTE, /* use the remote control to control movements and sounds of tux */ - BT_MBTEST, /* test of the MB naked */ +enum test_mode_b_t +{ + BT_NO_TEST, /* run in normal mode, no tests activated */ + BT_TEST_ALL, /* production tests, enable spinning while plugged, continuous light measurement */ + BT_REMOTE, /* use the remote control to control movements and sounds of tux */ + BT_MBTEST, /* test of the MB naked */ BT_MBTEST0, BT_MBTEST1, BT_MBTEST2, BT_MBTEST3, }; + /* 2nd parameter: TUXAUDIO CPU test mode */ -enum test_mode_a_t { - AT_NO_TEST, /* run in normal mode, no tests activated */ - AT_NOSTATUSUP, /* flush the status buffer all the time so the I2C bus is running freely even without any RF connected */ - AT_MBTEST, /* test the flash,sends an acknowledge and enters audio link mode */ +enum test_mode_a_t +{ + AT_NO_TEST, /* run in normal mode, no tests activated */ + AT_NOSTATUSUP, /* flush the status buffer all the time so the I2C bus is running freely even without any RF connected */ + AT_MBTEST, /* test the flash,sends an acknowledge and enters audio link mode */ AT_MBTEST1, AT_MBTEST2, - AT_AUDIOLINK, /* link the microphone output to the speaker */ + AT_AUDIOLINK, /* link the microphone output to the speaker */ }; -#endif /* _COMMAND_H_ */ +#endif /* _COMMAND_H_ */ Modified: firmware/tuxdefs/config.h =================================================================== --- firmware/tuxdefs/config.h 2007-04-22 17:47:57 UTC (rev 283) +++ firmware/tuxdefs/config.h 2007-04-22 18:00:21 UTC (rev 284) @@ -1,3 +1,4 @@ + /* KySoH iTux agent * * Config options for tux @@ -19,7 +20,7 @@ #define SHORT_EVENT 16 #define LONG_EVENT 31 -#define END_OF_ACTIONS 0xFF /* action time that indicates the end of commands */ +#define END_OF_ACTIONS 0xFF /* action time that indicates the end of commands */ /* Startup event */ #define STARTUP_E_SEQ {\ @@ -104,15 +105,15 @@ */ 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 */ + 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 */ + 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; @@ -120,5 +121,4 @@ #define TUXCORE_CONFIG {1, 1, 0} #define TUXAUDIO_CONFIG {0} - #endif /* _CONFIG_H_ */ Modified: firmware/tuxdefs/remote.h =================================================================== --- firmware/tuxdefs/remote.h 2007-04-22 17:47:57 UTC (rev 283) +++ firmware/tuxdefs/remote.h 2007-04-22 18:00:21 UTC (rev 284) @@ -1,3 +1,4 @@ + /* KySoH iTux agent * * General command listing |