ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fsl_uart_common_configurations.c
Go to the documentation of this file.
1 /*!
2 ********************************************************************************
3 * File: fsl_uart_common_configurations.c
4 *
5 * Copyright (c) 2014, Freescale Semiconductor, Inc.
6 *
7 *******************************************************************************/
8 /*!
9 * @file fsl_uart_common_configurations.c
10 * @brief \b fsl_uart_common_configurations.c implements UART HAL Layer interfaces.
11 */
12 #include "fsl_uart_hal.h"
13 #include "isf_fsl_uart_PEx.h"
14 #include "PE_Types.h"
15 #include "isf_uart_adapter.h"
16 #include "fsl_uart_driver.h"
17 
19 
20 /***********************************************************************
21 *
22 * Function Name : i2c_hal_enable
23 * Description : HAL interfaces for enabling the i2c module.
24 * It enbales the clock and interrupt.
25 *
26 ***************************************************************************/
27 uart_status_t uart_hal_init(uint32_t uartInstance, const uart_config_t *config)
28 {
29  if (uartInstance >= gSys_NumUARTBuses){
30  return kStatus_UART_Error;
31  }
32  return kStatus_UART_Success;
33 }
34 /***********************************************************************
35 *
36 * Function Name : uart_hal_enable_transmitter
37 * Description : HAL interface for enabling the uart module.
38 *
39 ***************************************************************************/
40 void uart_hal_enable_transmitter(uint32_t uartInstance)
41 {
42  if(uartInstance >= gSys_NumUARTBuses){
43  return;
44  }
45 }
46 /***********************************************************************
47 *
48 * Function Name : uart_hal_disable_transmitter
49 * Description : HAL interface for disabling the uart transmitter module.
50 *
51 ***************************************************************************/
52 void uart_hal_disable_transmitter(uint32_t uartInstance)
53 {
54  if(uartInstance >= gSys_NumUARTBuses){
55  return;
56  }
57 
58 }
59 
60 
61 /***********************************************************************
62 *
63 * Function Name : uart_hal_enable_receiver
64 * Description : This function allows the user to enable the UART receiver.
65 *
66 *
67 ***************************************************************************/
68 void uart_hal_enable_receiver(uint32_t uartInstance)
69 {
70  if(uartInstance >= gSys_NumUARTBuses){
71  return;
72  }
73 }
74 /***********************************************************************
75 *
76 * Function Name : uart_hal_disable_receiver
77 * Description : This function allows the user to disable the UART receiver.
78 *
79 *
80 ***************************************************************************/
81 void uart_hal_disable_receiver(uint32_t uartInstance)
82 {
83  if(uartInstance >= gSys_NumUARTBuses){
84  return;
85  }
86 }
87 
88 
unsigned char uint8
This defines uint8 as unsigned char.
Definition: isf_types.h:18
void uart_hal_enable_transmitter(uint32_t uartInstance)
void uart_hal_disable_transmitter(uint32_t uartInstance)
UART configuration structure.
Definition: fsl_uart_hal.h:135
fsl_uart_driver.h defines structures and types for the i2c master driver.
void uart_hal_disable_receiver(uint32_t uartInstance)
uart_status_t uart_hal_init(uint32_t uartInstance, const uart_config_t *config)
uint8 gSys_NumUARTBuses
enum _uart_status uart_status_t
Error codes for the UART driver.
fsl_uart_hal.h defines structures and types for the i2c master HAL layer.
isf_uart_adapter.h defines the API definitions and types for the uart protocol adapter.
void uart_hal_enable_receiver(uint32_t uartInstance)