📄 upsd_cfg.c
字号:
/*---------------------------------------------------------------*/
/* UPSD_CFG.C */
/* This module contains all the defines for uPSD Configuration */
/* --------------------------------------------------------------*/
//-- Includes ----------------------------------------------------------------
#include "general.h"
#include "upsd.h" // SFRs
#include "upsd_xreg.h" // extended registers in uPSD
#include "upsd_cfg.h" // All defines for uPSD Configuration
/*---------------------------------------------------------------*/
/* This module contains all the constants */
/* for uPSD libraryConfiguration */
/* --------------------------------------------------------------*/
//-- Constants values for ipLIBs ----------------------------------------------
//ADC
const uchar code cADC_CH_used = ADC_CH_used;
const uchar code cASCL_value = (uchar)((((OSC*10L/2L)/(ADC_clk_in*1000L))+5)/10) - 1;
//USB
const uchar code cUSCL_value = (uchar)((((OSC*10L/2L)/(USB_clk_in*1000L))+5)/10) - 1;
/*---------------------------------------------------------------*/
/* This module contains all extened I/O devices */
/* for uPSD including PSD module regs in XDATA */
/* --------------------------------------------------------------*/
//-- Assign memory location for PSD module regs in XDATA -----------------------
UPSD_xport UPSD_xreg _at_ 0x200;
//-- Assign memory location for user I/O devices -------------------------------
#include "lcd_io.h"
DISPLAY LCD_reg _at_ 0x0300;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -