set_hardware.c File Reference

#include <environment.h>
#include <msp430.h>
#include <bite.h>

Include dependency graph for set_hardware.c:

Go to the source code of this file.

Functions

void change_master_clock (int select_freq, int select_resist)
 Perform frequency change on hardware master clock.
void halSpiInit (void)
 Configure uart 1 in mode SPI master.
void setup_msp430 (void)
 Configure MSP register's to setup (sub)master clock source and frequency.
void setup_ports (void)
 Performs input and output initializations.
void timerA_init (void)
 Setup timer A module to perform waveform generation (to measure system clock on P1.1).


Function Documentation

void change_master_clock ( int  select_freq,
int  select_resist 
)

Perform frequency change on hardware master clock.

Parameters:
[in] select_freq : interger in 0 to 7 range. Use this parameter to select the master clock frequency (in the range defined by DCO internal resistor)
[in] select_resist : interger in 0 to 7 range. Use this parameter to select the DCO internal resistor resistor_O : 85khz to 174 khz resistor_1 : xxx khz to xxx khz resistor_2 : xxx khz to xxx khz resistor_3 : xxx khz to xxx khz resistor_4 : xxx khz to xxx khz resistor_5 : xxx khz to xxx khz resistor_6 : xxx khz to xxx khz resistor_7 : xxx khz to xxx khz

Definition at line 124 of file set_hardware.c.

Referenced by main().

Here is the caller graph for this function:

void halSpiInit ( void   ) 

Configure uart 1 in mode SPI master.

Definition at line 92 of file set_hardware.c.

Referenced by init().

Here is the caller graph for this function:

void setup_msp430 ( void   ) 

Configure MSP register's to setup (sub)master clock source and frequency.

Definition at line 79 of file set_hardware.c.

Referenced by init().

Here is the caller graph for this function:

void setup_ports ( void   ) 

Performs input and output initializations.

Note:
Port 1 : LED 1-4 and input information signal (from power regulator, micro-switch and serial-signal-converter chip)

Port 2 : communication with radio chip

Port 3 : USART 0 in rs232 mode

Port 4 : not used

Port 5 : USART 1 in SPI mode to command radio chip (0 to 3)

Port 6 : not used

Definition at line 45 of file set_hardware.c.

Referenced by init().

Here is the caller graph for this function:

void timerA_init ( void   ) 

Setup timer A module to perform waveform generation (to measure system clock on P1.1).

Note:
System clock frequency is 500000 * P1.1 signal's frequency (for maximum accuracy)

LED2 is unavailable if this function have been called (port 1.1 affected to timer A output)

Definition at line 139 of file set_hardware.c.

Referenced by init().

Here is the caller graph for this function:


Generated on Wed Jun 3 12:06:04 2009 for PowWow v1.0 by  doxygen 1.5.6