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

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 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)  )

Definiert in Zeile 48 der Datei kbd.c.

54 {
55  while (physw_run){
56  _SleepTask(physw_sleep_delay);
57 
58  if (wrap_kbd_p1_f() == 1){ // autorepeat ?
59  _kbd_p2_f();
60  }
61  }
62  _ExitTask();
63 }
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 65 der Datei kbd.c.

66 {
67  asm volatile(
68  "STMFD SP!, {R1-R7,LR}\n"
69  "MOV R5, #0\n"
70  //"BL _kbd_read_keys \n"
71  "BL my_kbd_read_keys\n"
72  "B _kbd_p1_f_cont\n"
73  );
74  return 0; // shut up the compiler
75 }
void _GetKbdState ( long *  )
long get_jogdial_direction ( void  )

Definiert in Zeile 116 der Datei kbd.c.

117 {
120  if (old_jogdial < new_jogdial) return JOGDIAL_RIGHT;
121  else if (old_jogdial > new_jogdial) return JOGDIAL_LEFT;
122  else return 0;
123 }
int get_usb_bit ( )

Definiert in Zeile 13 der Datei kbd.c.

14 {
15  long usb_physw[3];
16  usb_physw[USB_IDX] = 0;
17  _kbd_read_keys_r2(usb_physw);
18  return(( usb_physw[USB_IDX] & USB_MASK)==USB_MASK) ;
19 }
void jogdial_control ( int  n)

Definiert in Zeile 85 der Datei kbd.c.

86 {
87  if (jogdial_stopped && !n)
88  {
89  // If re-enabling jogdial set the task code current & previous positions to the actual
90  // dial positions so that the change won't get processed by the firmware
91  jog_position[0] = jog_position[2] = rear_dial_position; // Rear dial
92  }
94 }
void kbd_fetch_data ( long *  dst)

Definiert in Zeile 106 der Datei kbd.c.

107 {
108  _GetKbdState(dst);
110 }
void my_kbd_read_keys ( )

Definiert in Zeile 96 der Datei kbd.c.

97 {
100 
101  // Disable Zoom Assist button
103  physw_status[0] |= 0x00010000;
104 }

Variablen-Dokumentation

short* jog_position

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

Definiert in Zeile 48 der Datei boot.c.

int jogdial_stopped =0

Definiert in Zeile 78 der Datei kbd.c.

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

Definiert in Zeile 9 der Datei kbd.c.

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

Definiert in Zeile 7 der Datei kbd.c.

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

Definiert in Zeile 8 der Datei kbd.c.

KeyMap keymap[]
Initialisierung:
= {
{ 0, KEY_SET ,0x00000400 },
{ 0, KEY_DISPLAY ,0x00000800 },
{ 0, KEY_DOWN ,0x00001000 },
{ 0, KEY_MENU ,0x00002000 },
{ 0, KEY_LEFT ,0x00004000 },
{ 0, KEY_UP ,0x00040000 },
{ 0, KEY_RIGHT ,0x00080000 },
{ 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, KEY_PRINT ,0x00800000 },
{ 0, KEY_FLASH ,0x00400000 },
{ 0, KEY_ERASE ,0x00020000 },
{ 0, KEY_VIDEO ,0x00010000 },
{ 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, 0, 0 }
}

Definiert in Zeile 21 der Datei kbd.c.

short new_jogdial =0
static

Definiert in Zeile 114 der Datei kbd.c.

short old_jogdial =0
static

Definiert in Zeile 114 der Datei kbd.c.

short rear_dial_position