* <!-- description --> * @brief Outputs a string and an 16bit dec to the console * * <!-- inputs/outputs --> * @param str the string to output * @param val the 16bit dec value to output */
| 291 | * @param val the 16bit dec value to output |
| 292 | */ |
| 293 | static inline void |
| 294 | bfdebug_d16(char const *const str, uint16_t const val) |
| 295 | { |
| 296 | char num[65] = {0}; |
| 297 | (void)bfitoa(((uint64_t)val), num, BASE10); |
| 298 | |
| 299 | serial_write("[BAREFLANK DEBUG] "); |
| 300 | serial_write(str); |
| 301 | serial_write(": "); |
| 302 | serial_write(num); |
| 303 | serial_write("\n"); |
| 304 | |
| 305 | console_write("[BAREFLANK DEBUG] "); |
| 306 | console_write(str); |
| 307 | console_write(": "); |
| 308 | console_write(num); |
| 309 | console_write("\r\n"); |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * <!-- description --> |
nothing calls this directly
no test coverage detected