CLEON  Version 1
Cloud-Offloaded GPS Receiver
hal_uart.c File Reference

UART configuration. More...

#include "cleon_conf.h"
#include "app_define.h"
#include "sys_define.h"
#include "hal_define.h"
#include "fs_define.h"
Include dependency graph for hal_uart.c:

Go to the source code of this file.

Functions

void HAL_UART_Init ()
 Initializing UART.
 
__interrupt void USCI_A1_VECTOR_ISR (void)
 

Variables

bool bFLAG_USBFrameReceived
 

Detailed Description

UART configuration.

Definition in file hal_uart.c.

Function Documentation

void HAL_UART_Init ( )

Initializing UART.

Returns
void
Parameters
void

Definition at line 24 of file hal_uart.c.

{
// UART, which is used for USB, is set to 57600 bps
// (see, pp909 of 'MSP430x5xx and MSP430x6xx family user's guide')
UCA1CTL1 |= UCSWRST; // **Put state machine in reset**
UCA1CTL1 |= UCSSEL_2; // Set SMCLK as clock source
UCA1BRW = 208; // 12MHz 57600 bps (see User's Guide)
UCA1MCTL = UCBRS_2; // Modln UCBRSx=2, UCBRFx=0,
UCA1CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA1IE |= UCRXIE; // Enable USCI_A1 RX interrupt
}

Here is the caller graph for this function:

__interrupt void USCI_A1_VECTOR_ISR ( void  )

Definition at line 44 of file hal_uart.c.

{
unsigned char ucRxData;
switch(__even_in_range(UCA1IV,12)){
case 0: break;
case 2:
ucRxData = UCA1RXBUF;
// If a complete USB frame has received successfully, exit low-power-mode
__low_power_mode_off_on_exit();
}
break;
case 4: break;
case 6: break;
case 8: break;
case 10: break;
case 12: break;
default: break;
}
}

Here is the call graph for this function:

Variable Documentation

bool bFLAG_USBFrameReceived

Definition at line 19 of file sys_usb.c.