• Compile switch
    Hi. I am using two Project targets, a Debug and a Release, and now I what to test which one that is selected, but how do I do it? #ifdef Debug ????????? /* Set the Vector Table base location...
  • Switch based on memory pointer type in C
    Is there a way using C51/Cx51 to easily switch based on the memory type of a generic pointer? So far, the best thing I have is: void my_func(void * ptr) { switch(*(uint8_t *)&ptr) { case 0x00:...
  • Delay timing on ARM7 LPC2129 processor
    Dear Friends, I am using an ARM7 LPC2129 controller with 10~Mhz external oscillator. My controller is running at 60Mhz and PCLK at 30Mhz. I have a quick question for you. I want to write a delay...
  • RTOS : Task switch during a time tick
    Dear all, I have to work with RL-RTX, and I have first look at the RTX traffic example. There is something I do not understand about task switching. Some years ago, I was working on a home-made RTOS...
  • Compiler interpretation of "Types"
    I'm having trouble with my firmware when I pass a value to a function that receives a float (The controller won't initialize correctly). The function is as follow: u16 u16SUPPLY_REF; //Global ...