Changeset 527 for trunk/kernel/devices
- Timestamp:
- Aug 30, 2018, 10:26:27 PM (6 years ago)
- Location:
- trunk/kernel/devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.c
r492 r527 49 49 50 50 //////////////////////////////////////// 51 char * dev_txt_type_str( uint32_t type ) 52 { 53 if ( type == TXT_SYNC_WRITE ) return "TXT_SYNC_WRITE"; 54 else if( type == TXT_READ ) return "TXT_READ"; 55 else if( type == TXT_WRITE ) return "TXT_WRITE"; 56 else return "undefined"; 51 const char * dev_txt_type_str( dev_txt_cmd_t type ) 52 { 53 switch (type) { 54 case (TXT_SYNC_WRITE): return "TXT_SYNC_WRITE"; 55 case (TXT_READ): return "TXT_READ"; 56 case (TXT_WRITE): return "TXT_WRITE"; 57 default: return "undefined"; 58 } 57 59 } 58 60 -
trunk/kernel/devices/dev_txt.h
r457 r527 78 78 *****************************************************************************************/ 79 79 80 enum80 typedef enum 81 81 { 82 82 TXT_READ = 0, 83 83 TXT_WRITE = 1, 84 84 TXT_SYNC_WRITE = 2, 85 } ;85 } dev_txt_cmd_t; 86 86 87 87 typedef struct txt_command_s … … 113 113 * @ type : command type (TXT_READ / TXT_WRITE / TXT_SYNC_WRITE) 114 114 *****************************************************************************************/ 115 c har * dev_txt_type_str( uint32_t type );115 const char * dev_txt_type_str( dev_txt_cmd_t type ); 116 116 117 117 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.