Output Module Setup
| 130 | |
| 131 | // Output Module Setup |
| 132 | inline void OutputGen_setup() |
| 133 | { |
| 134 | // Register USB Output CLI dictionary |
| 135 | CLI_registerDictionary( outputCLIDict, outputCLIDictName ); |
| 136 | |
| 137 | // Initialize variables |
| 138 | Output_Available = 0; |
| 139 | Output_DebugMode = 0; |
| 140 | Output_ExtCurrent_Available = 0; |
| 141 | Output_USBCurrent_Available = 0; |
| 142 | Output_SleepMode = false; |
| 143 | |
| 144 | #if defined(_sam_) |
| 145 | // HACK: Will be corrected when usb support is added |
| 146 | Output_USBCurrent_Available = 500; |
| 147 | #endif |
| 148 | } |
| 149 | |
| 150 | |
| 151 | // Update USB current (mA) |
searching dependent graphs…