CHDK_DE Vorschauversion  Trunk Rev. 5570
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
kbd.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "keyboard.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 ()
 
long __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 
void __attribute__ ((noinline))
 
void my_kbd_read_keys ()
 
void kbd_fetch_data (long *dst)
 

Variablen

long kbd_new_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
long kbd_prev_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
long kbd_mod_state [3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }
 
KeyMap keymap []
 
int physw_override
 

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 64 der Datei kbd.c.

64  {
65 
66  asm volatile(
67  "push {r1-r7, lr}\n"
68  "movs r4, #0\n"
69  "bl my_kbd_read_keys\n"
70  "b kbd_p1_f_cont_my\n" // extra hook needed for shutter keys, see boot.c
71 // "b _kbd_p1_f_cont\n"
72  );
73 
74  return 0;
75 }
void __attribute__ ( (noinline)  )

Definiert in Zeile 78 der Datei kbd.c.

78  {
79  extern void kbd_p2_f_my();
80 
81  while (physw_run) {
82  _SleepTask(physw_sleep_delay);
83 
84  int r = wrap_kbd_p1_f();
85  if (r == 1) {
86 #ifdef CAM_HAS_JOGDIAL
87  kbd_p2_f_my(); // replacement of _kbd_p2_f (in sub/<fwver>/boot.c)
88 #else
89  _kbd_p2_f();
90 #endif
91  }
92  }
93 
94  _ExitTask();
95 }
void _GetKbdState ( long *  )
int get_usb_bit ( )

Definiert in Zeile 12 der Datei kbd.c.

12  {
13  long usb_physw[3];
14  usb_physw[USB_IDX] = 0;
15  _kbd_read_keys_r2(usb_physw);
16  return(( usb_physw[USB_IDX] & USB_MASK)==USB_MASK) ;
17 }
void kbd_fetch_data ( long *  dst)

Definiert in Zeile 153 der Datei kbd.c.

154 {
155  _GetKbdState(dst);
157 }
void my_kbd_read_keys ( )

Definiert in Zeile 142 der Datei kbd.c.

142  {
143  if(kbd_update_key_state()) {
144  physw_override = 0;
145  } else {
146  // behavior of fc506140 (fw 100d) varies depending on value set by caller fc589620
147  // if -1, shutter half and full shoot are ignored. Used in override in boot.c
148  physw_override = -1;
149  }
151 }

Variablen-Dokumentation

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

Definiert in Zeile 8 der Datei kbd.c.

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

Definiert in Zeile 6 der Datei kbd.c.

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

Definiert in Zeile 7 der Datei kbd.c.

KeyMap keymap[]
Initialisierung:
= {
{ 0, KEY_MENU ,0x00000020 },
{ 0, KEY_UP ,0x00000040 },
{ 0, KEY_DOWN ,0x00000080 },
{ 0, KEY_RIGHT ,0x00000100 },
{ 0, KEY_SET ,0x00000200 },
{ 0, KEY_LEFT ,0x00000400 },
{ 0, KEY_PLAYBACK ,0x00000800 },
{ 0, KEY_ERASE ,0x00001000 },
{ 0, KEY_VIDEO ,0x00002000 },
{ 0, KEY_WIFI ,0x00010000 },
{ 0, KEY_ZOOM_OUT ,0x00000004 },
{ 0, KEY_ZOOM_OUT ,0x00000002 },
{ 0, KEY_ZOOM_IN ,0x00000010 },
{ 0, KEY_ZOOM_IN ,0x00000008 },
{ 1, KEY_SHOOT_FULL ,0x00000c00 },
{ 1, KEY_SHOOT_FULL_ONLY ,0x00000800 },
{ 1, KEY_SHOOT_HALF ,0x00000400 },
{ 0, 0, 0 }
}

Definiert in Zeile 38 der Datei kbd.c.

int physw_override

Definiert in Zeile 140 der Datei kbd.c.