cp = STACK_POINTER() - __MALLOC_MARGIN__; if (cp <= __brkval) /* * Memory exhausted. */ return 0;
Due to its risk, dynamic memory allocation is forbidden, under the DO-178B standard, in safety-critical embedded avionics code.
/* * Complementary CAN pins */static const uint8_t CAN1RX = 88;static const uint8_t CAN1TX = 89;// CAN0#define PINS_CAN0 (90u)// CAN1#define PINS_CAN1 (91u)
hm looks like I can't upload to mega 2560, is it just me?