SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
main.c File Reference

Program main file. More...

#include <msp430.h>
#include <ti/mcu/msp430/Grace.h>
#include <xdc/std.h>
#include "clock.h"
#include "spi.h"
#include "cc2480ai.h"
#include "nwk.h"
#include "ptp.h"
#include "adc.h"
#include "uart.h"
#include "led.h"
#include "but.h"
#include "rep.h"
#include "im.h"
+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define MAIN_TASK_SCH_SPI   main_taskSchedule[0]
 SPI task schedule.
 
#define MAIN_TASK_SCH_CCAI   main_taskSchedule[1]
 CC2480 task schedule.
 
#define MAIN_TASK_SCH_NWK   main_taskSchedule[2]
 Network task schedule.
 
#define MAIN_TASK_SCH_PTPDR   main_taskSchedule[3]
 PTP delay request check task schedule.
 
#define MAIN_TASK_SCH_PTP   main_taskSchedule[4]
 PTP task schedule.
 
#define MAIN_TASK_SCH_ADC   main_taskSchedule[5]
 ADC task schedule.
 
#define MAIN_TASK_SCH_UART   main_taskSchedule[6]
 UART task schedule.
 
#define MAIN_TASK_SCH_LED   main_taskSchedule[7]
 Led task schedule.
 
#define MAIN_TASK_SCH_BUT   main_taskSchedule[8]
 Button task schedule.
 
#define MAIN_TASK_SCH_REP   main_taskSchedule[9]
 Report task schedule.
 
#define MAIN_TASK_SCH_WDT   main_taskSchedule[10]
 Watch Dog task schedule.
 
#define MAIN_TASK_COUNT   11
 
#define MAIN_FLAG_WDT_BIT   1
 

Functions

void main ()
 Main function of the program. More...
 
UInt8 TMRB0_ISR ()
 Tiner B0 ISR. More...
 

Variables

UInt16 main_taskSchedule [MAIN_TASK_COUNT]
 Task schedule for each task.
 

Detailed Description

Program main file.

C code file main.

Definition in file main.c.