278 |
278 |
279 #define CyAnHalIsPolling() (CyFalse) |
279 #define CyAnHalIsPolling() (CyFalse) |
280 #define CyAnHalDisablePolling() |
280 #define CyAnHalDisablePolling() |
281 #define CyAnHalEnablePolling() |
281 #define CyAnHalEnablePolling() |
282 |
282 |
283 #define CyAsHalPrintMessage |
283 // #define PRINT_DEBUG_INFO // uncomment for debug info.. |
284 //#define CyAsHalPrintMessage Kern::Printf |
284 #ifdef PRINT_DEBUG_INFO |
285 #define CyAnHalPrintMessage CyAsHalPrintMessage |
285 #define CyAsHalPrintMessage(...) Kern::Printf(__VA_ARGS__) |
|
286 #else |
|
287 #define CyAsHalPrintMessage(...) |
|
288 #endif |
|
289 #define CyAnHalPrintMessage CyAsHalPrintMessage (...) |
286 |
290 |
287 void |
291 void |
288 CyAsHalPrintMessage2(const char* msg); |
292 CyAsHalPrintMessage2(const char* msg); |
289 |
293 |
290 /*#define CyAsHalAssert(cond) if (!(cond)) { CyAsHalPrintMessage ("Assertion failed at %s:%d\n", __FILE__, __LINE__); }*/ |
294 #ifdef PRINT_DEBUG_INFO |
|
295 #define CyAsHalAssert(cond) if (!(cond)) { CyAsHalPrintMessage ("Assertion failed at %s:%d\n", __FILE__, __LINE__); } |
|
296 #else |
291 #define CyAsHalAssert(cond) |
297 #define CyAsHalAssert(cond) |
|
298 #endif |
|
299 |
292 #define CyAnHalAssert(cond) CyAsHalAssert(cond) |
300 #define CyAnHalAssert(cond) CyAsHalAssert(cond) |
293 |
301 |
294 /* |
302 /* |
295 As this is a completely interrupt driven HAL, there is no |
303 As this is a completely interrupt driven HAL, there is no |
296 need to implement the following functions. |
304 need to implement the following functions. |