• GNU ARM and Constructors
    I'm using a LPC2129 and DKARM 1.3 I have something like this //class declaration class SPI { SPI(uint8 init)//contructor .... } //Contructor definition SPI::SPI(uint8 init) { ... } //Object...
  • Why are dynamically-sized arrays implemented as malloc()?
    I'm working on a project that should not use a Heap. In the process of revising my code for this, I've discovered that dynamically-sized arrays, e.g. uint8_t my_array[MIN(input_size, MAX_SIZE)]; are...
  • JSON object creating problem
    Hello i am using cJSON keil library but i facing many problem to create object and convert object into string. 1. This code work fine int main(void) { root = cJSON_CreateObject(); cJSON_AddNumberToObject...
  • C++ error: Class with constructor: Argument not checked
    Hi, to disable and re-enable interrupts in a safe way, I wrote the following class: class DisableIntsShortly { public: __forceinline DisableIntsShortly(){ __disable_irq(); } __forceinline ~DisableIntsShortly...
  • initializing a const derived object
    I would like to put a derived object in const memory and initialize it like in the example code below. it works fine as long as _der_test is not derived from _test, if it is, the I get an error ...