DMESG properly initialized. #45

This commit is contained in:
Travis Goodspeed 2017-11-18 12:46:03 -05:00
parent 0d7bfc8db4
commit 54730adf2b
2 changed files with 11 additions and 2 deletions

View File

@ -2,4 +2,10 @@
\brief Kernel debug message buffer.
*/
//! Clears the dmesg buffer.
void dmesg_clear();
//! I ain't never initialized a buffer that didn't need initializin'.
void dmesg_init();

View File

@ -7,6 +7,7 @@
#include <msp430.h>
#include <string.h>
#include <stdio.h>
#include "lcd.h"
#include "lcdtext.h"
@ -15,6 +16,7 @@
#include "apps.h"
#include "sidebutton.h"
#include "radio.h"
#include "dmesg.h"
//! Initialize the XT1 crystal, and stabilize it.
void xtal_init(){
@ -73,11 +75,12 @@ int post(){
//! Main method.
int main(void) {
printf("main()\n");
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
//Initialize the various modules.
dmesg_init();
printf("main()\n");
lcd_init();
lcd_zero();