/*-------------------------------------------------------------------------- * ROM routines C prototypes for Texas Intruments MSC12xx MCU family * * Written By - Philippe Latu / philippe.latu(at)linux-france.org * $Id: rom1210.h 1126 2007-05-06 21:58:55Z latu $ * * Copyright (C) 2006,2007 Philippe Latu * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * *---------------------------------------------------------------------------*/ #ifndef __ROM1210_H #define __ROM1210_H void put_string(char code *string); char page_erase (int faddr, char fdata, char fdm); char write_flash (int faddr, char fdata, char fdm); char write_flash_chk (int faddr, char fdata, char fdm); char write_flash_byte (int faddr, char fdata, char fdm); char faddr_data_read(char); char data_x_c_read(int addr); void tx_byte(char); void tx_hex(char); void putok(void); char rx_byte(void); char rx_byte_echo(void); char rx_hex_echo(void); char rx_double_echo(void); char rx_word_echo(void); void autobaud(void); void putspace4(void); void putspace3(void); void putspace2(void); void putspace1(void); void putcr(void); // define constants for the ROM routines #define PROGRAM_FLASH 0 #define DATA_FLASH 1 data at 0x000a char ROM_temp0; data at 0x000b char ROM_temp1; #endif