Changeset 443 for trunk


Ignore:
Timestamp:
07/12/08 20:01:37 (5 years ago)
Author:
EWAVR
Message:

+ sx100is: added "wheel_left" and "wheel_right" ubasic commands

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ubasic/ubasic.c

    r396 r443  
    14011401static void wheel_left_statement(void){ 
    14021402  accept(TOKENIZER_WHEEL_LEFT); 
    1403 #if defined (CAMERA_g7) 
     1403#if defined (CAMERA_g7) || defined (CAMERA_sx100is) 
    14041404  JogDial_CCW(); 
    14051405#endif 
     
    14101410static void wheel_right_statement(void){ 
    14111411  accept(TOKENIZER_WHEEL_RIGHT); 
    1412 #if defined (CAMERA_g7) 
     1412#if defined (CAMERA_g7) || defined (CAMERA_sx100is) 
    14131413  JogDial_CW(); 
    14141414#endif 
    14151415  accept_cr(); 
    14161416} 
     1417 
     1418 
    14171419static void shutdown_statement(void){ 
    14181420  accept(TOKENIZER_SHUT_DOWN); 
  • trunk/platform/sx100is/sub/100c/lib.c

    r435 r443  
    11#include "platform.h" 
     2#include "lolevel.h" 
    23 
    34//NOTE These functions not used 
     
    7980 
    8081long vid_get_bitmap_buffer_height() { return 240; } 
     82 
     83void JogDial_CW(void){ 
     84  (*(short*)(0x2590+2))--; 
     85  *(int*)(0x2590+0x18)=0x32; 
     86  _GiveSemaphore(*(int*)(0x2590+0x10)); 
     87} 
     88 
     89void JogDial_CCW(void){ 
     90  (*(short*)(0x2590+2))++; 
     91  *(int*)(0x2590+0x18)=0x32; 
     92  _GiveSemaphore(*(int*)(0x2590+0x10)); 
     93} 
  • trunk/platform/sx100is/sub/100c/stubs_entry_2.S

    r441 r443  
    119119NHSTUB(MakeAFScan,  0xFFDEFB6C)  
    120120 
    121  
     121NHSTUB(GiveSemaphore,  0xFFC0BB24) 
    122122 
    123123// dryos Test 
Note: See TracChangeset for help on using the changeset viewer.