• AVR Freaks

Hot!LPC USB Dev Board Q

Author
mpgmike
Super Member
  • Total Posts : 450
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
2020/07/02 06:15:07 (permalink)
0

LPC USB Dev Board Q

I fought with HIDmaker software, next I fought with Microchip's mla USB code. Bought the Low Pin Count USB Development Kit (DM164127-2) which works with the PIC18F14K50 and PIC16F1459. I'm using MPLABX v5.35, XC8 v2.20, Windows 10 Pro (not that I think that much matters).
I decided it might be time for me to understand USB. By my side are "USB Complete", by Jan Axelson, and "USB Design by Example", by John Hyde. I'm trying to match up what's in the book(s) to working Microchip mla USB code. I am dissecting the Low Pin Count Exmple code from the mla (v2018_11_26). Here's my glitch; in main.c:


MAIN_RETURN main(void)
{
SYSTEM_Initialize(SYSTEM_STATE_USB_START);
USBDeviceInit();
USBDeviceAttach();
while(1)
{
SYSTEM_Tasks();

 
there is a call for SYSTEM_Tasks();. There is a mention in system.h as follows:

/*********************************************************************
* Function: void SYSTEM_Tasks(void)
*
* Overview: Runs system level tasks that keep the system running
*
* PreCondition: System has been initalized with SYSTEM_Initialize()
*
* Input: None
*
* Output: None
*
********************************************************************/
//void SYSTEM_Tasks(void);
#define SYSTEM_Tasks()
#endif //SYSTEM_H

Nowhere else in any of the .c or .h files can I find SYSTEM_Tasks(); What does it do??

I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
#1

2 Replies Related Threads

    mpgmike
    Super Member
    • Total Posts : 450
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: LPC USB Dev Board Q 2020/07/08 13:55:19 (permalink)
    0
    I commented it out in the main.c file & I still have USB connection working the same.  I guess it doesn't do anything after all.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #2
    mpgmike
    Super Member
    • Total Posts : 450
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: LPC USB Dev Board Q 2020/07/08 13:55:30 (permalink)
    0
    Oops, double post (lousy internet failed to inform me it posted the first click).
    post edited by mpgmike - 2020/07/08 13:56:33

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5