A1100 IS Porting thread - page 12 - DryOS Development - CHDK Forum

A1100 IS Porting thread

  • 647 Replies
  • 242475 Views
Re: A1100 IS Porting thread
« Reply #110 on: 26 / April / 2010, 10:08:03 »
Advertisements
So.If the screen is not work,how to get the values.
bad luck.

Re: A1100 IS Porting thread
« Reply #111 on: 26 / April / 2010, 10:11:10 »
If I comment the physw_status[2] = kbd_new_state[2],screen can work,but any key have no response.

Re: A1100 IS Porting thread
« Reply #112 on: 26 / April / 2010, 10:18:05 »
Try displaying the three values of kbd_new_state[].


Re: A1100 IS Porting thread
« Reply #113 on: 26 / April / 2010, 10:19:23 »
I do not correct the
#define KEYS_MASK0 (0x00020000)
#define KEYS_MASK1 (0x00000000)
#define KEYS_MASK2 (0x00000DFF)

these values copy from a480
need to correct these value first?how?

Re: A1100 IS Porting thread
« Reply #114 on: 26 / April / 2010, 10:23:39 »
extern long physw_status[2];
static long kbd_new_state[3];
   sprintf(osd_buf, "1:       %8x  --> %8x", kbd_new_state[0]);
   draw_txt_string(20, 10, osd_buf, conf.osd_color);

   sprintf(osd_buf, "2:       %8x  --> %8x", kbd_new_state[1]);
   draw_txt_string(20, 11, osd_buf, conf.osd_color);
   sprintf(osd_buf, "2:       %8x  --> %8x", kbd_new_state[2]);
   draw_txt_string(20, 12, osd_buf, conf.osd_color);

result
1     0
2     0
3     0

Re: A1100 IS Porting thread
« Reply #115 on: 26 / April / 2010, 10:34:03 »
I copy all the code of my_kbd_read_keys() from a2000,then camera works with no keyboard enable.I can see the time and battery and card capacity

Re: A1100 IS Porting thread
« Reply #116 on: 26 / April / 2010, 10:35:08 »
Is the address of _platformsub_kbd_fetch_data  correct ?

I see the S90 build uses _GetKbdState, no idea why.

In the A2000 code, it says  :-

   // The following three lines replace the call to kbd_fetch_data
   kbd_new_state[0] = physw_status[0];
   kbd_new_state[1] = physw_status[1];
   kbd_new_state[2] = physw_status[2];
« Last Edit: 26 / April / 2010, 10:37:10 by Microfunguy »

Re: A1100 IS Porting thread
« Reply #117 on: 26 / April / 2010, 10:47:03 »
I use this address "FFC30B28"

ROM:FFC30B28 ; Attributes: library function
ROM:FFC30B28
ROM:FFC30B28 GetKbdState                             ; CODE XREF: ROM:FFC11A30p
ROM:FFC30B28                 LDR     R1, =0xC0220000
ROM:FFC30B2C                 LDR     R2, [R1,#0x200]
ROM:FFC30B30                 STR     R2, [R0]
ROM:FFC30B34                 LDR     R2, [R1,#0x204]
ROM:FFC30B38                 STR     R2, [R0,#4]
ROM:FFC30B3C                 LDR     R1, [R1,#0x208]
ROM:FFC30B40                 MOV     R1, R1,LSL#16
ROM:FFC30B44                 MOV     R1, R1,LSR#16
ROM:FFC30B48                 STR     R1, [R0,#8]
ROM:FFC30B4C                 BX      LR
ROM:FFC30B4C ; End of function GetKbdState


Re: A1100 IS Porting thread
« Reply #118 on: 26 / April / 2010, 10:57:45 »
Replace _platform_sub_kbd_fetch_data()  with :-

   kbd_new_state[0] = physw_status[0]; // <---- Add this
   kbd_new_state[1] = physw_status[1]; // <---- Add this
   kbd_new_state[2] = physw_status[2]; // <---- Add this

That is slightly different to the version that you said does not work.


EDIT

Are you using _platform_sub_kbd_fetch_data()  or _GetKbdState()  ?
« Last Edit: 26 / April / 2010, 11:01:03 by Microfunguy »

Re: A1100 IS Porting thread
« Reply #119 on: 26 / April / 2010, 11:08:22 »
Ok,I have try as you say.
then camera works with any keyboard is disabled.I can see the time and battery and card capacity.
no changed of these values.
1:       21000000
2:       521ffa3
3:        2d0fa

 

Related Topics


SimplePortal © 2008-2014, SimplePortal