EV Logger
A MSP430 based datalogger for an electric vehicle
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
system.h
Go to the documentation of this file.
1 
11 #ifndef __SYSTEM_H__
12 #define __SYSTEM_H__
13 
14 #include <stdio.h>
15 #include <msp430.h>
16 #include <msp430f5529.h>
17 #include <legacymsp430.h>
18 #include "typedefs.h"
19 
23 typedef uint32_t clock_time_t;
24 
25 void clock_init(void);
26 void sys_clock_init(void);
28 void _delay_ms(uint32_t delay);
29 
30 #endif /* __SYSTEM_H__ */
31 
void sys_clock_init(void)
Configure the system core clock to provide a stable clock for the CPU.
Definition: system.c:58
clock_time_t clock_time(void)
Return the current system time.
Definition: system.c:115
void clock_init(void)
Use timer A0 to set up a system clock ticking at 1ms intervals.
Definition: system.c:31
uint32_t clock_time_t
Define a type to hold a system clock time.
Definition: system.h:23
void _delay_ms(clock_time_t delay)
Delay for the provided number of milliseconds.
Definition: system.c:126
Standard data type shorthand defined as with avr-libc.