FreeCalypso > hg > fc-magnetite
view src/cs/drivers/drv_app/r2d/r2d_task.c @ 673:62a5285e014a
Lorekeeping: allow tpudrv-leonardo.lib on Leonardo/Tango
Back in 2015 the Mother's idea was to produce a FreeCalypso development
board that would be a clone of TI Leonardo, including the original
quadband RFFE; one major additional stipulation was that this board
needed to be able to run original unmodified TCS211-20070608 firmware
with all blobs intact, with only minimal binary patches to main.lib
and tpudrv.lib. The necessary patched libs were produced at that time
in the tcs211-patches repository.
That plan was changed and we produced FCDEV3B instead, with Openmoko's
triband RFFE instead of Leonardo quadband, but when FC Magnetite started
in 2016, a TPUDRV_blob= provision was still made, allowing the possibility
of patching OM's tpudrv.lib for a restored Leonardo RFFE.
Now in 2020 we have FC Tango which is essentially a verbatim clone of
Leonardo core, including the original quadband RFFE. We have also
deblobbed our firmware so much that we have absolutely no real need
for a blob version of tpudrv.lib - but I thought it would be neat to put
the ancient TPUDRV_blob= mechanism (classic config) to its originally
intended use, just for the heck of it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 29 May 2020 03:55:36 +0000 |
parents | 094152d97ce7 |
children |
line wrap: on
line source
/** @file: r2d_task.c @author Christophe Favergeon @version 0.5 Purpose: Refresh task for R2D. It is calling the LCD dependent refresh subroutine */ /* Date Modification ------------------------------------ 06/02/2001 Create 10/18/2001 Version 0.5 for first integration with Riviera database (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */ #include "rv/general.h" #include "rvf/rvf_api.h" #include "rvm/rvm_api.h" #include "rvm/rvm_use_id_list.h" #include "r2d/r2d_messages.h" #include "r2d/r2d_env.h" #include "r2d/r2d_config.h" #include "r2d/r2d.h" #include "r2d/r2d_i.h" extern void r2d_refresh(void); extern INT16 r2d_g_refresh_disabled; /* FreeCalypso addition */ int r2d_is_running; /******************************************************************************* ** Function r2d_core ** ** Description Core of the r2d task, which refresh the LCD ** *******************************************************************************/ T_RVM_RETURN r2d_core(void) { BOOLEAN error_occured = FALSE; // T_R2D_EVT * msg_ptr_rx, * msg_ptr_tx; //r2d_start(); rvf_send_trace("R2D REFRESH TASK STARTED", 24, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH, R2D_USE_ID); #ifdef CONFIG_TARGET_LUNA r2d_refresh_task_secondary_init(); rvf_send_trace("R2D secondary init complete", 27, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH, R2D_USE_ID); #endif r2d_is_running = 1; /* loop to process messages */ while (error_occured == FALSE) { UINT16 received_event; //rvf_send_trace("WAIT EVENT",strlen("WAIT EVENT"), NULL_PARAM, // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); /* Wait for the necessary events (infinite wait for a msg in the mailbox 0). */ received_event = rvf_wait ( EVENT_MASK(RVF_APPL_EVT_0), 0); //rvf_send_trace("EVENT RECEIVED",strlen("EVENT RECEIVED"), NULL_PARAM, // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); /* If an event related to mailbox 0 is received, then */ if (received_event & EVENT_MASK(RVF_APPL_EVT_0) ) { //rvf_send_trace("GOOD EVENT",strlen("GOOD EVENT"), NULL_PARAM, // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); r2d_g_event_was_sent=FALSE; if (r2d_g_refresh_disabled==0) r2d_refresh(); rvf_delay(RVF_MS_TO_TICKS(R2D_REFRESH_PERIOD)); } } return RVM_OK; }