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.
129 lines
2.8 KiB
129 lines
2.8 KiB
1 year ago
|
////////////////////////////////////////////////////////////////////////////
|
||
|
///@copyright Copyright (c) 2018, ���ؿƼ� All rights reserved.
|
||
|
///-------------------------------------------------------------------------
|
||
|
/// @file bsp_gc6133.c.h
|
||
|
/// @brief bsp @ driver config
|
||
|
///-------------------------------------------------------------------------
|
||
|
/// @version 1.0
|
||
|
/// @author CC
|
||
|
/// @date 20180331
|
||
|
/// @note cc_AS_stc02
|
||
|
|
||
|
//////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef _bsp_cam_isr_H
|
||
|
#define _bsp_cam_isr_H
|
||
|
|
||
|
#include "../bsp/bsp_config.h"
|
||
|
|
||
|
#include "bsp_cam.h"
|
||
|
|
||
|
#include "msp_uart1.h"
|
||
|
|
||
|
#include "bsp_gc032a.h"
|
||
|
|
||
|
#define D_CAM_INT_CLOSE(); D_VSYNCS_close();D_HSYNCS_close();D_PCLK_close();
|
||
|
|
||
|
|
||
|
#define D_VSYNCS_close(); L0_INT2_CLOSE();
|
||
|
#define D_VSYNCS_open(); L0_INT2_OPEN();
|
||
|
|
||
|
#define D_HSYNCS_close(); L0_INT3_CLOSE();
|
||
|
#define D_HSYNCS_open(); L0_INT3_OPEN();
|
||
|
|
||
|
|
||
|
|
||
|
#define D_PCLK_init(); L0_INT1_D();
|
||
|
///#define D_PCLK_init(); L0_INT1_UD();
|
||
|
|
||
|
#define D_PCLK_open(); L0_INT1_OPEN();
|
||
|
#define D_PCLK_close(); L0_INT1_CLOSE();
|
||
|
|
||
|
#define D_SERVE_VS D_SERVE_INT2
|
||
|
#define D_SERVE_HS D_SERVE_INT3
|
||
|
#define D_SERVE_CLK D_SERVE_INT1
|
||
|
|
||
|
|
||
|
///#define DR_pclk_n gRccUs05
|
||
|
|
||
|
///#define DR_pdata_n gRccUs01
|
||
|
///#define DR_pdata_n_H gRccUs01_H
|
||
|
//#define DR_pdata_n_L gRccUs01_L
|
||
|
|
||
|
|
||
|
//#define DR_Hs_count gRccUs02//s_task_GC032A.usPclk
|
||
|
///#define DR_Dat CCAP1L
|
||
|
#define DR_Dat SPDAT
|
||
|
|
||
|
//>>>>>>>>>>>>>>>>>>>>>0gc63xxtask
|
||
|
#define D_pclk_per_hs D_row_max
|
||
|
#define D_pclk_div_hs 1 ///D_pclk_per_hs*D_pclk_div_hs < 680
|
||
|
|
||
|
|
||
|
///vs p3.7 int3
|
||
|
///hs p3.6 int2
|
||
|
///pclk p3.2 int0
|
||
|
|
||
|
|
||
|
#define D_row_get 100
|
||
|
#define D_row_get2 4
|
||
|
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
extern void L0_cam_INT_init(void);
|
||
|
|
||
|
|
||
|
|
||
|
/**********
|
||
|
|
||
|
////sfr CL = 0xe9;
|
||
|
//sfr16 CCAP16 = 0xea;
|
||
|
///sfr16 T4HL = 0xea;
|
||
|
#define T4HL (*(unsigned int volatile data *)0xd2)
|
||
|
|
||
|
#define CCAP16 (*(unsigned int volatile data *)0xea)
|
||
|
///T4H
|
||
|
|
||
|
#define CCAP1633 (*(unsigned char volatile data *)0xea)
|
||
|
while (1)
|
||
|
{
|
||
|
Lc_delay_ms(3);
|
||
|
//// L1_uartD_senduc(0x30+(u8)P17);
|
||
|
CCAP16 ++;T3L++;CCAP1633++;T4HL++;CCAP0L++;
|
||
|
printf("\r\nmain while=CCAP16 %d T3L %d CCAP1633 %d T4HL %d CCAP0L %d ",(int)CCAP16,(int)T3L,(int)CCAP1633,(int)T4HL,(int)CCAP0L);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#define T4HL (*(unsigned int volatile data *)0xd2)
|
||
|
|
||
|
#define CCAP16 (*(unsigned int volatile data *)0xea)
|
||
|
///T4H
|
||
|
|
||
|
#define CCAP1633 (*(unsigned char volatile data *)0xea)
|
||
|
while(0)
|
||
|
{
|
||
|
gRccUs01 ++;
|
||
|
gRccUs02 ++;
|
||
|
SPDAT++;
|
||
|
gdataUs02++;
|
||
|
gRccUs03 ++;
|
||
|
gRccUs05 ++;
|
||
|
CCAP16++;
|
||
|
T4HL++;
|
||
|
CCAP1633++;
|
||
|
ts_clk.pclk_n++;
|
||
|
ts_clk.pclk_m++;
|
||
|
|
||
|
}
|
||
|
****/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#endif // #ifndef _bsp_cam_isr_H
|
||
|
|