diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-07-06 14:29:46 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-07-06 16:06:53 +0300 |
commit | a7e3e4e652a2b9f172282f3876d74ee247a63105 (patch) | |
tree | 22bf63df25f5fed633df6e4a23e02617c26e6eff /keyboards/infinity_ergodox/infinity_ergodox.c | |
parent | c6d671e54c249497b5c01ad9badaa50425f394f9 (diff) |
Add serial_link compilation to Infinity Ergodox
Diffstat (limited to 'keyboards/infinity_ergodox/infinity_ergodox.c')
-rw-r--r-- | keyboards/infinity_ergodox/infinity_ergodox.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/infinity_ergodox/infinity_ergodox.c b/keyboards/infinity_ergodox/infinity_ergodox.c index 34aded1a73..85054775e8 100644 --- a/keyboards/infinity_ergodox/infinity_ergodox.c +++ b/keyboards/infinity_ergodox/infinity_ergodox.c @@ -1 +1,11 @@ #include "infinity_ergodox.h" +#include "ch.h" +#include "hal.h" +#include "serial_link/system/serial_link.h" + +void init_serial_link_hal(void) { + PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2); + PORTA->PCR[2] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(2); + PORTE->PCR[0] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(3); + PORTE->PCR[1] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(3); +} |