STM32 FastIO using register access (#12276)

This commit is contained in:
Karl Andersson
2018-10-31 01:25:44 +01:00
committed by Scott Lahteine
parent 56057bcecd
commit 1946f729fd
4 changed files with 78 additions and 10 deletions

View File

@ -80,10 +80,16 @@ uint16_t HAL_adc_result;
// HAL initialization task
void HAL_init(void) {
FastIO_init();
#if ENABLED(SDSUPPORT)
OUT_WRITE(SDSS, HIGH); // Try to set SDSS inactive before any other SPI users start up
#endif
#if PIN_EXISTS(LED)
OUT_WRITE(LED_PIN, LOW);
#endif
#if ENABLED(EEPROM_EMULATED_WITH_SRAM)
// Enable access to backup SRAM
__HAL_RCC_PWR_CLK_ENABLE();