Kenji Arai / Mbed 2 deprecated debug_tools

Dependencies:   mbed CheckRTC

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mon_hw_STM32.h Source File

mon_hw_STM32.h

00001 /*
00002  * mbed Application program for the ST NUCLEO Board
00003  *
00004  *  Copyright (c) 2010-2014 Kenji Arai / JH1PJL
00005  *  http://www.page.sannet.ne.jp/kenjia/index.html
00006  *  http://mbed.org/users/kenjiArai/
00007  *      Created: July       7th, 2014
00008  *      Revised: Nobember   2nd, 2014
00009  *
00010  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
00011  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00012  * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00013  * DAMAGES OR OTHER  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00014  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00015  */
00016 
00017 //  ROM / Constant data ---------------------------------------------------------------------------
00018 char *const rgmsg0 = " 7, 6, 5, 4, 3, 2, 1, 0";
00019 char *const rgmsg1 = "15,14,13,12,11,10, 9, 8,";
00020 
00021 char *const cmsg0 = "Use MSI(internal RC)";
00022 char *const cmsg1 = "freq=";
00023 char *const cmsg2 = "Use HSI(internal RC/High speed)";
00024 char *const cmsg3 = "Use HSE(External Xtal)";
00025 char *const cmsg4 = "Use PLL with";
00026 char *const cmsg5 = "??? following infromation is not valid !";
00027 char *const cmsg6 = "clock freq. =";
00028 char *const cmsg7 = "No clock";
00029 char *const cmsg8 = "Use LSE(external Xtal)=32768Hz";
00030 char *const cmsg9 = "Use LSI(internal RC/Low speed), RC=";
00031 char *const cmsg10= "Use HSE(external Xtal & prescaler)";
00032 char *const cmsg11= "Power Control";
00033 
00034 char *const imsg2 = "-->Control Reg.";
00035 char *const imsg3 = "-->Status Reg.";
00036 char *const imsg4 = "-->Data Reg.";
00037 char *const imsg5 = "-->Baud rate Reg.";
00038 char *const imsg6 = "-->Own address Reg.";
00039 char *const imsg7 = "-->Clock control Reg.";
00040 char *const imsg8 = "-->TRISE Reg.";
00041 
00042 char *const rnmsg0 = " CR1--";
00043 char *const rnmsg1 = " CR2--";
00044 char *const rnmsg2 = " DR---";
00045 char *const rnmsg3 = " SR---";
00046 char *const rnmsg4 = " BRR--";
00047 char *const rnmsg5 = " SR1--";
00048 char *const rnmsg6 = " SR2--";
00049 char *const rnmsg7 = " OAR1-";
00050 char *const rnmsg8 = " OAR2-";
00051 char *const rnmsg9 = " CCR--";
00052 char *const rnmsg10 = " TRISE";
00053 
00054 char *const pnmsg0 = "Port  ";
00055 //                    0x00000000 0x0000  0x00000000 0x00000000 0x0000 0x0000
00056 char *const pnmsg1 = "Mode      Out-type Out-speed  Pup/dwn    Input  Output";
00057 char *const pnmsga = "GPIOA";
00058 char *const pnmsgb = "GPIOB";
00059 char *const pnmsgc = "GPIOC";
00060 char *const pnmsgd = "GPIOD";
00061 char *const pnmsge = "GPIOE";
00062 char *const pnmsgh = "GPIOH";
00063 char *const pnmsg2 = "Select GPIO";
00064 char *const pnmsg3 = " All";
00065 char *const pnmsg4 = "-->Output";
00066 char *const pnmsg5 = "-->Input";
00067 char *const pnmsg6 = "data";
00068 
00069 // Here is redefine part (ST Nucleo F401RE needs here definition)
00070 #ifndef GPIO_Mode_IN
00071 #define GPIO_Mode_IN    0
00072 #define GPIO_Mode_OUT   1
00073 #define GPIO_Mode_AF    2
00074 #define GPIO_Mode_AN    3
00075 #endif
00076 
00077 #ifndef GPIO_Speed_400KHz
00078 #define GPIO_Speed_400KHz   0
00079 #define GPIO_Speed_2MHz     1
00080 #define GPIO_Speed_10MHz    2
00081 #define GPIO_Speed_40MHz    3
00082 #endif
00083 
00084 #ifndef GPIO_PuPd_NOPULL
00085 #define GPIO_PuPd_NOPULL    0
00086 #define GPIO_PuPd_UP        1
00087 #define GPIO_PuPd_DOWN      2
00088 #endif