PD Buddy Sink Firmware
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

board.chcfg 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--PD Buddy Sink ChibiOS board configuration-->
  3. <board
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32f0xx_board.xsd">
  6. <configuration_settings>
  7. <templates_path>resources/gencfg/processors/boards/stm32f0xx/templates</templates_path>
  8. <output_path>..</output_path>
  9. <hal_version>5.0.x</hal_version>
  10. </configuration_settings>
  11. <board_name>PD Buddy Sink</board_name>
  12. <board_id>PD_BUDDY_SINK</board_id>
  13. <board_functions>
  14. <__early_init>/* Jump to the bootloader if the magic value is set in
  15. * dfu_reset_to_bootloader_magic. */
  16. if (dfu_reset_to_bootloader_magic == RESET_TO_BOOTLOADER_MAGIC_CODE) {
  17. asm("cpsie i");
  18. void (*bootloader)(void) = (void (*)(void)) (*((uint32_t *) SYSMEM_RESET_VECTOR));
  19. dfu_reset_to_bootloader_magic = 0;
  20. __set_MSP(BOOTLOADER_STACK_POINTER);
  21. bootloader();
  22. while (42);
  23. }</__early_init></board_functions>
  24. <headers>
  25. <header>stm32f072_bootloader.h</header></headers>
  26. <subtype>STM32F072xB</subtype>
  27. <clocks HSEFrequency="0" HSEBypass="true" LSEFrequency="0"
  28. LSEBypass="false" LSEDrive="3 High Drive (default)" ></clocks>
  29. <ports>
  30. <GPIOA>
  31. <pin0
  32. ID=""
  33. Type="PushPull"
  34. Speed="Minimum"
  35. Resistor="PullUp"
  36. Level="High"
  37. Mode="Input"
  38. Alternate="0" />
  39. <pin1
  40. ID=""
  41. Type="PushPull"
  42. Speed="Minimum"
  43. Resistor="PullUp"
  44. Level="High"
  45. Mode="Input"
  46. Alternate="0" />
  47. <pin2
  48. ID=""
  49. Type="PushPull"
  50. Speed="Minimum"
  51. Resistor="PullUp"
  52. Level="High"
  53. Mode="Input"
  54. Alternate="0" />
  55. <pin3
  56. ID=""
  57. Type="PushPull"
  58. Speed="Minimum"
  59. Resistor="PullUp"
  60. Level="High"
  61. Mode="Input"
  62. Alternate="0" />
  63. <pin4
  64. ID=""
  65. Type="PushPull"
  66. Speed="Minimum"
  67. Resistor="PullUp"
  68. Level="High"
  69. Mode="Input"
  70. Alternate="0" />
  71. <pin5
  72. ID=""
  73. Type="PushPull"
  74. Speed="Minimum"
  75. Resistor="PullUp"
  76. Level="High"
  77. Mode="Input"
  78. Alternate="0" />
  79. <pin6
  80. ID=""
  81. Type="PushPull"
  82. Speed="Minimum"
  83. Resistor="PullUp"
  84. Level="High"
  85. Mode="Input"
  86. Alternate="0" />
  87. <pin7
  88. ID=""
  89. Type="PushPull"
  90. Speed="Minimum"
  91. Resistor="PullUp"
  92. Level="High"
  93. Mode="Input"
  94. Alternate="0" />
  95. <pin8
  96. ID=""
  97. Type="PushPull"
  98. Speed="Minimum"
  99. Resistor="PullUp"
  100. Level="High"
  101. Mode="Input"
  102. Alternate="0" />
  103. <pin9
  104. ID=""
  105. Type="PushPull"
  106. Speed="Minimum"
  107. Resistor="PullUp"
  108. Level="High"
  109. Mode="Input"
  110. Alternate="0" />
  111. <pin10
  112. ID=""
  113. Type="PushPull"
  114. Speed="Minimum"
  115. Resistor="PullUp"
  116. Level="High"
  117. Mode="Input"
  118. Alternate="0" />
  119. <pin11
  120. ID="USB_DM"
  121. Type="PushPull"
  122. Speed="Minimum"
  123. Resistor="Floating"
  124. Level="High"
  125. Mode="Input"
  126. Alternate="0" />
  127. <pin12
  128. ID="USB_DP"
  129. Type="PushPull"
  130. Speed="Minimum"
  131. Resistor="Floating"
  132. Level="High"
  133. Mode="Input"
  134. Alternate="0" />
  135. <pin13
  136. ID="SWDIO"
  137. Type="PushPull"
  138. Speed="Maximum"
  139. Resistor="PullUp"
  140. Level="High"
  141. Mode="Alternate"
  142. Alternate="0" />
  143. <pin14
  144. ID="SWCLK"
  145. Type="PushPull"
  146. Speed="Maximum"
  147. Resistor="PullDown"
  148. Level="High"
  149. Mode="Alternate"
  150. Alternate="0" />
  151. <pin15
  152. ID="LED"
  153. Type="PushPull"
  154. Speed="Maximum"
  155. Resistor="Floating"
  156. Level="Low"
  157. Mode="Output"
  158. Alternate="0" />
  159. </GPIOA>
  160. <GPIOB>
  161. <pin0
  162. ID=""
  163. Type="PushPull"
  164. Speed="Minimum"
  165. Resistor="PullUp"
  166. Level="High"
  167. Mode="Input"
  168. Alternate="0" />
  169. <pin1
  170. ID=""
  171. Type="PushPull"
  172. Speed="Minimum"
  173. Resistor="PullUp"
  174. Level="High"
  175. Mode="Input"
  176. Alternate="0" />
  177. <pin2
  178. ID=""
  179. Type="PushPull"
  180. Speed="Maximum"
  181. Resistor="PullUp"
  182. Level="High"
  183. Mode="Input"
  184. Alternate="0" />
  185. <pin3
  186. ID="BUTTON"
  187. Type="PushPull"
  188. Speed="Minimum"
  189. Resistor="Floating"
  190. Level="High"
  191. Mode="Input"
  192. Alternate="0" />
  193. <pin4
  194. ID=""
  195. Type="PushPull"
  196. Speed="Maximum"
  197. Resistor="PullUp"
  198. Level="High"
  199. Mode="Input"
  200. Alternate="0" />
  201. <pin5
  202. ID=""
  203. Type="PushPull"
  204. Speed="Minimum"
  205. Resistor="PullUp"
  206. Level="High"
  207. Mode="Input"
  208. Alternate="0" />
  209. <pin6
  210. ID=""
  211. Type="PushPull"
  212. Speed="Minimum"
  213. Resistor="PullUp"
  214. Level="High"
  215. Mode="Input"
  216. Alternate="0" />
  217. <pin7
  218. ID=""
  219. Type="PushPull"
  220. Speed="Minimum"
  221. Resistor="PullUp"
  222. Level="High"
  223. Mode="Input"
  224. Alternate="0" />
  225. <pin8
  226. ID="OUT_CTRL"
  227. Type="PushPull"
  228. Speed="Minimum"
  229. Resistor="Floating"
  230. Level="Low"
  231. Mode="Output"
  232. Alternate="0" />
  233. <pin9
  234. ID=""
  235. Type="PushPull"
  236. Speed="Minimum"
  237. Resistor="PullUp"
  238. Level="High"
  239. Mode="Input"
  240. Alternate="0" />
  241. <pin10
  242. ID="SCL"
  243. Type="OpenDrain"
  244. Speed="Maximum"
  245. Resistor="Floating"
  246. Level="High"
  247. Mode="Alternate"
  248. Alternate="1" />
  249. <pin11
  250. ID="SDA"
  251. Type="OpenDrain"
  252. Speed="Maximum"
  253. Resistor="Floating"
  254. Level="High"
  255. Mode="Alternate"
  256. Alternate="1" />
  257. <pin12
  258. ID="INT_N"
  259. Type="PushPull"
  260. Speed="High"
  261. Resistor="Floating"
  262. Level="Low"
  263. Mode="Input"
  264. Alternate="0" />
  265. <pin13
  266. ID=""
  267. Type="PushPull"
  268. Speed="Minimum"
  269. Resistor="PullUp"
  270. Level="High"
  271. Mode="Input"
  272. Alternate="0" ></pin13>
  273. <pin14
  274. ID=""
  275. Type="PushPull"
  276. Speed="Minimum"
  277. Resistor="PullUp"
  278. Level="High"
  279. Mode="Input"
  280. Alternate="0" />
  281. <pin15
  282. ID=""
  283. Type="PushPull"
  284. Speed="Minimum"
  285. Resistor="PullUp"
  286. Level="High"
  287. Mode="Input"
  288. Alternate="0" />
  289. </GPIOB>
  290. <GPIOC>
  291. <pin0
  292. ID=""
  293. Type="PushPull"
  294. Speed="Maximum"
  295. Resistor="PullUp"
  296. Level="High"
  297. Mode="Input"
  298. Alternate="0" />
  299. <pin1
  300. ID=""
  301. Type="PushPull"
  302. Speed="Minimum"
  303. Resistor="PullUp"
  304. Level="High"
  305. Mode="Input"
  306. Alternate="0" />
  307. <pin2
  308. ID=""
  309. Type="PushPull"
  310. Speed="Minimum"
  311. Resistor="PullUp"
  312. Level="High"
  313. Mode="Input"
  314. Alternate="0" />
  315. <pin3
  316. ID=""
  317. Type="PushPull"
  318. Speed="Minimum"
  319. Resistor="PullUp"
  320. Level="High"
  321. Mode="Input"
  322. Alternate="0" />
  323. <pin4
  324. ID=""
  325. Type="PushPull"
  326. Speed="Minimum"
  327. Resistor="PullUp"
  328. Level="High"
  329. Mode="Input"
  330. Alternate="0" />
  331. <pin5
  332. ID=""
  333. Type="PushPull"
  334. Speed="Minimum"
  335. Resistor="PullUp"
  336. Level="High"
  337. Mode="Input"
  338. Alternate="0" />
  339. <pin6
  340. ID=""
  341. Type="PushPull"
  342. Speed="Minimum"
  343. Resistor="PullUp"
  344. Level="High"
  345. Mode="Input"
  346. Alternate="0" />
  347. <pin7
  348. ID=""
  349. Type="PushPull"
  350. Speed="Minimum"
  351. Resistor="PullUp"
  352. Level="High"
  353. Mode="Input"
  354. Alternate="0" />
  355. <pin8
  356. ID=""
  357. Type="PushPull"
  358. Speed="Minimum"
  359. Resistor="PullUp"
  360. Level="High"
  361. Mode="Input"
  362. Alternate="0" ></pin8>
  363. <pin9
  364. ID=""
  365. Type="PushPull"
  366. Speed="Minimum"
  367. Resistor="PullUp"
  368. Level="High"
  369. Mode="Input"
  370. Alternate="0" />
  371. <pin10
  372. ID=""
  373. Type="PushPull"
  374. Speed="Minimum"
  375. Resistor="PullUp"
  376. Level="High"
  377. Mode="Input"
  378. Alternate="0" />
  379. <pin11
  380. ID=""
  381. Type="PushPull"
  382. Speed="Minimum"
  383. Resistor="PullUp"
  384. Level="High"
  385. Mode="Input"
  386. Alternate="0" />
  387. <pin12
  388. ID=""
  389. Type="PushPull"
  390. Speed="Minimum"
  391. Resistor="PullUp"
  392. Level="High"
  393. Mode="Input"
  394. Alternate="0" />
  395. <pin13
  396. ID=""
  397. Type="PushPull"
  398. Speed="Minimum"
  399. Resistor="PullUp"
  400. Level="High"
  401. Mode="Input"
  402. Alternate="0" />
  403. <pin14
  404. ID=""
  405. Type="PushPull"
  406. Speed="Minimum"
  407. Resistor="PullUp"
  408. Level="High"
  409. Mode="Input"
  410. Alternate="0" />
  411. <pin15
  412. ID=""
  413. Type="PushPull"
  414. Speed="Minimum"
  415. Resistor="PullUp"
  416. Level="High"
  417. Mode="Input"
  418. Alternate="0" />
  419. </GPIOC>
  420. <GPIOD>
  421. <pin0
  422. ID=""
  423. Type="PushPull"
  424. Speed="Minimum"
  425. Resistor="PullUp"
  426. Level="High"
  427. Mode="Input"
  428. Alternate="0" />
  429. <pin1
  430. ID=""
  431. Type="PushPull"
  432. Speed="Minimum"
  433. Resistor="PullUp"
  434. Level="High"
  435. Mode="Input"
  436. Alternate="0" />
  437. <pin2
  438. ID=""
  439. Type="PushPull"
  440. Speed="Minimum"
  441. Resistor="PullUp"
  442. Level="High"
  443. Mode="Input"
  444. Alternate="0" />
  445. <pin3
  446. ID=""
  447. Type="PushPull"
  448. Speed="Minimum"
  449. Resistor="PullUp"
  450. Level="High"
  451. Mode="Input"
  452. Alternate="0" />
  453. <pin4
  454. ID=""
  455. Type="PushPull"
  456. Speed="Minimum"
  457. Resistor="PullUp"
  458. Level="High"
  459. Mode="Input"
  460. Alternate="0" />
  461. <pin5
  462. ID=""
  463. Type="PushPull"
  464. Speed="Minimum"
  465. Resistor="PullUp"
  466. Level="High"
  467. Mode="Input"
  468. Alternate="0" />
  469. <pin6
  470. ID=""
  471. Type="PushPull"
  472. Speed="Minimum"
  473. Resistor="PullUp"
  474. Level="High"
  475. Mode="Input"
  476. Alternate="0" />
  477. <pin7
  478. ID=""
  479. Type="PushPull"
  480. Speed="Minimum"
  481. Resistor="PullUp"
  482. Level="High"
  483. Mode="Input"
  484. Alternate="0" />
  485. <pin8
  486. ID=""
  487. Type="PushPull"
  488. Speed="Minimum"
  489. Resistor="PullUp"
  490. Level="High"
  491. Mode="Input"
  492. Alternate="0" />
  493. <pin9
  494. ID=""
  495. Type="PushPull"
  496. Speed="Minimum"
  497. Resistor="PullUp"
  498. Level="High"
  499. Mode="Input"
  500. Alternate="0" />
  501. <pin10
  502. ID=""
  503. Type="PushPull"
  504. Speed="Minimum"
  505. Resistor="PullUp"
  506. Level="High"
  507. Mode="Input"
  508. Alternate="0" />
  509. <pin11
  510. ID=""
  511. Type="PushPull"
  512. Speed="Minimum"
  513. Resistor="PullUp"
  514. Level="High"
  515. Mode="Input"
  516. Alternate="0" />
  517. <pin12
  518. ID=""
  519. Type="PushPull"
  520. Speed="Minimum"
  521. Resistor="PullUp"
  522. Level="High"
  523. Mode="Input"
  524. Alternate="0" />
  525. <pin13
  526. ID=""
  527. Type="PushPull"
  528. Speed="Minimum"
  529. Resistor="PullUp"
  530. Level="High"
  531. Mode="Input"
  532. Alternate="0" />
  533. <pin14
  534. ID=""
  535. Type="PushPull"
  536. Speed="Minimum"
  537. Resistor="PullUp"
  538. Level="High"
  539. Mode="Input"
  540. Alternate="0" />
  541. <pin15
  542. ID=""
  543. Type="PushPull"
  544. Speed="Minimum"
  545. Resistor="PullUp"
  546. Level="High"
  547. Mode="Input"
  548. Alternate="0" />
  549. </GPIOD>
  550. <GPIOE>
  551. <pin0 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  552. Level="High" Mode="Input" Alternate="0" />
  553. <pin1 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  554. Level="High" Mode="Input" Alternate="0" />
  555. <pin2 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  556. Level="High" Mode="Input" Alternate="0" />
  557. <pin3 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  558. Level="High" Mode="Input" Alternate="0" />
  559. <pin4 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  560. Level="High" Mode="Input" Alternate="0" />
  561. <pin5 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  562. Level="High" Mode="Input" Alternate="0" />
  563. <pin6 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  564. Level="High" Mode="Input" Alternate="0" />
  565. <pin7 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  566. Level="High" Mode="Input" Alternate="0" />
  567. <pin8 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  568. Level="High" Mode="Input" Alternate="0" />
  569. <pin9 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  570. Level="High" Mode="Input" Alternate="0" />
  571. <pin10 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  572. Level="High" Mode="Input" Alternate="0" />
  573. <pin11 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  574. Level="High" Mode="Input" Alternate="0" />
  575. <pin12 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  576. Level="High" Mode="Input" Alternate="0" />
  577. <pin13 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  578. Level="High" Mode="Input" Alternate="0" />
  579. <pin14 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  580. Level="High" Mode="Input" Alternate="0" />
  581. <pin15 ID="" Type="PushPull" Speed="Minimum" Resistor="PullUp"
  582. Level="High" Mode="Input" Alternate="0" />
  583. </GPIOE>
  584. <GPIOF>
  585. <pin0
  586. ID=""
  587. Type="PushPull"
  588. Speed="Minimum"
  589. Resistor="PullUp"
  590. Level="High"
  591. Mode="Input"
  592. Alternate="0" />
  593. <pin1
  594. ID=""
  595. Type="PushPull"
  596. Speed="Minimum"
  597. Resistor="PullUp"
  598. Level="High"
  599. Mode="Input"
  600. Alternate="0" />
  601. <pin2
  602. ID=""
  603. Type="PushPull"
  604. Speed="Minimum"
  605. Resistor="PullUp"
  606. Level="High"
  607. Mode="Input"
  608. Alternate="0" />
  609. <pin3
  610. ID=""
  611. Type="PushPull"
  612. Speed="Minimum"
  613. Resistor="PullUp"
  614. Level="High"
  615. Mode="Input"
  616. Alternate="0" />
  617. <pin4
  618. ID=""
  619. Type="PushPull"
  620. Speed="Minimum"
  621. Resistor="PullUp"
  622. Level="High"
  623. Mode="Input"
  624. Alternate="0" />
  625. <pin5
  626. ID=""
  627. Type="PushPull"
  628. Speed="Minimum"
  629. Resistor="PullUp"
  630. Level="High"
  631. Mode="Input"
  632. Alternate="0" />
  633. <pin6
  634. ID=""
  635. Type="PushPull"
  636. Speed="Minimum"
  637. Resistor="PullUp"
  638. Level="High"
  639. Mode="Input"
  640. Alternate="0" />
  641. <pin7
  642. ID=""
  643. Type="PushPull"
  644. Speed="Minimum"
  645. Resistor="PullUp"
  646. Level="High"
  647. Mode="Input"
  648. Alternate="0" />
  649. <pin8
  650. ID=""
  651. Type="PushPull"
  652. Speed="Minimum"
  653. Resistor="PullUp"
  654. Level="High"
  655. Mode="Input"
  656. Alternate="0" />
  657. <pin9
  658. ID=""
  659. Type="PushPull"
  660. Speed="Minimum"
  661. Resistor="PullUp"
  662. Level="High"
  663. Mode="Input"
  664. Alternate="0" />
  665. <pin10
  666. ID=""
  667. Type="PushPull"
  668. Speed="Minimum"
  669. Resistor="PullUp"
  670. Level="High"
  671. Mode="Input"
  672. Alternate="0" />
  673. <pin11
  674. ID=""
  675. Type="PushPull"
  676. Speed="Minimum"
  677. Resistor="PullUp"
  678. Level="High"
  679. Mode="Input"
  680. Alternate="0" />
  681. <pin12
  682. ID=""
  683. Type="PushPull"
  684. Speed="Minimum"
  685. Resistor="PullUp"
  686. Level="High"
  687. Mode="Input"
  688. Alternate="0" />
  689. <pin13
  690. ID=""
  691. Type="PushPull"
  692. Speed="Minimum"
  693. Resistor="PullUp"
  694. Level="High"
  695. Mode="Input"
  696. Alternate="0" />
  697. <pin14
  698. ID=""
  699. Type="PushPull"
  700. Speed="Minimum"
  701. Resistor="PullUp"
  702. Level="High"
  703. Mode="Input"
  704. Alternate="0" />
  705. <pin15
  706. ID=""
  707. Type="PushPull"
  708. Speed="Minimum"
  709. Resistor="PullUp"
  710. Level="High"
  711. Mode="Input"
  712. Alternate="0" />
  713. </GPIOF>
  714. </ports>
  715. </board>