2013-06-11 12:47:29 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<project version= "4" >
<component name= "ChangeListManager" >
2013-06-14 21:18:48 +00:00
<list default= "true" id= "9fad4545-a424-4a82-86dc-76602cf3eef3" name= "Default" comment= "began working on actual code for parsing values from uart not working yet!" >
2013-06-14 13:04:10 +00:00
<change type= "MODIFICATION" beforePath= "$PROJECT_DIR$/displayboard/src/main.c" afterPath= "$PROJECT_DIR$/displayboard/src/main.c" />
2013-06-11 22:30:49 +00:00
<change type= "MODIFICATION" beforePath= "$PROJECT_DIR$/.idea/workspace.xml" afterPath= "$PROJECT_DIR$/.idea/workspace.xml" />
</list>
2013-06-11 12:47:29 +00:00
<ignored path= "bikegenerator.iws" />
<ignored path= ".idea/workspace.xml" />
2013-06-12 13:31:48 +00:00
<file path= "/Makefile" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371032328243" ignored= "false" />
2013-06-14 21:18:48 +00:00
<file path= "/Dummy.txt" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371242759237" ignored= "false" />
<file path= "/main.c" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371243598804" ignored= "false" />
2013-06-13 23:35:59 +00:00
<file path= "/uart.c" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371164805619" ignored= "false" />
2013-06-14 13:04:10 +00:00
<file path= "/a.java" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371206947114" ignored= "false" />
2013-06-14 21:18:48 +00:00
<file path= "/utils.c" changelist= "9fad4545-a424-4a82-86dc-76602cf3eef3" time= "1371240856046" ignored= "false" />
2013-06-11 12:47:29 +00:00
<option name= "TRACKING_ENABLED" value= "true" />
<option name= "SHOW_DIALOG" value= "false" />
<option name= "HIGHLIGHT_CONFLICTS" value= "true" />
<option name= "HIGHLIGHT_NON_ACTIVE_CHANGELIST" value= "false" />
<option name= "LAST_RESOLUTION" value= "IGNORE" />
</component>
<component name= "ChangesViewManager" flattened_view= "true" show_ignored= "false" />
<component name= "CreatePatchCommitExecutor" >
<option name= "PATCH_PATH" value= "" />
</component>
<component name= "DaemonCodeAnalyzer" >
<disable_hints />
</component>
<component name= "DebuggerManager" >
2013-06-14 13:04:10 +00:00
<ui_properties default_suspend_policy= "SuspendAll" default_condition_enabled= "true" />
2013-06-11 12:47:29 +00:00
<breakpoint_any default_suspend_policy= "SuspendAll" default_condition_enabled= "true" >
<breakpoint >
<option name= "NOTIFY_CAUGHT" value= "true" />
<option name= "NOTIFY_UNCAUGHT" value= "true" />
<option name= "ENABLED" value= "false" />
<option name= "LOG_ENABLED" value= "false" />
<option name= "LOG_EXPRESSION_ENABLED" value= "false" />
<option name= "REMOVE_AFTER_HIT" value= "false" />
<option name= "SUSPEND_POLICY" value= "SuspendAll" />
<option name= "SUSPEND" value= "true" />
<option name= "COUNT_FILTER_ENABLED" value= "false" />
<option name= "COUNT_FILTER" value= "0" />
<option name= "CONDITION_ENABLED" value= "true" />
<option name= "CLASS_FILTERS_ENABLED" value= "false" />
<option name= "INSTANCE_FILTERS_ENABLED" value= "false" />
<option name= "CONDITION" value= "" />
<option name= "LOG_MESSAGE" value= "" />
</breakpoint>
<breakpoint >
<option name= "NOTIFY_CAUGHT" value= "true" />
<option name= "NOTIFY_UNCAUGHT" value= "true" />
<option name= "ENABLED" value= "false" />
<option name= "LOG_ENABLED" value= "false" />
<option name= "LOG_EXPRESSION_ENABLED" value= "false" />
<option name= "REMOVE_AFTER_HIT" value= "false" />
<option name= "SUSPEND_POLICY" value= "SuspendAll" />
<option name= "SUSPEND" value= "true" />
<option name= "COUNT_FILTER_ENABLED" value= "false" />
<option name= "COUNT_FILTER" value= "0" />
<option name= "CONDITION_ENABLED" value= "true" />
<option name= "CLASS_FILTERS_ENABLED" value= "false" />
<option name= "INSTANCE_FILTERS_ENABLED" value= "false" />
<option name= "CONDITION" value= "" />
<option name= "LOG_MESSAGE" value= "" />
</breakpoint>
</breakpoint_any>
<breakpoint_rules />
<ui_properties />
</component>
<component name= "ExecutionTargetManager" SELECTED_TARGET= "default_target" />
<component name= "FavoritesManager" >
<favorites_list name= "bikegenerator" />
</component>
<component name= "FileEditorManager" >
<leaf >
2013-06-14 13:04:10 +00:00
<file leaf-file-name= "main.c" pinned= "false" current= "true" current-in-tab= "true" >
<entry file= "file://$PROJECT_DIR$/displayboard/src/main.c" >
2013-06-13 23:35:59 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "198" column= "6" selection-start= "4939" selection-end= "4939" vertical-scroll-proportion= "1.4441965" >
<folding >
<element signature= "n#{ 	// c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } # 0 ; n # s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } # 0 ; n # c o n s t u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; token= "); u a r t _ p u t s ( t o k e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; s w i t c h ( t o k e n c o u n t e r ) { & # 1 0 ; c a s e 0 : & # 1 0 ; voltage = atoi(token); b r e a k ; & # 1 0 ; c a s e 1 : & # 1 0 ; current_in = atoi(token); b r e a k ; & # 1 0 ; c a s e 2 : & # 1 0 ; c u r r e
<element signature= "n#{ / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; }#0;n#static v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; }#0;n#const u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; t o
<element signature= "n#{ u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } # 0 ; n # s t a t i c v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } # 0 ; n # c o n s t u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; token= ");
</folding>
2013-06-13 23:35:59 +00:00
</state>
</provider>
</entry>
</file>
2013-06-14 21:18:48 +00:00
<file leaf-file-name= "main.c" pinned= "false" current= "false" current-in-tab= "false" >
<entry file= "file://$PROJECT_DIR$/powerboard/src/main.c" >
2013-06-14 13:04:10 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "56" column= "0" selection-start= "1379" selection-end= "2104" vertical-scroll-proportion= "0.0" >
2013-06-11 12:47:29 +00:00
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name= "FindManager" >
<FindUsagesManager >
<setting name= "OPEN_NEW_TAB" value= "false" />
</FindUsagesManager>
</component>
2013-06-11 22:30:49 +00:00
<component name= "Git.Settings" >
<option name= "RECENT_GIT_ROOT_PATH" value= "$PROJECT_DIR$/../.." />
</component>
<component name= "GitLogSettings" >
<option name= "myDateState" >
<MyDateState />
</option>
</component>
2013-06-11 12:47:29 +00:00
<component name= "IdeDocumentHistory" >
<option name= "changedFiles" >
<list >
2013-06-12 13:31:48 +00:00
<option value= "$PROJECT_DIR$/powerboard/src/uart.c" />
<option value= "$PROJECT_DIR$/powerboard/src/asciiart.h" />
2013-06-11 12:47:29 +00:00
<option value= "$PROJECT_DIR$/powerboard/src/adc.h" />
<option value= "$PROJECT_DIR$/powerboard/src/adc.c" />
2013-06-12 22:13:53 +00:00
<option value= "$PROJECT_DIR$/powerboard/src/uart.h" />
2013-06-13 23:35:59 +00:00
<option value= "$PROJECT_DIR$/displayboard/src/utils.h" />
<option value= "$PROJECT_DIR$/displayboard/Makefile" />
<option value= "$PROJECT_DIR$/displayboard/src/main.h" />
2013-06-14 13:04:10 +00:00
<option value= "$PROJECT_DIR$/displayboard/src/uart.h" />
<option value= "$PROJECT_DIR$/powerboard/src/main.h" />
<option value= "$PROJECT_DIR$/powerboard/Makefile" />
2013-06-13 23:35:59 +00:00
<option value= "$PROJECT_DIR$/displayboard/src/uart.c" />
2013-06-14 21:18:48 +00:00
<option value= "$PROJECT_DIR$/powerboard/src/utils.c" />
<option value= "$PROJECT_DIR$/powerboard/src/utils.h" />
<option value= "$PROJECT_DIR$/powerboard/src/main.c" />
2013-06-13 23:35:59 +00:00
<option value= "$PROJECT_DIR$/displayboard/src/main.c" />
2013-06-11 12:47:29 +00:00
</list>
</option>
</component>
<component name= "ProjectFrameBounds" >
2013-06-12 22:13:53 +00:00
<option name= "x" value= "-4" />
<option name= "y" value= "25" />
<option name= "width" value= "1608" />
<option name= "height" value= "853" />
2013-06-11 12:47:29 +00:00
</component>
2013-06-14 13:04:10 +00:00
<component name= "ProjectInspectionProfilesVisibleTreeState" >
<entry key= "Project Default" >
<profile-state >
<expanded-state >
<State >
<id />
</State>
<State >
<id > CDI(Contexts and Dependency Injection) issues</id>
</State>
<State >
<id > GeneralJavaScript</id>
</State>
<State >
<id > JavaScript</id>
</State>
<State >
<id > Spring Model</id>
</State>
<State >
<id > Spring SecuritySpring Model</id>
</State>
</expanded-state>
<selected-state >
<State >
<id > Abstraction issues</id>
</State>
</selected-state>
</profile-state>
</entry>
</component>
2013-06-11 22:30:49 +00:00
<component name= "ProjectLevelVcsManager" settingsEditedManually= "true" >
2013-06-11 12:47:29 +00:00
<OptionsSetting value= "true" id= "Add" />
<OptionsSetting value= "true" id= "Remove" />
<OptionsSetting value= "true" id= "Checkout" />
<OptionsSetting value= "true" id= "Update" />
<OptionsSetting value= "true" id= "Status" />
<OptionsSetting value= "true" id= "Edit" />
<ConfirmationsSetting value= "0" id= "Add" />
<ConfirmationsSetting value= "0" id= "Remove" />
</component>
<component name= "ProjectReloadState" >
<option name= "STATE" value= "0" />
</component>
<component name= "ProjectView" >
<navigator currentView= "ProjectPane" proportions= "" version= "1" splitterProportion= "0.5" >
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
</navigator>
<panes >
2013-06-14 13:04:10 +00:00
<pane id= "PackagesPane" />
2013-06-11 12:47:29 +00:00
<pane id= "ProjectPane" >
<subPane >
<PATH >
<PATH_ELEMENT >
<option name= "myItemId" value= "bikegenerator" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
</PATH>
<PATH >
<PATH_ELEMENT >
<option name= "myItemId" value= "bikegenerator" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "powerboard" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH >
<PATH_ELEMENT >
<option name= "myItemId" value= "bikegenerator" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "powerboard" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "src" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH >
<PATH_ELEMENT >
<option name= "myItemId" value= "bikegenerator" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "displayboard" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
2013-06-13 23:35:59 +00:00
<PATH >
<PATH_ELEMENT >
<option name= "myItemId" value= "bikegenerator" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "displayboard" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT >
<option name= "myItemId" value= "src" />
<option name= "myItemType" value= "com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
2013-06-11 12:47:29 +00:00
</subPane>
</pane>
<pane id= "Scope" />
</panes>
</component>
<component name= "PropertiesComponent" >
2013-06-14 13:04:10 +00:00
<property name= "project.structure.last.edited" value= "Modules" />
2013-06-11 12:47:29 +00:00
<property name= "GoToFile.includeJavaFiles" value= "false" />
2013-06-13 23:35:59 +00:00
<property name= "project.structure.proportion" value= "0.0" />
2013-06-11 22:30:49 +00:00
<property name= "options.splitter.main.proportions" value= "0.3" />
<property name= "MemberChooser.sorted" value= "false" />
<property name= "recentsLimit" value= "5" />
2013-06-14 13:04:10 +00:00
<property name= "options.lastSelected" value= "File.Encoding" />
2013-06-13 23:35:59 +00:00
<property name= "last_opened_file_path" value= "$PROJECT_DIR$" />
<property name= "project.structure.side.proportion" value= "0.2" />
2013-06-11 22:30:49 +00:00
<property name= "MemberChooser.copyJavadoc" value= "false" />
2013-06-11 12:47:29 +00:00
<property name= "GoToClass.toSaveIncludeLibraries" value= "false" />
<property name= "WebServerToolWindowFactoryState" value= "false" />
<property name= "restartRequiresConfirmation" value= "true" />
<property name= "MemberChooser.showClasses" value= "true" />
<property name= "GoToClass.includeLibraries" value= "false" />
2013-06-13 23:35:59 +00:00
<property name= "options.searchVisible" value= "true" />
2013-06-14 21:18:48 +00:00
<property name= "options.splitter.details.proportions" value= "0.2" />
2013-06-11 12:47:29 +00:00
</component>
<component name= "RecentsManager" >
2013-06-13 23:35:59 +00:00
<key name= "CopyFile.RECENT_KEYS" >
<recent name= "$PROJECT_DIR$/displayboard" />
</key>
2013-06-11 12:47:29 +00:00
<key name= "MoveFile.RECENT_KEYS" >
<recent name= "$PROJECT_DIR$/powerboard/src" />
</key>
</component>
<component name= "RunManager" >
<configuration default= "true" type= "#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName= "Plugin" >
<module name= "" />
<option name= "VM_PARAMETERS" value= "-Xmx512m -Xms256m -XX:MaxPermSize=250m" />
<option name= "PROGRAM_PARAMETERS" />
<method />
</configuration>
<configuration default= "true" type= "Remote" factoryName= "Remote" >
<option name= "USE_SOCKET_TRANSPORT" value= "true" />
<option name= "SERVER_MODE" value= "false" />
<option name= "SHMEM_ADDRESS" value= "javadebug" />
<option name= "HOST" value= "localhost" />
<option name= "PORT" value= "5005" />
<method />
</configuration>
<configuration default= "true" type= "TestNG" factoryName= "TestNG" >
<extension name= "coverage" enabled= "false" merge= "false" sample_coverage= "true" runner= "idea" />
<module name= "" />
<option name= "ALTERNATIVE_JRE_PATH_ENABLED" value= "false" />
<option name= "ALTERNATIVE_JRE_PATH" />
<option name= "SUITE_NAME" />
<option name= "PACKAGE_NAME" />
<option name= "MAIN_CLASS_NAME" />
<option name= "METHOD_NAME" />
<option name= "GROUP_NAME" />
<option name= "TEST_OBJECT" value= "CLASS" />
<option name= "VM_PARAMETERS" value= "-ea" />
<option name= "PARAMETERS" />
<option name= "WORKING_DIRECTORY" value= "$PROJECT_DIR$" />
<option name= "OUTPUT_DIRECTORY" />
<option name= "ANNOTATION_TYPE" />
<option name= "ENV_VARIABLES" />
<option name= "PASS_PARENT_ENVS" value= "true" />
<option name= "TEST_SEARCH_SCOPE" >
<value defaultName= "moduleWithDependencies" />
</option>
<option name= "USE_DEFAULT_REPORTERS" value= "false" />
<option name= "PROPERTIES_FILE" />
<envs />
<properties />
<listeners />
<method />
</configuration>
2013-06-14 21:18:48 +00:00
<configuration default= "true" type= "Applet" factoryName= "Applet" >
<module name= "" />
<option name= "MAIN_CLASS_NAME" />
<option name= "HTML_FILE_NAME" />
<option name= "HTML_USED" value= "false" />
<option name= "WIDTH" value= "400" />
<option name= "HEIGHT" value= "300" />
<option name= "POLICY_FILE" value= "$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<option name= "VM_PARAMETERS" />
<option name= "ALTERNATIVE_JRE_PATH_ENABLED" value= "false" />
<option name= "ALTERNATIVE_JRE_PATH" />
<method />
</configuration>
2013-06-11 12:47:29 +00:00
<configuration default= "true" type= "Application" factoryName= "Application" >
<extension name= "coverage" enabled= "false" merge= "false" sample_coverage= "true" runner= "idea" />
<option name= "MAIN_CLASS_NAME" />
<option name= "VM_PARAMETERS" />
<option name= "PROGRAM_PARAMETERS" />
<option name= "WORKING_DIRECTORY" value= "$PROJECT_DIR$" />
<option name= "ALTERNATIVE_JRE_PATH_ENABLED" value= "false" />
<option name= "ALTERNATIVE_JRE_PATH" />
<option name= "ENABLE_SWING_INSPECTOR" value= "false" />
<option name= "ENV_VARIABLES" />
<option name= "PASS_PARENT_ENVS" value= "true" />
<module name= "" />
<envs />
<method />
</configuration>
<configuration default= "true" type= "CppRunConfigurationType" factoryName= "Cpp" >
<method />
</configuration>
<configuration default= "true" type= "JUnit" factoryName= "JUnit" >
<extension name= "coverage" enabled= "false" merge= "false" sample_coverage= "true" runner= "idea" />
<module name= "" />
<option name= "ALTERNATIVE_JRE_PATH_ENABLED" value= "false" />
<option name= "ALTERNATIVE_JRE_PATH" />
<option name= "PACKAGE_NAME" />
<option name= "MAIN_CLASS_NAME" />
<option name= "METHOD_NAME" />
<option name= "TEST_OBJECT" value= "class" />
<option name= "VM_PARAMETERS" value= "-ea" />
<option name= "PARAMETERS" />
<option name= "WORKING_DIRECTORY" value= "$PROJECT_DIR$" />
<option name= "ENV_VARIABLES" />
<option name= "PASS_PARENT_ENVS" value= "true" />
<option name= "TEST_SEARCH_SCOPE" >
<value defaultName= "moduleWithDependencies" />
</option>
<envs />
<patterns />
<method />
</configuration>
<list size= "0" />
<configuration name= "<template>" type= "WebApp" default= "true" selected= "false" >
<Host > localhost</Host>
<Port > 5050</Port>
</configuration>
</component>
<component name= "ShelveChangesManager" show_recycled= "false" />
2013-06-11 22:30:49 +00:00
<component name= "SvnConfiguration" maxAnnotateRevisions= "500" myUseAcceleration= "nothing" myAutoUpdateAfterCommit= "false" cleanupOnStartRun= "false" SSL_PROTOCOLS= "all" >
<option name= "USER" value= "" />
<option name= "PASSWORD" value= "" />
<option name= "mySSHConnectionTimeout" value= "30000" />
<option name= "mySSHReadTimeout" value= "30000" />
<option name= "LAST_MERGED_REVISION" />
<option name= "MERGE_DRY_RUN" value= "false" />
<option name= "MERGE_DIFF_USE_ANCESTRY" value= "true" />
<option name= "UPDATE_LOCK_ON_DEMAND" value= "false" />
<option name= "IGNORE_SPACES_IN_MERGE" value= "false" />
<option name= "CHECK_NESTED_FOR_QUICK_MERGE" value= "false" />
<option name= "IGNORE_SPACES_IN_ANNOTATE" value= "true" />
<option name= "SHOW_MERGE_SOURCES_IN_ANNOTATE" value= "true" />
<option name= "FORCE_UPDATE" value= "false" />
<option name= "IGNORE_EXTERNALS" value= "false" />
<myIsUseDefaultProxy > false</myIsUseDefaultProxy>
</component>
2013-06-11 12:47:29 +00:00
<component name= "TaskManager" >
<task active= "true" id= "Default" summary= "Default task" >
<changelist id= "9fad4545-a424-4a82-86dc-76602cf3eef3" name= "Default" comment= "" />
<created > 1370952913198</created>
<updated > 1370952913198</updated>
</task>
2013-06-11 22:31:41 +00:00
<task id= "LOCAL-00001" summary= "- added 3rd party uart lib - added measurements for voltage and current" >
<created > 1370989849092</created>
<updated > 1370989849092</updated>
</task>
2013-06-12 13:31:48 +00:00
<task id= "LOCAL-00002" summary= "added first draft of overvoltage protection by using dump load" >
<created > 1370994654693</created>
<updated > 1370994654693</updated>
</task>
<task id= "LOCAL-00003" summary= "optimisations in adc code" >
<created > 1371043815539</created>
<updated > 1371043815539</updated>
</task>
2013-06-12 22:13:53 +00:00
<task id= "LOCAL-00004" summary= "working, refactured a bit, optimised for size" >
<created > 1371043908804</created>
<updated > 1371043908804</updated>
</task>
2013-06-13 23:35:59 +00:00
<task id= "LOCAL-00005" summary= "bugfixes, live check on avr working for now" >
<created > 1371075233272</created>
<updated > 1371075233272</updated>
</task>
<task id= "LOCAL-00006" summary= "changed resistor values for 7-Seg removed lm371 due to lack of voltage" >
<created > 1371166480748</created>
<updated > 1371166480748</updated>
</task>
<task id= "LOCAL-00007" summary= "changed counter (bugfix) changed baudrate to 19200" >
<created > 1371166541841</created>
<updated > 1371166541841</updated>
</task>
2013-06-14 13:04:10 +00:00
<task id= "LOCAL-00008" summary= "made a first version with 7-seg number output" >
<created > 1371166559819</created>
<updated > 1371166559819</updated>
</task>
<task id= "LOCAL-00009" summary= "minor changes, made counters 8bit" >
<created > 1371206855146</created>
<updated > 1371206855146</updated>
</task>
<task id= "LOCAL-00010" summary= "changed power to 16bit added output of relais states" >
<created > 1371214968413</created>
<updated > 1371214968413</updated>
</task>
<task id= "LOCAL-00011" summary= "removed unnecessary uart1 code" >
<created > 1371215016953</created>
<updated > 1371215016953</updated>
</task>
2013-06-14 21:18:48 +00:00
<task id= "LOCAL-00012" summary= "began working on actual code for parsing values from uart not working yet!" >
<created > 1371215050508</created>
<updated > 1371215050508</updated>
</task>
<task id= "LOCAL-00013" summary= "changed currents to unsigned int and checked while getting these values." >
<created > 1371242761894</created>
<updated > 1371242761894</updated>
</task>
<option name= "localTasksCounter" value= "14" />
2013-06-11 12:47:29 +00:00
<servers />
</component>
<component name= "ToolWindowManager" >
2013-06-12 22:13:53 +00:00
<frame x= "-4" y= "25" width= "1608" height= "853" extended-state= "6" />
2013-06-11 22:30:49 +00:00
<editor active= "false" />
2013-06-11 12:47:29 +00:00
<layout >
2013-06-14 21:18:48 +00:00
<window_info id= "Changes" active= "true" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "true" weight= "0.3252841" sideWeight= "0.5" order= "11" side_tool= "false" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
<window_info id= "Palette" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "3" side_tool= "false" content_ui= "tabs" />
<window_info id= "Ant Build" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.25" sideWeight= "0.5" order= "1" side_tool= "false" content_ui= "tabs" />
2013-06-11 22:30:49 +00:00
<window_info id= "Database" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "6" side_tool= "false" content_ui= "tabs" />
<window_info id= "Debug" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.4" sideWeight= "0.5" order= "4" side_tool= "false" content_ui= "tabs" />
<window_info id= "Event Log" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.32893288" sideWeight= "0.5" order= "8" side_tool= "true" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
<window_info id= "Favorites" active= "false" anchor= "left" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "2" side_tool= "true" content_ui= "tabs" />
2013-06-11 22:30:49 +00:00
<window_info id= "Version Control" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "9" side_tool= "false" content_ui= "tabs" />
<window_info id= "Messages" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.32893288" sideWeight= "0.5" order= "0" side_tool= "false" content_ui= "tabs" />
<window_info id= "CDI" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "4" side_tool= "false" content_ui= "tabs" />
<window_info id= "TODO" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "7" side_tool= "false" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
<window_info id= "Structure" active= "false" anchor= "left" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.25" sideWeight= "0.5" order= "1" side_tool= "false" content_ui= "tabs" />
2013-06-11 22:30:49 +00:00
<window_info id= "Maven Projects" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "5" side_tool= "false" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
<window_info id= "Commander" active= "false" anchor= "right" auto_hide= "false" internal_type= "SLIDING" type= "SLIDING" visible= "false" weight= "0.4" sideWeight= "0.5" order= "0" side_tool= "false" content_ui= "tabs" />
2013-06-11 22:30:49 +00:00
<window_info id= "Application Servers" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "10" side_tool= "false" content_ui= "tabs" />
2013-06-14 21:18:48 +00:00
<window_info id= "Project" active= "false" anchor= "left" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "true" weight= "0.3011583" sideWeight= "0.67471594" order= "0" side_tool= "false" content_ui= "combo" />
2013-06-11 22:30:49 +00:00
<window_info id= "Run" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "3" side_tool= "false" content_ui= "tabs" />
<window_info id= "Cvs" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.25" sideWeight= "0.5" order= "5" side_tool= "false" content_ui= "tabs" />
<window_info id= "Message" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "1" side_tool= "false" content_ui= "tabs" />
<window_info id= "Find" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.33" sideWeight= "0.5" order= "2" side_tool= "false" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
<window_info id= "Hierarchy" active= "false" anchor= "right" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.25" sideWeight= "0.5" order= "2" side_tool= "false" content_ui= "combo" />
2013-06-11 22:30:49 +00:00
<window_info id= "Inspection" active= "false" anchor= "bottom" auto_hide= "false" internal_type= "DOCKED" type= "DOCKED" visible= "false" weight= "0.4" sideWeight= "0.5" order= "6" side_tool= "false" content_ui= "tabs" />
2013-06-11 12:47:29 +00:00
</layout>
</component>
<component name= "VcsContentAnnotationSettings" >
<option name= "myLimit" value= "2678400000" />
</component>
<component name= "VcsManagerConfiguration" >
<option name= "OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value= "true" />
2013-06-12 13:31:48 +00:00
<option name= "CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value= "false" />
<option name= "CHECK_NEW_TODO" value= "false" />
2013-06-11 12:47:29 +00:00
<option name= "myTodoPanelSettings" >
<value >
<are-packages-shown value= "false" />
<are-modules-shown value= "false" />
<flatten-packages value= "false" />
<is-autoscroll-to-source value= "false" />
</value>
</option>
<option name= "PERFORM_UPDATE_IN_BACKGROUND" value= "true" />
<option name= "PERFORM_COMMIT_IN_BACKGROUND" value= "true" />
<option name= "PERFORM_EDIT_IN_BACKGROUND" value= "true" />
<option name= "PERFORM_CHECKOUT_IN_BACKGROUND" value= "true" />
<option name= "PERFORM_ADD_REMOVE_IN_BACKGROUND" value= "true" />
<option name= "PERFORM_ROLLBACK_IN_BACKGROUND" value= "false" />
<option name= "CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value= "false" />
<option name= "CHANGED_ON_SERVER_INTERVAL" value= "60" />
<option name= "SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value= "true" />
<option name= "CHECK_COMMIT_MESSAGE_SPELLING" value= "true" />
<option name= "DEFAULT_PATCH_EXTENSION" value= "patch" />
<option name= "SHORT_DIFF_HORIZONTALLY" value= "true" />
<option name= "SHORT_DIFF_EXTRA_LINES" value= "2" />
<option name= "SOFT_WRAPS_IN_SHORT_DIFF" value= "true" />
<option name= "INCLUDE_TEXT_INTO_PATCH" value= "false" />
<option name= "INCLUDE_TEXT_INTO_SHELF" value= "false" />
<option name= "SHOW_FILE_HISTORY_DETAILS" value= "true" />
<option name= "SHOW_VCS_ERROR_NOTIFICATIONS" value= "true" />
<option name= "SHOW_DIRTY_RECURSIVELY" value= "false" />
<option name= "LIMIT_HISTORY" value= "true" />
<option name= "MAXIMUM_HISTORY_ROWS" value= "1000" />
<option name= "UPDATE_FILTER_SCOPE_NAME" />
<option name= "USE_COMMIT_MESSAGE_MARGIN" value= "false" />
<option name= "COMMIT_MESSAGE_MARGIN_SIZE" value= "72" />
<option name= "WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value= "false" />
<option name= "FORCE_NON_EMPTY_COMMENT" value= "false" />
<option name= "CLEAR_INITIAL_COMMIT_MESSAGE" value= "false" />
2013-06-14 21:18:48 +00:00
<option name= "LAST_COMMIT_MESSAGE" value= "changed currents to unsigned int and checked while getting these values." />
2013-06-11 12:47:29 +00:00
<option name= "MAKE_NEW_CHANGELIST_ACTIVE" value= "false" />
<option name= "OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value= "false" />
<option name= "CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value= "false" />
<option name= "REFORMAT_BEFORE_PROJECT_COMMIT" value= "false" />
<option name= "REFORMAT_BEFORE_FILE_COMMIT" value= "false" />
<option name= "FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value= "0.8" />
<option name= "FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value= "0.5" />
<option name= "ACTIVE_VCS_NAME" />
<option name= "UPDATE_GROUP_BY_PACKAGES" value= "false" />
<option name= "UPDATE_GROUP_BY_CHANGELIST" value= "false" />
<option name= "UPDATE_FILTER_BY_SCOPE" value= "false" />
<option name= "SHOW_FILE_HISTORY_AS_TREE" value= "false" />
<option name= "FILE_HISTORY_SPLITTER_PROPORTION" value= "0.6" />
2013-06-11 22:31:41 +00:00
<MESSAGE value= "- added 3rd party uart lib - added measurements for voltage and current" />
2013-06-12 13:31:48 +00:00
<MESSAGE value= "added first draft of overvoltage protection by using dump load" />
<MESSAGE value= "optimisations in adc code" />
2013-06-12 22:13:53 +00:00
<MESSAGE value= "working, refactured a bit, optimised for size" />
2013-06-13 23:35:59 +00:00
<MESSAGE value= "bugfixes, live check on avr working for now" />
<MESSAGE value= "changed resistor values for 7-Seg removed lm371 due to lack of voltage" />
<MESSAGE value= "changed counter (bugfix) changed baudrate to 19200" />
2013-06-14 13:04:10 +00:00
<MESSAGE value= "made a first version with 7-seg number output" />
<MESSAGE value= "minor changes, made counters 8bit" />
<MESSAGE value= "changed power to 16bit added output of relais states" />
<MESSAGE value= "removed unnecessary uart1 code" />
2013-06-14 21:18:48 +00:00
<MESSAGE value= "began working on actual code for parsing values from uart not working yet!" />
<MESSAGE value= "changed currents to unsigned int and checked while getting these values." />
2013-06-11 12:47:29 +00:00
</component>
<component name= "XDebuggerManager" >
<breakpoint-manager />
</component>
<component name= "antWorkspaceConfiguration" >
<option name= "IS_AUTOSCROLL_TO_SOURCE" value= "false" />
<option name= "FILTER_TARGETS" value= "false" />
</component>
<component name= "editorHistoryManager" >
2013-06-13 23:35:59 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/adc.c" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-13 23:35:59 +00:00
<state line= "8" column= "39" selection-start= "169" selection-end= "169" vertical-scroll-proportion= "0.1843318" />
2013-06-11 12:47:29 +00:00
</provider>
</entry>
2013-06-13 23:35:59 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/adc.h" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-13 23:35:59 +00:00
<state line= "4" column= "11" selection-start= "73" selection-end= "73" vertical-scroll-proportion= "0.0921659" />
2013-06-11 12:47:29 +00:00
</provider>
</entry>
2013-06-13 23:35:59 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/uart.c" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-13 23:35:59 +00:00
<state line= "80" column= "76" selection-start= "2948" selection-end= "2948" vertical-scroll-proportion= "-1.9201807" />
2013-06-11 12:47:29 +00:00
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/uart.h" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "176" column= "0" selection-start= "6326" selection-end= "6326" vertical-scroll-proportion= "0.7784343" />
2013-06-11 12:47:29 +00:00
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/src/utils.h" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "4" column= "45" selection-start= "71" selection-end= "112" vertical-scroll-proportion= "0.08836524" />
2013-06-12 13:31:48 +00:00
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/src/utils.c" >
2013-06-12 13:31:48 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "30" column= "22" selection-start= "656" selection-end= "673" vertical-scroll-proportion= "0.66273934" />
2013-06-11 12:47:29 +00:00
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/Makefile" >
2013-06-13 23:35:59 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "62" column= "28" selection-start= "1637" selection-end= "1637" vertical-scroll-proportion= "0.33407572" />
2013-06-13 23:35:59 +00:00
</provider>
</entry>
2013-06-12 22:13:53 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/main.h" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "23" column= "31" selection-start= "648" selection-end= "648" vertical-scroll-proportion= "0.66592425" >
2013-06-11 22:30:49 +00:00
<folding />
</state>
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/Makefile" >
2013-06-11 22:30:49 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 13:04:10 +00:00
<state line= "21" column= "22" selection-start= "465" selection-end= "465" vertical-scroll-proportion= "-0.70469797" />
2013-06-11 22:30:49 +00:00
</provider>
</entry>
2013-06-14 21:18:48 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/src/uart.h" >
<provider selected= "true" editor-type-id= "text-editor" >
<state line= "141" column= "11" selection-start= "5298" selection-end= "5298" vertical-scroll-proportion= "-0.40939596" />
</provider>
</entry>
<entry file= "file://$PROJECT_DIR$/powerboard/src/utils.h" >
<provider selected= "true" editor-type-id= "text-editor" >
<state line= "5" column= "44" selection-start= "154" selection-end= "154" vertical-scroll-proportion= "0.110456556" >
<folding />
</state>
</provider>
</entry>
<entry file= "file://$PROJECT_DIR$/powerboard/src/utils.c" >
2013-06-11 22:30:49 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "26" column= "0" selection-start= "548" selection-end= "548" vertical-scroll-proportion= "0.5743741" >
2013-06-11 22:30:49 +00:00
<folding />
</state>
</provider>
</entry>
2013-06-13 23:35:59 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/src/main.h" >
2013-06-11 22:30:49 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "6" column= "20" selection-start= "117" selection-end= "125" vertical-scroll-proportion= "0.13254787" >
2013-06-12 13:31:48 +00:00
<folding />
2013-06-11 22:30:49 +00:00
</state>
</provider>
</entry>
2013-06-14 13:04:10 +00:00
<entry file= "file://$PROJECT_DIR$/displayboard/src/uart.c" >
2013-06-11 22:30:49 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "479" column= "0" selection-start= "15703" selection-end= "15703" vertical-scroll-proportion= "1.5405406" >
2013-06-11 12:47:29 +00:00
<folding />
</state>
</provider>
</entry>
2013-06-14 21:18:48 +00:00
<entry file= "file://$PROJECT_DIR$/powerboard/src/main.c" >
2013-06-11 12:47:29 +00:00
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "56" column= "0" selection-start= "1379" selection-end= "2104" vertical-scroll-proportion= "0.0" >
2013-06-14 13:04:10 +00:00
<folding />
2013-06-13 23:35:59 +00:00
</state>
</provider>
</entry>
<entry file= "file://$PROJECT_DIR$/displayboard/src/main.c" >
<provider selected= "true" editor-type-id= "text-editor" >
2013-06-14 21:18:48 +00:00
<state line= "198" column= "6" selection-start= "4939" selection-end= "4939" vertical-scroll-proportion= "1.4441965" >
<folding >
<element signature= "n#{ 	// c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } # 0 ; n # s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } # 0 ; n # c o n s t u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; token= "); u a r t _ p u t s ( t o k e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; s w i t c h ( t o k e n c o u n t e r ) { & # 1 0 ; c a s e 0 : & # 1 0 ; voltage = atoi(token); b r e a k ; & # 1 0 ; c a s e 1 : & # 1 0 ; current_in = atoi(token); b r e a k ; & # 1 0 ; c a s e 2 : & # 1 0 ; c u r r e n t _ o
<element signature= "n#{ / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; }#0;n#static v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; }#0;n#const u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; token=
<element signature= "n#{ u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } # 0 ; n # s t a t i c v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } # 0 ; n # c o n s t u i n t 8 _ t d i g i t _ t r a n s l a t e [ 1 0 ] = { & # 1 0 ; 6 3 , 6 , 9 1 , 7 9 , 1 0 2 , 1 0 9 , 1 2 5 , 7 , 1 2 7 , 1 1 1 & # 1 0 ; } ; & # 1 0 ; & # 1 0 ; & # 1 0 ; s t a t i c v o i d t i m e r _ i n i t ( v o i d ) { & # 1 0 ; & # 9 ; / / c l o c k i s 8 M H z & # 1 0 ; & # 9 ; T C C R 1 B | = _ B V ( W G M 1 2 ) | _ B V ( C S 1 1 ) | _ B V ( C S 1 0 ) ; / / C T C M o d e f o r T i m e r 1 ( 1 6 B i t ) w i t h p r e s c a l e o f 6 4 & # 1 0 ; & # 9 ; OCR1A = 250; / / 5 0 0 H z & # 1 0 ; & # 9 ; TIMSK = _BV(OCIE1A); 	sei();	// e n a b l e i n t e r r u p t s & # 1 0 ; } & # 1 0 ; & # 1 0 ; s t a t i c v o i d p o r t s _ i n i t ( v o i d ) { & # 1 0 ; / / m a k e c o l u m n / d i g i t d r i v e r p i n s t o o u t p u t & # 1 0 ; L E D D I G _ D D R | = _ B V ( L E D S _ M I D 1 ) | _ B V ( L E D S _ M I D 2 ) | _ B V ( L E D S _ L O A D ) | _ B V ( L E D S _ G E N ) ; & # 1 0 ; S E V E N S E G D I G _ D D R | = _ B V ( D I G 0 ) | _ B V ( D I G 1 ) | _ B V ( D I G 2 ) | _ B V ( D I G 3 ) | _ B V ( D I G 4 ) | _ B V ( D I G 5 ) ; & # 1 0 ; & # 1 0 ; / / m a k e d a t a p o r t s t o o u t p u t & # 1 0 ; LED_DDR = 0xff; SEVENSEG_DDR = 0xff; SEVENSEGDIG_PORT = 0; SEVENSEG_PORT = 0; LEDDIG_PORT = 0; LED_PORT = 0; } static v o i d p r i n t _ s e v e n s e g ( u i n t 8 _ t d i s p l a y , u i n t 1 6 _ t v a l u e ) { & # 1 0 ; u i n t 8 _ t d [ 3 ] ; & # 1 0 ; d [ 2 ] = ( v a l u e % 1 0 0 0 / 1 0 0 ) ; & # 1 0 ; d [ 1 ] = ( v a l u e % 1 0 0 / 1 0 ) ; & # 1 0 ; d [ 0 ] = ( v a l u e % 1 0 ) ; & # 1 0 ; & # 1 0 ; i f ( display = = 0 ) { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } e l s e { & # 1 0 ; f o r ( u i n t 8 _ t i = 0; i & l t ; 3 ; i + + ) { & # 1 0 ; d i g i t b u f f e r [ i + 3 ] = d i g i t _ t r a n s l a t e [ d [ i ] ] ; & # 1 0 ; } & # 1 0 ; } & # 1 0 ; } & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; v o i d p r e t t y _ p r i n t _ a l l _ v a l u e s ( v o i d ) { & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; V o l t a g e : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( v o l t a g e ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m V \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; L o a d : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ o u t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ l o a d ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; G e n e r a t o r : & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( c u r r e n t _ i n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; m A & q u o t ; ) ; & # 1 0 ; u a r t _ p r i n t _ u i n t 1 6 ( p o w e r _ g e n ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; W \ r \ n & q u o t ; ) ; & # 1 0 ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; s w i t c h e s ( l o a d , d u m p , g e n ) : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + l o a d s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + d u m p s w ) ; & # 1 0 ; u a r t _ p u t c ( ' , ' ) ; & # 1 0 ; u a r t _ p u t c ( 4 8 + g e n s w ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; } & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; v o i d p r o c e s s _ c o m m a n d ( ) { & # 1 0 ; i f ( s t r s t r ( c o m m a n d _ i n , & q u o t ; A & q u o t ; ) ! = N U L L ) { & # 1 0 ; / / w e h a v e a n A a n d B ( f r o m c h e c k i n w o r k _ u a r t ( ) & # 1 0 ; / / s o o u r m e s s a g e s h o u l d b e c o m p l e t e a n d c o n s i s t o f : & # 1 0 ; / / A $ v o l t a g e , $ c u r r e n t _ i n , $ c u r r e n t _ o u t , $ p o w e r _ i n , $ p o w e r _ o u t , l o a d s w , d u m p s w , g e n s w \ n & # 1 0 ; & # 1 0 ; / / A 1 2 . 5 , 6 5 4 6 4 , 0 0 0 0 0 , 0 0 0 0 0 , 0 0 0 0 0 , 1 , 0 , 1 B & # 1 0 ; & # 1 0 ; c h a r * t o k e n ; & # 1 0 ; u i n t 8 _ t tokencounter = 0; c h a r * start = strrchr(command_in, ' A ' ) ; & # 1 0 ; & # 1 0 ; / / r e m o v e f i r s t ( B i s i g n o r e d b y a t o i ) & # 1 0 ; s t a r t + + ; & # 1 0 ; & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; f r o m s t a r t : & q u o t ; ) ; & # 1 0 ; u a r t _ p u t s ( s t a r t ) ; & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; \ r \ n & q u o t ; ) ; & # 1 0 ; # e n d i f & # 1 0 ; & # 1 0 ; token = strtok(start, & q u o t ; , & q u o t ; ) ; & # 1 0 ; & # 1 0 ; w h i l e ( t o k e n ) { & # 1 0 ; # i f d e f D E B U G & # 1 0 ; u a r t _ p u t s _ P ( & q u o t ; token= "); u a r
</folding>
2013-06-11 12:47:29 +00:00
</state>
</provider>
</entry>
</component>
2013-06-13 23:35:59 +00:00
<component name= "masterDetails" >
<states >
<state key= "ArtifactsStructureConfigurable.UI" >
<settings >
<artifact-editor />
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key= "FacetStructureConfigurable.UI" >
<settings >
<last-edited > No facets are configured</last-edited>
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key= "GlobalLibrariesConfigurable.UI" >
<settings >
<last-edited > Node.js v0.8.17 Core Modules</last-edited>
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key= "JdkListConfigurable.UI" >
<settings >
<last-edited > 1.6</last-edited>
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key= "ModuleStructureConfigurable.UI" >
<settings >
2013-06-14 13:04:10 +00:00
<last-edited > displayboard</last-edited>
2013-06-13 23:35:59 +00:00
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
<option value= "0.5" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key= "ProjectLibrariesConfigurable.UI" >
<settings >
<splitter-proportions >
<option name= "proportions" >
<list >
<option value= "0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
2013-06-11 12:47:29 +00:00
</project>