comparison chipsetsw/drivers/drv_app/spi/spi_task.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*****************************************************************************/
2 /* */
3 /* Name spi_task.h */
4 /* */
5 /* Function this file contains timers definitions used by spi_core, */
6 /* in case the PWR SWE is defined. */
7 /* */
8 /* Version 0.1 */
9 /* Author Candice Bazanegue */
10 /* */
11 /* Date Modification */
12 /* ------------------------------------ */
13 /* 20/08/2000 Create */
14 /* 01/09/2003 Modfication */
15 /* Author Pascal Puel */
16 /* */
17 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved */
18 /*****************************************************************************/
19
20 #ifndef _SPI_TASK_H_
21 #define _SPI_TASK_H_
22
23 #include "rv/rv_defined_swe.h" // for RVM_PWR_SWE
24
25 #ifdef RVM_PWR_SWE
26
27 #include "pwr/pwr_cust.h"
28
29 #define SPI_TIMER0 (RVF_TIMER_0)
30 #define SPI_TIMER0_INTERVAL_1 (PWR_BAT_TEST_TIME_1)
31 #define SPI_TIMER0_INTERVAL_2 (PWR_BAT_TEST_TIME_2)
32 #define SPI_TIMER0_INTERVAL_3 (PWR_CALIBRATION_TIME_1)
33 #define SPI_TIMER0_INTERVAL_4 (PWR_CALIBRATION_TIME_2)
34 #define SPI_TIMER0_WAIT_EVENT (RVF_TIMER_0_EVT_MASK)
35
36 #define SPI_TIMER1 (RVF_TIMER_1)
37 #define SPI_TIMER1_INTERVAL (PWR_CI_CHECKING_TIME)
38 #define SPI_TIMER1_WAIT_EVENT (RVF_TIMER_1_EVT_MASK)
39
40 #define SPI_TIMER2 (RVF_TIMER_2)
41 #define SPI_TIMER2_INTERVAL (PWR_CV_CHECKING_TIME)
42 #define SPI_TIMER2_WAIT_EVENT (RVF_TIMER_2_EVT_MASK)
43
44 #define SPI_TIMER3 (RVF_TIMER_3)
45 #define SPI_TIMER3_INTERVAL (PWR_DISCHARGE_CHECKING_TIME_1)
46 #define SPI_TIMER3_INTERVAL_BIS (PWR_DISCHARGE_CHECKING_TIME_2)
47 #define SPI_TIMER3_WAIT_EVENT (RVF_TIMER_3_EVT_MASK)
48
49 #endif // RVM_PWR_SWE
50
51
52 // Prototypes
53 void spi_adc_on (void);
54 T_RV_RET spi_core(void);
55
56 #endif // _SPI_TASK_H_