48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
|
/*
|
||
|
* Copyright (c) 2013 - 2015, Freescale Semiconductor, Inc.
|
||
|
* Copyright 2016-2017 NXP
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||
|
*/
|
||
|
|
||
|
#include "fsl_device_registers.h"
|
||
|
#include "fsl_debug_console.h"
|
||
|
#include "pin_mux.h"
|
||
|
#include "clock_config.h"
|
||
|
#include "board.h"
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* Definitions
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* Prototypes
|
||
|
******************************************************************************/
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* Code
|
||
|
******************************************************************************/
|
||
|
/*!
|
||
|
* @brief Main function
|
||
|
*/
|
||
|
int main(void)
|
||
|
{
|
||
|
char ch;
|
||
|
|
||
|
/* Init board hardware. */
|
||
|
BOARD_ConfigMPU();
|
||
|
BOARD_InitBootPins();
|
||
|
BOARD_InitBootClocks();
|
||
|
BOARD_InitDebugConsole();
|
||
|
|
||
|
PRINTF("hello world.\r\n");
|
||
|
|
||
|
while (1)
|
||
|
{
|
||
|
ch = GETCHAR();
|
||
|
PUTCHAR(ch);
|
||
|
}
|
||
|
}
|