Search:

Type: Posts; User: tingting

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,992

    my question is valid as in: - the function above...

    my question is valid as in:
    - the function above is called by in another module and works fine so, don't get all caught up with that.

    Question was:
    -- write a new function that would check the...
  2. Replies
    8
    Views
    1,992

    write a function that returns true

    static void sramDbgParse(void)
    {
    if (SRCopy.flag == 0x5c) {
    printf("\r\nWatchdog flag seen. Prev pc/lr/prc_cur: ");
    printf(Copy.last_pc);
    printf(Copy.last_lr);
    printf(Copy.last_prc);...
  3. Replies
    13
    Views
    2,384

    tabstop, for me to log anything to flash log...

    tabstop,

    for me to log anything to flash log section,
    - i need to test a condition whether it's been triggered, then in main.c, I need to call the initialization function to execute the log
  4. Replies
    13
    Views
    2,384

    I am trying to write a function will utilize the...

    I am trying to write a function will utilize the (constant, *value, len) as input parameters

    where do I start???
  5. Replies
    13
    Views
    2,384

    the program would watch for RES to change - if it...

    the program would watch for RES to change - if it changes to +2
    - do some calculations
    - pass it as a pointer
    - assign a length to the value and write to some memory address
  6. Replies
    13
    Views
    2,384

    okay, ma fault. how do I initiate the...

    okay, ma fault.

    how do I initiate the dprintfs?? it's a constant that can be passed to the int log ()
  7. Replies
    13
    Views
    2,384

    How to write basic code

    log.c

    #include <types.h>
    #include <log.h>

    int log(int constant,void *value,int len)

    {
    dprintf("log(%d,%x,%d)\n\r",constant,value,len);
    return 0;
Results 1 to 7 of 7