Enhancement #798

get all the library inti's and functions to behave

Added by Brad Neuman 9 months ago. Updated 9 months ago.

Status:Assigned Start:10/21/2009
Priority:High Due date:
Assigned to:Brad Neuman % Done:

30%

Category:Library
Target version:-
Votes: 0

Description

multiple init calls should not cause undefined behavior


Related issues

related to Colony - Bug #562: Fix init functions Assigned 09/04/2009

History

Updated by Brad Neuman 9 months ago

  • % Done changed from 0 to 30

Still need to deal with orbs, they are complicated because there are multiple init states.

Also, need to figure out a consistent way to deal with funciton like usb_getc which return a char

Updated by Brad Neuman 9 months ago

not doing lcd, since we don't have one

Updated by Brad Neuman 9 months ago

can't fix:
encoder_get_v

Also, need to get orbs working and then have buzzer / orbs fail if hte other is inited

Updated by Brad Neuman 9 months ago

cant do analog8 or analog10 either, need to think about these

Updated by David Schultz 9 months ago

Multiple xbee init works if you call terminate at end of use before initing again. Otherwise it will get stuck in an infinite loop waiting for a response that won't come. We should probably make the call return an error if it waits for over a second with no response.

What's the problem with usb_getc?

Updated by David Schultz 9 months ago

  • Category set to Library

Also available in: Atom PDF