53 lines
1.6 KiB
C
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();
|
|
}
|
|
}
|