File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ void initVariant() {
215215#if defined(USE_BQ24195L_PMIC)
216216 enable_battery_charging ();
217217#endif
218+ startFPGA ();
218219}
219220
220221void enableFpgaClock () {
@@ -231,6 +232,8 @@ void disableFpgaClock() {
231232 delay (1000 );
232233}
233234
235+ __attribute__ ((weak)) void startFPGA() {};
236+
234237// Multi-serial objects instantiation
235238SERCOM sercom0 (SERCOM0);
236239SERCOM sercom1 (SERCOM1);
Original file line number Diff line number Diff line change @@ -199,11 +199,12 @@ extern Uart Serial1;
199199// Alias Serial to SerialUSB
200200#define Serial SerialUSB
201201
202- // FPGA-specific clock
202+ // FPGA-specific functions
203203#ifdef __cplusplus
204204extern "C" {
205205#endif
206206void clockout (uint32_t gclk , int32_t divisor );
207+ void startFPGA ();
207208#ifdef __cplusplus
208209}
209210#endif
You can’t perform that action at this time.
0 commit comments