ConOpSys V2970  P004.07
ANVILEX control operating system
P014_49_V1_0_CPU.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file P014_49_V1_0_CPU.h
3 //! @brief CPU control board P014.49 V1.0 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_49_V1_0_CB/P014_49_V1_0_CPU.h $
7 //! $Revision: 2262 $
8 //! $Date: 2020-12-05 07:20:48 +0500 (Sa, 05 Dez 2020) $
9 //! $Author: minch $
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 //------------------------------------------------------------------------------
41 // Protecting header files from mutual, recursive inclusion.
42 //------------------------------------------------------------------------------
43 
44 #pragma once
45 
46 //------------------------------------------------------------------------------
47 // Include system headers
48 //------------------------------------------------------------------------------
49 
50 //------------------------------------------------------------------------------
51 // Include project headers
52 //------------------------------------------------------------------------------
53 
54 #include "Target_Base.h"
55 
56 //------------------------------------------------------------------------------
57 
58 class TTarget_P014_49_V1_0 : public TTarget_Basic
59 {
60 
61  //----------------------------------------------------------------------------
62  // Public defines, methods and variables
63  //----------------------------------------------------------------------------
64 
65  public:
66 
67  // Initialization and finalization methods
68  VOID Init();
69  VOID Done();
70 
72 
73  // Core clock
82 
83  //----------------------------------------------------------------------------
84  // Protected defines, methods and variables
85  //----------------------------------------------------------------------------
86 
87  protected:
88 
89  //----------------------------------------------------------------------------
90  // Private defines, methods and variables
91  //----------------------------------------------------------------------------
92 
93  private:
94 
95  // System Clock Frequency (Core Clock)
103 
104  // Error flag
106 
107 };
108 
109 //------------------------------------------------------------------------------
110 // Export external references
111 //------------------------------------------------------------------------------
112 
113 extern void System_Init( void );
114 
115 //------------------------------------------------------------------------------
116 // End Of File
117 //------------------------------------------------------------------------------
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
Definition: P014_49_V1_0_CPU.h:59
VOID Done()
Definition: P014_49_V1_0_CPU.cpp:1093
U32 u32_SYSCLK
Definition: P014_49_V1_0_CPU.h:96
U32 u32_PCLK2
Definition: P014_49_V1_0_CPU.h:99
U32 Get_IWDG_Frequency()
Returns the IWDG frequency
Definition: P014_49_V1_0_CPU.cpp:1328
U32 Get_PCLK1_Frequency()
Returns the PCLK1 frequency
Definition: P014_49_V1_0_CPU.cpp:1262
U32 Get_PCLK2_Frequency()
Returns the PCLK2 frequency
Definition: P014_49_V1_0_CPU.cpp:1279
U32 Get_TCLK2_Frequency()
Returns the TCLK2 frequency
Definition: P014_49_V1_0_CPU.cpp:1313
VOID System_Core_Clock_Update()
Definition: P014_49_V1_0_CPU.cpp:1099
U32 Get_HCLK_Frequency()
Returns the HCLK frequency
Definition: P014_49_V1_0_CPU.cpp:1245
U32 u32_Error_Flag
Definition: P014_49_V1_0_CPU.h:105
U32 u32_HCLK
Definition: P014_49_V1_0_CPU.h:97
U32 u32_TCLK1
Definition: P014_49_V1_0_CPU.h:100
U32 u32_PCLK1
Definition: P014_49_V1_0_CPU.h:98
U32 Get_TCLK1_Frequency()
Returns the TCLK1 frequency
Definition: P014_49_V1_0_CPU.cpp:1296
VOID Init()
Definition: P014_49_V1_0_CPU.cpp:1078
U32 Get_SYSCLK_Frequency()
Definition: P014_49_V1_0_CPU.cpp:1225
U32 u32_TCLK2
Definition: P014_49_V1_0_CPU.h:101
U32 u32_IWDG
Definition: P014_49_V1_0_CPU.h:102