view src/cs/system/bootloader/inc/serial.h @ 548:9f191ca0051f
implemented ability to enable -D_FF_RV_EXIST_ in TIF library
It is not clear if this quirk is intentional or not, but TI's production
version of tif_na7_db_{fl,ir}.lib was built without -D_FF_RV_EXIST_,
and as a result, the code that is present in the source for the
TRACEMASK_IN_FFS feature was not compiled in, making the feature unavailable.
The present change makes it possible to re-enable this code (when TIF
libraries are being rebuilt from source rather than used as blobs)
by setting TRACEMASK_IN_FFS=1 on the configure line.
The new code is NOT enabled by default: it is not a change which we can
justify inflicting on our production firmwares.
author
Mychaela Falconia <falcon@freecalypso.org>
date
Sun, 18 Nov 2018 08:09:17 +0000 (2018-11-18)
parents
945cf7f506b2
children
line source
+ − /*******************************************************************************
+ − *
+ − * SERIAL.H
+ − *
+ − * This module contains functions to send or receive commands on the USART 8251.
+ − * Only polled mode is used.
+ − *
+ − * (C) Texas Instruments 1998
+ − *
+ − ******************************************************************************/
+ −
+ − #ifndef __SERIAL_H__
+ − #define __SERIAL_H__
+ −
+ − #include "main/sys_types.h"
+ −
+ − /*
+ − * ser_receive_command and ser_receive_char have 2 modes:
+ − * SER_INFINITE : Waits until a command is received.
+ − * SER_IMMEDIATE: Returns imediately even if no character is received.
+ − */
+ −
+ − enum {
+ − SER_INFINITE,
+ − SER_IMMEDIATE
+ − };
+ −
+ − /*
+ − * Return values of ser_receive_data_for_flash.
+ − */
+ −
+ − enum {
+ − SER_DATA_READY,
+ − SER_DATA_ERROR,
+ − SER_END_OF_FILE
+ − };
+ −
+ − extern void ser_wait_no_activity (SYS_UWORD8 device_id);
+ − extern long ser_send_command (SYS_UWORD8 *command, SYS_UWORD8 device_id);
+ − extern SYS_UWORD8 ser_receive_command (SYS_UWORD8 *command, int mode);
+ − extern long ser_receive_data_for_flash (SYS_UWORD32 *address, SYS_UWORD16 *data, SYS_UWORD8 device_id);
+ − extern void ser_initialize_flash_data_detection (void);
+ − extern void ser_initialize_serial_link (void);
+ − extern void ser_wait_last_character_sent (SYS_UWORD8 device_id);
+ −
+ − #endif /* __SERIAL_H__ */