diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-08 04:10:05 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-08 04:10:05 +0400 |
commit | ffd143e305e4454b4dd3f1ca5037be7d6094f9f8 (patch) | |
tree | 70f2e7f348f0e322a98c8c0912653fce9d470e77 /fastspi_arm_k20.h | |
parent | 8aa1405052a2716f65f5bd524cc6c52912d2371e (diff) |
Some port/pin flag tweaks for the K20 hardware SPI support
Diffstat (limited to 'fastspi_arm_k20.h')
-rw-r--r-- | fastspi_arm_k20.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fastspi_arm_k20.h b/fastspi_arm_k20.h index 7e938d54..ad9598ae 100644 --- a/fastspi_arm_k20.h +++ b/fastspi_arm_k20.h @@ -93,9 +93,9 @@ class ARMHardwareSPIOutput { CORE_PIN12_CONFIG = PORT_PCR_MUX(2); CORE_PIN13_CONFIG = PORT_PCR_DSE | PORT_PCR_MUX(2); } else if(_DATA_PIN == 7) { - CORE_PIN7_CONFIG = PORT_PCR_MUX(2); - CORE_PIN8_CONFIG = PORT_PCR_MUX(2); - CORE_PIN14_CONFIG = PORT_PCR_MUX(2); + CORE_PIN7_CONFIG = PORT_PCR_DSE | PORT_PCR_MUX(2); + CORE_PIN8_CONFIG = PORT_PCR_DSE | PORT_PCR_MUX(2); + CORE_PIN14_CONFIG = PORT_PCR_DSE | PORT_PCR_MUX(2); } } @@ -107,9 +107,9 @@ class ARMHardwareSPIOutput { CORE_PIN12_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); CORE_PIN13_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); } else if(_DATA_PIN == 7) { - // CORE_PIN7_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); - // CORE_PIN8_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); - // CORE_PIN14_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); + CORE_PIN7_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); + CORE_PIN8_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); + CORE_PIN14_CONFIG = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); } } public: |