test_flash.c File Reference

Description : Main for flash memory test. More...

#include <Environment.h>
#include <timedef.h>
#include <serial.h>
#include <string.h>
#include <hal_wait.h>
#include <set_hardware.h>
#include <cc2420.h>
#include <flash_memory.h>

Include dependency graph for test_flash.c:

Go to the source code of this file.

Functions

void init (void)
void main (void)


Detailed Description

Description : Main for flash memory test.

Author:
ANGER Thomas
Date:
2008 / 12 / 8
Note:
This program illustrate how work flash memory write/erase functions

switch 1 : erase segment 1 of flash memory

switch 2 : erase segment 2 of flash memory

switch 3 : write 2 messages : one on segment 1 and one on segment 2

switch 4 : print both messages

Definition in file test_flash.c.


Function Documentation

void init ( void   ) 

Definition at line 32 of file test_flash.c.

References cc2420_Init(), clock_init(), halSpiInit(), halWait(), serial_init(), setup_msp430(), setup_ports(), and TIME_CONSTANT.

Here is the call graph for this function:

void main ( void   ) 

Note:
This program illustrate how work flash memory write/erase functions

switch 1 : erase segment 1 of flash memory

switch 2 : erase segment 2 of flash memory

switch 3 : write 2 messages : one on segment 1 and one on segment 2

switch 4 : print both messages

Definition at line 62 of file test_flash.c.

References compute_flash_address(), erase_flash_segment(), ETAT_BOUTON1, ETAT_BOUTON2, ETAT_BOUTON3, ETAT_BOUTON4, flash_write(), halWait(), init(), LED_TEST1_ON, MAX_HAL_WAIT, and serial_puts().

Here is the call graph for this function:


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