Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
nxp4088_enable_traceout.cpp
- Committer:
- ssugi
- Date:
- 2015-02-13
- Revision:
- 2:d70a1b50eac9
- Parent:
- 1:9e084926dbd0
File content as of revision 2:d70a1b50eac9:
#include <stdint.h>
void enable_traceout() {
volatile uint32_t* PXX_IOCON;
// TRACECLK: IOCON_P2_6
PXX_IOCON = (uint32_t*) 0x4002C118;
*PXX_IOCON = (1<<9) | 5; // SLEW: Fast, FUNC: 5
// TRACEDATA[0]: IOCON_P2_5
PXX_IOCON = (uint32_t*) 0x4002C114;
*PXX_IOCON = 5; // SLEW: Standard, FUNC: 5
// TRACEDATA[1]: IOCON_P2_4
PXX_IOCON = (uint32_t*) 0x4002C110;
*PXX_IOCON = 5; // SLEW: Standard, FUNC: 5
// TRACEDATA[2]: IOCON_P2_3
PXX_IOCON = (uint32_t*) 0x4002C10C;
*PXX_IOCON = 5; // SLEW: Standard, FUNC: 5
// TRACEDATA[3]: IOCON_P2_2
PXX_IOCON = (uint32_t*) 0x4002C108;
*PXX_IOCON = 5; // SLEW: Standard, FUNC: 5
}