Updated Benito project -- added hardware interrupt and software buffering for serial data reception to prevent missed characters, condensed pulse generation counters into a struct for clarity.
Added check to CDC_Device_BytesReceived() to ensure 0 is returned when device is not enumerated to a host. Move AVRISP project's V2Protocol_DelayMS() function to be static inline, as it is now very minimal. Added extra project doxygen documentation.
This commit is contained in:
parent
f070902bdb
commit
6d1adf7339
14 changed files with 318 additions and 53 deletions
|
@ -48,11 +48,22 @@
|
|||
#include "V2ProtocolParams.h"
|
||||
|
||||
/* Macros: */
|
||||
/** Total number of allowable ISP programming speeds supported by the device */
|
||||
#define TOTAL_PROGRAMMING_SPEEDS 7
|
||||
|
||||
/** Timeout in milliseconds of target busy-wait loops waiting for a command to complete */
|
||||
#define TARGET_BUSY_TIMEOUT_MS 150
|
||||
|
||||
|
||||
/* External Variables: */
|
||||
extern uint32_t CurrentAddress;
|
||||
|
||||
/* Inline Functions: */
|
||||
static inline void V2Protocol_DelayMS(uint8_t MS)
|
||||
{
|
||||
TCNT0 = 0;
|
||||
while (TCNT0 < MS);
|
||||
}
|
||||
|
||||
/* Function Prototypes: */
|
||||
uint8_t V2Protocol_GetSPIPrescalerMask(void);
|
||||
void V2Protocol_ChangeTargetResetLine(bool ResetTarget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue