app_preload/main.c File Reference

#include "sceptre.h"
#include <time.h>
#include <string.h>
#include <stdio.h>
#include "..\core\filesystem\sdcard_driver.h"
#include "..\core\filesystem\sdcard.h"
#include "..\core\thermometer\ds18b20.h"

Go to the source code of this file.

Defines

#define LED_PIN   30
#define LED_ON   IOSET1 = (1<<LED_PIN)
#define LED_OFF   IOCLR1 = (1<<LED_PIN)

Functions

void main_send_string (const char *p_str)
void main_10ms_timer (void)
FIL * main_file_open (FIL *p_file, const char *p_name, uint8_t flags)
bool_t main_file_exist (const char *p_name)
void main_log_data (const char *p_name_1, const char *p_name_2)
void led_init (void)
void led_tick (void)
uint8_t Buffer[1024] __attribute__ ((aligned(4)))
void put_dump (FIL *p_file, const uint8_t *p_data, uint32_t ofs, int cnt)
void main_sys_info (char *p_name)
void main_disk_info (char *p_name)
int main (void)

Variables

const char * p_hello = "Sceptre rulez!\n"
const char * p_version = "V2010.01.31\n\n"
const char * p_name1 = "a_log.txt"
const char * p_name2 = "t_log.txt"
const char * p_bluetooth_test = "test_bt.pls"
rtc_time_t rtc
char bt_name [16+1]

Detailed Description

Sceptre main.

Definition in file main.c.


Function Documentation

int main ( void   ) 

Todo:
Move device_init to device drivers with check for multiple initializations.

Definition at line 321 of file main.c.

bool_t main_file_exist ( const char *  p_name  ) 
Todo:
Implement real INI file system.

Definition at line 141 of file main.c.

FIL * main_file_open ( FIL *  p_file,
const char *  p_name,
uint8_t  flags 
)

Todo:
Figure out why it crashes here.

Definition at line 128 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2