spi.h.svn-base
来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· SVN-BASE 代码 · 共 41 行
SVN-BASE
41 行
/* * File : spi.h
* This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Develop Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://openlab.rt-thread.com/license/LICENSE * * Change Logs: * Date Author Notes * 2006-08-17 Vai Nintendo DS(ARM7TDMI part) version
*/
#ifndef __SPI_H__
#define __SPI_H__
signed int touch_read_value(int measure, int retry , int range);
#define POWER0_SOUND_AMP (1<<0)
#define POWER0_LOWER_BACKLIGHT (1<<2)
#define POWER0_UPPER_BACKLIGHT (1<<3)
#define POWER0_LED_BLINK (1<<4)
#define POWER0_LED_FAST (1<<5)
#define POWER0_SYSTEM_POWER (1<<6)
enum power_reg {
POWER_CONTROL,
POWER_BATTERY,
POWER_MIC_CONTROL,
POWER_MIC_GAIN
};
unsigned char power_read(enum power_reg);
void power_write(enum power_reg, unsigned char val);
void read_firmware(unsigned int address, unsigned char * destination, int count);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?