瀏覽代碼

Fix cast warning in Gen7

Erik van der Zalm 12 年之前
父節點
當前提交
00690f7ffd

二進制
Marlin/Debug/CL.read.1.tlog 查看文件


二進制
Marlin/Debug/CL.write.1.tlog 查看文件


+ 0
- 2
Marlin/Debug/Marlin.lastbuildstate 查看文件

@@ -1,2 +0,0 @@
1
-#v4.0:v100
2
-Debug|Win32|C:\Users\Blair\Desktop\Marlin_v1\Marlin\|

+ 0
- 1042
Marlin/Debug/Marlin.log
文件差異過大導致無法顯示
查看文件


+ 0
- 0
Marlin/Debug/Marlin.unsuccessfulbuild 查看文件


二進制
Marlin/Debug/cl.command.1.tlog 查看文件


二進制
Marlin/Debug/vc100.idb 查看文件


二進制
Marlin/Debug/vc100.pdb 查看文件


+ 12
- 12
Marlin/Gen7/cores/arduino/pins_arduino.c 查看文件

@@ -67,28 +67,28 @@
67 67
 const uint8_t PROGMEM port_to_mode_PGM[] =
68 68
 {
69 69
 	NOT_A_PORT,
70
-    &DDRA,
71
-	&DDRB,
72
-	&DDRC,
73
-	&DDRD,
70
+        (uint8_t) &DDRA,
71
+	(uint8_t) &DDRB,
72
+	(uint8_t) &DDRC,
73
+	(uint8_t) &DDRD,
74 74
 };
75 75
 
76 76
 const uint8_t PROGMEM port_to_output_PGM[] =
77 77
 {
78 78
 	NOT_A_PORT,
79
-	&PORTA,
80
-	&PORTB,
81
-	&PORTC,
82
-	&PORTD,
79
+	(uint8_t) &PORTA,
80
+	(uint8_t) &PORTB,
81
+	(uint8_t) &PORTC,
82
+	(uint8_t) &PORTD,
83 83
 };
84 84
 
85 85
 const uint8_t PROGMEM port_to_input_PGM[] =
86 86
 {
87 87
 	NOT_A_PORT,
88
-	&PINA,
89
-	&PINB,
90
-	&PINC,
91
-	&PIND,
88
+	(uint8_t) &PINA,
89
+	(uint8_t) &PINB,
90
+	(uint8_t) &PINC,
91
+	(uint8_t) &PIND,
92 92
 };
93 93
 
94 94
 const uint8_t PROGMEM digital_pin_to_port_PGM[] =

Loading…
取消
儲存