| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

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
18 extern uint8 gSys_NumUARTBuses;
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
kStatus_UART_Success
Definition: fsl_uart_hal.h:23
uint8
unsigned char uint8
This defines uint8 as unsigned char.
Definition: isf_types.h:18
uart_hal_enable_transmitter
void uart_hal_enable_transmitter(uint32_t uartInstance)
Definition: fsl_uart_common_configurations.c:40
uart_hal_disable_transmitter
void uart_hal_disable_transmitter(uint32_t uartInstance)
Definition: fsl_uart_common_configurations.c:52
UartConfig
UART configuration structure.
Definition: fsl_uart_hal.h:135
fsl_uart_driver.h
fsl_uart_driver.h defines structures and types for the i2c master driver.
uart_hal_disable_receiver
void uart_hal_disable_receiver(uint32_t uartInstance)
Definition: fsl_uart_common_configurations.c:81
uart_hal_init
uart_status_t uart_hal_init(uint32_t uartInstance, const uart_config_t *config)
Definition: fsl_uart_common_configurations.c:27
gSys_NumUARTBuses
uint8 gSys_NumUARTBuses
Definition: isf_sysconf_comms.c:63
uart_status_t
enum _uart_status uart_status_t
Error codes for the UART driver.
kStatus_UART_Error
Definition: fsl_uart_hal.h:44
fsl_uart_hal.h
fsl_uart_hal.h defines structures and types for the i2c master HAL layer.
isf_uart_adapter.h
isf_uart_adapter.h defines the API definitions and types for the uart protocol adapter.
isf_fsl_uart_PEx.h
uart_hal_enable_receiver
void uart_hal_enable_receiver(uint32_t uartInstance)
Definition: fsl_uart_common_configurations.c:68
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.