#include "LPC13xx.h" /* LPC13xx definitions */ #include "clkconfig.h" #include "gpio.h" #include "uart.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <cr_section_macros.h> #include <NXP/crp.h> __CRP const unsigned int CRP_WORD = CRP_NO_CRP ; // Function __write() uint32_t __write (int iFileHandle, uint8_t *pcBuffer, uint32_t iLength) { //this function is writing the printf buffer to uart UARTSend(pcBuffer,iLength); return iLength; } int main (void) { int dummy; GPIOInit(); UARTInit(115200); // Set port for LED to output (1) GPIOSetDir( 0, 7, 1 ); //LED //GPIOSetDir( 1, 6, 0 ); //Rx //GPIOSetDir( 1, 7, 1 ); //Tx dummy = 1111; while (1) /* Loop forever */ { GPIOSetValue( 0, 7, 1 ); printf("This is a Test = %d \r\n", dummy); GPIOSetValue( 0, 7, 0 ); dummy ++; } } |
Building target: LPCX1343_cmsis2_blinky.axf Invoking: MCU Linker arm-none-eabi-gcc -nostdlib -L"C:\MyCode\ARM\LPCxpresso\CMSISv2p00_LPC13xx\Release" -L"C:\MyCode\ARM\LPCxpresso\LPC13xx_cmsis2_Lib\Release" -Xlinker --gc-sections -Xlinker -Map=LPCX1343_cmsis2_blinky.map -mcpu=cortex-m3 -mthumb -T "LPCX1343_cmsis2_blinky_Release.ld" -o "LPCX1343_cmsis2_blinky.axf" ./src/blinky.o ./src/cr_startup_lpc13.o ./src/timer16_int.o -lCMSISv2p00_LPC13xx -lLPC13xx_cmsis2_Lib Finished building target: LPCX1343_cmsis2_blinky.axf make --no-print-directory post-build Performing post-build steps arm-none-eabi-size LPCX1343_cmsis2_blinky.axf; arm-none-eabi-objcopy -O ihex LPCX1343_cmsis2_blinky.axf LPCX1343_cmsis2_blinky.hex ; text data bss dec hex filename 12712 8 416 13136 3350 LPCX1343_cmsis2_blinky.axf |
#define TX_INTERRUPT 1 /* 0 if TX uses polling, 1 interrupt driven. */ |