-
Notifications
You must be signed in to change notification settings - Fork 4
/
TAGS
2482 lines (2403 loc) · 84.4 KB
/
TAGS
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
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
samples/simple_udp/protocol.h,92
#define __PROTOCOL_H__17,722
#define ETH_ADDR_SIZE 26,870
#define ETH_HEADER_SIZE 27,894
samples/simple_udp/protocol.c,978
#define NTOHS(19,755
uint16_t checksum(22,812
const uint8_t *eth_get_src(eth_get_src40,1204
const uint8_t *eth_get_dst(eth_get_dst44,1294
uint16_t eth_get_type(48,1368
uint8_t *eth_get_payload(eth_get_payload53,1503
void eth_set_src(58,1587
void eth_set_dst(62,1701
void eth_set_type(66,1799
static uint32_t ip4_get_addr(75,1961
uint32_t ip4_get_src(84,2150
uint32_t ip4_get_dst(88,2253
uint8_t ip4_get_version(92,2356
uint8_t ip4_get_header_length(97,2483
uint16_t ip4_get_total_lenght(103,2625
uint16_t ip4_get_packet_id(108,2772
uint8_t ip4_get_flags(113,2916
uint8_t ip4_get_fragment_offset(118,3046
uint8_t ip4_get_ttl(123,3188
uint8_t ip4_get_protocol(130,3312
uint16_t ip4_get_checksum(135,3439
void ip4_set_addr(141,3583
void ip4_set_header(149,3778
uint16_t udp_get_src_port(178,4545
uint16_t udp_get_dst_port(183,4714
uint16_t udp_get_length(189,4888
void udp_set_header(196,5061
uint8_t *udp_get_payload(udp_get_payload213,5477
samples/simple_udp/main.c,588
#define TX_BUFFER_COUNT 24,877
#define RX_BUFFER_COUNT 25,903
#define BUFFER_SIZE 27,930
#define UDP 29,978
#define PORT 30,993
rflpc_eth_rx_status_t rx_status[rx_status35,1184
rflpc_eth_tx_status_t tx_status[tx_status36,1264
uint8_t rx_buffers[rx_buffers38,1345
uint8_t tx_buffers[tx_buffers39,1394
uint8_t _mac_addr[_mac_addr41,1444
uint32_t my_ip 43,1467
void print_ip4(46,1525
void process_packet(54,1662
RFLPC_IRQ_HANDLER eth_handler(90,2664
void mbed_auto_set_mac(109,3152
void ethernet_init(126,3433
RFLPC_IRQ_HANDLER uart_handler(159,4595
int main(165,4711
samples/skel/main.c,17
int main(23,855
samples/rand/main.c,116
void configure_timer(24,856
void wait(32,1131
void test_rand(40,1298
void test_rand_r(52,1492
int main(66,1716
samples/memcpy/main.c,212
#define ARRAY_SIZE 23,855
uint8_t src_buffer[src_buffer25,880
uint8_t dst_buffer[dst_buffer26,912
int test(29,946
void fill_with_magic(53,1463
void dump(66,1718
void init_timer(86,2084
int main(94,2292
samples/spi-simple/main.c,209
void configure_timer(34,1149
void wait(42,1424
#define MASTER_SPI 49,1590
#define SLAVE_SPI 50,1620
RFLPC_IRQ_HANDLER master_interrupt(52,1650
RFLPC_IRQ_HANDLER slave_interrupt(61,1837
int main(70,2021
samples/test_exception_handler/main.c,115
RFLPC_IRQ_HANDLER svc_handler(28,1073
RFLPC_IRQ_HANDLER svc_handler(29,1134
void func(50,1991
int main(67,2401
samples/dhcp/protocols.c,534
#define GET_TWO(26,940
#define GET_FOUR(27,1012
#define GET_MAC(29,1136
#define PUT_TWO(38,1342
#define PUT_FOUR(39,1429
#define PUT_MAC(41,1583
#define NTOHS(50,1789
uint16_t proto_checksum(52,1845
void proto_eth_demangle(69,2228
void proto_eth_mangle(79,2479
void proto_arp_demangle(90,2723
void proto_arp_mangle(110,3293
void proto_ip_demangle(124,3709
void proto_ip_mangle(138,4169
void proto_icmp_demangle(160,4853
void proto_icmp_mangle(175,5261
void proto_udp_demangle(191,5658
void proto_udp_mangle(200,5880
samples/dhcp/dhcp.c,65
void proto_dhcp_demangle(21,775
void proto_dhcp_mangle(30,1024
samples/dhcp/main.c,810
static uint8_t ip[ip27,921
const static uint8_t _bmac[_bmac28,943
#define IP_OFFSET 30,1014
#define UDP_OFFSET 31,1047
#define DHCP_OFFSET 32,1094
EthHead eth;36,1162
IpHead ip;37,1179
UdpHead udp;38,1194
DhcpHead dhcp;39,1211
}FullPacket;FullPacket40,1230
void print_packet(42,1244
void print_ip(56,1455
void dhcp_send(64,1579
uint8_t *dhcp_create_option_array(dhcp_create_option_array105,2630
uint8_t *dhcp_create_option_simple(dhcp_create_option_simple113,2833
uint32_t dhcp_get_option_array(118,2995
uint32_t dhcp_get_option_simple(133,3427
void dhcp_discover(141,3638
void dhcp_send_request(167,4222
void dhcp_request(199,5349
void dhcp_handle_ack(204,5523
void dhcp_process_packet(214,6116
void packet_in(241,6688
uint32_t make_ip(278,7615
int main(283,7738
samples/dhcp/simple_net.h,30
#define __SIMPLE_NET__22,844
samples/dhcp/protocols.h,1682
#define __PROTOCOLS_H__28,1116
#define PROTO_MAC_HLEN 32,1162
#define PROTO_ARP_HLEN 33,1189
#define PROTO_ICMP_HLEN 34,1216
#define PROTO_ICMP_CSUM_OFFSET 35,1243
#define PROTO_ARP 37,1277
#define PROTO_IP 38,1302
#define PROTO_IP_HLEN 40,1328
#define PROTO_ICMP 43,1355
#define PROTO_ICMP_ECHO_REQUEST 44,1376
#define PROTO_ICMP_ECHO_REPLY 45,1410
#define PROTO_UDP_HLEN 47,1445
#define PROTO_UDP 48,1470
uint8_t addr[addr52,1520
} EthAddr;53,1541
EthAddr src;59,1572
EthAddr dst;60,1589
uint16_t type;61,1606
} EthHead;62,1625
#define MAC_ADDR_EQUAL(65,1638
static inline uint32_t ntohl(67,1798
uint16_t hard_type;76,1960
uint16_t protocol_type;77,1984
uint8_t hlen;78,2012
uint8_t plen;79,2030
uint16_t opcode;80,2048
EthAddr sender_mac;81,2069
uint32_t sender_ip;82,2093
EthAddr target_mac;83,2117
uint32_t target_ip;84,2141
} ArpHead;85,2165
uint8_t version_length;89,2194
uint8_t dscp_ecn;90,2222
uint16_t total_length;91,2244
uint16_t identification;92,2271
uint16_t flags_frag_offset;93,2300
uint8_t ttl;94,2332
uint8_t protocol;95,2350
uint16_t header_checksum;96,2373
uint32_t src_addr;97,2403
uint32_t dst_addr;98,2426
} IpHead;99,2449
uint8_t type;103,2477
uint8_t code;104,2495
uint16_t checksum;105,2513
uint16_t identifier;110,2563
uint16_t sn;111,2589
} echo;112,2607
uint32_t raw;113,2616
} data;114,2631
}IcmpHead;IcmpHead115,2643
uint16_t src_port,119,2672
uint16_t src_port, dst_port;119,2672
uint16_t len,120,2703
uint16_t len, checksum;120,2703
}UdpHead;UdpHead121,2729
samples/dhcp/simple_net.c,772
#define RX_BUFFER_SIZE 23,855
#define RX_BUFFER_COUNT 24,906
#define TX_BUFFER_SIZE 26,933
#define TX_BUFFER_COUNT 27,984
rflpc_eth_descriptor_t _rx_desc[_rx_desc29,1011
rflpc_eth_rx_status_t _rx_status[_rx_status30,1061
rflpc_eth_descriptor_t _tx_desc[_tx_desc32,1113
rflpc_eth_tx_status_t _tx_status[_tx_status33,1163
uint8_t rxbuffers[rxbuffers35,1215
uint8_t txbuffers[txbuffers36,1267
static uint8_t _mac_addr[_mac_addr40,1387
RFLPC_IRQ_HANDLER eth_handler(42,1417
void mbed_auto_set_mac(59,1883
void simple_net_ethernet_init(76,2164
uint8_t *simple_net_get_tx_buffer(simple_net_get_tx_buffer109,3158
void simple_net_emit_buffer(119,3365
void simple_net_set_rx_callback(132,3733
const uint8_t *simple_net_get_mac(simple_net_get_mac137,3853
samples/dhcp/dhcp.h,1103
#define __DHCP_PACKET_H__2,26
#define DHCPDISCOVER 6,74
#define DHCPOFFER 7,102
#define DHCPREQUEST 8,130
#define DHCPDECLINE 9,157
#define DHCPACK 10,185
#define DHCPNAK 11,213
#define DHCPRELEASE 12,241
#define DHCPINFORM 13,269
#define DHCP_SERVER_PORT 14,297
#define DHCP_CLIENT_PORT 15,325
#define BOOTREQUEST 17,354
#define OPTION_SUBNET_MASK 20,396
#define OPTION_ROUTER 21,425
#define OPTION_DHCP_REQUESTED_IP 22,449
#define OPTION_DHCP_LEASE_TIME 23,485
#define OPTION_DHCP_MESSAGE_TYPE 24,519
#define OPTION_DHCP_SERVER_IDENTIFIER 25,555
#define OPTION_END 26,596
typedef struct dhcp_message 28,621
uint8_t op,30,709
uint8_t op, htype,30,709
uint8_t op, htype, hlen,30,709
uint8_t op, htype, hlen, hops;30,709
uint32_t xid;31,742
uint16_t secs,32,758
uint16_t secs, flags;32,758
uint32_t ciaddr;33,782
uint32_t yiaddr;34,801
uint32_t siaddr;35,820
uint32_t giaddr;36,839
uint8_t chaddr[chaddr37,858
uint8_t sname[sname38,880
uint8_t file[file39,901
uint8_t options[options40,922
} DhcpHead;41,945
#define DHCP_HLEN 43,958
samples/leds/main.c,17
int main(23,855
samples/basic_tests/main.c,838
uint32_t data 23,855
uint32_t data2 24,898
char test1 25,927
void *add_data add_data26,946
void *add_data2 add_data227,970
int a,29,997
int a,b,29,997
int a,b,c,29,997
int a,b,c,d;29,997
char e;30,1010
void test_data_bss(32,1019
void test_uart(65,1812
void test_echo(84,2044
void test_printf(97,2276
void print_interrupts(120,2965
RFLPC_IRQ_HANDLER uart0_rx(129,3123
void test_echo_irq(134,3252
RFLPC_IRQ_HANDLER _rit_callback(141,3394
void test_rit(146,3541
RFLPC_IRQ_HANDLER _sys_timer_callback(152,3645
void test_sys_timer(170,3932
void print_sections(186,4287
volatile static int request_autoneg 194,4580
volatile static int autoneg_mode 195,4621
RFLPC_IRQ_HANDLER _test_ethernet_serial_handler(197,4684
void test_ethernet(215,5041
void test_led(265,6472
int my_silly_putchar(284,6831
int main(291,6958
samples/serial-number/main.c,17
int main(22,822
samples/spi-leds/main.c,124
#define SPI_PORT 25,878
void wait(27,907
void led_matrix_display_buffer(34,1073
void test_spi(47,1430
int main(99,2730
samples/spi-leds/scroller.h,30
#define __SCROLLER_H__22,890
samples/spi-leds/scroller.c,136
uint8_t font[font25,979
int font_size 284,18436
#define GET_BIT(286,18483
void display_char(289,18525
void display_text(311,18983
samples/ethernet/protocols.c,462
#define GET_TWO(26,939
#define GET_FOUR(27,1011
#define GET_MAC(29,1135
#define PUT_TWO(38,1341
#define PUT_FOUR(39,1428
#define PUT_MAC(41,1582
#define NTOHS(50,1788
uint16_t checksum(52,1844
void proto_eth_demangle(69,2221
void proto_eth_mangle(79,2472
void proto_arp_demangle(90,2716
void proto_arp_mangle(110,3286
void proto_ip_demangle(124,3702
void proto_ip_mangle(138,4162
void proto_icmp_demangle(160,4840
void proto_icmp_mangle(175,5248
samples/ethernet/main.c,768
void dump_packet(25,879
volatile static int request_autoneg 80,1983
volatile static int autoneg_mode 81,2024
RFLPC_IRQ_HANDLER _serial_handler(83,2087
RFLPC_IRQ_HANDLER _rit_handler(101,2430
#define RX_BUFFER_SIZE 110,2608
#define RX_BUFFER_COUNT 111,2659
#define TX_BUFFER_SIZE 113,2686
#define TX_BUFFER_COUNT 114,2737
rflpc_eth_descriptor_t _rx_desc[_rx_desc116,2764
rflpc_eth_rx_status_t _rx_status[_rx_status117,2814
rflpc_eth_descriptor_t _tx_desc[_tx_desc119,2866
rflpc_eth_tx_status_t _tx_status[_tx_status120,2916
uint8_t rxbuffers[rxbuffers122,2968
uint8_t txbuffers[txbuffers123,3020
EthAddr mac_addr;127,3075
uint32_t my_ip 128,3093
void process_packet(130,3156
void eth_handler(234,6354
void ethernet(254,6861
int main(322,8995
samples/ethernet/protocols.h,1357
#define __PROTOCOLS_H__28,1115
#define PROTO_MAC_HLEN 32,1161
#define PROTO_ARP_HLEN 33,1188
#define PROTO_ICMP_HLEN 34,1215
#define PROTO_ICMP_CSUM_OFFSET 35,1242
#define PROTO_ARP 37,1276
#define PROTO_IP 38,1301
#define PROTO_ICMP 40,1327
#define PROTO_ICMP_ECHO_REQUEST 41,1348
#define PROTO_ICMP_ECHO_REPLY 42,1382
uint8_t addr[addr46,1434
} EthAddr;47,1455
EthAddr src;53,1486
EthAddr dst;54,1503
uint16_t type;55,1520
} EthHead;56,1539
uint16_t hard_type;61,1569
uint16_t protocol_type;62,1593
uint8_t hlen;63,1621
uint8_t plen;64,1639
uint16_t opcode;65,1657
EthAddr sender_mac;66,1678
uint32_t sender_ip;67,1702
EthAddr target_mac;68,1726
uint32_t target_ip;69,1750
} ArpHead;70,1774
uint8_t version_length;74,1803
uint8_t dscp_ecn;75,1831
uint16_t total_length;76,1853
uint16_t identification;77,1880
uint16_t flags_frag_offset;78,1909
uint8_t ttl;79,1941
uint8_t protocol;80,1959
uint16_t header_checksum;81,1982
uint32_t src_addr;82,2012
uint32_t dst_addr;83,2035
} IpHead;84,2058
uint8_t type;88,2086
uint8_t code;89,2104
uint16_t checksum;90,2122
uint16_t identifier;95,2172
uint16_t sn;96,2198
} echo;97,2216
uint32_t raw;98,2225
} data;99,2240
}IcmpHead;IcmpHead100,2252
samples/pwm-test/main.c,205
#define LED_PIN 23,855
#define PWM_PIN1 24,887
#define PWM_PIN2 25,920
#define PWM_PIN3 26,953
#define PERIOD 28,982
volatile uint16_t ps;30,1004
RFLPC_IRQ_HANDLER uart_rx(32,1027
int main(68,1696
samples/test-uarts/main.c,206
void configure_timer(23,855
void wait(31,1130
int broadcast_uarts(38,1296
RFLPC_IRQ_HANDLER uart0_irq(46,1462
RFLPC_IRQ_HANDLER uart2_irq(52,1623
RFLPC_IRQ_HANDLER uart3_irq(57,1783
int main(64,1945
samples/memset/main.c,154
#define BUFFER_SIZE 23,855
#define MAGIC 24,880
static uint8_t buffer[buffer25,899
void fill_magic(27,936
int test_memset(36,1042
int main(78,1928
samples/timer/main.c,120
#define TIMER_TO_TEST 24,856
RFLPC_IRQ_HANDLER _timer_cb(26,892
RFLPC_IRQ_HANDLER _uart_cb(40,1253
int main(58,1546
samples/dma/main.c,218
#define BUFFER_SIZE 23,855
#define BUFFER_BYTES 24,879
static uint32_t source_buffer[source_buffer25,931
static uint32_t destination_buffer[destination_buffer26,975
void copy_and_check(28,1025
int main(62,2047
samples/test-flash/main.c,722
#define DATA_SIZE 23,844
#define SECTOR_START_INDEX 24,877
#define SECTOR_END_INDEX 25,909
#define SECTOR_START_ADDRESS 26,941
static char data[data32,1054
static char buffer[buffer34,1084
int test_simple_copy(36,1157
int test_writing(65,1991
char testBuffer[testBuffer90,2547
int test_writing_from_ram(92,2571
char sequenceBuffer[sequenceBuffer134,3674
int testSequence(137,3702
const char object 166,4264
const int object_size 169,7558
#define WRITING_BUFFER_SIZE 171,7599
char writingBuffer[writingBuffer173,7632
int testBufferedWriting(175,7674
char largeBuffer[largeBuffer223,8778
int testLargeBuffer(225,8803
int testWritingInto32k(256,9518
const char *ok ok292,10513
int main(294,10536
rflpc17xx/clock.h,168
#define __RFLPC_CLOCK_H__28,944
RFLPC_CCLK_4 40,1128
RFLPC_CCLK 41,1186
RFLPC_CCLK_2 42,1253
RFLPC_CCLK_8 43,1320
} rflpc_clock_divider_t;44,1387
rflpc17xx/tinylibc/setjmp.h,75
#define __RFLPC_SETJMP_H__22,848
typedef uint32_t jmp_buf[jmp_buf28,932
rflpc17xx/tinylibc/printf.h,34
#define __RFLPC_PRINTF_H__18,727
rflpc17xx/tinylibc/printf.c,306
static int _rflpc_default_putchar(32,1018
#define PUTCHAR(42,1220
#define PUTS(43,1285
#define PUT_HEXA_DIGIT(46,1365
#define PUT_HEXA_BYTE(53,1542
#define PUT_HEXA_VAL(58,1692
#define PUT_INT_DIGIT(69,1996
#define PUT_INT_NUMBER(73,2072
int printf(84,2370
void rflpc_printf_set_putchar(192,4442
rflpc17xx/tinylibc/memcpy.h,34
#define __RFLPC_MEMCPY_H__25,868
rflpc17xx/tinylibc/memcpy.c,214
#define IS_WORD_ALIGNED(36,1450
static void *rflpc_memcpy_unaligned_fast(rflpc_memcpy_unaligned_fast38,1503
static void *rflpc_memcpy_aligned_fast(rflpc_memcpy_aligned_fast58,2016
void *memcpy(memcpy81,2717
rflpc17xx/tinylibc/memset.h,34
#define __RFLPC_MEMSET_H__23,802
rflpc17xx/tinylibc/rand.h,83
#define __RFLPC_RAND_H__27,1004
#undef RAND_MAX35,1107
#define RAND_MAX 41,1242
rflpc17xx/tinylibc/rand.c,90
static unsigned int _seed;24,804
void srand(26,832
int rand(31,885
int rand_r(40,1060
rflpc17xx/tinylibc/memset.c,214
#define IS_WORD_ALIGNED(29,1124
static void *rflpc_memset_unaligned_fast(rflpc_memset_unaligned_fast31,1177
static void *rflpc_memset_aligned_fast(rflpc_memset_aligned_fast51,1606
void *memset(memset75,2292
rflpc17xx/tinylibc/setjmp.c,40
int setjmp(26,878
int longjmp(41,1175
rflpc17xx/init.c,206
unsigned char _stack[_stack50,1580
void* _rom_interrupts[_rom_interrupts57,1864
static void _zero_bss(112,4534
static void _copy_data_section(120,4679
void _init_stack(129,4827
void _start(141,4993
rflpc17xx/interrupt.h,332
#define __RFLPC_INTERRUPT_H__27,900
static inline void rflpc_irq_global_enable(38,1080
static inline void rflpc_irq_global_disable(44,1209
static inline void rflpc_irq_enable(50,1328
static inline void rflpc_irq_disable(56,1462
typedef void (*rflpc_irq_handler_t)rflpc_irq_handler_t62,1589
#define RFLPC_IRQ_HANDLER 65,1675
rflpc17xx/iap.h,32
#define __RFLPC_IAP_H__30,1015
rflpc17xx/pinconf.c,27
void rflpc_pin_set(26,892
rflpc17xx/iap.c,1312
#define IAP_SMALL_SECTOR_BUFFER_SIZE 32,956
#define IAP_LARGE_SECTOR_BUFFER_SIZE 33,999
char iap_sector_buffer[iap_sector_buffer36,1050
#define IAP_PREPARE_SECTORS_FOR_WRITING 40,1125
#define IAP_COPY_RAM_TO_FLASH 41,1168
#define IAP_ERASE_SECTORS 42,1211
#define IAP_READ_SERIAL_COMMAND 43,1254
#define IAP_FUNCTION_ADDR 46,1317
typedef void (*iap_function_t)iap_function_t48,1369
#define DECLARE_IAP_FUNCTION 49,1435
IAP_CMD_SUCCESS,54,1552
IAP_CMD_INVALID_COMMAND,55,1573
IAP_SRC_ADDR_ERROR,56,1602
IAP_DST_ADDR_ERROR,57,1626
IAP_SRC_ADDR_NOT_MAPPED,58,1650
IAP_DST_ADDR_NOT_MAPPED,59,1679
IAP_COUNT_ERROR,60,1708
IAP_INVALID_SECTOR,61,1729
IAP_SECTOR_NOT_BLANK,62,1753
IAP_SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION,63,1779
IAP_COMPARE_ERROR,64,1828
IAP_BUSY,65,1851
int rflpc_iap_get_serial_number(68,1869
int rflpc_iap_prepare_sectors_for_writing(84,2241
int rflpc_iap_erase_sectors(96,2595
int rflpc_iap_copy_ram_to_flash(110,3021
int rflpc_iap_get_sector_from_address(127,3542
void *rflpc_iap_get_address_from_sector(rflpc_iap_get_address_from_sector135,3776
int rflpc_iap_write_buffer_to_sector(150,4119
int rflpc_iap_write_to_sector(186,5138
int rflpc_iap_write_buffer(218,6157
int rflpc_iap_transfert_4ks_to_32k(256,7366
rflpc17xx/clock.c,217
#define RFLPC_CLOCK_INTERNAL_OSCILLATOR_FREQUENCY 28,905
static uint32_t _rflpc_system_clock 29,963
#define RFLPC_PLL0_DO_FEED(36,1265
void rflpc_clock_init(41,1417
uint32_t rflpc_clock_get_system_clock(113,3995
rflpc17xx/pinconf.h,2949
#define __RFLPC_PINCONF_H__27,958
typedef uint8_t rflpc_pin_t;44,1257
#define RFLPC_PIN_MAKE(47,1364
#define RFLPC_PIN_GET_PORT(49,1421
#define RFLPC_PIN_GET_PIN(50,1474
RFLPC_PIN_P0_0,56,1581
RFLPC_PIN_P0_1,57,1601
RFLPC_PIN_P0_2,58,1621
RFLPC_PIN_P0_3,59,1641
RFLPC_PIN_P0_4,60,1661
RFLPC_PIN_P0_5,61,1681
RFLPC_PIN_P0_6,62,1701
RFLPC_PIN_P0_7,63,1721
RFLPC_PIN_P0_8,64,1741
RFLPC_PIN_P0_9,65,1761
RFLPC_PIN_P0_10,66,1781
RFLPC_PIN_P0_11,67,1802
RFLPC_PIN_P0_12,68,1823
RFLPC_PIN_P0_13,69,1844
RFLPC_PIN_P0_14,70,1865
RFLPC_PIN_P0_15,71,1886
RFLPC_PIN_P0_16,72,1907
RFLPC_PIN_P0_17,73,1928
RFLPC_PIN_P0_18,74,1949
RFLPC_PIN_P0_19,75,1970
RFLPC_PIN_P0_20,76,1991
RFLPC_PIN_P0_21,77,2012
RFLPC_PIN_P0_22,78,2033
RFLPC_PIN_P0_23,79,2054
RFLPC_PIN_P0_24,80,2075
RFLPC_PIN_P0_25,81,2096
RFLPC_PIN_P0_26,82,2117
RFLPC_PIN_P0_27,83,2138
RFLPC_PIN_P0_28,84,2159
RFLPC_PIN_P0_29,85,2180
RFLPC_PIN_P0_30,86,2201
RFLPC_PIN_P0_31,87,2222
RFLPC_PIN_P1_0 91,2262
RFLPC_PIN_P1_0 = RFLPC_PIN_MAKE(91,2262
RFLPC_PIN_P1_1,92,2304
RFLPC_PIN_P1_2,93,2324
RFLPC_PIN_P1_3,94,2344
RFLPC_PIN_P1_4,95,2364
RFLPC_PIN_P1_5,96,2384
RFLPC_PIN_P1_6,97,2404
RFLPC_PIN_P1_7,98,2424
RFLPC_PIN_P1_8,99,2444
RFLPC_PIN_P1_9,100,2464
RFLPC_PIN_P1_10,101,2484
RFLPC_PIN_P1_11,102,2505
RFLPC_PIN_P1_12,103,2526
RFLPC_PIN_P1_13,104,2547
RFLPC_PIN_P1_14,105,2568
RFLPC_PIN_P1_15,106,2589
RFLPC_PIN_P1_16,107,2610
RFLPC_PIN_P1_17,108,2631
RFLPC_PIN_P1_18,109,2652
RFLPC_PIN_P1_19,110,2673
RFLPC_PIN_P1_20,111,2694
RFLPC_PIN_P1_21,112,2715
RFLPC_PIN_P1_22,113,2736
RFLPC_PIN_P1_23,114,2757
RFLPC_PIN_P1_24,115,2778
RFLPC_PIN_P1_25,116,2799
RFLPC_PIN_P1_26,117,2820
RFLPC_PIN_P1_27,118,2841
RFLPC_PIN_P1_28,119,2862
RFLPC_PIN_P1_29,120,2883
RFLPC_PIN_P1_30,121,2904
RFLPC_PIN_P1_31,122,2925
RFLPC_PIN_P2_0 125,2964
RFLPC_PIN_P2_0 = RFLPC_PIN_MAKE(125,2964
RFLPC_PIN_P2_1,126,3006
RFLPC_PIN_P2_2,127,3026
RFLPC_PIN_P2_3,128,3046
RFLPC_PIN_P2_4,129,3066
RFLPC_PIN_P2_5,130,3086
RFLPC_PIN_P2_6,131,3106
RFLPC_PIN_P2_7,132,3126
RFLPC_PIN_P2_8,133,3146
RFLPC_PIN_P2_9,134,3166
RFLPC_PIN_P2_10,135,3186
RFLPC_PIN_P2_11,136,3207
RFLPC_PIN_P2_12,137,3228
RFLPC_PIN_P2_13,138,3249
RFLPC_PIN_P3_25 141,3288
RFLPC_PIN_P3_25 = RFLPC_PIN_MAKE(141,3288
RFLPC_PIN_P3_26,142,3332
RFLPC_PIN_P4_28 145,3371
RFLPC_PIN_P4_28 = RFLPC_PIN_MAKE(145,3371
RFLPC_PIN_P4_29,146,3415
RFLPC_PIN_MODE_RESISTOR_PULL_UP,156,3532
RFLPC_PIN_MODE_REPEATER,157,3623
RFLPC_PIN_MODE_RESISTOR_NONE,158,3714
RFLPC_PIN_MODE_RESISTOR_PULL_DOWN,159,3805
} rflpc_pin_mode_t;160,3896
rflpc17xx/profiling.h,347
#define __RFLPC_PROFILING_H__25,942
#define RFLPC_PROFILE_PRESCALE 38,1302
#define RFLPC_PROFILE_INIT(48,1646
#define RFLPC_PROFILE_DECLARE_COUNTER(53,2039
#define RFLPC_PROFILE_DECLARE_EXTERN_COUNTER(58,2321
#define RFLPC_PROFILE_START_COUNTER(61,2562
#define RFLPC_PROFILE_STOP_COUNTER(64,2785
#define RFLPC_PROFILE_GET_TOTAL(67,3055
rflpc17xx/drivers/pwm.c,494
#define PWM1_PINS 29,1004
#define PWM2_PINS 32,1080
#define PWM3_PINS 36,1199
#define PWM4_PINS 40,1318
#define PWM5_PINS 43,1394
#define PWM6_PINS 46,1470
static uint8_t _pwm_running;50,1547
int rflpc_pwm_init(52,1577
void rflpc_pwm_start(104,3101
void rflpc_pwm_stop(108,3172
void rflpc_pwm_reset(112,3241
void rflpc_pwm_set_period(117,3313
void rflpc_pwm_enable(131,3639
void rflpc_pwm_disable(157,4177
void rflpc_pwm_single_edge(183,4717
void rflpc_pwm_double_edge(222,5677
rflpc17xx/drivers/dma.h,254
#define __RFLPC_DMA_H__25,904
RFLPC_DMAC0,38,1085
RFLPC_DMAC1,39,1101
RFLPC_DMAC2,40,1117
RFLPC_DMAC3,41,1133
RFLPC_DMAC4,42,1149
RFLPC_DMAC5,43,1165
RFLPC_DMAC6,44,1181
RFLPC_DMAC7,45,1197
} rflpc_dma_channel_t;46,1213
rflpc17xx/drivers/rit.h,255
#define __RFLPC_RIT_H__28,1001
static inline void rflpc_rit_enable(45,1524
static inline uint32_t rflpc_rit_get_counter_value(51,1650
static inline void rflpc_rit_set_counter_value(54,1784
static inline void rflpc_rit_clear_pending_interrupt(58,2015
rflpc17xx/drivers/sys_tick_timer.h,198
#define __RFLPC_SYS_TICK_TIMER_H__25,905
static inline void rflpc_sys_timer_start(54,1789
static inline void rflpc_sys_timer_stop(60,1891
static inline void rflpc_sys_timer_set_callback(66,2014
rflpc17xx/drivers/gpio.h,32
#define __RFLPC_GPIO_H__27,921
rflpc17xx/drivers/spi.h,521
#define __RFLPC_SPI_H__20,758
RFLPC_SPI0,40,1100
RFLPC_SPI1 41,1142
} rflpc_spi_t;42,1184
RFLPC_SPI_MASTER,47,1260
RFLPC_SPI_SLAVE,48,1312
} rflpc_spi_mode_t;49,1363
static inline LPC_SSP_TypeDef *rflpc_spi_get_base_addr(rflpc_spi_get_base_addr73,2894
static inline int rflpc_spi_tx_fifo_empty(84,3138
static inline int rflpc_spi_tx_fifo_full(96,3406
static inline int rflpc_spi_rx_fifo_empty(108,3685
static inline void rflpc_spi_write(121,4317
static inline uint16_t rflpc_spi_read(133,4708
rflpc17xx/drivers/rit.c,36
void rflpc_rit_set_callback(25,960
rflpc17xx/drivers/pwm.h,31
#define __RFLPC_PWM_H__25,907
rflpc17xx/drivers/uart.h,131
#define __RFLPC_UART_H__25,876
RFLPC_UART0 46,1506
RFLPC_UART2 47,1546
RFLPC_UART3 48,1585
} rflpc_uart_t;49,1627
rflpc17xx/drivers/gpio.c,512
void rflpc_gpio_use_pin(19,740
static LPC_GPIO_TypeDef * const _gpio_ports[_gpio_ports26,936
#define RFLPC_GPIO_BASE(36,1132
void rflpc_gpio_set_pin_mode_input(39,1233
void rflpc_gpio_set_pin_mode_output(46,1425
void rflpc_gpio_set_pin(54,1677
void rflpc_gpio_clr_pin(61,1883
void rflpc_gpio_set_pins_from_mask(68,2081
void rflpc_gpio_clr_pins_from_mask(75,2316
void rflpc_gpio_set_pin_val(82,2552
void rflpc_gpio_set_val(91,2766
int rflpc_gpio_get_pin(98,2993
uint32_t rflpc_gpio_get_val(104,3221
rflpc17xx/drivers/ethernet.h,1651
#define __RFLPC_ETHERNET_H__20,772
#define RFLPC_ETH_LINK_MODE_SPEED_BIT 55,1498
#define RFLPC_ETH_LINK_MODE_DUPLEX_BIT 57,1595
#define RFLPC_ETH_LINK_MODE_100HD 59,1672
#define RFLPC_ETH_LINK_MODE_10HD 61,1765
#define RFLPC_ETH_LINK_MODE_100FD 63,1831
#define RFLPC_ETH_LINK_MODE_10FD 65,1957
uint8_t *packet;packet109,3632
volatile uint32_t control;126,4478
} rflpc_eth_descriptor_t;127,4509
volatile uint32_t status_info;150,5322
volatile uint32_t status_hash_crc;155,5557
} rflpc_eth_rx_status_t;156,5596
volatile uint32_t status_info;173,6397
} rflpc_eth_tx_status_t;174,6431
static inline uint32_t rflpc_eth_get_packet_size(183,6745
static inline void rflpc_eth_set_tx_control_word(196,7333
static inline int rflpc_eth_get_current_rx_packet_descriptor(217,8306
static inline int rflpc_eth_rx_available(232,8862
static inline void rflpc_eth_done_process_rx_packet(245,9195
#define TX_PRODUCE_INDEX_INC(263,9818
static inline int rflpc_eth_get_current_tx_packet_descriptor(279,10605
static inline int rflpc_eth_get_last_sent_packet_idx(297,11237
static inline void rflpc_eth_done_process_tx_packet(309,11611
static inline void rflpc_eth_set_irq_handler(329,12207
static inline void rflpc_eth_irq_enable(342,12576
static inline void rflpc_eth_irq_disable(352,12817
static inline void rflpc_eth_irq_enable_set(362,13093
static inline void rflpc_eth_irq_clear(368,13227
static inline uint32_t rflpc_eth_irq_get_status(376,13409
static inline void rflpc_eth_irq_trigger(388,13701
static inline void rflpc_eth_activate_rx_filter(403,14166
static inline void rflpc_eth_deactivate_rx_filter(420,14828
rflpc17xx/drivers/timer.h,467
#define __RFLPC_TIMER_H__25,855
RFLPC_TIMER0,50,1487
RFLPC_TIMER1,51,1521
RFLPC_TIMER2,52,1555
RFLPC_TIMER3,53,1589
RFLPC_TIMER_PWM 54,1624
} rflpc_timer_t;55,1662
RFLPC_TIMER_MATCH0,61,1744
RFLPC_TIMER_MATCH1,62,1793
RFLPC_TIMER_MATCH2,63,1842
RFLPC_TIMER_MATCH3,64,1891
} rflpc_timer_match_t;65,1940
RFLPC_TIMER_IRQ_ON_MATCH 71,2012
RFLPC_TIMER_RESET_ON_MATCH 72,2118
RFLPC_TIMER_STOP_ON_MATCH 73,2219
rflpc17xx/drivers/timer.c,787
static LPC_TIM_TypeDef *rflpc_timer_base(rflpc_timer_base25,840
void rflpc_timer_enable(43,1386
void rflpc_timer_disable(61,1709
void rflpc_timer_set_clock(79,2035
void rflpc_timer_set_callback(99,2530
void rflpc_timer_start(108,2797
int rflpc_timer_running(114,2923
void rflpc_timer_stop(119,3018
void rflpc_timer_reset(125,3145
uint32_t rflpc_timer_get_counter(132,3346
uint32_t rflpc_timer_get_pre_scale_counter(137,3445
uint32_t rflpc_timer_get_pre_scale_register(142,3554
void rflpc_timer_set_counter(148,3665
void rflpc_timer_set_pre_scale_counter(153,3777
void rflpc_timer_set_pre_scale_register(158,3899
void rflpc_timer_set_match_value(163,4022
void rflpc_timer_set_irq_on_match(168,4220
void rflpc_timer_reset_irq(175,4508
int rflpc_timer_test_irq(180,4655
rflpc17xx/drivers/uart.c,579
struct uart_pin_conf33,1093
uint8_t tx_pin;37,1155
uint8_t rx_pin;38,1177
unsigned char pin_function:pin_function39,1199
}gpio;gpio40,1235
LPC_UART_TypeDef *base_address;base_address42,1247
typedef struct uart_pin_conf uart_pin_conf_t;45,1285
static uart_pin_conf_t _rflpc_uart_config[_rflpc_uart_config47,1332
#define BASE_ADDR(69,1794
void rflpc_uart_putchar(71,1855
int rflpc_uart_byte_available(77,2050
char rflpc_uart_getchar(82,2151
int _rflpc_uart_init(99,2529
int rflpc_uart_init(129,3492
void rflpc_uart_set_rx_callback(169,4605
rflpc17xx/drivers/dma.c,715
static LPC_GPDMACH_TypeDef *rflpc_dma_get_chan(rflpc_dma_get_chan26,914
static volatile uint32_t *rflpc_dma_get_chan_control_register(rflpc_dma_get_chan_control_register44,1436
static volatile uint32_t *rflpc_dma_get_chan_config_register(rflpc_dma_get_chan_config_register52,1659
static volatile uint32_t *rflpc_dma_get_chan_source(rflpc_dma_get_chan_source60,1880
static volatile uint32_t *rflpc_dma_get_chan_destination(rflpc_dma_get_chan_destination68,2093
static void rflpc_dma_set_channel_control(76,2312
static void rflpc_dma_set_channel_config(81,2496
static void rflpc_dma_set_channel_lli(86,2608
void rflpc_dma_init(94,2804
int rflpc_dma_channel_ready(103,3009
int rflpc_dma_start(108,3127
rflpc17xx/drivers/leds.h,368
#define __RFLPC_LEDS_H__25,896
#define RFLPC_LED_1 41,1253
#define RFLPC_LED_2 43,1328
#define RFLPC_LED_3 45,1403
#define RFLPC_LED_4 47,1478
static inline void rflpc_led_init(53,1649
static inline void rflpc_led_set(63,1970
static inline void rflpc_led_clr(70,2143
static inline void rflpc_led_val(77,2315
static inline void rflpc_led_binary_value(89,2644
rflpc17xx/drivers/ethernet.c,755
#define ETH_DELAY 34,1007
static const uint8_t clock_dividers[clock_dividers36,1078
static void _write_to_phy_register_with_addr(41,1245
static uint16_t _read_from_phy_register_with_addr(55,1625
static void _eth_setup_pins(68,2072
#define _read_from_phy_register(83,2918
#define _write_to_phy_register(84,3016
int rflpc_eth_init(86,3125
int rflpc_eth_link_state(158,5518
int rflpc_eth_link_auto_negociate(163,5667
void rflpc_eth_set_link_mode(230,7624
int rflpc_eth_get_link_mode(276,8756
void rflpc_eth_set_rx_base_addresses(306,9759
void rflpc_eth_set_tx_base_addresses(322,10476
void rflpc_eth_get_mac_address(336,11053
void rflpc_eth_set_mac_address(348,11349
#define DUMP_REGISTER(356,11570
void rflpc_eth_dump_internals(357,11630
rflpc17xx/drivers/sys_tick_timer.c,122
void rflpc_sys_timer_init(27,1030
void rflpc_sys_timer_set_period(36,1185
void rflpc_sys_timer_set_tick_period(56,1780
rflpc17xx/drivers/spi.c,310
#define PINFUNC_SPI 28,953
#define SCK0_PIN 30,976
#define SSEL0_PIN 31,1010
#define MISO0_PIN 32,1044
#define MOSI0_PIN 33,1078
#define SSEL1_PIN 36,1114
#define SCK1_PIN 37,1148
#define MISO1_PIN 38,1182
#define MOSI1_PIN 39,1216
void rflpc_spi_init(41,1251
void rflpc_spi_set_rx_callback(81,2935
rflpc17xx/drivers/eth_const.h,6013
#define __RFLPC_ETH_CONST_H__28,965
#define RFLPC_ETH_PCENET_BIT 40,1297
#define RFLPC_ETH_PIN_TXD0 50,1547
#define RFLPC_ETH_PIN_TXD1 52,1621
#define RFLPC_ETH_PIN_TX_EN 54,1700
#define RFLPC_ETH_PIN_CRS 56,1772
#define RFLPC_ETH_PIN_RXD0 58,1845
#define RFLPC_ETH_PIN_RXD1 60,1918
#define RFLPC_ETH_PIN_RX_ER 62,1986
#define RFLPC_ETH_PIN_REF_CLK 64,2056
#define RFLPC_ETH_PIN_MDC 66,2125
#define RFLPC_ETH_PIN_MDIO 68,2208
#define RFLPC_ETH_MAC1_RECEIVE_ENABLE 77,2402
#define RFLPC_ETH_MAC1_PASS_ALL_FRAMES 79,2483
#define RFLPC_ETH_MAC1_RX_FLOW_CONTROL 81,2573
#define RFLPC_ETH_MAC1_TX_FLOW_CONTROL 83,2664
#define RFLPC_ETH_MAC1_LOOPBACK 85,2775
#define RFLPC_ETH_MAC1_RESET_TX 87,2849
#define RFLPC_ETH_MAC1_RESET_MCS_TX 89,2946
#define RFLPC_ETH_MAC1_RESET_RX 91,3020
#define RFLPC_ETH_MAC1_RESET_MCS_RX 93,3117
#define RFLPC_ETH_MAC1_SIM_RESET 95,3232
#define RFLPC_ETH_MAC1_SOFT_RESET 97,3309
#define RFLPC_ETH_MAC2_FULL_DUPLEX 101,3440
#define RFLPC_ETH_MAC2_FRAME_LENGTH_CHK 103,3575
#define RFLPC_ETH_MAC2_HUGE_FRAME_ENABLE 105,3659
#define RFLPC_ETH_MAC2_DELAYED_CRC 107,3820
#define RFLPC_ETH_MAC2_CRC_ENABLE 109,3906
#define RFLPC_ETH_MAC2_PAD_CRC_ENABLE 111,3996
#define RFLPC_ETH_MAC2_VLAN_PAD_ENABLE 113,4116
#define RFLPC_ETH_MAC2_AUTO_DETECT_PAD_ENABLE 115,4204
#define RFLPC_ETH_MAC2_PURE_PREAMBLE_ENFORCE 117,4297
#define RFLPC_ETH_MAC2_LONG_PREAMBLE_ENFORCE 119,4390
#define RFLPC_ETH_MAC2_NO_BACKOFF 121,4492
#define RFLPC_ETH_MAC2_BACK_PRESSURE 123,4616
#define RFLPC_ETH_MAC2_EXCESS_DEFER 127,4861
#define RFLPC_ETH_CMD_RX_ENABLE 136,5014
#define RFLPC_ETH_CMD_TX_ENABLE 137,5062
#define RFLPC_ETH_CMD_REG_RESET 138,5110
#define RFLPC_ETH_CMD_TX_RESET 139,5158
#define RFLPC_ETH_CMD_RX_RESET 140,5206
#define RFLPC_ETH_CMD_PASS_RUNT_FRAMES 141,5254
#define RFLPC_ETH_CMD_PASS_RX_FILTER 142,5302
#define RFLPC_ETH_CMD_TX_FLOW_CONTROL 143,5350
#define RFLPC_ETH_CMD_RMII 144,5398
#define RFLPC_ETH_CMD_FULL_DUPLEX 145,5446
#define RFLPC_ETH_RXFILTER_UNICAST_EN 152,5570
#define RFLPC_ETH_RXFILTER_BROADCAST_EN 153,5625
#define RFLPC_ETH_RXFILTER_MULTICAST_EN 154,5680
#define RFLPC_ETH_RXFILTER_UNICAST_HASH_EN 155,5735
#define RFLPC_ETH_RXFILTER_MULTICAST_HASH_EN 156,5790
#define RFLPC_ETH_RXFILTER_PERFECT_EN 157,5845
#define RFLPC_ETH_RXFILTER_MAGIC_WOL_EN 158,5900
#define RFLPC_ETH_RXFILTER_RXFILTER_WOL_EN 159,5956
#define RFLPC_ETH_MIND_BUSY 167,6100