Porting to mspgcc from IAR
==========================

Step 1: eliminated bluerobin
Since I can't use the shipped library file with MSPgcc and don't have the 
bluerobin source, to proceed with what I could do, it was necessary to remove 
all references to bluerobin in the Sports Watch source code.

The files affected were:
main.c
logic/menu.c
logic/rfsimpiciti.c
logic/test.c

A second pair of eyes would be great.


Details follow:

_main.c_

// near line # 69
// #include "bluerobin.h"

// near line #344
// reset_bluerobin();

// near line # 619
if (display.flag.full_update)
{
        /*
        if (is_bluerobin() == BLUEROBIN_CONNECTED)
        {
                // Turn on beeper icon to show activity
                display_symbol(LCD_ICON_BEEPER1, SEG_ON_BLINK_OFF);
                display_symbol(LCD_ICON_BEEPER2, SEG_ON_BLINK_OFF);
                display_symbol(LCD_ICON_BEEPER3, SEG_ON_BLINK_OFF);
        }
        */
}
        
_menu.c_

// changed pointer_to_next_menu when next menu is a bluerobin function
// near line # 150      
// remove&menu_L1_Heartrate, and replace with the following
&menu_L1_Acceleration,
        
// near line # 154
/* eliminate the following bluerobin menus
const struct menu menu_L1_Heartrate =
{
        FUNCTION(sx_bluerobin),                         // direct function
        FUNCTION(mx_bluerobin),                         // sub menu function
        FUNCTION(display_heartrate),            // display function
        FUNCTION(update_time),                          // new display data
        &menu_L1_Speed,
};

// Line1 - Speed
const struct menu menu_L1_Speed =
{
        FUNCTION(dummy),                                        // direct 
function
        FUNCTION(dummy),                                        // sub menu 
function
        FUNCTION(display_speed),                        // display function
        FUNCTION(update_time),                          // new display data
        &menu_L1_Acceleration,
};
*/

//near line # 236
// replace&menu_L2_CalDist, with the following line
&menu_L2_Date,

//near line # 240
/* pfs_elimiate_bluerobin menu
const struct menu menu_L2_CalDist =
{
        FUNCTION(sx_caldist),                   // direct function
        FUNCTION(mx_caldist),                   // sub menu function
        FUNCTION(display_caldist),              // display function
        FUNCTION(update_time),                  // new display data
        &menu_L2_Date,
};
*/




_logic/rfsimplicit.c_
//near line 55
//comment out #include "bluerobin.h"

_logic/test.c_
//near line # 181
case 4: // BlueRobin test

   /* pfs_elimiate_bluerobin
   button.flag.s1 = 1;
   sx_bluerobin(LINE1);
   Timer0_A4_Delay(CONV_MS_TO_TICKS(100));
   get_bluerobin_data();
   display_heartrate(LINE1, DISPLAY_LINE_UPDATE_FULL);
   stop_bluerobin();
   */

Reply via email to