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-12
- Revision:
- 0:61b6c86d16e3
- Child:
- 1:9e084926dbd0
File content as of revision 0:61b6c86d16e3:
#include "mbed.h"
void enable_traceout() {
    __IO uint32_t* PXX_IOCON;
    // TRACECLK: IOCON_P2_6
    PXX_IOCON = (__IO uint32_t*) 0x4002C118;
    *PXX_IOCON = 5;
    // TRACEDATA[0]: IOCON_P2_5
    PXX_IOCON = (__IO uint32_t*) 0x4002C114;
    *PXX_IOCON = 5;
    // TRACEDATA[1]: IOCON_P2_4
    PXX_IOCON = (__IO uint32_t*) 0x4002C110;
    *PXX_IOCON = 5;
    // TRACEDATA[2]: IOCON_P2_3
    PXX_IOCON = (__IO uint32_t*) 0x4002C10C;
    *PXX_IOCON = 5;
    // TRACEDATA[3]: IOCON_P2_2
    PXX_IOCON = (__IO uint32_t*) 0x4002C108;
    *PXX_IOCON = 5;
}