CHDK_DE Vorschauversion  Trunk Rev. 5274
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
kbd.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.h"
#include "conf.h"
#include "kbd_common.h"
+ Include-Abhängigkeitsdiagramm für kbd.c:

gehe zum Quellcode dieser Datei

Funktionen

void _GetKbdState (long *)
 
int get_usb_bit ()
 
void kbd_fetch_data (long *dst)
 
void my_kbd_read_keys ()
 
long __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 
void jogdial_control (int n)
 
long get_jogdial_direction (void)
 

Variablen

KeyMap keymap []
 
long kbd_new_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
long kbd_prev_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
long kbd_mod_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
int jogdial_stopped =0
 
short * jog_position
 *-------------------------------------------------------------------— Mehr ...
 
short rear_dial_position
 
static short new_jogdial =0
 
static short old_jogdial =0
 

Dokumentation der Funktionen

long __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

__MovieRecorder_c__100

__MovieRecorder_c__100

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 85 der Datei kbd.c.

86 {
87  asm volatile(
88  "STMFD SP!, {R1-R7,LR}\n"
89  "MOV R5, #0\n"
90  //"BL _kbd_read_keys \n"
91  "BL my_kbd_read_keys\n"
92  "B _kbd_p1_f_cont\n"
93  );
94  return 0; // shut up the compiler
95 }
void _GetKbdState ( long *  )
long get_jogdial_direction ( void  )

Definiert in Zeile 133 der Datei kbd.c.

134 {
137  if (old_jogdial < new_jogdial) return JOGDIAL_LEFT;
138  else if (old_jogdial > new_jogdial) return JOGDIAL_RIGHT;
139  else return 0;
140 }
int get_usb_bit ( )

Definiert in Zeile 60 der Datei kbd.c.

61 {
62  long usb_physw[3];
63  usb_physw[USB_IDX] = 0;
64  _kbd_read_keys_r2(usb_physw);
65  return(( usb_physw[USB_IDX] & USB_MASK)==USB_MASK) ;
66 }
void jogdial_control ( int  n)

Definiert in Zeile 120 der Datei kbd.c.

121 {
122  if (jogdial_stopped && !n)
123  {
124  // If re-enabling jogdial set the task code current & previous positions to the actual
125  // dial positions so that the change won't get processed by the firmware
126  jog_position[0] = jog_position[2] = rear_dial_position; // Rear dial
127  }
128  jogdial_stopped = n;
129 }
void kbd_fetch_data ( long *  dst)

Definiert in Zeile 68 der Datei kbd.c.

69 {
72 }
void my_kbd_read_keys ( )

Definiert in Zeile 74 der Datei kbd.c.

75 {
77 
78  // Disable Zoom Assist button
80  physw_status[0] |= 0x00010000;
81 
83 }

Variablen-Dokumentation

short* jog_position

*-------------------------------------------------------------------—

Definiert in Zeile 48 der Datei boot.c.

int jogdial_stopped =0

Definiert in Zeile 113 der Datei kbd.c.

long kbd_mod_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }

Definiert in Zeile 39 der Datei kbd.c.

long kbd_new_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }

Definiert in Zeile 37 der Datei kbd.c.

long kbd_prev_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }

Definiert in Zeile 38 der Datei kbd.c.

KeyMap keymap[]
Initialisierung:
= {
{ 0, KEY_ZOOM_IN ,0x00000060 },
{ 0, KEY_ZOOM_IN ,0x00000020 },
{ 0, KEY_ZOOM_IN ,0x00000040 },
{ 0, KEY_ZOOM_OUT ,0x00000180 },
{ 0, KEY_ZOOM_OUT ,0x00000080 },
{ 0, KEY_ZOOM_OUT ,0x00000100 },
{ 0, KEY_UP ,0x00000400 },
{ 0, KEY_DOWN ,0x00000800 },
{ 0, KEY_LEFT ,0x00001000 },
{ 0, KEY_RIGHT ,0x00002000 },
{ 0, KEY_SET ,0x00004000 },
{ 0, KEY_VIDEO ,0x00008000 },
{ 0, KEY_ZOOM_ASSIST ,0x00010000 },
{ 0, KEY_DISPLAY ,0x00020000 },
{ 0, KEY_MENU ,0x00040000 },
{ 0, KEY_ERASE ,0x00080000 },
{ 0, KEY_FLASH ,0x00400000 },
{ 0, KEY_PRINT ,0x00800000 },
{ 2, KEY_POWER ,0x00000800 },
{ 2, KEY_PLAYBACK ,0x00001000 },
{ 2, KEY_SHOOT_FULL ,0x0000c000 },
{ 2, KEY_SHOOT_FULL_ONLY ,0x00008000 },
{ 2, KEY_SHOOT_HALF ,0x00004000 },
{ 0, 0, 0 }
}

Definiert in Zeile 7 der Datei kbd.c.

short new_jogdial =0
static

Definiert in Zeile 131 der Datei kbd.c.

short old_jogdial =0
static

Definiert in Zeile 131 der Datei kbd.c.

short rear_dial_position