Ignore:
Timestamp:
Feb 8, 2015, 1:12:23 PM (10 years ago)
Author:
alain
Message:

1) Introduce access functions to MMC intrumentation registers.
2) Use _printf for error or debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/xcu_driver.c

    r490 r496  
    101101    else
    102102    {
    103         _puts("[GIET ERROR] _xcu_set_mask() receives illegal IRQ type\n");
     103        _printf("[GIET ERROR] _xcu_set_mask() receives illegal IRQ type\n");
    104104        _exit();
    105105    }
     
    108108
    109109#else
    110     _puts("[GIET ERROR] _xcu_set_mask() should not be used if USE_XCU not set\n");
     110    _printf("[GIET ERROR] _xcu_set_mask() should not be used if USE_XCU not set\n");
    111111    _exit();
    112112#endif
     
    155155 
    156156#else
    157     _puts("[GIET ERROR] _xcu_get_index should not be used if USE_XCU is not set\n");
     157    _printf("[GIET ERROR] _xcu_get_index should not be used if USE_XCU is not set\n");
    158158    _exit();
    159159#endif
     
    176176
    177177#else
    178     _puts("[GIET ERROR] _xcu_send_wti() should not be used if USE_XCU is not set\n");
     178    _printf("[GIET ERROR] _xcu_send_wti() should not be used if USE_XCU is not set\n");
    179179    _exit();
    180180#endif
     
    221221
    222222#else
    223     _puts("[GIET ERROR] in _xcu_get_wti_value() USE_XCU is not set\n");
     223    _printf("[GIET ERROR] in _xcu_get_wti_value() USE_XCU is not set\n");
    224224    _exit();
    225225#endif
     
    236236
    237237#else
    238     _puts("[GIET ERROR] in _xcu_get_wti_address() USE_XCU is not set\n");
     238    _printf("[GIET ERROR] in _xcu_get_wti_address() USE_XCU is not set\n");
    239239    _exit();
    240240#endif
     
    256256
    257257#else
    258     _puts("[GIET ERROR] in _xcu_timer_start() USE_XCU is not set\n");
     258    _printf("[GIET ERROR] in _xcu_timer_start() USE_XCU is not set\n");
    259259    _exit();
    260260#endif
     
    275275
    276276#else
    277     _puts("[GIET ERROR] in _xcu_timer_stop() USE_XCU is not set\n");
     277    _printf("[GIET ERROR] in _xcu_timer_stop() USE_XCU is not set\n");
    278278    _exit();
    279279#endif
Note: See TracChangeset for help on using the changeset viewer.