source: trunk/platform/s3is/lib.c @ 111

Revision 111, 611 bytes checked in by vitalyb, 6 years ago (diff)
  • initial support for S3IS
Line 
1#include "platform.h"
2
3void shutdown()
4{
5    volatile long *p = (void*)0xc022002c;
6       
7    asm(
8         "MRS     R1, CPSR\n"
9         "AND     R0, R1, #0x80\n"
10         "ORR     R1, R1, #0x80\n"
11         "MSR     CPSR_cf, R1\n"
12         :::"r1","r0");
13       
14    *p = 0x46;
15
16    while(1);
17}
18
19
20#define LED_PR 0xc0220088
21
22void debug_led(int state)
23{
24    volatile long *p=(void*)LED_PR;
25    if (state)
26        p[0]=0x46;
27    else
28        p[0]=0x44;
29}
30
31
32long _GetFocusLensSubjectDistance()
33{
34    return -1;
35}
36
37void _kbd_pwr_on()
38{
39
40}
41
42void _kbd_pwr_off()
43{
44
45}
46
47void _Unmount_FileSystem()
48{
49}
50void _Mount_FileSystem()
51{
52}
Note: See TracBrowser for help on using the repository browser.