소스 검색

Change DTR to RTS in lpc_ispmode

The pin used to determine if the microcontroller should enter bootloader mode is connected to RTS.
Mateusz Bugdalski 13 년 전
부모
커밋
a312e9ae13
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lpc.c

+ 1 - 1
lpc.c

@@ -328,7 +328,7 @@ int lpc_read_partid(struct lpc_device *dev) {
 }
 
 void lpc_ispmode(struct lpc_device *dev, int state) {
-  serial_setline(dev->port, SERIAL_DTR, state);
+  serial_setline(dev->port, SERIAL_RTS, state);
 }
 
 void lpc_reset(struct lpc_device *dev, int isp) {