├── LICENSE ├── NOTICE ├── Target ├── Communication │ ├── DCC │ │ ├── probe_dcc.c │ │ └── probe_dcc.h │ └── Generic │ │ ├── Cfg │ │ └── Template │ │ │ └── probe_com_cfg.h │ │ ├── OS │ │ ├── None │ │ │ └── probe_com_os.c │ │ ├── uCOS-II │ │ │ └── probe_com_os.c │ │ └── uCOS-III │ │ │ └── probe_com_os.c │ │ ├── RS-232 │ │ ├── OS │ │ │ ├── None │ │ │ │ └── probe_rs232_os.c │ │ │ ├── uCOS-II │ │ │ │ └── probe_rs232_os.c │ │ │ └── uCOS-III │ │ │ │ └── probe_rs232_os.c │ │ ├── Ports │ │ │ ├── Actel │ │ │ │ ├── M1A3P_16550 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── M1A3P_CoreUART │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── AnalogDevices │ │ │ │ └── ADuC7026 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Atmel │ │ │ │ ├── AT91SAM3U │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM7L │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM7S │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM7SE │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM7X │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM9260 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM9261 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM9263 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM9RL │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AT91SAM9XE │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── ATXmega128 │ │ │ │ │ ├── GNU │ │ │ │ │ │ └── probe_rs232a.s │ │ │ │ │ ├── IAR │ │ │ │ │ │ └── probe_rs232a.s90 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── ATmega128 │ │ │ │ │ └── IAR │ │ │ │ │ │ ├── probe_rs232a.s90 │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── AVR32AP7000 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── AVR32UC3 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Cypress │ │ │ │ └── PSoC5 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Freescale │ │ │ │ ├── Coldfire │ │ │ │ │ ├── 5235 │ │ │ │ │ │ └── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── 5253 │ │ │ │ │ │ └── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── 5275 │ │ │ │ │ │ ├── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ │ └── IAR │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── 52223 │ │ │ │ │ │ ├── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ │ └── IAR │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── 52229 │ │ │ │ │ │ └── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── 54451 │ │ │ │ │ │ └── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── M52233 │ │ │ │ │ │ ├── CodeWarrior │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ │ └── IAR │ │ │ │ │ │ │ ├── probe_rs232a.asm │ │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── MCF51CN │ │ │ │ │ │ ├── probe_rs232_a.asm │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ └── MCF51QE │ │ │ │ │ │ ├── probe_rs232_a.asm │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MAC71xx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MC9S08 │ │ │ │ │ ├── probe_rs232_ba.s │ │ │ │ │ ├── probe_rs232_nba.s │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MC9S12 │ │ │ │ │ ├── probe_rs232_ba.s │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MC9S12X │ │ │ │ │ ├── probe_rs232_ba.s │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MPC55xx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── MPC8349E │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── iMX21 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── iMX27 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Infineon │ │ │ │ └── XMC │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Lattice │ │ │ │ └── LatticeMico32 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── LuminaryMicro │ │ │ │ └── LM3Sxxxx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Microchip │ │ │ │ ├── PIC24 │ │ │ │ │ ├── C30 │ │ │ │ │ │ ├── probe_rs232a.s │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── DSPICC │ │ │ │ │ │ ├── probe_rs232a.as │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ └── ICCDSPIC │ │ │ │ │ │ ├── probe_rs232a.s59 │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── PIC32 │ │ │ │ │ └── Microchip_C32 │ │ │ │ │ │ ├── probe_rs232a.S │ │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── dsPIC33 │ │ │ │ │ ├── C30 │ │ │ │ │ ├── probe_rs232a.s │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ ├── DSPICC │ │ │ │ │ ├── probe_rs232a.as │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ │ └── ICCDSPIC │ │ │ │ │ ├── probe_rs232a.s59 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── NXP │ │ │ │ ├── LH79520 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LH7952x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LH7A404 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC17xx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC21xx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC2378 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC24xx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC2888 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── LPC313x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── LPC3xxx │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── OKI │ │ │ │ └── ML67Q4051 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Renesas │ │ │ │ ├── H836077 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_isr.c │ │ │ │ ├── H8S2215R │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_isr.c │ │ │ │ ├── H8S2218 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_isr.c │ │ │ │ ├── H8S2472 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_isr.c │ │ │ │ ├── H8SX1664 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── RX62N │ │ │ │ │ ├── probe_rs232a.s │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── SH7086 │ │ │ │ │ ├── probe_rs232a.src │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── SH7201 │ │ │ │ │ ├── probe_rs232a.src │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── SH7203 │ │ │ │ │ ├── probe_rs232a.src │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── SH7211 │ │ │ │ │ ├── probe_rs232a.src │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── SH7216 │ │ │ │ │ ├── probe_rs232a.src │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── SH7264 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── ST │ │ │ │ ├── STM32 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_cmsis.c │ │ │ │ ├── STR71x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ ├── STR73x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ ├── probe_rs232c.h │ │ │ │ │ └── probe_rs232c_lib.c │ │ │ │ ├── STR75x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ │ └── STR91x │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── TI │ │ │ │ └── TMS470 │ │ │ │ │ ├── probe_rs232c.c │ │ │ │ │ └── probe_rs232c.h │ │ │ ├── Template │ │ │ │ ├── probe_rs232c.c │ │ │ │ └── probe_rs232c.h │ │ │ └── Toshiba │ │ │ │ ├── TMPM330 │ │ │ │ ├── probe_rs232c.c │ │ │ │ └── probe_rs232c.h │ │ │ │ └── TMPM369 │ │ │ │ ├── probe_rs232c.c │ │ │ │ └── probe_rs232c.h │ │ └── Source │ │ │ ├── probe_rs232.c │ │ │ └── probe_rs232.h │ │ ├── Source │ │ ├── probe_com.c │ │ └── probe_com.h │ │ ├── TCPIP │ │ ├── OS │ │ │ ├── uCOS-II │ │ │ │ └── probe_tcpip_os.c │ │ │ └── uCOS-III │ │ │ │ └── probe_tcpip_os.c │ │ └── Source │ │ │ ├── probe_tcpip.c │ │ │ └── probe_tcpip.h │ │ └── USB │ │ ├── App │ │ └── app_usbd.c │ │ ├── OS │ │ └── uCOS-III │ │ │ └── probe_usb_os.c │ │ └── Source │ │ ├── probe_usb.c │ │ └── probe_usb.h ├── Scope │ ├── cfg │ │ └── probe_scope_cfg.h │ ├── probe_scope.c │ └── probe_scope.h └── Terminal │ ├── App │ └── app_probe_term.c │ ├── Cfg │ └── probe_term_cfg.h │ ├── OS │ ├── None │ │ └── probe_term_os.c │ ├── uCOS-II │ │ └── probe_term_os.c │ └── uCOS-III │ │ └── probe_term_os.c │ ├── probe_term.c │ └── probe_term.h └── readme.md /NOTICE: -------------------------------------------------------------------------------- 1 | ATTENTION ALL USERS OF THIS REPOSITORY: 2 | 3 | The original work found in this repository is provided by Silicon Labs under the 4 | Apache License, Version 2.0. 5 | 6 | Any third party may contribute derivative works to the original work in which 7 | modifications are clearly identified as being licensed under: 8 | 9 | (1) the Apache License, Version 2.0 or a compatible open source license; or 10 | (2) under a proprietary license with a copy of such license deposited. 11 | 12 | All posted derivative works must clearly identify which license choice has been 13 | elected. 14 | 15 | No such posted derivative works will be considered to be a “Contribution” under 16 | the Apache License, Version 2.0. 17 | 18 | SILICON LABS MAKES NO WARRANTY WITH RESPECT TO ALL POSTED THIRD PARTY CONTENT 19 | AND DISCLAIMS ALL OTHER WARRANTIES OR LIABILITIES, INCLUDING ALL WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, OWNERSHIP, 21 | NON-INFRINGEMENT, AND NON-MISAPPROPRIATION. 22 | 23 | In the event a derivative work is desired to be submitted to Silicon Labs as a 24 | “Contribution” under the Apache License, Version 2.0, a “Contributor” must give 25 | written email notice to micrium@weston-embedded.com. Unless an email response in 26 | the affirmative to accept the derivative work as a “Contribution”, such email 27 | submission should be considered to have not been incorporated into the original 28 | work. 29 | -------------------------------------------------------------------------------- /Target/Communication/DCC/probe_dcc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: DCC 20 | * 21 | * Filename : probe_dcc.h 22 | * Version : V2.30 23 | ********************************************************************************************************* 24 | * Note(s) : (1) This code in this module responds to DCC requests from a J-Link or an 25 | * AtmelICE JTAG debugger. The target REQUIRES either an ARM7 or ARM9 target 26 | * processor. 27 | ********************************************************************************************************* 28 | */ 29 | 30 | 31 | /* 32 | ********************************************************************************************************* 33 | * MODULE 34 | * 35 | * Note(s) : (1) This header file is protected from multiple pre-processor inclusion through use of the 36 | * PROBE_DCC present pre-processor macro definition. 37 | ********************************************************************************************************* 38 | */ 39 | 40 | #ifndef PROBE_DCC_PRESENT /* See Note #1. */ 41 | #define PROBE_DCC_PRESENT 42 | 43 | 44 | /* 45 | ********************************************************************************************************* 46 | * EXTERNS 47 | ********************************************************************************************************* 48 | */ 49 | 50 | #ifdef PROBE_DCC_MODULE 51 | #define PROBE_DCC_EXT 52 | #else 53 | #define PROBE_DCC_EXT extern 54 | #endif 55 | 56 | 57 | /* 58 | ********************************************************************************************************* 59 | * INCLUDE FILES 60 | ********************************************************************************************************* 61 | */ 62 | 63 | #include 64 | #include 65 | 66 | 67 | /* 68 | ********************************************************************************************************* 69 | * DEFINES 70 | ********************************************************************************************************* 71 | */ 72 | 73 | 74 | /* 75 | ********************************************************************************************************* 76 | * GLOBAL VARIABLES 77 | ********************************************************************************************************* 78 | */ 79 | 80 | 81 | /* 82 | ********************************************************************************************************* 83 | * MACRO'S 84 | ********************************************************************************************************* 85 | */ 86 | 87 | 88 | /* 89 | ********************************************************************************************************* 90 | * FUNCTION PROTOTYPES 91 | ********************************************************************************************************* 92 | */ 93 | 94 | void ProbeDCC_Handler(void); 95 | 96 | 97 | /* 98 | ********************************************************************************************************* 99 | * CONFIGURATION ERRORS 100 | ********************************************************************************************************* 101 | */ 102 | 103 | 104 | /* 105 | ********************************************************************************************************* 106 | * MODULE END 107 | * 108 | * Note(s) : See 'MODULE Note #1'. 109 | ********************************************************************************************************* 110 | */ 111 | 112 | #endif /* End of PROBE_COM_DCC module include (see Note #1). */ 113 | -------------------------------------------------------------------------------- /Target/Communication/Generic/OS/None/probe_com_os.c: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: GENERIC 20 | * NO-OS PORT 21 | * 22 | * Filename : probe_com_os.c 23 | * Version : V2.30 24 | ********************************************************************************************************* 25 | * Note(s) : (1) This file is the no-OS layer for the uC/Probe Generic Communication Module. 26 | ********************************************************************************************************* 27 | */ 28 | 29 | 30 | /* 31 | ********************************************************************************************************* 32 | * INCLUDE FILES 33 | ********************************************************************************************************* 34 | */ 35 | 36 | #include 37 | 38 | 39 | /* 40 | ********************************************************************************************************* 41 | * LOCAL DEFINES 42 | ********************************************************************************************************* 43 | */ 44 | 45 | 46 | /* 47 | ********************************************************************************************************* 48 | * LOCAL CONSTANTS 49 | ********************************************************************************************************* 50 | */ 51 | 52 | 53 | /* 54 | ********************************************************************************************************* 55 | * LOCAL DATA TYPES 56 | ********************************************************************************************************* 57 | */ 58 | 59 | 60 | /* 61 | ********************************************************************************************************* 62 | * LOCAL TABLES 63 | ********************************************************************************************************* 64 | */ 65 | 66 | 67 | /* 68 | ********************************************************************************************************* 69 | * LOCAL GLOBAL VARIABLES 70 | ********************************************************************************************************* 71 | */ 72 | 73 | 74 | /* 75 | ********************************************************************************************************* 76 | * LOCAL FUNCTION PROTOTYPES 77 | ********************************************************************************************************* 78 | */ 79 | 80 | 81 | /* 82 | ********************************************************************************************************* 83 | * LOCAL CONFIGURATION ERRORS 84 | ********************************************************************************************************* 85 | */ 86 | 87 | 88 | /* 89 | ********************************************************************************************************* 90 | * ProbeCom_OS_Init() 91 | * 92 | * Description : Create a semaphore for terminal output completion notification. 93 | * 94 | * Argument(s) : none. 95 | * 96 | * Return(s) : DEF_OK, if OS initialization successful. 97 | * DEF_FAIL, otherwise. 98 | * 99 | * Caller(s) : ProbeCom_Init(). 100 | * 101 | * Note(s) : none. 102 | ********************************************************************************************************* 103 | */ 104 | 105 | #if (PROBE_COM_CFG_TERMINAL_REQ_EN == DEF_ENABLED) 106 | CPU_BOOLEAN ProbeCom_OS_Init (void) 107 | { 108 | return (DEF_OK); 109 | } 110 | #endif 111 | 112 | 113 | /* 114 | ********************************************************************************************************* 115 | * ProbeCom_OS_TerminalOutWait() 116 | * 117 | * Description : Wait for terminal output to complete. 118 | * 119 | * Argument(s) : none. 120 | * 121 | * Return(s) : none. 122 | * 123 | * Caller(s) : ProbeCom_TerminalOut(). 124 | * 125 | * Note(s) : none. 126 | ********************************************************************************************************* 127 | */ 128 | 129 | #if (PROBE_COM_CFG_TERMINAL_REQ_EN == DEF_ENABLED) 130 | void ProbeCom_OS_TerminalOutWait (void) 131 | { 132 | 133 | } 134 | #endif 135 | 136 | 137 | /* 138 | ********************************************************************************************************* 139 | * ProbeCom_OS_TerminalOutSignal() 140 | * 141 | * Description : Signal terminal output completion. 142 | * 143 | * Argument(s) : none. 144 | * 145 | * Return(s) : none. 146 | * 147 | * Caller(s) : ProbeCom_CmdTerminalOut(). 148 | * 149 | * Note(s) : none. 150 | ********************************************************************************************************* 151 | */ 152 | 153 | #if (PROBE_COM_CFG_TERMINAL_REQ_EN == DEF_ENABLED) 154 | void ProbeCom_OS_TerminalOutSignal (void) 155 | { 156 | 157 | } 158 | #endif 159 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Actel/M1A3P_16550/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ACTEL CORTEX-M1 16550 UART 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Actel/M1A3P_CoreUART/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ACTEL CORTEX-M1 CoreUART 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/AnalogDevices/ADuC7026/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ANALOG DEVICES ADuC7026 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM3U/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9263 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM7L/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM7L 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM7S/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM7S 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM7SE/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM7SE 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM7X/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM7X 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM9260/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9260 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM9261/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9261 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM9263/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9263 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM9RL/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9RL 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AT91SAM9XE/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AT91SAM9260 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/ATXmega128/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL Xmega 128 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | #define PROBE_RS232_COMM_INTLEVEL_TX 1 /* TX interrupt level, {0} dis, {1} low, {2} mid, {3} high */ 33 | #define PROBE_RS232_COMM_INTLEVEL_RX 1 /* RX interrupt level, {0} dis, {1} low, {2} mid, {3} high */ 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/ATmega128/IAR/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL ATmega 128 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AVR32AP7000/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AVR32 AP7000 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Atmel/AVR32UC3/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE ATMEL AVR32 UC3 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Cypress/PSoC5/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT TEMPLATE 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/Coldfire/52223/CodeWarrior/probe_rs232a.asm: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port for the Freescale CF52223 23 | * 24 | * Filename : probe_rs232a.asm 25 | * Version : V2.30 26 | ********************************************************************************************************* 27 | */ 28 | 29 | #include 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | PUBLIC ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | EXTERN OSIntNesting 47 | EXTERN OSIntExit 48 | EXTERN OSTCBCur 49 | EXTERN ProbeRS232_RxTxISRHandler 50 | 51 | RSEG CODE:CODE:NOROOT(2) /* Align to power 2, 4 bytes. */ 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA (-60, A7), A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE.W ProbeRS232_RxTxISR_1 78 | MOVEA.L (OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | PUBLIC ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | EXTERN OSIntNesting 47 | EXTERN OSIntExit 48 | EXTERN OSTCBCur 49 | EXTERN ProbeRS232_RxTxISRHandler 50 | 51 | RSEG CODE:CODE:NOROOT(2) /* Align to power 2, 4 bytes. */ 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA (-60, A7), A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE.W (ProbeRS232_RxTxISR_1) 78 | MOVEA.L (OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | .global _ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | .extern _OSIntNesting 47 | .extern _OSIntExit 48 | .extern _OSTCBCur 49 | .extern _ProbeRS232_RxTxISRHandler 50 | 51 | .text 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | _ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA -60(A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (_OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(_OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE _ProbeRS232_RxTxISR_1 78 | MOVE.L (_OSTCBCur), A1 /* OSTCBCur- 30 | 31 | 32 | /* 33 | ;************************************************************************************************* 34 | ; PUBLIC DECLARATIONS 35 | ;************************************************************************************************* 36 | */ 37 | 38 | PUBLIC ProbeRS232_RxTxISR 39 | 40 | /* 41 | ;************************************************************************************************** 42 | ; EXTERNAL DECLARATIONS 43 | ;************************************************************************************************** 44 | */ 45 | 46 | EXTERN OSIntNesting 47 | EXTERN OSIntExit 48 | EXTERN OSTCBCur 49 | EXTERN ProbeRS232_RxTxISRHandler 50 | 51 | RSEG CODE:CODE:NOROOT(2) /* Align to power 2, 4 bytes. */ 52 | 53 | /* 54 | ;******************************************************************************************* 55 | ; uC/Probe's Rx/Tx ISR 56 | ; 57 | ; Description : This function services uC/Probe's receive and transmit interrupts 58 | ; 59 | ; Arguments : none 60 | ;******************************************************************************************* 61 | */ 62 | 63 | ProbeRS232_RxTxISR: 64 | MOVE.W #0x2700,SR /* Disable interrupts */ 65 | 66 | LEA (-60, A7),A7 /* Save processor registers onto stack */ 67 | MOVEM.L D0-D7/A0-A6,(A7) 68 | 69 | OS_EMAC_SAVE /* Save the EMAC registers */ 70 | 71 | MOVEQ.L #0,D0 /* OSIntNesting++ */ 72 | MOVE.B (OSIntNesting),D0 73 | ADDQ.L #1,D0 74 | MOVE.B D0,(OSIntNesting) 75 | 76 | CMPI.L #1, D0 /* if (OSIntNesting == 1) */ 77 | BNE.W ProbeRS232_RxTxISR_1 78 | MOVEA.L (OSTCBCur), A1 /* OSTCBCur-OSTCBStkPtr = Stack Pointer 73 | sts 0,y ; } 74 | 75 | 76 | ProbeRS232_RxTxISR1: 77 | call ProbeRS232_RxTxISRHandler ; Call Rx ISR handler. (See probe_rs232c.c) 78 | 79 | ; cli ; Optionally enable interrupts to allow interrupt nesting 80 | 81 | call OSIntExit ; Notify uC/OS-II about end of ISR, a context switch may occur from within OSIntExit(). 82 | 83 | pula ; Get value of PPAGE register 84 | staa PPAGE ; Store into CPU's PPAGE register 85 | 86 | rti ; Return from interrupt to interrupted task. 87 | 88 | 89 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/MC9S12/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE MC9S12 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/MC9S12X/probe_rs232_ba.s: -------------------------------------------------------------------------------- 1 | ;******************************************************************************************************** 2 | ; uC/Probe Communication 3 | ; 4 | ; Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 5 | ; 6 | ; SPDX-License-Identifier: APACHE-2.0 7 | ; 8 | ; This software is subject to an open source license and is distributed by 9 | ; Silicon Laboratories Inc. pursuant to the terms of the Apache License, 10 | ; Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 11 | ; 12 | ;******************************************************************************************************** 13 | 14 | ;******************************************************************************************************** 15 | ; PAGED S12X Specific code 16 | ; (CODEWARRIOR) 17 | ; 18 | ; File : probe_rs232_ba.s 19 | ; Notes : THIS FILE *MUST* BE LINKED INTO NON_BANKED MEMORY! 20 | ;******************************************************************************************************** 21 | 22 | NON_BANKED: section 23 | 24 | 25 | ;******************************************************************************************************** 26 | ; I/O PORT ADDRESSES 27 | ;******************************************************************************************************** 28 | 29 | PPAGE: equ $0015 ; Addres of PPAGE register (assuming MC9S12XEP100 part) 30 | RPAGE: equ $0016 ; Addres of RPAGE register (assuming MC9S12XEP100 part) 31 | EPAGE: equ $0017 ; Addres of EPAGE register (assuming MC9S12XEP100 part) 32 | GPAGE: equ $0010 ; Addres of GPAGE register (assuming MC9S12XEP100 part) 33 | 34 | 35 | ;******************************************************************************************************** 36 | ; PUBLIC DECLARATIONS 37 | ;******************************************************************************************************** 38 | 39 | xdef ProbeRS232_RxTxISR 40 | 41 | 42 | ;******************************************************************************************************** 43 | ; EXTERNAL DECLARATIONS 44 | ;******************************************************************************************************** 45 | 46 | xref OSIntExit 47 | xref OSIntNesting 48 | xref OSTCBCur 49 | 50 | xref ProbeRS232_RxTxISRHandler 51 | 52 | 53 | ;******************************************************************************************************** 54 | ; uC/Probe Rx ISR 55 | ; 56 | ; Description : This routine is the uC/Probe Rx interrupt service routine 57 | ; 58 | ; Arguments : none 59 | ; 60 | ; Notes : 1) All USER interrupts should be modeled EXACTLY like this where the only 61 | ; line to be modified is the call to your ISR_Handler and perhaps the call to 62 | ; the label name ProbeRS232_RxISRHandler. 63 | ;******************************************************************************************************** 64 | 65 | ProbeRS232_RxTxISR: 66 | ldaa GPAGE ; Get current value of GPAGE register 67 | psha ; Push GPAGE register onto current task's stack 68 | 69 | ldaa EPAGE ; Get current value of EPAGE register 70 | psha ; Push EPAGE register onto current task's stack 71 | 72 | ldaa RPAGE ; Get current value of RPAGE register 73 | psha ; Push RPAGE register onto current task's stack 74 | 75 | ldaa PPAGE ; Get current value of PPAGE register 76 | psha ; Push PPAGE register onto current task's stack 77 | 78 | inc OSIntNesting ; Notify uC/OS-II about ISR 79 | 80 | ldab OSIntNesting ; if (OSIntNesting == 1) { 81 | cmpb #$01 82 | bne ProbeRS232_RxTxISR1 83 | 84 | ldy OSTCBCur ; OSTCBCur->OSTCBStkPtr = Stack Pointer 85 | sts 0,y ; } 86 | 87 | 88 | ProbeRS232_RxTxISR1: 89 | call ProbeRS232_RxTxISRHandler ; Call Rx ISR handler. (See probe_rs232c.c) 90 | 91 | ; cli ; Optionally enable interrupts to allow interrupt nesting 92 | 93 | call OSIntExit ; Notify uC/OS-II about end of ISR, a context switch may occur from within OSIntExit(). 94 | 95 | pula ; Get value of PPAGE register 96 | staa PPAGE ; Store into CPU's PPAGE register 97 | 98 | pula ; Get value of RPAGE register 99 | staa RPAGE ; Store into CPU's RPAGE register 100 | 101 | pula ; Get value of EPAGE register 102 | staa EPAGE ; Store into CPU's EPAGE register 103 | 104 | pula ; Get value of GPAGE register 105 | staa GPAGE ; Store into CPU's GPAGE register 106 | 107 | rti ; Return from interrupt to interrupted task. 108 | 109 | 110 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/MC9S12X/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE MC9S12X 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/MPC55xx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE MPC55xx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/MPC8349E/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE MPC8349E 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/iMX21/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE i.MX21 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Freescale/iMX27/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR FREESCALE i.MX27 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Infineon/XMC/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT TEMPLATE 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Lattice/LatticeMico32/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR LatticeMico32 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/LuminaryMicro/LM3Sxxxx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR LUMINARY MICRO LM3Sxxxx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/PIC24/C30/probe_rs232a.s: -------------------------------------------------------------------------------- 1 | ; 2 | ;******************************************************************************************************** 3 | ; uC/Probe Communication 4 | ; 5 | ; Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | ; 7 | ; SPDX-License-Identifier: APACHE-2.0 8 | ; 9 | ; This software is subject to an open source license and is distributed by 10 | ; Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | ; Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | ; 13 | ;******************************************************************************************************** 14 | ; 15 | 16 | ; 17 | ;******************************************************************************************************** 18 | ; 19 | ; PIC24 MPLab and C30 uC/Probe Port 20 | ; 21 | ; 22 | ; File : probe_rs232a.s 23 | ;******************************************************************************************************** 24 | ; 25 | 26 | ; 27 | ;******************************************************************************************************** 28 | ; CONSTANTS 29 | ;******************************************************************************************************** 30 | ; 31 | .equ __24FJ128GA010, 1 ; Inform the p24FJ128GA010 header file that we are using a p24FJ128GA010 32 | 33 | ; 34 | ;******************************************************************************************************** 35 | ; INCLUDES 36 | ;******************************************************************************************************** 37 | ; 38 | 39 | .include "p24FJ128GA010.inc" ; Include assembly equates for various CPU registers and bit masks 40 | .include "os_cpu_util_a.s" ; Include an assembly utility files with macros for saving and restoring the CPU registers 41 | 42 | ; 43 | ;******************************************************************************************************** 44 | ; LINKER SPECIFICS 45 | ;******************************************************************************************************** 46 | ; 47 | 48 | .text ; Locate this file in the text region of the build 49 | 50 | ; 51 | ;******************************************************************************************************** 52 | ; GLOBALS AND EXTERNALS 53 | ;******************************************************************************************************** 54 | ; 55 | 56 | .global __U2RXInterrupt 57 | .global __U2TXInterrupt 58 | 59 | ; 60 | ;******************************************************************************************************** 61 | ; U2RXInterrupt 62 | ; 63 | ; Description : This function is the UART2 Rx Interrupt Service Routine 64 | ; 65 | ; Notes : All user interrupts should be defined as shown below. 66 | ;******************************************************************************************************** 67 | ; 68 | 69 | __U2RXInterrupt: 70 | OS_REGS_SAVE ; 1) Save processor registers 71 | 72 | mov #_OSIntNesting, w1 73 | inc.b [w1], [w1] ; 2) Call OSIntEnter() or increment OSIntNesting 74 | 75 | dec.b _OSIntNesting, wreg ; 3) Check OSIntNesting. if OSIntNesting == 1, then save the stack pointer, otherwise jump to T2_Cont 76 | bra nz, U2RXCont 77 | mov _OSTCBCur, w0 78 | mov w15, [w0] 79 | 80 | U2RXCont: 81 | call _ProbeRS232_RxISRHandler ; 4) Call YOUR ISR Handler (May be a C function). In this case, the OSView Rx ISR Handler 82 | call _OSIntExit ; 5) Call OSIntExit() or decrement 1 from OSIntNesting 83 | 84 | OS_REGS_RESTORE ; 6) Restore registers 85 | 86 | retfie ; 7) Return from interrupt 87 | 88 | ; 89 | ;******************************************************************************************************** 90 | ; U2TXInterrupt 91 | ; 92 | ; Description : This function is the UART2 Tx Interrupt Service Routine 93 | ; 94 | ; Notes : All user interrupts should be defined as shown below. 95 | ;******************************************************************************************************** 96 | ; 97 | 98 | __U2TXInterrupt: 99 | OS_REGS_SAVE ; 1) Save processor registers 100 | 101 | mov #_OSIntNesting, w1 102 | inc.b [w1], [w1] ; 2) Call OSIntEnter() or increment OSIntNesting 103 | 104 | dec.b _OSIntNesting, wreg ; 3) Check OSIntNesting. if OSIntNesting == 1, then save the stack pointer, otherwise jump to T2_Cont 105 | bra nz, U2TXCont 106 | mov _OSTCBCur, w0 107 | mov w15, [w0] 108 | 109 | U2TXCont: 110 | call _ProbeRS232_TxISRHandler ; 4) Call YOUR ISR Handler (May be a C function). In this case, the OSView Tx ISR Handler 111 | call _OSIntExit ; 5) Call OSIntExit() or decrement 1 from OSIntNesting 112 | 113 | OS_REGS_RESTORE ; 6) Restore registers 114 | 115 | retfie ; 7) Return from interrupt 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/PIC24/C30/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP PIC24 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/PIC24/DSPICC/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP PIC24 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/PIC24/ICCDSPIC/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP PIC24 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/PIC32/Microchip_C32/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/dsPIC33/C30/probe_rs232a.s: -------------------------------------------------------------------------------- 1 | ; 2 | ;******************************************************************************************************** 3 | ; uC/Probe Communication 4 | ; 5 | ; Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | ; 7 | ; SPDX-License-Identifier: APACHE-2.0 8 | ; 9 | ; This software is subject to an open source license and is distributed by 10 | ; Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | ; Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | ; 13 | ;******************************************************************************************************** 14 | ; 15 | 16 | ; 17 | ;******************************************************************************************************** 18 | ; 19 | ; dsPIC33 MPLab and C30 uC/Probe Port 20 | ; 21 | ; 22 | ; File : probe_rs232a.s 23 | ;******************************************************************************************************** 24 | ; 25 | 26 | ; 27 | ;******************************************************************************************************** 28 | ; CONSTANTS 29 | ;******************************************************************************************************** 30 | ; 31 | .equ __33FJ256GP710, 1 ; Inform the p33FG256GP710 header file that we are using a dsPIC33FJ256GP710 32 | 33 | ; 34 | ;******************************************************************************************************** 35 | ; INCLUDES 36 | ;******************************************************************************************************** 37 | ; 38 | 39 | .include "p33FJ256GP710.inc" ; Include assembly equates for various CPU registers and bit masks 40 | .include "os_cpu_util_a.s" ; Include an assembly utility files with macros for saving and restoring the CPU registers 41 | 42 | ; 43 | ;******************************************************************************************************** 44 | ; LINKER SPECIFICS 45 | ;******************************************************************************************************** 46 | ; 47 | 48 | .text ; Locate this file in the text region of the build 49 | 50 | ; 51 | ;******************************************************************************************************** 52 | ; GLOBALS AND EXTERNALS 53 | ;******************************************************************************************************** 54 | ; 55 | 56 | .global __U2RXInterrupt 57 | .global __U2TXInterrupt 58 | 59 | ; 60 | ;******************************************************************************************************** 61 | ; U2RXInterrupt 62 | ; 63 | ; Description : This function is the UART2 Rx Interrupt Service Routine 64 | ; 65 | ; Notes : All user interrupts should be defined as shown below. 66 | ;******************************************************************************************************** 67 | ; 68 | 69 | __U2RXInterrupt: 70 | OS_REGS_SAVE ; 1) Save processor registers 71 | 72 | mov #_OSIntNesting, w1 73 | inc.b [w1], [w1] ; 2) Call OSIntEnter() or increment OSIntNesting 74 | 75 | dec.b _OSIntNesting, wreg ; 3) Check OSIntNesting. if OSIntNesting == 1, then save the stack pointer, otherwise jump to T2_Cont 76 | bra nz, U2RXCont 77 | mov _OSTCBCur, w0 78 | mov w15, [w0] 79 | 80 | U2RXCont: 81 | call _ProbeRS232_RxISRHandler ; 4) Call YOUR ISR Handler (May be a C function). In this case, the OSView Rx ISR Handler 82 | call _OSIntExit ; 5) Call OSIntExit() or decrement 1 from OSIntNesting 83 | 84 | OS_REGS_RESTORE ; 6) Restore registers 85 | 86 | retfie ; 7) Return from interrupt 87 | 88 | ; 89 | ;******************************************************************************************************** 90 | ; U2TXInterrupt 91 | ; 92 | ; Description : This function is the UART2 Tx Interrupt Service Routine 93 | ; 94 | ; Notes : All user interrupts should be defined as shown below. 95 | ;******************************************************************************************************** 96 | ; 97 | 98 | __U2TXInterrupt: 99 | OS_REGS_SAVE ; 1) Save processor registers 100 | 101 | mov #_OSIntNesting, w1 102 | inc.b [w1], [w1] ; 2) Call OSIntEnter() or increment OSIntNesting 103 | 104 | dec.b _OSIntNesting, wreg ; 3) Check OSIntNesting. if OSIntNesting == 1, then save the stack pointer, otherwise jump to T2_Cont 105 | bra nz, U2TXCont 106 | mov _OSTCBCur, w0 107 | mov w15, [w0] 108 | 109 | U2TXCont: 110 | call _ProbeRS232_TxISRHandler ; 4) Call YOUR ISR Handler (May be a C function). In this case, the OSView Tx ISR Handler 111 | call _OSIntExit ; 5) Call OSIntExit() or decrement 1 from OSIntNesting 112 | 113 | OS_REGS_RESTORE ; 6) Restore registers 114 | 115 | retfie ; 7) Return from interrupt 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/dsPIC33/C30/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP dsPIC33 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/dsPIC33/DSPICC/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP dsPIC33 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Microchip/dsPIC33/ICCDSPIC/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE MICROCHIP dsPIC33 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LH79520/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LH79520 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LH7952x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LH79524/5 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LH7A404/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LH7A404 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC17xx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC24xx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC21xx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC21xx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | * Note(s) : (1) The UARTs on all NXP LPC21xx and LPC22xx controllers are supported by this port. 27 | ********************************************************************************************************* 28 | */ 29 | 30 | #ifndef PROBE_RS232C_PRESENT 31 | #define PROBE_RS232C_PRESENT 32 | 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC2378/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC23xx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC24xx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC24xx 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC2888/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC288x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC313x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT TEMPLATE 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/NXP/LPC3xxx/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE NXP LPC318x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/OKI/ML67Q4051/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR THE OKI ML67Q4051 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H836077/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H8S2215R/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H8S2218/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H8S2472/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H8S2472/probe_rs232c_isr.c: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * H8SX/1664 Specific code 23 | * 24 | * 25 | * Filename : probe_rs232_isr.c 26 | * Version : V2.30 27 | ********************************************************************************************************* 28 | */ 29 | 30 | /* 31 | ********************************************************************************************************* 32 | * INCLUDE FILES 33 | ********************************************************************************************************* 34 | */ 35 | 36 | #include "includes.h" 37 | 38 | /* 39 | ********************************************************************************************************* 40 | * LOCAL FUNCTION PROTOTYPES 41 | ********************************************************************************************************* 42 | */ 43 | 44 | void ProbeRS232_ISR (void); 45 | 46 | /* 47 | ********************************************************************************************************* 48 | ********************************************************************************************************* 49 | * GLOBAL FUNCTIONS 50 | ********************************************************************************************************* 51 | ********************************************************************************************************* 52 | */ 53 | 54 | #if (PROBE_COM_CFG_RS232_EN == DEF_ENABLED) 55 | 56 | #pragma asm 57 | .IMPORT _OSIntExit 58 | .IMPORT _OSTCBCur 59 | .IMPORT _OSIntNesting 60 | .IMPORT _ProbeRS232_RxTxISRHandler 61 | #pragma endasm 62 | 63 | /* 64 | ********************************************************************************************************* 65 | * MACROS 66 | ********************************************************************************************************* 67 | */ 68 | 69 | #pragma asm 70 | .MACRO PUSHALL 71 | PUSH.L ER0 72 | PUSH.L ER1 73 | PUSH.L ER2 74 | PUSH.L ER3 75 | PUSH.L ER4 76 | PUSH.L ER5 77 | PUSH.L ER6 78 | .ENDM 79 | 80 | .MACRO POPALL 81 | POP.L ER6 82 | POP.L ER5 83 | POP.L ER4 84 | POP.L ER3 85 | POP.L ER2 86 | POP.L ER1 87 | POP.L ER0 88 | .ENDM 89 | #pragma endasm 90 | 91 | /* 92 | ********************************************************************************************************* 93 | * ProbeRS232_RxISR() 94 | * 95 | * Description : Handle Rx interrupts. 96 | * 97 | * Argument(s) : none. 98 | * 99 | * Return(s) : none. 100 | * 101 | ********************************************************************************************************* 102 | */ 103 | 104 | #pragma noregsave ProbeRS232_ISR 105 | #pragma interrupt (ProbeRS232_ISR(vect=92)) 106 | 107 | void ProbeRS232_ISR (void) 108 | { 109 | #pragma asm 110 | PUSHALL 111 | 112 | _ProbeRS232_ISR1: 113 | MOV.B @_OSIntNesting, R6L 114 | INC.B R6L 115 | MOV.B R6L, @_OSIntNesting 116 | CMP.B #1,R6L 117 | BNE _ProbeRS232_ISR1_1 118 | 119 | MOV.L @_OSTCBCur, ER6 120 | MOV.L ER7, @ER6 121 | 122 | _ProbeRS232_ISR1_1: 123 | JSR @_ProbeRS232_RxTxISRHandler 124 | JSR @_OSIntExit 125 | 126 | POPALL 127 | #pragma endasm 128 | } 129 | 130 | #endif -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/H8SX1664/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/RX62N/probe_rs232a.s: -------------------------------------------------------------------------------- 1 | ;******************************************************************************************************** 2 | ; uC/Probe Communication 3 | ; 4 | ; Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 5 | ; 6 | ; SPDX-License-Identifier: APACHE-2.0 7 | ; 8 | ; This software is subject to an open source license and is distributed by 9 | ; Silicon Laboratories Inc. pursuant to the terms of the Apache License, 10 | ; Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 11 | ; 12 | ;******************************************************************************************************** 13 | 14 | ;******************************************************************************************************** 15 | ; 16 | ; Renesas RX62N 17 | ; 18 | ; File : PROBE_RS232A.S 19 | ;******************************************************************************************************** 20 | 21 | 22 | .include "os_cpu_a.inc" ; Include OS_ISR_ENTER and OS_ISR_EXIT macros 23 | 24 | 25 | .global _ProbeRS232_ErISRHandler 26 | .global _ProbeRS232_RxISRHandler 27 | .global _ProbeRS232_TxISRHandler 28 | 29 | .global _Probe_ER_ISR 30 | .global _Probe_RX_ISR 31 | .global _Probe_TX_ISR 32 | .global _Probe_TE_ISR 33 | 34 | 35 | ;/*$PAGE*/ 36 | ;******************************************************************************************************** 37 | ; Probe RS232 ISR's 38 | ;******************************************************************************************************** 39 | 40 | .section .text 41 | 42 | _Probe_ER_ISR: 43 | OS_ISR_ENTER ; Save context & Notify uC/OS about ISR 44 | 45 | MOV.L #_ProbeRS232_ErISRHandler, R5 46 | JSR R5 47 | 48 | OS_ISR_EXIT ; Restore context 49 | 50 | 51 | _Probe_RX_ISR: 52 | OS_ISR_ENTER ; Save context & Notify uC/OS about ISR 53 | 54 | MOV.L #_ProbeRS232_RxISRHandler, R5 55 | JSR R5 56 | 57 | OS_ISR_EXIT ; Restore context 58 | 59 | 60 | _Probe_TX_ISR: 61 | OS_ISR_ENTER ; Save context & Notify uC/OS about ISR 62 | 63 | MOV.L #_ProbeRS232_TxISRHandler, R5 64 | JSR R5 65 | 66 | OS_ISR_EXIT ; Restore context 67 | 68 | 69 | _Probe_TE_ISR: 70 | OS_ISR_ENTER ; Save context & Notify uC/OS about ISR 71 | 72 | MOV.L #_ProbeRS232_TxISRHandler, R5 73 | JSR R5 74 | 75 | OS_ISR_EXIT ; Restore context 76 | 77 | .END 78 | 79 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/RX62N/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7086/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7201/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7203/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7211/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7216/probe_rs232a.src: -------------------------------------------------------------------------------- 1 | ;******************************************************************************************************** 2 | ; uC/Probe Communication 3 | ; 4 | ; Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 5 | ; 6 | ; SPDX-License-Identifier: APACHE-2.0 7 | ; 8 | ; This software is subject to an open source license and is distributed by 9 | ; Silicon Laboratories Inc. pursuant to the terms of the Apache License, 10 | ; Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 11 | ; 12 | ;******************************************************************************************************** 13 | 14 | ;******************************************************************************************************** 15 | ; 16 | ; Probe RS232 Port for the 17 | ; Renesas SH-2A FPU 7216 18 | ; 19 | ; File : probe_rs232a.src 20 | ;******************************************************************************************************** 21 | 22 | .INCLUDE "os_cpu_a.inc" ; Include OS_CTX_SAVE and OS_CTX_RESTORE macros 23 | 24 | .EXPORT _ProbeRS232RxISR 25 | .EXPORT _ProbeRS232TxISR 26 | .EXPORT _ProbeRS232EriISR 27 | .EXPORT _ProbeRS232TeiISR 28 | .IMPORT _OSIntNestingCtr 29 | .IMPORT _OSTCBCurPtr 30 | .IMPORT _OSIntExit 31 | .IMPORT _ProbeRS232_RxISRHandler 32 | .IMPORT _ProbeRS232_TxISRHandler 33 | .IMPORT _ProbeRS232_TeiISRHandler 34 | .IMPORT _ProbeRS232_EriISRHandler 35 | 36 | .SECTION P,CODE,ALIGN=4 37 | 38 | _ProbeRS232TxISR: 39 | 40 | OS_CTX_SAVE ; save processor registers on the stack 41 | 42 | mov.l #_OSIntNestingCtr, r1 ; Set OSIntNestingCtr == 1 (interrupt nesting not supported) 43 | mov.l #1, r2 44 | mov.b r2, @r1 45 | 46 | mov.l #_OSTCBCurPtr, r1 ; Save current task's SP into its TCB 47 | mov.l @r1, r0 48 | mov r15, @r0 49 | 50 | mov.l #_ProbeRS232_TxISRHandler, r0 51 | jsr @r0 52 | nop 53 | 54 | mov.l #_OSIntExit, r0 55 | jsr @r0 ; call OSIntExit() 56 | nop 57 | 58 | OS_CTX_RESTORE ; restore all processor registers from new task's stack 59 | 60 | rte ; return from interrupt 61 | nop 62 | 63 | _ProbeRS232RxISR: 64 | 65 | OS_CTX_SAVE ; save processor registers on the stack 66 | 67 | mov.l #_OSIntNestingCtr, r1 ; Set OSIntNestingCtr == 1 (interrupt nesting not supported) 68 | mov.l #1, r2 69 | mov.b r2, @r1 70 | 71 | mov.l #_OSTCBCurPtr, r1 ; Save current task's SP into its TCB 72 | mov.l @r1, r0 73 | mov r15, @r0 74 | 75 | mov.l #_ProbeRS232_RxISRHandler, r0 76 | jsr @r0 77 | nop 78 | 79 | mov.l #_OSIntExit, r0 80 | jsr @r0 ; call OSIntExit() 81 | nop 82 | 83 | OS_CTX_RESTORE ; restore all processor registers from new task's stack 84 | rte ; return from interrupt 85 | nop 86 | 87 | _ProbeRS232TeiISR: 88 | 89 | OS_CTX_SAVE ; save processor registers on the stack 90 | 91 | mov.l #_OSIntNestingCtr, r1 ; Set OSIntNestingCtr == 1 (interrupt nesting not supported) 92 | mov.l #1, r2 93 | mov.b r2, @r1 94 | 95 | mov.l #_OSTCBCurPtr, r1 ; Save current task's SP into its TCB 96 | mov.l @r1, r0 97 | mov r15, @r0 98 | 99 | mov.l #_ProbeRS232_TeiISRHandler, r0 100 | jsr @r0 101 | nop 102 | 103 | mov.l #_OSIntExit, r0 104 | jsr @r0 ; call OSIntExit() 105 | nop 106 | 107 | OS_CTX_RESTORE ; restore all processor registers from new task's stack 108 | 109 | rte ; return from interrupt 110 | nop 111 | 112 | _ProbeRS232EriISR: 113 | 114 | OS_CTX_SAVE ; save processor registers on the stack 115 | 116 | mov.l #_OSIntNestingCtr, r1 ; Set OSIntNestingCtr == 1 (interrupt nesting not supported) 117 | mov.l #1, r2 118 | mov.b r2, @r1 119 | 120 | mov.l #_OSTCBCurPtr, r1 ; Save current task's SP into its TCB 121 | mov.l @r1, r0 122 | mov r15, @r0 123 | 124 | mov.l #_ProbeRS232_EriISRHandler, r0 125 | jsr @r0 126 | nop 127 | 128 | mov.l #_OSIntExit, r0 129 | jsr @r0 ; call OSIntExit() 130 | nop 131 | 132 | OS_CTX_RESTORE ; restore all processor registers from new task's stack 133 | 134 | rte ; return from interrupt 135 | nop 136 | 137 | .END 138 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7216/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | /* 35 | ********************************************************************************************************* 36 | * FUNCTION PROTOTYPES 37 | ********************************************************************************************************* 38 | */ 39 | void ProbeRS232_Config (void); 40 | void ProbeRS232_EnSCIF (void); 41 | void ProbeRS232_SetVect (void); 42 | 43 | 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Renesas/SH7264/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * uC/Probe 20 | * 21 | * Communication: RS-232 22 | * Port 23 | * 24 | * TEMPLATE 25 | * 26 | * Filename : probe_rs232c.h 27 | * Version : V2.30 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #ifndef __PROBE_RS232C_H__ 32 | #define __PROBE_RS232C_H__ 33 | 34 | 35 | 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/ST/STM32/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR ST STM32 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/ST/STR71x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR ST STR71x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/ST/STR73x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR ST STR73x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/ST/STR75x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR ST STR75x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/ST/STR91x/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR ST STR91x 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/TI/TMS470/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR TI TMS470 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Template/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT TEMPLATE 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Toshiba/TMPM330/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR TOSHIBA TMPM330 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Communication/Generic/RS-232/Ports/Toshiba/TMPM369/probe_rs232c.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * COMMUNICATION: RS-232 20 | * 21 | * PORT FOR TOSHIBA TMPM369 22 | * 23 | * Filename : probe_rs232c.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #ifndef PROBE_RS232C_PRESENT 29 | #define PROBE_RS232C_PRESENT 30 | 31 | 32 | 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Target/Scope/cfg/probe_scope_cfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * Oscilloscope 19 | * 20 | * File : PROBE_SCOPE_CFG.H 21 | * Version : V2.30 22 | ********************************************************************************************************* 23 | */ 24 | 25 | 26 | /* 27 | ********************************************************************************************************* 28 | * CONFIGURATION 29 | ********************************************************************************************************* 30 | */ 31 | 32 | #define PROBE_SCOPE_MAX_CH 8 /* The maximum number of channels: [1,8]. */ 33 | #define PROBE_SCOPE_MAX_SAMPLES 1000 /* The maximum number of samples per channel. */ 34 | #define PROBE_SCOPE_16_BIT_EN 1 /* The maximum size of each sample is 16-bits: [0,1]. */ 35 | #define PROBE_SCOPE_32_BIT_EN 1 /* The maximum size of each sample is 32-bits: [0,1]. */ 36 | #define PROBE_SCOPE_SAMPLING_CLK_HZ_DFLT 1000 /* Default freq (Hz) to configure the timer at init. */ 37 | #define PROBE_SCOPE_IPL 13 38 | -------------------------------------------------------------------------------- /Target/Scope/probe_scope.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * Oscilloscope 19 | * 20 | * File : PROBE_SCOPE.H 21 | * Version : V2.30 22 | ********************************************************************************************************* 23 | */ 24 | 25 | /* 26 | ********************************************************************************************************* 27 | * INCLUDE FILES 28 | ********************************************************************************************************* 29 | */ 30 | 31 | #include 32 | 33 | /* 34 | ********************************************************************************************************* 35 | * FUNCTION PROTOTYPES 36 | ********************************************************************************************************* 37 | */ 38 | 39 | void ProbeScope_Init (uint32_t sampling_clk_hz); 40 | void ProbeScope_Sampling (void); 41 | void ProbeScope_SamplingTmrInitHz (uint32_t sampling_clk_hz); 42 | -------------------------------------------------------------------------------- /Target/Terminal/App/app_probe_term.c: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * uC/Probe 19 | * Terminal Window for uC/Probe 20 | * 21 | * APPLICATION HOOKS 22 | * 23 | * File : app_probe_term.c 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | #include 29 | #include 30 | 31 | #if PROBE_TERM_CFG_CMD_EN > 0 32 | 33 | /* 34 | ********************************************************************************************************* 35 | * FUNCTION PROTOTYPES 36 | ********************************************************************************************************* 37 | */ 38 | 39 | void AppProbeTermHookRx (CPU_CHAR *p_str); 40 | 41 | 42 | /* 43 | ************************************************************************************************************************ 44 | * SET ALL APPLICATION HOOKS 45 | * 46 | * Description: Set ALL application hooks. 47 | * 48 | * Arguments : none. 49 | * 50 | * Note(s) : none 51 | ************************************************************************************************************************ 52 | */ 53 | 54 | void AppProbeTermSetAllHooks (void) 55 | { 56 | CPU_SR_ALLOC(); 57 | 58 | 59 | CPU_CRITICAL_ENTER(); 60 | ProbeTermAppHookRxPtr = AppProbeTermHookRx; 61 | CPU_CRITICAL_EXIT(); 62 | } 63 | 64 | 65 | /* 66 | ************************************************************************************************************************ 67 | * CLEAR ALL APPLICATION HOOKS 68 | * 69 | * Description: Clear ALL application hooks. 70 | * 71 | * Arguments : none. 72 | * 73 | * Note(s) : none 74 | ************************************************************************************************************************ 75 | */ 76 | 77 | void AppProbeTermClrAllHooks (void) 78 | { 79 | CPU_SR_ALLOC(); 80 | 81 | 82 | CPU_CRITICAL_ENTER(); 83 | ProbeTermAppHookRxPtr = (PROBE_TERM_APP_HOOK_RX)0; 84 | CPU_CRITICAL_EXIT(); 85 | } 86 | 87 | 88 | /* 89 | ************************************************************************************************************************ 90 | * APPLICATION RECEPTION HOOK 91 | * 92 | * Description: This function is called when the embedded target has received a string from µC/Probe. 93 | * The string from µC/Probe is the command than needs to be processed, for example 'dir' 94 | * this callback function allows you to parse the command, process the command and send 95 | * the response back to µC/Probe by calling ProbeTermCmdPrint() as shown below. 96 | * 97 | * Arguments : p_str is a pointer to the string. 98 | * 99 | * Note(s) : none 100 | ************************************************************************************************************************ 101 | */ 102 | 103 | void AppProbeTermHookRx (CPU_CHAR *p_str) 104 | { 105 | CPU_CHAR buf[PROBE_TERM_CFG_BUF_SIZE]; 106 | 107 | 108 | if (Str_CmpIgnoreCase_N(p_str, "dir", 3) == 0) { 109 | ProbeTermCmdPrint("file.txt\nphoto.jpg\nsong.mp3\n"); 110 | } else if (Str_CmpIgnoreCase_N(p_str, "ipconfig", 8) == 0) { 111 | ProbeTermCmdPrint("IPv4 Address......: 10.10.1.149\n"); 112 | ProbeTermCmdPrint("Subnet Mask.......: 255.255.255.0\n"); 113 | ProbeTermCmdPrint("Default Gateway...: 10.10.1.1\n"); 114 | } else if (Str_CmpIgnoreCase_N(p_str, "echo", 4) == 0) { 115 | if (Str_Len(p_str) > 5) { 116 | Str_Copy_N(&buf[0], &p_str[5], PROBE_TERM_CFG_BUF_SIZE - 2); 117 | Str_Cat_N(&buf[Str_Len(buf)], "\n\0", 2); 118 | } else { 119 | buf[0] = '\0'; 120 | } 121 | ProbeTermCmdPrint(&buf[0]); 122 | } else if (Str_CmpIgnoreCase_N(p_str, "trace", 5) == 0) { 123 | if (Str_Len(p_str) > 6) { 124 | Str_Copy_N(&buf[0], &p_str[6], PROBE_TERM_CFG_BUF_SIZE - 2); 125 | Str_Cat_N(&buf[Str_Len(buf)], "\n\0", 2); 126 | } else { 127 | buf[0] = '\0'; 128 | } 129 | ProbeTermCmdPrint("Ok.\n"); 130 | ProbeTermTrcPrint(&buf[0]); 131 | } else { 132 | ProbeTermCmdPrint("Error: unrecognized or incomplete command line.\n"); 133 | } 134 | } 135 | #endif -------------------------------------------------------------------------------- /Target/Terminal/Cfg/probe_term_cfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | ********************************************************************************************************* 3 | * uC/Probe Communication 4 | * 5 | * Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com 6 | * 7 | * SPDX-License-Identifier: APACHE-2.0 8 | * 9 | * This software is subject to an open source license and is distributed by 10 | * Silicon Laboratories Inc. pursuant to the terms of the Apache License, 11 | * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 12 | * 13 | ********************************************************************************************************* 14 | */ 15 | 16 | /* 17 | ********************************************************************************************************* 18 | * 19 | * UC/PROBE TERMINAL WINDOW CONFIGURATION FILE 20 | * 21 | * TEMPLATE 22 | * 23 | * File : probe_term_cfg.h 24 | * Version : V2.30 25 | ********************************************************************************************************* 26 | */ 27 | 28 | 29 | /* 30 | ********************************************************************************************************* 31 | * MODULE 32 | * 33 | * Note(s) : (1) This uC/Probe terminal window configuration header file is protected from multiple 34 | * pre-processor inclusion through the use of the pre-processor macro definition 35 | * PROBE_TERM_CFG_MODULE_PRESENT. 36 | ********************************************************************************************************* 37 | */ 38 | 39 | #ifndef PROBE_TERM_CFG_MODULE_PRESENT /* See Note #1. */ 40 | #define PROBE_TERM_CFG_MODULE_PRESENT 41 | 42 | 43 | /* 44 | ********************************************************************************************************* 45 | * UC/PROBE TERMINAL WINDOW GENERIC CONFIGURATION 46 | ********************************************************************************************************* 47 | */ 48 | /* ------------- COMMAND LINE INTERFACE --------------- */ 49 | #define PROBE_TERM_CFG_CMD_EN 1 /* Interface enable. */ 50 | #define PROBE_TERM_OS_CFG_CMD_RX_TASK_STK_SIZE 128 /* OS task stack size. */ 51 | #define PROBE_TERM_OS_CFG_CMD_RX_TASK_PRIO 10 /* OS task priority. */ 52 | #define PROBE_TERM_OS_CFG_CMD_TX_TASK_STK_SIZE 128 /* OS task stack size. */ 53 | #define PROBE_TERM_OS_CFG_CMD_TX_TASK_PRIO 11 /* OS task priority. */ 54 | /* ----------------- TRACE INTERFACE ------------------ */ 55 | #define PROBE_TERM_CFG_TRC_EN 1 /* Interface enable. */ 56 | #define PROBE_TERM_OS_CFG_TRC_TASK_STK_SIZE 128 /* OS task stack size. */ 57 | #define PROBE_TERM_OS_CFG_TRC_TASK_PRIO 12 /* OS task priority. */ 58 | 59 | #define PROBE_TERM_CFG_BUF_SIZE 64 /* Max size of the Rx and Tx message arrays. */ 60 | #define PROBE_TERM_CFG_Q_SIZE 16 /* Max number of message arrays in the queues. */ 61 | 62 | #define PROBE_TERM_OS_CFG_TASK_DLY_MSEC 100 /* OS task delay in milliseconds to yield the CPU. */ 63 | 64 | 65 | /* 66 | ********************************************************************************************************* 67 | * MODULE END 68 | ********************************************************************************************************* 69 | */ 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # uC/Probe Target Code 2 | 3 | µC/Probe is a revolutionary software development tool that incorporates Micrium’s proprietary Graphical Live Watch to graphically visualize the internals of any embedded system. With µC/Probe, you can test your embedded design effortlessly, with just a few mouse clicks. 4 | 5 | ## For the complete documentation, visit https://doc.micrium.com/display/ucos/ --------------------------------------------------------------------------------