MCUXpresso_LPC55S69/boards/lpcxpresso55s69/freemaster_examples/fmstr_any/source/main.c
Yilin Sun 6e8d03ec0a Updated to SDK v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-12 21:21:49 +08:00

53 lines
1.6 KiB
C

/*
* Copyright (c) 2007-2015 Freescale Semiconductor, Inc.
* Copyright 2018-2020 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
* FreeMASTER Communication Driver - Example Application to be used
* with MCUXpresso Peripheral Configuration tool. Open the MCUXpresso
* ConfigTools, select Peripheral tool and configure FreeMASTER features
* and communication options. Serial communication is selected by default.
*/
////////////////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////////////////
#include "pin_mux.h"
#include "peripherals.h"
#include "clock_config.h"
#include "board.h"
#include "freemaster.h"
#include "freemaster_example.h"
////////////////////////////////////////////////////////////////////////////////
// Variables
////////////////////////////////////////////////////////////////////////////////
//! Note: All global variables accessed by FreeMASTER are defined in a shared
//! freemaster_example.c file
////////////////////////////////////////////////////////////////////////////////
// Code
////////////////////////////////////////////////////////////////////////////////
int main(void)
{
/* Board initialization */
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitBootPeripherals();
/* This example uses shared code from FreeMASTER generic example application */
FMSTR_Example_Init();
while (1)
{
/* FreeMASTER example increments several variables periodically,
use the FreeMASTER PC Host tool to visualize the variables */
FMSTR_Example_Poll();
}
}