%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/modules/4.4.0-112-generic/build/arch/sh/include/cpu-sh3/cpu/ |
Upload File : |
#ifndef __ASM_CPU_SH3_DAC_H #define __ASM_CPU_SH3_DAC_H /* * Copyright (C) 2003 Andriy Skulysh */ #define DADR0 0xa40000a0 #define DADR1 0xa40000a2 #define DACR 0xa40000a4 #define DACR_DAOE1 0x80 #define DACR_DAOE0 0x40 #define DACR_DAE 0x20 static __inline__ void sh_dac_enable(int channel) { unsigned char v; v = __raw_readb(DACR); if(channel) v |= DACR_DAOE1; else v |= DACR_DAOE0; __raw_writeb(v,DACR); } static __inline__ void sh_dac_disable(int channel) { unsigned char v; v = __raw_readb(DACR); if(channel) v &= ~DACR_DAOE1; else v &= ~DACR_DAOE0; __raw_writeb(v,DACR); } static __inline__ void sh_dac_output(u8 value, int channel) { if(channel) __raw_writeb(value,DADR1); else __raw_writeb(value,DADR0); } #endif /* __ASM_CPU_SH3_DAC_H */