ConOpSys V2970  P004.07
ANVILEX control operating system
P014_51_CB_V1.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file P014_51_CB_V1_CPU.h
3 //! @brief CPU control board P014.51 V1 hardware driver header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Hardware/P014_51_CB/P014_51_CB_V1.h $
7 //! $Revision: 2895 $
8 //! $Date: 2021-11-18 14:26:11 +0500 (Do, 18 Nov 2021) $
9 //! $Author: ggavrituhin $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
38 //------------------------------------------------------------------------------
39 
40 #pragma once
41 
42 //------------------------------------------------------------------------------
43 // Include system headers
44 //------------------------------------------------------------------------------
45 
46 #include "Application_Task_Base.h"
47 
48 //------------------------------------------------------------------------------
49 // Include project headers
50 //------------------------------------------------------------------------------
51 
52 #include "CPU_Base.h"
53 
54 //------------------------------------------------------------------------------
55 // Class declaration
56 //------------------------------------------------------------------------------
57 
58 //! @brief Target P014_51_CB class.
60 {
61 
62  //----------------------------------------------------------------------------
63  // Public defines, methods and variables
64  //----------------------------------------------------------------------------
65 
66  public:
67 
68  //!-------------------------------------------------------------------------
69  //! @brief Object initialisation method.
70  //! @note None
71  //! @return None
72  //! \par Override
73  //! Not allowed
74  //! @attention None
75  //--------------------------------------------------------------------------
76 
77  VOID Init();
78 
79  //!-------------------------------------------------------------------------
80  //! @brief Object finalisation method.
81  //! @note None
82  //! @return None
83  //! \par Override
84  //! Not allowed
85  //! @attention None
86  //--------------------------------------------------------------------------
87 
88  VOID Done();
89 
90  //!-------------------------------------------------------------------------
91  //! @brief Send boot ststus information message about target platform driver over communication link protocol
92  //! @note This method sends boot ststus information about target platform driver over specified communication link protocol.
93  //! @param [in] *object_Protocol - Pointer to the communication link protocol
94  //! @return None
95  //! \par Override
96  //! Not allowed
97  //! @attention None
98  //--------------------------------------------------------------------------
99 
100  VOID Send_Boot_Information( TProtocol_Base *object_Protocol );
101 
102  //----------------------------------------------------------------------------
103  // Protected defines, methods and variables
104  //----------------------------------------------------------------------------
105 
106  protected:
107 
108  //----------------------------------------------------------------------------
109  // Private defines, methods and variables
110  //----------------------------------------------------------------------------
111 
112  private:
113 /*
114  // System Clock Frequency (Core Clock)
115  U32 u32_SYSCLK;
116  U32 u32_HCLK;
117  U32 u32_PCLK1;
118  U32 u32_PCLK2;
119  U32 u32_TCLK1;
120  U32 u32_TCLK2;
121  U32 u32_IWDG;
122 */
123  //! @brief Error flag
125 
126 };
127 
128 //------------------------------------------------------------------------------
129 // Export external references
130 //------------------------------------------------------------------------------
131 
132 extern "C" void System_Init( void );
133 
134 // Startup times
135 extern volatile U32 u32_LSE_Startup_Time;
136 
137 //------------------------------------------------------------------------------
138 // End of file
139 //------------------------------------------------------------------------------
ConOpSys application task base class header file.
CPU base class header file.
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
void System_Init(void)
Definition: P013_35_V1_3_CPU.cpp:94
volatile U32 u32_LSE_Startup_Time
Definition: P014_51_CB_V1.cpp:78
Definition: Protocol_Base.h:57
Target P014_51_CB class.
Definition: P014_51_CB_V1.h:60
VOID Send_Boot_Information(TProtocol_Base *object_Protocol)
Send boot ststus information message about target platform driver over communication link protocol.
Definition: P014_51_CB_V1.cpp:1292
U32 u32_Error_Flag
Error flag.
Definition: P014_51_CB_V1.h:124
VOID Init()
Object initialisation method.
Definition: P014_51_CB_V1.cpp:1255
VOID Done()
Object finalisation method.
Definition: P014_51_CB_V1.cpp:1280