Changeset 977
- Timestamp:
- 11/16/10 05:30:23 (3 years ago)
- Location:
- trunk
- Files:
-
- 61 edited
-
core/conf.c (modified) (3 diffs)
-
core/gui_palette.c (modified) (1 diff)
-
core/histogram.c (modified) (1 diff)
-
core/kbd.c (modified) (2 diffs)
-
core/luascript.c (modified) (5 diffs)
-
core/script.c (modified) (4 diffs)
-
include/platform.h (modified) (2 diffs)
-
include/script.h (modified) (1 diff)
-
lib/ubasic/camera_functions.c (modified) (5 diffs)
-
lib/ubasic/camera_functions.h (modified) (1 diff)
-
lib/ubasic/ubasic.c (modified) (5 diffs)
-
platform/a2000/lib.c (modified) (1 diff)
-
platform/a470/wrappers.c (modified) (1 diff)
-
platform/a480/lib.c (modified) (1 diff)
-
platform/a530/lib.c (modified) (1 diff)
-
platform/a560/lib.c (modified) (1 diff)
-
platform/a570/lib.c (modified) (1 diff)
-
platform/a590/wrappers.c (modified) (1 diff)
-
platform/a650/lib.c (modified) (1 diff)
-
platform/a700/wrappers.c (modified) (1 diff)
-
platform/a710/wrappers.c (modified) (1 diff)
-
platform/a720/wrappers.c (modified) (1 diff)
-
platform/d10/lib.c (modified) (1 diff)
-
platform/g11/lib.c (modified) (1 diff)
-
platform/g7/lib.c (modified) (1 diff)
-
platform/g9/lib.c (modified) (1 diff)
-
platform/g9/wrappers.c (modified) (1 diff)
-
platform/generic/lib.c (modified) (1 diff)
-
platform/ixus100_sd780/lib.c (modified) (1 diff)
-
platform/ixus40_sd300/lib.c (modified) (1 diff)
-
platform/ixus50_sd400/lib.c (modified) (1 diff)
-
platform/ixus55_sd450/lib.c (modified) (1 diff)
-
platform/ixus700_sd500/lib.c (modified) (1 diff)
-
platform/ixus70_sd1000/lib.c (modified) (1 diff)
-
platform/ixus750_sd550/lib.c (modified) (1 diff)
-
platform/ixus75_sd750/lib.c (modified) (1 diff)
-
platform/ixus800_sd700/lib.c (modified) (1 diff)
-
platform/ixus80_sd1100/lib.c (modified) (1 diff)
-
platform/ixus850_sd800/lib.c (modified) (1 diff)
-
platform/ixus85_sd770/lib.c (modified) (1 diff)
-
platform/ixus860_sd870/lib.c (modified) (1 diff)
-
platform/ixus870_sd880/lib.c (modified) (1 diff)
-
platform/ixus900_sd900/lib.c (modified) (1 diff)
-
platform/ixus90_sd790/lib.c (modified) (2 diffs)
-
platform/ixus950_sd850/lib.c (modified) (1 diff)
-
platform/ixus95_sd1200/lib.c (modified) (1 diff)
-
platform/ixus95_sd1200/sub/100c/boot.c (modified) (1 diff)
-
platform/ixus960_sd950/lib.c (modified) (1 diff)
-
platform/ixus970_sd890/lib.c (modified) (1 diff)
-
platform/ixus980_sd990/lib.c (modified) (1 diff)
-
platform/s2is/lib.c (modified) (1 diff)
-
platform/s3is/lib.c (modified) (1 diff)
-
platform/s5is/lib.c (modified) (1 diff)
-
platform/s90/lib.c (modified) (1 diff)
-
platform/sx1/lib.c (modified) (1 diff)
-
platform/sx10/lib.c (modified) (1 diff)
-
platform/sx100is/wrappers.c (modified) (1 diff)
-
platform/sx110is/lib.c (modified) (1 diff)
-
platform/sx20/lib.c (modified) (1 diff)
-
platform/sx200is/lib.c (modified) (1 diff)
-
platform/tx1/lib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/conf.c
r972 r977 70 70 static void conf_change_dng_ext(); 71 71 72 void ubasic_camera_set_raw(int mode)72 void camera_set_raw(int mode) 73 73 { 74 74 conf.save_raw = mode; 75 75 } 76 76 77 void ubasic_camera_set_nr(int mode)77 void camera_set_nr(int mode) 78 78 { 79 79 // "Auto", "Off", "On" 80 80 conf.raw_nr = mode; 81 81 } 82 int ubasic_camera_script_autostart()82 int camera_get_script_autostart() 83 83 { 84 84 // 1 = Autostarted … … 86 86 } 87 87 88 void ubasic_camera_set_script_autostart(int state)88 void camera_set_script_autostart(int state) 89 89 { 90 90 // 1 = Autostarted … … 92 92 } 93 93 94 int ubasic_camera_get_nr()94 int camera_get_nr() 95 95 { 96 96 // "Auto", "Off", "On" -
trunk/core/gui_palette.c
r515 r977 5 5 #include "conf.h" 6 6 #include "lang.h" 7 #include "ubasic.h"8 7 #include "gui.h" 9 8 #include "gui_draw.h" -
trunk/core/histogram.c
r929 r977 5 5 #include "conf.h" 6 6 #include "math.h" 7 #include "ubasic.h"8 7 #include "gui.h" 9 8 #include "gui_draw.h" -
trunk/core/kbd.c
r959 r977 331 331 332 332 if( is_lua() ) { 333 if( !lua_script_start(s tate_ubasic_script) ) {333 if( !lua_script_start(script_source_str) ) { 334 334 script_print_screen_end(); 335 335 wait_and_end(); … … 346 346 state_lua_kbd_first_call_to_resume = 1; 347 347 } else { // ubasic 348 ubasic_init(s tate_ubasic_script);348 ubasic_init(script_source_str); 349 349 350 350 for (i=0; i<SCRIPT_NUM_PARAMS; ++i) { -
trunk/core/luascript.c
r957 r977 332 332 if( lua_isnumber( L, 3 ) ) 333 333 to2 = lua_tonumber( L, 3 ); 334 ubasic_set_led(to, to1, to2);334 camera_set_led(to, to1, to2); 335 335 return 0; 336 336 } … … 353 353 static int luaCB_set_raw_nr( lua_State* L ) 354 354 { 355 ubasic_camera_set_nr(luaL_checknumber( L, 1 ));355 camera_set_nr(luaL_checknumber( L, 1 )); 356 356 return 0; 357 357 } … … 359 359 static int luaCB_get_raw_nr( lua_State* L ) 360 360 { 361 lua_pushnumber( L, ubasic_camera_get_nr() );361 lua_pushnumber( L, camera_get_nr() ); 362 362 return 1; 363 363 } … … 365 365 static int luaCB_set_raw( lua_State* L ) 366 366 { 367 ubasic_camera_set_raw(luaL_checknumber( L, 1 ));367 camera_set_raw(luaL_checknumber( L, 1 )); 368 368 return 0; 369 369 } … … 522 522 static int luaCB_autostarted( lua_State* L ) 523 523 { 524 lua_pushboolean( L, ubasic_camera_script_autostart() );524 lua_pushboolean( L, camera_get_script_autostart() ); 525 525 return 1; 526 526 } -
trunk/core/script.c
r899 r977 14 14 15 15 //------------------------------------------------------------------- 16 const char *s tate_ubasic_script=NULL; //ERR9916 const char *script_source_str=NULL; //ERR99 17 17 char cfg_name[100] = "\0"; 18 18 char cfg_set_name[100] = "\0"; … … 135 135 //------------------------------------------------------------------- 136 136 static void script_scan(const char *fn, int update_vars) { 137 register const char *ptr = s tate_ubasic_script;137 register const char *ptr = script_source_str; 138 138 register int i, j=0, n; 139 139 char *c; … … 336 336 // save_params_values(0); 337 337 338 if(s tate_ubasic_script && state_ubasic_script!= ubasic_script_default)339 free((void *)s tate_ubasic_script);340 341 s tate_ubasic_script= ubasic_script_default;338 if(script_source_str && script_source_str != ubasic_script_default) 339 free((void *)script_source_str); 340 341 script_source_str = ubasic_script_default; 342 342 update_vars = (strcmp(fn, conf.script_file) != 0) || !saved_params || (saved_params == 2); // update if new file 343 343 … … 381 381 if (rcnt > 0){ 382 382 buf[rcnt] = 0; 383 s tate_ubasic_script= buf;383 script_source_str = buf; 384 384 strcpy(conf.script_file, fn); 385 385 } -
trunk/include/platform.h
r957 r977 403 403 long get_vbatt_max(); 404 404 void play_sound(unsigned sound); 405 void ubasic_camera_set_raw(int mode);406 void ubasic_camera_set_nr(int mode);407 int ubasic_camera_get_nr();408 int ubasic_camera_script_autostart();409 void ubasic_camera_set_script_autostart();405 void camera_set_raw(int mode); 406 void camera_set_nr(int mode); 407 int camera_get_nr(); 408 int camera_get_script_autostart(); 409 void camera_set_script_autostart(); 410 410 void exit_alt(); 411 411 void camera_shutdown_in_a_second(void); … … 421 421 /******************************************************************/ 422 422 void __attribute__((noreturn)) shutdown(); 423 void ubasic_set_led(int led, int state, int bright);423 void camera_set_led(int led, int state, int bright); 424 424 void debug_led(int state); 425 425 /****************************************/ -
trunk/include/script.h
r957 r977 8 8 9 9 //------------------------------------------------------------------- 10 extern const char *s tate_ubasic_script;10 extern const char *script_source_str; 11 11 12 12 extern char script_title[36]; -
trunk/lib/ubasic/camera_functions.c
r899 r977 163 163 return 0; 164 164 } 165 void ubasic_camera_set_nr(to)165 void camera_set_nr(to) 166 166 { 167 167 raw_nr = to; … … 169 169 }; 170 170 171 int ubasic_camera_get_nr(to)171 int camera_get_nr(to) 172 172 { 173 173 printf("*** get raw nr ***\n"); … … 175 175 }; 176 176 177 void ubasic_camera_set_raw(int mode)177 void camera_set_raw(int mode) 178 178 { 179 179 raw = mode; … … 197 197 return 4085; 198 198 } 199 void ubasic_set_led(int led, int state, int bright)199 void camera_set_led(int led, int state, int bright) 200 200 { 201 201 printf("*** set led %d %d %d ***\n",led, state, bright); … … 210 210 return 0; 211 211 } 212 int ubasic_camera_script_autostart()213 { 214 return 0; 215 } 216 void ubasic_camera_set_script_autostart(int state)212 int camera_get_script_autostart() 213 { 214 return 0; 215 } 216 void camera_set_script_autostart(int state) 217 217 { 218 218 autostart = state; -
trunk/lib/ubasic/camera_functions.h
r515 r977 11 11 int md_get_cell_diff(int column, int row); 12 12 int md_init_motion_detector(); 13 void ubasic_camera_set_raw(int mode);13 void camera_set_raw(int mode); 14 14 void ubasic_camera_get_raw(); 15 void ubasic_camera_set_nr(int to);16 int ubasic_camera_get_nr();15 void camera_set_nr(int to); 16 int camera_get_nr(); 17 17 void shooting_set_prop(int id, int v); 18 18 int shooting_get_prop(int id); 19 19 long stat_get_vbatt(); 20 void ubasic_set_led(int led, int state, int bright);20 void camera_set_led(int led, int state, int bright); 21 21 int shooting_get_day_seconds(); 22 22 int shooting_get_tick_count(); 23 23 int ubasic_camera_script_autostart(); 24 24 int get_usb_power(int edge); 25 void ubasic_camera_set_script_autostart(int state);25 void camera_set_script_autostart(int state); 26 26 void exit_alt(); 27 27 //#include "../../core/motion_detector.h" -
trunk/lib/ubasic/ubasic.c
r944 r977 244 244 case TOKENIZER_GET_RAW_NR: 245 245 accept(TOKENIZER_GET_RAW_NR); 246 r = ubasic_camera_get_nr();246 r = camera_get_nr(); 247 247 break; 248 248 case TOKENIZER_IS_KEY: … … 254 254 case TOKENIZER_SCRIPT_AUTOSTARTED: 255 255 accept(TOKENIZER_SCRIPT_AUTOSTARTED); 256 r = ubasic_camera_script_autostart();256 r = camera_get_script_autostart(); 257 257 break; 258 258 case TOKENIZER_GET_SCRIPT_AUTOSTART: … … 1965 1965 to2 = expr(); 1966 1966 } 1967 ubasic_set_led(to, to1, to2);1967 camera_set_led(to, to1, to2); 1968 1968 accept_cr(); 1969 1969 } … … 2027 2027 accept(TOKENIZER_SET_RAW); 2028 2028 to = expr(); 2029 ubasic_camera_set_raw(to);2029 camera_set_raw(to); 2030 2030 accept_cr(); 2031 2031 } … … 2035 2035 accept(TOKENIZER_SET_RAW_NR); 2036 2036 to = expr(); 2037 ubasic_camera_set_nr(to);2037 camera_set_nr(to); 2038 2038 accept_cr(); 2039 2039 } -
trunk/platform/a2000/lib.c
r797 r977 56 56 } 57 57 58 void ubasic_set_led(int led, int state, int bright) {58 void camera_set_led(int led, int state, int bright) { 59 59 struct led_control led_c; 60 60 char convert_table[11]={0,1,2,3,0,2,3,1,8,10,10}; // s3 to a710 (and a720) convert table -
trunk/platform/a470/wrappers.c
r842 r977 19 19 20 20 21 void ubasic_set_led(int led, int state, int bright)21 void camera_set_led(int led, int state, int bright) 22 22 { 23 23 struct led_control led_c; -
trunk/platform/a480/lib.c
r885 r977 36 36 } 37 37 38 void ubasic_set_led(int led, int state, int bright) {38 void camera_set_led(int led, int state, int bright) { 39 39 static char led_table[]={7,9}; 40 40 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/a530/lib.c
r515 r977 37 37 #define LED_BASE 0xc0220080 38 38 39 void ubasic_set_led(int led, int state, int bright)39 void camera_set_led(int led, int state, int bright) 40 40 41 41 { -
trunk/platform/a560/lib.c
r515 r977 36 36 #define LED_BASE 0xc02200C0 37 37 38 void ubasic_set_led(int led, int state, int bright)38 void camera_set_led(int led, int state, int bright) 39 39 40 40 { -
trunk/platform/a570/lib.c
r515 r977 36 36 #define LED_BASE 0xc02200C0 37 37 38 void ubasic_set_led(int led, int state, int bright)38 void camera_set_led(int led, int state, int bright) 39 39 40 40 { -
trunk/platform/a590/wrappers.c
r842 r977 18 18 19 19 20 void ubasic_set_led(int led, int state, int bright)20 void camera_set_led(int led, int state, int bright) 21 21 { 22 22 // 0 gr -
trunk/platform/a650/lib.c
r515 r977 31 31 #define LED_AF 0xc0220080 32 32 33 void ubasic_set_led(int led, int state, int bright)33 void camera_set_led(int led, int state, int bright) 34 34 35 35 { -
trunk/platform/a700/wrappers.c
r842 r977 17 17 18 18 // copied from a710 19 void ubasic_set_led(int led, int state, int bright)19 void camera_set_led(int led, int state, int bright) 20 20 { 21 21 struct led_control led_c; -
trunk/platform/a710/wrappers.c
r842 r977 16 16 } 17 17 18 void ubasic_set_led(int led, int state, int bright)18 void camera_set_led(int led, int state, int bright) 19 19 { 20 20 struct led_control led_c; -
trunk/platform/a720/wrappers.c
r842 r977 18 18 19 19 20 void ubasic_set_led(int led, int state, int bright)20 void camera_set_led(int led, int state, int bright) 21 21 { 22 22 struct led_control led_c; -
trunk/platform/d10/lib.c
r897 r977 41 41 42 42 // TODO 43 void ubasic_set_led(int led, int state, int bright) {43 void camera_set_led(int led, int state, int bright) { 44 44 } 45 45 -
trunk/platform/g11/lib.c
r871 r977 30 30 } 31 31 32 void ubasic_set_led(int led, int state, int bright) {32 void camera_set_led(int led, int state, int bright) { 33 33 static char led_table[7]={0,1,2,3,9,14,15}; 34 34 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/g7/lib.c
r547 r977 30 30 #define LED_BASE 0xc0220000 31 31 32 void ubasic_set_led(int led, int state, int bright)32 void camera_set_led(int led, int state, int bright) 33 33 34 34 { -
trunk/platform/g9/lib.c
r576 r977 33 33 #define LED_AF 0xC0220094//was 0xc0220080 //a650- 0xc0220080//from g7 34 34 35 void ubasic_set_led1(int led, int state, int bright)//?35 void camera_set_led1(int led, int state, int bright)//? 36 36 { 37 37 int leds[] = {12,16,4,8,4,0,4}; -
trunk/platform/g9/wrappers.c
r842 r977 17 17 18 18 19 void ubasic_set_led(int led, int state, int bright)19 void camera_set_led(int led, int state, int bright) 20 20 { 21 21 struct led_control led_c; -
trunk/platform/generic/lib.c
r547 r977 30 30 #define LED_AF 0xc0220080 31 31 32 void __attribute__((weak)) ubasic_set_led(int led, int state, int bright)32 void __attribute__((weak)) camera_set_led(int led, int state, int bright) 33 33 34 34 { -
trunk/platform/ixus100_sd780/lib.c
r876 r977 41 41 42 42 // based on SX10, values found by experiment 43 void ubasic_set_led(int led, int state, int bright) {43 void camera_set_led(int led, int state, int bright) { 44 44 static char led_table[]={0, // green 45 45 1, // orange, right -
trunk/platform/ixus40_sd300/lib.c
r515 r977 256 256 led_off(led); 257 257 } 258 void ubasic_set_led(int led, int state, int bright)258 void camera_set_led(int led, int state, int bright) 259 259 { 260 260 if (state) { -
trunk/platform/ixus50_sd400/lib.c
r515 r977 65 65 led_off(led); 66 66 } 67 void ubasic_set_led(int led, int state, int bright)67 void camera_set_led(int led, int state, int bright) 68 68 { 69 69 if (state) { -
trunk/platform/ixus55_sd450/lib.c
r515 r977 31 31 #define LED_BASE 0xc02200dc 32 32 33 void ubasic_set_led(int led, int state, int bright)33 void camera_set_led(int led, int state, int bright) 34 34 35 35 { -
trunk/platform/ixus700_sd500/lib.c
r515 r977 64 64 led_off(led); 65 65 } 66 void ubasic_set_led(int led, int state, int bright)66 void camera_set_led(int led, int state, int bright) 67 67 { 68 68 if (state) { -
trunk/platform/ixus70_sd1000/lib.c
r515 r977 43 43 #define LED_BASE 0xC02200C0 44 44 45 void ubasic_set_led(int led, int state, int bright)45 void camera_set_led(int led, int state, int bright) 46 46 47 47 { -
trunk/platform/ixus750_sd550/lib.c
r515 r977 31 31 #define LED_BASE 0xc02200dc 32 32 33 void ubasic_set_led(int led, int state, int bright)33 void camera_set_led(int led, int state, int bright) 34 34 35 35 { -
trunk/platform/ixus75_sd750/lib.c
r560 r977 43 43 #define LED_BASE 0xC02200C0 44 44 45 void ubasic_set_led(int led, int state, int bright)45 void camera_set_led(int led, int state, int bright) 46 46 47 47 { -
trunk/platform/ixus800_sd700/lib.c
r515 r977 32 32 } 33 33 34 void ubasic_set_led(int led, int state, int bright)34 void camera_set_led(int led, int state, int bright) 35 35 { 36 36 debug_led(state); -
trunk/platform/ixus80_sd1100/lib.c
r569 r977 29 29 30 30 31 void ubasic_set_led(int led, int state, int bright)31 void camera_set_led(int led, int state, int bright) 32 32 { 33 33 /* ??? -
trunk/platform/ixus850_sd800/lib.c
r515 r977 42 42 #define LED_BASE 0xC02200C0 43 43 44 void ubasic_set_led(int led, int state, int bright)44 void camera_set_led(int led, int state, int bright) 45 45 { 46 46 int leds[] = {12,16,4,8,4,0,4}; -
trunk/platform/ixus85_sd770/lib.c
r901 r977 28 28 } 29 29 30 void ubasic_set_led(int led, int state, int bright)30 void camera_set_led(int led, int state, int bright) 31 31 { 32 32 static char led_table[5]={4,5,7,8,9}; -
trunk/platform/ixus860_sd870/lib.c
r515 r977 34 34 35 35 // fe50 10-Aug-2008 36 void ubasic_set_led(int led, int state, int bright)36 void camera_set_led(int led, int state, int bright) 37 37 { 38 38 // "brigth" not implemented -
trunk/platform/ixus870_sd880/lib.c
r957 r977 46 46 } 47 47 48 void ubasic_set_led(int led, int state, int bright) {48 void camera_set_led(int led, int state, int bright) { 49 49 // approximation of behaviour advertised in documentation. 50 50 long val = state ? 0x46 : 0x44; -
trunk/platform/ixus900_sd900/lib.c
r974 r977 41 41 #define LED_BASE 0xC02200C0 // led base address 42 42 43 void ubasic_set_led(int led, int state, int bright) {43 void camera_set_led(int led, int state, int bright) { 44 44 int leds[] = {12,16,4,8,4,0,4}; 45 45 if(led < 4 || led > 10 || led == 6) return; -
trunk/platform/ixus90_sd790/lib.c
r868 r977 47 47 48 48 // fe50 10-Aug-2008 49 void ubasic_set_led(int led, int state, int bright)49 void camera_set_led(int led, int state, int bright) 50 50 { 51 51 // "brigth" not implemented … … 61 61 } 62 62 63 //void ubasic_set_led(int led, int state, int bright)63 //void camera_set_led(int led, int state, int bright) 64 64 //{ 65 65 // static char led_table[5]={4,5,7,8,9}; -
trunk/platform/ixus950_sd850/lib.c
r515 r977 42 42 #define LED_BASE 0xC02200C0 43 43 44 void ubasic_set_led(int led, int state, int bright)44 void camera_set_led(int led, int state, int bright) 45 45 46 46 { -
trunk/platform/ixus95_sd1200/lib.c
r953 r977 33 33 // from Microfunguy in 34 34 // http://chdk.setepontos.com/index.php/topic,4324.msg55475.html#msg55475 35 void ubasic_set_led(int led, int state, int bright)35 void camera_set_led(int led, int state, int bright) 36 36 { 37 37 int leds[] = {0x134,0x138,0x134,0x130,0x134,0x3030,0x3030}; // green=4 | (yellow) | (not used) | orange | (not used) | af beam | timer -
trunk/platform/ixus95_sd1200/sub/100c/boot.c
r950 r977 543 543 led=(void *)ledlist[(i_led)%4]; 544 544 //led=(void *)ledlist[(++i_led)%4]; 545 // ubasic_set_led(i_led % 6, ledstate, 0);545 //camera_set_led(i_led % 6, ledstate, 0); 546 546 //core_test(1); 547 547 } else { 548 548 ledstate = 1; 549 // ubasic_set_led(i_led % 6, ledstate, 0);549 //camera_set_led(i_led % 6, ledstate, 0); 550 550 *led = 0x46; // LED on 551 551 //core_test(0); -
trunk/platform/ixus960_sd950/lib.c
r515 r977 24 24 } 25 25 #define LED_AF 0xc0223030 26 void ubasic_set_led(int led, int state, int bright)26 void camera_set_led(int led, int state, int bright) 27 27 { 28 28 int leds[] = {106,0,0,103,0,3940,0}; -
trunk/platform/ixus970_sd890/lib.c
r730 r977 28 28 } 29 29 30 void ubasic_set_led(int led, int state, int bright)30 void camera_set_led(int led, int state, int bright) 31 31 { 32 32 static char led_table[5]={4,5,7,8,9}; -
trunk/platform/ixus980_sd990/lib.c
r747 r977 41 41 42 42 // based on SX10, values found by experiment 43 void ubasic_set_led(int led, int state, int bright) {43 void camera_set_led(int led, int state, int bright) { 44 44 static char led_table[]={0, // green 45 45 1, // orange, right -
trunk/platform/s2is/lib.c
r515 r977 57 57 } 58 58 59 void ubasic_set_led(int led, int state, int bright)59 void camera_set_led(int led, int state, int bright) 60 60 { 61 61 if (state) { -
trunk/platform/s3is/lib.c
r515 r977 58 58 59 59 60 void ubasic_set_led(int led, int state, int bright)60 void camera_set_led(int led, int state, int bright) 61 61 { 62 62 if (state) { -
trunk/platform/s5is/lib.c
r515 r977 64 64 } 65 65 66 void ubasic_set_led(int led, int state, int bright)66 void camera_set_led(int led, int state, int bright) 67 67 { 68 68 if (state) { -
trunk/platform/s90/lib.c
r888 r977 30 30 } 31 31 32 void ubasic_set_led(int led, int state, int bright) {32 void camera_set_led(int led, int state, int bright) { 33 33 static char led_table[4]={0,1,9,10}; 34 34 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/sx1/lib.c
r816 r977 34 34 } 35 35 36 void ubasic_set_led(int led, int state, int bright) {36 void camera_set_led(int led, int state, int bright) { 37 37 static char led_table[5]={4,5,7,8,9}; 38 38 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/sx10/lib.c
r825 r977 33 33 } 34 34 35 void ubasic_set_led(int led, int state, int bright) {35 void camera_set_led(int led, int state, int bright) { 36 36 static char led_table[5]={4,5,7,8,9}; 37 37 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/sx100is/wrappers.c
r842 r977 18 18 19 19 20 void ubasic_set_led(int led, int state, int bright)20 void camera_set_led(int led, int state, int bright) 21 21 { 22 22 struct led_control led_c; -
trunk/platform/sx110is/lib.c
r822 r977 48 48 } 49 49 50 void ubasic_set_led(int led, int state, int bright) {50 void camera_set_led(int led, int state, int bright) { 51 51 static char led_table[5]={4,5,7,8,9}; 52 52 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/sx20/lib.c
r939 r977 45 45 } 46 46 47 void ubasic_set_led(int led, int state, int bright) {47 void camera_set_led(int led, int state, int bright) { 48 48 static char led_table[5]={4,5,7,8,9}; 49 49 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/sx200is/lib.c
r804 r977 33 33 } 34 34 35 void ubasic_set_led(int led, int state, int bright) {35 void camera_set_led(int led, int state, int bright) { 36 36 static char led_table[5]={4,5,7,8,9}; 37 37 _LEDDrive(led_table[led%sizeof(led_table)], state<=1 ? !state : state); -
trunk/platform/tx1/lib.c
r515 r977 67 67 68 68 } 69 void ubasic_set_led(int led, int state, int bright)69 void camera_set_led(int led, int state, int bright) 70 70 { 71 71 if (state) {
Note: See TracChangeset
for help on using the changeset viewer.