forked from IDMComputerSolutions/wordfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CCS.uew
executable file
·702 lines (701 loc) · 7.26 KB
/
CCS.uew
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
/L20"CCS Compiler" Line Comment = // Block Comment On = /* Block Comment Off = */ String Chars = "' File Extensions = C H
/Delimiters = ~!@%^&*()-+=|\/{}[]:;<> , .?
/Function String = "%[a-zA-Z]*)"
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"KEYWORDS"
auto
break bool
case char const continue
default dllexport2 dllimport2 do double
else enum extern
float for
goto
if int int1 int8 int16 int32
long
register return
short signed sizeof static struct switch
thread2 typedef
union unsigned
void volatile
while
/C2"FUNCTIONS"
abs
acos
asin
assert
atan
atan2
atof
atoi
atoi32
atol
bit_clear
bit_set
bit_test
calloc
ceil
clear_interrupts
cos
cosh
delay_cycles
delay_ms
delay_us
disable_interrupts
div
enable_interrupts
erase_program_memory
exp
ext_int_edge
fabs
fgetc
fgets
floor
fmod
fprintf
fputc
fputs
free
frexp
get_timer_
getc
getch
getchar
getenv
gets
goto_address
i2C_read
i2c_poll
i2c_start
i2c_stop
i2c_write
input
input_
isalnum
isalpha
isamoung
iscntrl
isdigit
isgraph
islower
isprint
isspace
isupper
isxdigit
itoa
kbhit
label_address
labs
ldexp
ldiv
log
log10
make16
make32
make8
malloc
memchr
memcmp
memcpy
memmove
memset
modf
mul
offsetof
offsetofbit
output_
output_bit
output_float
output_high
output_low
perror
port_b_pullups
pow
printf
psp_input_full
psp_output_full
psp_overflow
putc
putchar
puts
rand
read_adc
read_bank
read_calibration
read_eeprom
read_external_memory
read_program_eeprom
read_program_memory
realloc
reset_cpu
restart_cause
restart_wdt
rotate_left
rotate_right
rtos_await
rtos_disable
rtos_enable
rtos_msg_poll
rtos_msg_read
rtos_msg_send
rtos_overrun
rtos_signal
rtos_stats
rtos_wait
rtos_yield
rtos_run
rtos_terminate
set_adc_channel
set_power_pwm_override
set_power_pwmx_duty
set_pwm_duty
set_timer_
set_tris_
set_uart_speed
setup_adc
setup_adc_ports
setup_ccp
setup_comparator
setup_counters
setup_external_memory
setup_low_volt_detect
setup_oscillator
setup_power_pwm_pins
setup_power_pwm
setup_psp
setup_spi
setup_timer_
setup_uart
setup_vref
setup_wdt
shift_left
shift_right
sin
sinh
sleep
spi_data_is_in
spi_read
spi_write
sprintf
sqrt
srand
strcat
strchr
strcmp
strcoll
strcpy
strcspn
stricmp
strlen
strlwr
strncat
strncmp
strncpy
strpbrk
strrchr
strspn
strstr
strtod
strtok
strtol
strtoul
strxfrm
swap
tan
tanh
tolower
toupper
write_bank
write_eeprom
write_external_memory
write_program_eeprom
write_program_memory
/C3"PREPROCESSOR"
#ASM
#ASM_ASIS
#BIT
#BUILD
#BYTE
#CASE
#CASE
#DEFINE
#DEVICE
#ELIF
#ELIF
#ELIF
#ELSE
#ELSE
#ELSE
#ENDASM
#ENDIF
#ENDIF
#ENDIF
#ERROR
#ERROR
#FILL_ROM
#FUSES
#HEXCOMMENT
#ID
#ID
#IF
#IF
#IFDEF
#IFDEF
#IFNDEF
#IFNDEF
#IGNORE_WARNINGS
#IGNORE_WARNINGS
#INCLUDE
#INLINE
#INLINE
#INT_
#INT_AD
#INT_ADOF
#INT_BUSCOL
#INT_BUTTON
#INT_CCP1
#INT_CCP2
#INT_COMP
#INT_DEFAULT
#INT_EEPROM
#INT_EXT
#INT_EXT1
#INT_EXT2
#INT_GLOBAL
#INT_I2C
#INT_LCD
#INT_LOWVOLT
#INT_PSP
#INT_RB
#INT_RC
#INT_RDA
#INT_RTCC
#INT_SSP
#INT_TBE
#INT_TIMER0
#INT_TIMER1
#INT_TIMER2
#INT_TIMER3
#LIST
#LOCATE
#NOLIST
#OPT
#ORG
#PRAGMA
#PRIORITY
#RESERVE
#ROM
#SEPARATE
#SERIALIZE
#TASK
#TYPE
#UNDEF
#USE_DELAY
#USE_FAST_IO
#USE_FIXED_IO
#USE_I2C
#USE_RS232
#USE_STANDARD_IO
#ZERO_RAM
__DATE__
__DEVICE__
__FILE__
__LINE__
__PCB__
__PCH__
__PCM__
__TIME__
/C4"OPERATORS"
+
-
=
// /
%
&
>
<
^
!
|
/C5"DEFINES"
A0_A3_A1_A2
A0_A3_A1_A2_OUT_ON_A4_A5
A0_A3_A1_A3
A0_A3_A1_A3_OUT_ON_A4_A5
A0_A3_NC_NC_OUT_ON_A4
A0_VR_A1_VR
A3_VR_A2_VR
ADC_CLOCK_DIV_16
ADC_CLOCK_DIV_2
ADC_CLOCK_DIV_32
ADC_CLOCK_DIV_4
ADC_CLOCK_DIV_64
ADC_CLOCK_DIV_8
ADC_CLOCK_INTERNAL
ADC_OFF
ADC_READ_ONLY
ADC_START_AND_READ
ADC_START_ONLY
ALL_ANALOG
AN0
AN0_AN1_AN2_AN4_VSS_VREF
AN0_AN1_AN3
AN0_AN1_AN4_VREF_VREF
AN0_AN1_VREF_VREF
AN0_AN1_VSS_VREF
AN0_ANALOG
AN0_TO_AN1
AN0_TO_AN10
AN0_TO_AN10_ANALOG
AN0_TO_AN11
AN0_TO_AN11_ANALOG
AN0_TO_AN1_ANALOG
AN0_TO_AN2
AN0_TO_AN2_ANALOG
AN0_TO_AN3
AN0_TO_AN3_ANALOG
AN0_TO_AN4
AN0_TO_AN4_ANALOG
AN0_TO_AN5
AN0_TO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PIN_D6
PIN_D7
PIN_E0
PIN_E1
PIN_E2
PIN_E3
PLL1
PLL10
PLL12
PLL2
PLL3
PLL4
PLL5
PLL6
PROTECT
PSP_DISABLED
PSP_ENABLED
PUT
RA0_ANALOG
RA0_ANALOG_RA3_RA2_REF
RA0_RA1_ANALOG_RA3_RA2_REF
RA0_RA1_ANALOG_RA3_REF
RA0_RA1_RA3_ANALOG
RC
RESET_INSTRUCTION
RTCC_8_BIT
RTCC_DIV_1
RTCC_DIV_128
RTCC_DIV_16
RTCC_DIV_16
RTCC_DIV_2
RTCC_DIV_2
RTCC_DIV_256
RTCC_DIV_32
RTCC_DIV_32
RTCC_DIV_4
RTCC_DIV_4
RTCC_DIV_64
RTCC_DIV_8
RTCC_DIV_8
RTCC_EXT_H_TO_L
RTCC_EXT_L_TO_H
RTCC_INTERNAL
RTCC_OFF
SPI_CLK_DIV_16
SPI_CLK_DIV_4
SPI_CLK_DIV_64
SPI_CLK_T2
SPI_H_TO_L
SPI_L_TO_H
SPI_MASTER
SPI_SAMPLE_AT_END
SPI_SLAVE
SPI_SS_DISABLED
SPI_XMIT_L_TO_H
STVREN
T1_CLK_OUT
T1_DISABLED
T1_DIV_BY_1
T1_DIV_BY_2
T1_DIV_BY_4
T1_DIV_BY_8
T1_EXTERNAL
T1_EXTERNAL_SYNC
T1_INTERNAL
T2_DISABLED
T2_DIV_BY_1
T2_DIV_BY_16
T2_DIV_BY_4
T3_DISABLED
T3_DIV_BY_1
T3_DIV_BY_2
T3_DIV_BY_4
T3_DIV_BY_8
T3_EXTERNAL
T3_EXTERNAL_SYNC
T3_INTERNAL
TRUE
UART_ADDRESS
UART_AUTODETECT
UART_AUTODETECT_NOWAIT
UART_DATA
UART_WAKEUP_ON_RDA
USBDIV
VREF_COMP
VREF_F5
VREF_HIGH
VREF_LOW
VREF_VDD
VREF_VREF
VREGEN
VSS_VDD
VSS_VREF
WDT
WDT1
WDT1024
WDT128
WDT16
WDT16384
WDT2
WDT2048
WDT256
WDT32
WDT32768
WDT4
WDT4096
WDT512
WDT64
WDT8
WDT8192
WDT_1152MS
WDT_144MS
WDT_18MS
WDT_2304MS
WDT_288MS
WDT_36MS
WDT_576MS
WDT_72MS
WDT_FROM_SLEEP
WDT_OFF
WDT_ON
WDT_TIMEOUT
WDT_TIMEOUT
WRT
WRTB
WRTC
WRTD
XINST
XT
XTPLL