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...
Type: Posts; User: tingting
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...
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);...
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
I am trying to write a function will utilize the (constant, *value, len) as input parameters
where do I start???
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
okay, ma fault.
how do I initiate the dprintfs?? it's a constant that can be passed to the int log ()
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;