Search:

Type: Posts; User: grumpy

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,174

    Oh, for Pete's sake. I gave one approach...

    Oh, for Pete's sake.

    I gave one approach (calling a function that returns a pointer) in Post #4 of this thread we're in which you clearly haven't even tried to understand.

    If you don't want to...
  2. Replies
    5
    Views
    1,174

    Then do something like this /* ...

    Then do something like this



    /* declarations of CAN_A and CAN_B must be global, so they exist outside readPort() */

    struct FLEXCAN2_tag *readPort(Port Number)
    {
    switch (Number)
    {
  3. Replies
    5
    Views
    1,174

    Remove the const qualifier and/or return the...

    Remove the const qualifier and/or return the required value from the function.

    There are other possibilities (moving it to other places in the definition) but you haven't given enough information...
Results 1 to 3 of 3