Kenji Arai
/
NucleoF401_motor_test_simple
DRV8830/TI Motor Driver sample program.\\ This program can control two motors.
Diff: mon_hw.h
- Revision:
- 3:db817fb05ba7
diff -r e0b9fd6126d1 -r db817fb05ba7 mon_hw.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mon_hw.h Sat Jul 12 11:55:37 2014 +0000 @@ -0,0 +1,132 @@ +/* + * mbed Application program for the ST NUCLEO F401RE Board + * + * Copyright (c) 2010-2014 Kenji Arai / JH1PJL + * http://www.page.sannet.ne.jp/kenjia/index.html + * http://mbed.org/users/kenjiArai/ + * Created: July 7th, 2014 + * Ported: July 12th, 2014 from L152RE + * Revised: July 12th, 2014 + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE + * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +// ROM / Constant data --------------------------------------------------------------------------- +char *const mon_msg = "Monitor for mbed Nucleo F401RE created on "__DATE__""; + +char *const rmsg0 = "FLASH "; +char *const rmsg2 = "SYS-Mem "; +char *const rmsg3 = "OPTION "; +char *const rmsg4 = "SRAM "; +char *const rmsg5 = "IO "; +char *const rmsg6 = "Return to"; + +char *const xmsg0 = "Not implimented yet"; + +char *const rgmsg0 = " 7, 6, 5, 4, 3, 2, 1, 0"; +char *const rgmsg1 = "15,14,13,12,11,10, 9, 8,"; + +char *const hmsg0 = "m - Entry Memory Mode"; +char *const hmsg1 = "m>? -> Aditinal functions can see by ?"; +char *const hmsg2 = "r - Entry Register Mode"; +char *const hmsg3 = "r>? -> Aditinal functions can see by ?"; +char *const hmsg4 = "s - System Clock -> sf, System / CPU information -> sc"; +char *const hmsg5 = "q - Quit (back to called routine)"; +char *const hmsg6 = "p - Entry Port Mode"; +char *const hmsg7 = "p>? -> Aditinal functions can see by ?"; + +#if 0 +char *const amsg0 = "CPU = "; +char *const amsg1 = "Cortex-M3"; +char *const amsg2 = "Reach to out of range"; +char *const amsg3 = "Not in a memory area"; +char *const amsg4 = "ARM"; +char *const amsg5 = "NOT "; +char *const amsg6 = "Variant:"; +char *const amsg7 = "Revision:"; +#else +char *const amsg2 = "Reach to out of range"; +char *const amsg3 = "Not in a memory area"; +#endif + + +char *const cmsg0 = "Use MSI(internal RC)"; +char *const cmsg1 = "freq="; +char *const cmsg2 = "Use HSI(internal RC/High speed)"; +char *const cmsg3 = "Use HSE(External Xtal)"; +char *const cmsg4 = "Use PLL with"; +char *const cmsg5 = "??? following infromation is not valid !"; +char *const cmsg6 = "clock freq. ="; +char *const cmsg7 = "No clock"; +char *const cmsg8 = "Use LSE(external Xtal), 32768Hz"; +char *const cmsg9 = "Use LSI(internal RC/Low speed), RC=37000Hz"; +char *const cmsg10= "Use HSE(external Xtal & prescaler)"; +char *const cmsg11= "RTC/LCD Clock"; +char *const cmsg12= "Power Control"; + +char *const imsg2 = "-->Control Reg."; +char *const imsg3 = "-->Status Reg."; +char *const imsg4 = "-->Data Reg."; +char *const imsg5 = "-->Baud rate Reg."; +char *const imsg6 = "-->Own address Reg."; +char *const imsg7 = "-->Clock control Reg."; +char *const imsg8 = "-->TRISE Reg."; + +char *const rnmsg0 = " CR1--"; +char *const rnmsg1 = " CR2--"; +char *const rnmsg2 = " DR---"; +char *const rnmsg3 = " SR---"; +char *const rnmsg4 = " BRR--"; +char *const rnmsg5 = " SR1--"; +char *const rnmsg6 = " SR2--"; +char *const rnmsg7 = " OAR1-"; +char *const rnmsg8 = " OAR2-"; +char *const rnmsg9 = " CCR--"; +char *const rnmsg10 = " TRISE"; + +char *const pnmsg0 = "Port "; +// 0x00000000 0x0000 0x00000000 0x00000000 0x0000 0x0000 +char *const pnmsg1 = "Mode Out-type Out-speed Pup/dwn Input Output"; +char *const pnmsga = "GPIOA"; +char *const pnmsgb = "GPIOB"; +char *const pnmsgc = "GPIOC"; +char *const pnmsgd = "GPIOD"; +char *const pnmsge = "GPIOE"; +char *const pnmsgh = "GPIOH"; +char *const pnmsg2 = "Select GPIO"; +char *const pnmsg3 = " All"; +char *const pnmsg4 = "-->Output"; +char *const pnmsg5 = "-->Input"; +char *const pnmsg6 = "data"; + +char *const mmmsg0 = "Enter Memory Mode 1) d <address> [<count>], 2) s, 3) <ret> or f, 4) q, 5)?"; +char *const mmmsg1 = "Memory Configuration"; +char *const mmmsg2 = "d <address> [<count>] - Dump memory"; +char *const mmmsg3 = "s - Show memory structure "; +char *const mmmsg4 = "o - Dump memory / start from ROM top"; +char *const mmmsg5 = "a - Dump memory / start from RAM top"; +char *const mmmsg6 = "k - Dump memory / keep same 256bytes"; +char *const mmmsg7 = "b - Dump memory / before 256bytes"; +char *const mmmsg8 = "<RET> or f, n - Dump memory / next 256bytes"; +char *const mmmsg9 = "q - Exit memory mode"; +char *const mmmsg10 = "Return to Normal Mode"; + +char *const mrmsg0 = "Enter Register Mode u,i,s,t,a,d,l,w,c & ? for help"; +char *const mrmsg1 = "------"; +char *const mrmsg2 = "USART"; +char *const mrmsg3 = "Enter u1,u2,u6 and u* for all"; +char *const mrmsg4 = "I2C"; +char *const mrmsg5 = "Enter i1,i2,i3 and i* for all"; +char *const mrmsg6 = "SPI"; +char *const mrmsg7 = "Enter s1,s2,s3,s4 and s* for all"; +char *const mrmsg8 = "Return to Normal Mode"; + +char *const mpmsg0 = "Enter port a,b,c,d,e,h & * ? for help"; +char *const mpmsg1 = "port a,b,c,d,e,h & *"; + +char *const mqmsg0 = "Return to mon()"; +