Stuff not working

This commit is contained in:
Mark Qvist 2014-04-07 01:15:52 +02:00
parent e5513801f6
commit c12cd16bd9
5 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@
#define CONFIG_AFSK_RXTIMEOUT 0 // How long a read operation from the modem #define CONFIG_AFSK_RXTIMEOUT 0 // How long a read operation from the modem
// will wait for data before timing out. // will wait for data before timing out.
#define CONFIG_AFSK_PREAMBLE_LEN 250UL // The length of the packet preamble in milliseconds #define CONFIG_AFSK_PREAMBLE_LEN 500UL // The length of the packet preamble in milliseconds
#define CONFIG_AFSK_TRAILER_LEN 100UL // The length of the packet tail in milliseconds #define CONFIG_AFSK_TRAILER_LEN 100UL // The length of the packet tail in milliseconds
#endif #endif

View File

@ -4,7 +4,7 @@
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
#include <cpu/irq.h> // Interrupt functionality from BertOS #include <cpu/irq.h> // Interrupt functionality from BertOS
#include <cfg/debug.h> // Debug configuration from BertOS #include "cfg/debug.h" // Debug configuration from BertOS
#include <drv/ser.h> // Serial driver from BertOS #include <drv/ser.h> // Serial driver from BertOS
#include <drv/timer.h> // Timer driver from BertOS #include <drv/timer.h> // Timer driver from BertOS
@ -101,6 +101,7 @@ int main(void)
// and the byte is not a "transmit" (newline) character, // and the byte is not a "transmit" (newline) character,
// we should store it for transmission. // we should store it for transmission.
if ((serialLen < MP1_MAX_FRAME_LENGTH) && (sbyte != 138)) { if ((serialLen < MP1_MAX_FRAME_LENGTH) && (sbyte != 138)) {
kprintf("%d\n", sbyte);
// Put the read byte into the buffer; // Put the read byte into the buffer;
serialBuffer[serialLen] = sbyte; serialBuffer[serialLen] = sbyte;
// Increment the read length counter // Increment the read length counter

View File

@ -45,8 +45,8 @@ void mp1Poll(MP1 *mp1) {
} else { } else {
// Checksum was incorrect // Checksum was incorrect
//mp1Decode(mp1); //mp1Decode(mp1);
//kprintf("Incorrect checksum. Found %d.\n", mp1->buffer[mp1->packetLength]); kprintf("Incorrect checksum. Found %d, ", mp1->buffer[mp1->packetLength]);
//kprintf("should be %d", mp1->checksum_in); kprintf("should be %d\n", mp1->checksum_in);
} }
} }
// If the above is not the case, this must be the // If the above is not the case, this must be the

View File

@ -49,7 +49,7 @@
* Baudrate for the debug console. * Baudrate for the debug console.
* $WIZ$ type = "int"; min = 300 * $WIZ$ type = "int"; min = 300
*/ */
#define CONFIG_KDEBUG_BAUDRATE 115200UL #define CONFIG_KDEBUG_BAUDRATE 57600UL
/** /**
* Clock source for the UART module. You need to write the code to reprogram the respective clock at the required frequency in your project before calling kdbg_init(). * Clock source for the UART module. You need to write the code to reprogram the respective clock at the required frequency in your project before calling kdbg_init().

View File

@ -1,2 +1,2 @@
#define VERS_BUILD 387 #define VERS_BUILD 402
#define VERS_HOST "vixen" #define VERS_HOST "vixen"