comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 485:e83f883c96b2

quick fix for wrong wait routines
author heinrichsweikamp
date Sat, 15 Oct 2011 13:45:15 +0200
parents 65850b513f1b
children 4c93c2154f18
comparison
equal deleted inserted replaced
484:65850b513f1b 485:e83f883c96b2
33 ;#DEFINE FRENCH ; Use french_text.asm 33 ;#DEFINE FRENCH ; Use french_text.asm
34 ;#DEFINE GERMAN ; Use german_text.asm 34 ;#DEFINE GERMAN ; Use german_text.asm
35 ;#DEFINE SPANISH ; Use spanish_text.asm 35 ;#DEFINE SPANISH ; Use spanish_text.asm
36 ;#DEFINE RUSSIAN ; Use russian_text.asm 36 ;#DEFINE RUSSIAN ; Use russian_text.asm
37 37
38 ;#DEFINE __DEBUG ; 38 #DEFINE __DEBUG ;
39 ;#DEFINE DISPLAY_TEST ; Enables Display-Test in RAW data menu 39 ;#DEFINE DISPLAY_TEST ; Enables Display-Test in RAW data menu
40 40
41 #DEFINE logbook_profile_version 0x21 ; Do not touch! 41 #DEFINE logbook_profile_version 0x21 ; Do not touch!
42 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce 42 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce
43 43
46 ; Standard 16MHz mode 46 ; Standard 16MHz mode
47 ; #DEFINE SPBRG_VALUE d'34' 47 ; #DEFINE SPBRG_VALUE d'34'
48 ; #DEFINE OSCCON_VALUE b'01101100' ; 4MHz (x4 PLL) 48 ; #DEFINE OSCCON_VALUE b'01101100' ; 4MHz (x4 PLL)
49 ; #DEFINE SSPADD_VALUE d'8' ; 400kHz I2C clock @ 16MHz Fcy 49 ; #DEFINE SSPADD_VALUE d'8' ; 400kHz I2C clock @ 16MHz Fcy
50 ; #DEFINE T0CON_VALUE b'00011111' ; Timer0 50 ; #DEFINE T0CON_VALUE b'00011111' ; Timer0
51 ; #DEFINE SPEED_16MHz
51 ; Experimental 32MHz mode 52 ; Experimental 32MHz mode
52 #DEFINE SPBRG_VALUE d'68' 53 #DEFINE SPBRG_VALUE d'68'
53 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL) 54 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL)
54 #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy 55 #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy
55 #DEFINE T0CON_VALUE b'00010000' ; Timer0 56 #DEFINE T0CON_VALUE b'00010000' ; Timer0
57 #DEFINE SPEED_32MHz
56 58
57 #DEFINE FT_SMALL .0 59 #DEFINE FT_SMALL .0
58 #DEFINE FT_MEDIUM .1 60 #DEFINE FT_MEDIUM .1
59 #DEFINE FT_LARGE .2 61 #DEFINE FT_LARGE .2
60 62
108 CONFIG LVP = OFF ;Single-Supply ICSP disabled 110 CONFIG LVP = OFF ;Single-Supply ICSP disabled
109 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset 111 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset
110 112
111 ;============================================================================= 113 ;=============================================================================
112 114
113 #include "../OSTC_code_c_part2/shared_definitions.h" 115 ;#include "../OSTC_code_c_part2/shared_definitions.h"
114 ;#include "ostc2_code/code_part1/OSTC_code_c_part2/shared_definitions.h" 116 #include "ostc2_code/code_part1/OSTC_code_c_part2/shared_definitions.h"
115 ;include "shared_definitions.h" 117 ;include "shared_definitions.h"
116 118
117 ;============================================================================= 119 ;=============================================================================
118 ; Reserve space for C-code data space. Eg.when calling log. 120 ; Reserve space for C-code data space. Eg.when calling log.
119 ; Note: overlayed with md_hash temporary space. 121 ; Note: overlayed with md_hash temporary space.