forked from ccsens_hardware/stc_touch_pen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
667 B
45 lines
667 B
3 years ago
|
/*******************************************************************************
|
||
|
// 说明: 头文件声明
|
||
|
*******************************************************************************/
|
||
|
|
||
|
#include "STC_mcu.h"
|
||
|
|
||
|
|
||
|
|
||
|
void L0_mcu_hard_Init(void)
|
||
|
{
|
||
|
P0M1 = 0x00;
|
||
|
P0M0 = 0xff;
|
||
|
IT0 = 1;
|
||
|
EX0 = 1;
|
||
|
P4SW|=0x70; //SET p4.5 P4.6 P4.4 为通用io
|
||
|
//fixme
|
||
|
|
||
|
P0M0 = 0x00;
|
||
|
P0M1 = 0x00;
|
||
|
P1M0 = 0x00;
|
||
|
P1M1 = 0x00;
|
||
|
P2M0 = 0x00;
|
||
|
P2M1 = 0x00;
|
||
|
P3M0 = 0x00;
|
||
|
P3M1 = 0x00;
|
||
|
P4M0 = 0x00;
|
||
|
P4M1 = 0x00;
|
||
|
P5M0 = 0x00;
|
||
|
P5M1 = 0x00;
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*********************************end file*********************************************/
|
||
|
|