diff --git a/os/hal/boards/MIKROE_CLICKER2_STM32/board.c b/os/hal/boards/MIKROE_CLICKER2_STM32/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/MIKROE_CLICKER2_STM32/board.c +++ b/os/hal/boards/MIKROE_CLICKER2_STM32/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/MIKROE_CLICKER2_STM32/board.h b/os/hal/boards/MIKROE_CLICKER2_STM32/board.h index 3457d6623..0acfc9a62 100644 --- a/os/hal/boards/MIKROE_CLICKER2_STM32/board.h +++ b/os/hal/boards/MIKROE_CLICKER2_STM32/board.h @@ -33,7 +33,7 @@ /* * Board identifier. */ -#define BOARD_MIKROE_CLICKER_2_FOR_STM32 +#define BOARD_MIKROE_CLICKER2_STM32 #define BOARD_NAME "Mikroe Clicker 2 for STM32" /* diff --git a/os/hal/boards/OLIMEX_STM32_E407/board.c b/os/hal/boards/OLIMEX_STM32_E407/board.c index dfb409113..cc4a495a8 100644 --- a/os/hal/boards/OLIMEX_STM32_E407/board.c +++ b/os/hal/boards/OLIMEX_STM32_E407/board.c @@ -218,10 +218,10 @@ void __early_init(void) { * @brief SDC card detection. */ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { - static bool last_status = false; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool last_status = false; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3); } @@ -229,8 +229,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection. */ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { - - (void)sdcp; + + (void)sdcp; return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c index dfb409113..cc4a495a8 100644 --- a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c +++ b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c @@ -218,10 +218,10 @@ void __early_init(void) { * @brief SDC card detection. */ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { - static bool last_status = false; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool last_status = false; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3); } @@ -229,8 +229,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection. */ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { - - (void)sdcp; + + (void)sdcp; return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/OLIMEX_STM32_H407/board.c b/os/hal/boards/OLIMEX_STM32_H407/board.c index dfb409113..cc4a495a8 100644 --- a/os/hal/boards/OLIMEX_STM32_H407/board.c +++ b/os/hal/boards/OLIMEX_STM32_H407/board.c @@ -218,10 +218,10 @@ void __early_init(void) { * @brief SDC card detection. */ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { - static bool last_status = false; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool last_status = false; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3); } @@ -229,8 +229,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection. */ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { - - (void)sdcp; + + (void)sdcp; return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/SEEED_ARCH_MAX/board.c b/os/hal/boards/SEEED_ARCH_MAX/board.c index dfb409113..cc4a495a8 100755 --- a/os/hal/boards/SEEED_ARCH_MAX/board.c +++ b/os/hal/boards/SEEED_ARCH_MAX/board.c @@ -218,10 +218,10 @@ void __early_init(void) { * @brief SDC card detection. */ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { - static bool last_status = false; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool last_status = false; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3); } @@ -229,8 +229,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection. */ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { - - (void)sdcp; + + (void)sdcp; return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F207ZG/board.c b/os/hal/boards/ST_NUCLEO144_F207ZG/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F207ZG/board.c +++ b/os/hal/boards/ST_NUCLEO144_F207ZG/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F303ZE/board.c b/os/hal/boards/ST_NUCLEO144_F303ZE/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO144_F303ZE/board.c +++ b/os/hal/boards/ST_NUCLEO144_F303ZE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F412ZG/board.c b/os/hal/boards/ST_NUCLEO144_F412ZG/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F412ZG/board.c +++ b/os/hal/boards/ST_NUCLEO144_F412ZG/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F413ZH/board.c b/os/hal/boards/ST_NUCLEO144_F413ZH/board.c index 5ee0873d7..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F413ZH/board.c +++ b/os/hal/boards/ST_NUCLEO144_F413ZH/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F413ZH/board.h b/os/hal/boards/ST_NUCLEO144_F413ZH/board.h index 4d98736bf..17706bd45 100644 --- a/os/hal/boards/ST_NUCLEO144_F413ZH/board.h +++ b/os/hal/boards/ST_NUCLEO144_F413ZH/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_NUCLEO144_F429ZI/board.c b/os/hal/boards/ST_NUCLEO144_F429ZI/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F429ZI/board.c +++ b/os/hal/boards/ST_NUCLEO144_F429ZI/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F446ZE/board.c b/os/hal/boards/ST_NUCLEO144_F446ZE/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F446ZE/board.c +++ b/os/hal/boards/ST_NUCLEO144_F446ZE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F722ZE/board.c b/os/hal/boards/ST_NUCLEO144_F722ZE/board.c index 5ee0873d7..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F722ZE/board.c +++ b/os/hal/boards/ST_NUCLEO144_F722ZE/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F722ZE/board.h b/os/hal/boards/ST_NUCLEO144_F722ZE/board.h index 83c8d59c5..8aff659de 100644 --- a/os/hal/boards/ST_NUCLEO144_F722ZE/board.h +++ b/os/hal/boards/ST_NUCLEO144_F722ZE/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_NUCLEO144_F746ZG/board.c b/os/hal/boards/ST_NUCLEO144_F746ZG/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F746ZG/board.c +++ b/os/hal/boards/ST_NUCLEO144_F746ZG/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F756ZG/board.c b/os/hal/boards/ST_NUCLEO144_F756ZG/board.c index 5ee0873d7..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F756ZG/board.c +++ b/os/hal/boards/ST_NUCLEO144_F756ZG/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_F756ZG/board.h b/os/hal/boards/ST_NUCLEO144_F756ZG/board.h index 3f5563b07..f080ebfdf 100644 --- a/os/hal/boards/ST_NUCLEO144_F756ZG/board.h +++ b/os/hal/boards/ST_NUCLEO144_F756ZG/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_NUCLEO144_F767ZI/board.c b/os/hal/boards/ST_NUCLEO144_F767ZI/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_F767ZI/board.c +++ b/os/hal/boards/ST_NUCLEO144_F767ZI/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_H743ZI/board.c b/os/hal/boards/ST_NUCLEO144_H743ZI/board.c index 41cc7ae41..7d89d865c 100644 --- a/os/hal/boards/ST_NUCLEO144_H743ZI/board.c +++ b/os/hal/boards/ST_NUCLEO144_H743ZI/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_L496ZG/board.c b/os/hal/boards/ST_NUCLEO144_L496ZG/board.c index 177ec13c8..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_L496ZG/board.c +++ b/os/hal/boards/ST_NUCLEO144_L496ZG/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -45,8 +45,6 @@ typedef struct { uint32_t odr; uint32_t afrl; uint32_t afrh; - uint32_t ascr; - uint32_t lockr; } gpio_setup_t; /** @@ -94,58 +92,47 @@ typedef struct { static const gpio_config_t gpio_default_config = { #if STM32_HAS_GPIOA {VAL_GPIOA_MODER, VAL_GPIOA_OTYPER, VAL_GPIOA_OSPEEDR, VAL_GPIOA_PUPDR, - VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH, VAL_GPIOA_ASCR, - VAL_GPIOA_LOCKR}, + VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH}, #endif #if STM32_HAS_GPIOB {VAL_GPIOB_MODER, VAL_GPIOB_OTYPER, VAL_GPIOB_OSPEEDR, VAL_GPIOB_PUPDR, - VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH, VAL_GPIOB_ASCR, - VAL_GPIOB_LOCKR}, + VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH}, #endif #if STM32_HAS_GPIOC {VAL_GPIOC_MODER, VAL_GPIOC_OTYPER, VAL_GPIOC_OSPEEDR, VAL_GPIOC_PUPDR, - VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH, VAL_GPIOC_ASCR, - VAL_GPIOC_LOCKR}, + VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH}, #endif #if STM32_HAS_GPIOD {VAL_GPIOD_MODER, VAL_GPIOD_OTYPER, VAL_GPIOD_OSPEEDR, VAL_GPIOD_PUPDR, - VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH, VAL_GPIOD_ASCR, - VAL_GPIOD_LOCKR}, + VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH}, #endif #if STM32_HAS_GPIOE {VAL_GPIOE_MODER, VAL_GPIOE_OTYPER, VAL_GPIOE_OSPEEDR, VAL_GPIOE_PUPDR, - VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH, VAL_GPIOE_ASCR, - VAL_GPIOE_LOCKR}, + VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH}, #endif #if STM32_HAS_GPIOF {VAL_GPIOF_MODER, VAL_GPIOF_OTYPER, VAL_GPIOF_OSPEEDR, VAL_GPIOF_PUPDR, - VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH, VAL_GPIOF_ASCR, - VAL_GPIOF_LOCKR}, + VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH}, #endif #if STM32_HAS_GPIOG {VAL_GPIOG_MODER, VAL_GPIOG_OTYPER, VAL_GPIOG_OSPEEDR, VAL_GPIOG_PUPDR, - VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH, VAL_GPIOG_ASCR, - VAL_GPIOG_LOCKR}, + VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH}, #endif #if STM32_HAS_GPIOH {VAL_GPIOH_MODER, VAL_GPIOH_OTYPER, VAL_GPIOH_OSPEEDR, VAL_GPIOH_PUPDR, - VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH, VAL_GPIOH_ASCR, - VAL_GPIOH_LOCKR}, + VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH}, #endif #if STM32_HAS_GPIOI {VAL_GPIOI_MODER, VAL_GPIOI_OTYPER, VAL_GPIOI_OSPEEDR, VAL_GPIOI_PUPDR, - VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH, VAL_GPIOI_ASCR, - VAL_GPIOI_LOCKR}, + VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH}, #endif #if STM32_HAS_GPIOJ {VAL_GPIOJ_MODER, VAL_GPIOJ_OTYPER, VAL_GPIOJ_OSPEEDR, VAL_GPIOJ_PUPDR, - VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH, VAL_GPIOJ_ASCR, - VAL_GPIOJ_LOCKR}, + VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH}, #endif #if STM32_HAS_GPIOK {VAL_GPIOK_MODER, VAL_GPIOK_OTYPER, VAL_GPIOK_OSPEEDR, VAL_GPIOK_PUPDR, - VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH, VAL_GPIOK_ASCR, - VAL_GPIOK_LOCKR} + VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH} #endif }; @@ -156,22 +143,20 @@ static const gpio_config_t gpio_default_config = { static void gpio_init(stm32_gpio_t *gpiop, const gpio_setup_t *config) { gpiop->OTYPER = config->otyper; - gpiop->ASCR = config->ascr; gpiop->OSPEEDR = config->ospeedr; gpiop->PUPDR = config->pupdr; gpiop->ODR = config->odr; gpiop->AFRL = config->afrl; gpiop->AFRH = config->afrh; gpiop->MODER = config->moder; - gpiop->LOCKR = config->lockr; } static void stm32_gpio_init(void) { /* Enabling GPIO-related clocks, the mask comes from the registry header file.*/ - rccResetAHB2(STM32_GPIO_EN_MASK); - rccEnableAHB2(STM32_GPIO_EN_MASK, true); + rccResetAHB1(STM32_GPIO_EN_MASK); + rccEnableAHB1(STM32_GPIO_EN_MASK, true); /* Initializing all the defined GPIO ports.*/ #if STM32_HAS_GPIOA @@ -235,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_L496ZG/board.h b/os/hal/boards/ST_NUCLEO144_L496ZG/board.h index 294d81b0a..24a430957 100644 --- a/os/hal/boards/ST_NUCLEO144_L496ZG/board.h +++ b/os/hal/boards/ST_NUCLEO144_L496ZG/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -45,8 +45,6 @@ #define STM32_LSECLK 0U #endif -#define STM32_LSEDRV (3U << 3U) - #if !defined(STM32_HSECLK) #define STM32_HSECLK 0U #endif @@ -281,10 +279,6 @@ #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) -#define PIN_ASCR_DISABLED(n) (0U << (n)) -#define PIN_ASCR_ENABLED(n) (1U << (n)) -#define PIN_LOCKR_DISABLED(n) (0U << (n)) -#define PIN_LOCKR_ENABLED(n) (1U << (n)) /* * GPIOA setup: @@ -402,38 +396,6 @@ PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \ PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \ PIN_AFIO_AF(GPIOA_PIN15, 0U)) -#define VAL_GPIOA_ASCR (PIN_ASCR_DISABLED(GPIOA_PIN0) | \ - PIN_ASCR_DISABLED(GPIOA_PIN1) | \ - PIN_ASCR_DISABLED(GPIOA_PIN2) | \ - PIN_ASCR_DISABLED(GPIOA_PIN3) | \ - PIN_ASCR_DISABLED(GPIOA_PIN4) | \ - PIN_ASCR_DISABLED(GPIOA_PIN5) | \ - PIN_ASCR_DISABLED(GPIOA_PIN6) | \ - PIN_ASCR_DISABLED(GPIOA_PIN7) | \ - PIN_ASCR_DISABLED(GPIOA_USB_SOF) | \ - PIN_ASCR_DISABLED(GPIOA_USB_VBUS) | \ - PIN_ASCR_DISABLED(GPIOA_USB_ID) | \ - PIN_ASCR_DISABLED(GPIOA_USB_DM) | \ - PIN_ASCR_DISABLED(GPIOA_USB_DP) | \ - PIN_ASCR_DISABLED(GPIOA_SWDIO) | \ - PIN_ASCR_DISABLED(GPIOA_SWCLK) | \ - PIN_ASCR_DISABLED(GPIOA_PIN15)) -#define VAL_GPIOA_LOCKR (PIN_LOCKR_DISABLED(GPIOA_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_SOF) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_VBUS) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_ID) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_DM) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_DP) | \ - PIN_LOCKR_DISABLED(GPIOA_SWDIO) | \ - PIN_LOCKR_DISABLED(GPIOA_SWCLK) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN15)) /* * GPIOB setup: @@ -551,38 +513,6 @@ PIN_AFIO_AF(GPIOB_PIN13, 0U) | \ PIN_AFIO_AF(GPIOB_LED3, 0U) | \ PIN_AFIO_AF(GPIOB_PIN15, 0U)) -#define VAL_GPIOB_ASCR (PIN_ASCR_DISABLED(GPIOB_PIN0) | \ - PIN_ASCR_DISABLED(GPIOB_PIN1) | \ - PIN_ASCR_DISABLED(GPIOB_PIN2) | \ - PIN_ASCR_DISABLED(GPIOB_SWO) | \ - PIN_ASCR_DISABLED(GPIOB_PIN4) | \ - PIN_ASCR_DISABLED(GPIOB_PIN5) | \ - PIN_ASCR_DISABLED(GPIOB_PIN6) | \ - PIN_ASCR_DISABLED(GPIOB_LED2) | \ - PIN_ASCR_DISABLED(GPIOB_PIN8) | \ - PIN_ASCR_DISABLED(GPIOB_PIN9) | \ - PIN_ASCR_DISABLED(GPIOB_PIN10) | \ - PIN_ASCR_DISABLED(GPIOB_PIN11) | \ - PIN_ASCR_DISABLED(GPIOB_PIN12) | \ - PIN_ASCR_DISABLED(GPIOB_PIN13) | \ - PIN_ASCR_DISABLED(GPIOB_LED3) | \ - PIN_ASCR_DISABLED(GPIOB_PIN15)) -#define VAL_GPIOB_LOCKR (PIN_LOCKR_DISABLED(GPIOB_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOB_SWO) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOB_LED2) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOB_LED3) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN15)) /* * GPIOC setup: @@ -700,38 +630,6 @@ PIN_AFIO_AF(GPIOC_BUTTON, 0U) | \ PIN_AFIO_AF(GPIOC_PIN14, 0U) | \ PIN_AFIO_AF(GPIOC_PIN15, 0U)) -#define VAL_GPIOC_ASCR (PIN_ASCR_DISABLED(GPIOC_PIN0) | \ - PIN_ASCR_DISABLED(GPIOC_PIN1) | \ - PIN_ASCR_DISABLED(GPIOC_PIN2) | \ - PIN_ASCR_DISABLED(GPIOC_PIN3) | \ - PIN_ASCR_DISABLED(GPIOC_PIN4) | \ - PIN_ASCR_DISABLED(GPIOC_PIN5) | \ - PIN_ASCR_DISABLED(GPIOC_PIN6) | \ - PIN_ASCR_DISABLED(GPIOC_LED1) | \ - PIN_ASCR_DISABLED(GPIOC_PIN8) | \ - PIN_ASCR_DISABLED(GPIOC_PIN9) | \ - PIN_ASCR_DISABLED(GPIOC_PIN10) | \ - PIN_ASCR_DISABLED(GPIOC_PIN11) | \ - PIN_ASCR_DISABLED(GPIOC_PIN12) | \ - PIN_ASCR_DISABLED(GPIOC_BUTTON) | \ - PIN_ASCR_DISABLED(GPIOC_PIN14) | \ - PIN_ASCR_DISABLED(GPIOC_PIN15)) -#define VAL_GPIOC_LOCKR (PIN_LOCKR_DISABLED(GPIOC_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOC_LED1) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOC_BUTTON) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN15)) /* * GPIOD setup: @@ -849,38 +747,6 @@ PIN_AFIO_AF(GPIOD_PIN13, 0U) | \ PIN_AFIO_AF(GPIOD_PIN14, 0U) | \ PIN_AFIO_AF(GPIOD_PIN15, 0U)) -#define VAL_GPIOD_ASCR (PIN_ASCR_DISABLED(GPIOD_PIN0) | \ - PIN_ASCR_DISABLED(GPIOD_PIN1) | \ - PIN_ASCR_DISABLED(GPIOD_PIN2) | \ - PIN_ASCR_DISABLED(GPIOD_PIN3) | \ - PIN_ASCR_DISABLED(GPIOD_PIN4) | \ - PIN_ASCR_DISABLED(GPIOD_PIN5) | \ - PIN_ASCR_DISABLED(GPIOD_PIN6) | \ - PIN_ASCR_DISABLED(GPIOD_PIN7) | \ - PIN_ASCR_DISABLED(GPIOD_PIN8) | \ - PIN_ASCR_DISABLED(GPIOD_PIN9) | \ - PIN_ASCR_DISABLED(GPIOD_PIN10) | \ - PIN_ASCR_DISABLED(GPIOD_PIN11) | \ - PIN_ASCR_DISABLED(GPIOD_PIN12) | \ - PIN_ASCR_DISABLED(GPIOD_PIN13) | \ - PIN_ASCR_DISABLED(GPIOD_PIN14) | \ - PIN_ASCR_DISABLED(GPIOD_PIN15)) -#define VAL_GPIOD_LOCKR (PIN_LOCKR_DISABLED(GPIOD_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN15)) /* * GPIOE setup: @@ -998,38 +864,6 @@ PIN_AFIO_AF(GPIOE_PIN13, 0U) | \ PIN_AFIO_AF(GPIOE_PIN14, 0U) | \ PIN_AFIO_AF(GPIOE_PIN15, 0U)) -#define VAL_GPIOE_ASCR (PIN_ASCR_DISABLED(GPIOE_PIN0) | \ - PIN_ASCR_DISABLED(GPIOE_PIN1) | \ - PIN_ASCR_DISABLED(GPIOE_PIN2) | \ - PIN_ASCR_DISABLED(GPIOE_PIN3) | \ - PIN_ASCR_DISABLED(GPIOE_PIN4) | \ - PIN_ASCR_DISABLED(GPIOE_PIN5) | \ - PIN_ASCR_DISABLED(GPIOE_PIN6) | \ - PIN_ASCR_DISABLED(GPIOE_PIN7) | \ - PIN_ASCR_DISABLED(GPIOE_PIN8) | \ - PIN_ASCR_DISABLED(GPIOE_PIN9) | \ - PIN_ASCR_DISABLED(GPIOE_PIN10) | \ - PIN_ASCR_DISABLED(GPIOE_PIN11) | \ - PIN_ASCR_DISABLED(GPIOE_PIN12) | \ - PIN_ASCR_DISABLED(GPIOE_PIN13) | \ - PIN_ASCR_DISABLED(GPIOE_PIN14) | \ - PIN_ASCR_DISABLED(GPIOE_PIN15)) -#define VAL_GPIOE_LOCKR (PIN_LOCKR_DISABLED(GPIOE_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN15)) /* * GPIOF setup: @@ -1147,38 +981,6 @@ PIN_AFIO_AF(GPIOF_PIN13, 0U) | \ PIN_AFIO_AF(GPIOF_PIN14, 0U) | \ PIN_AFIO_AF(GPIOF_PIN15, 0U)) -#define VAL_GPIOF_ASCR (PIN_ASCR_DISABLED(GPIOF_PIN0) | \ - PIN_ASCR_DISABLED(GPIOF_PIN1) | \ - PIN_ASCR_DISABLED(GPIOF_PIN2) | \ - PIN_ASCR_DISABLED(GPIOF_PIN3) | \ - PIN_ASCR_DISABLED(GPIOF_PIN4) | \ - PIN_ASCR_DISABLED(GPIOF_PIN5) | \ - PIN_ASCR_DISABLED(GPIOF_PIN6) | \ - PIN_ASCR_DISABLED(GPIOF_PIN7) | \ - PIN_ASCR_DISABLED(GPIOF_PIN8) | \ - PIN_ASCR_DISABLED(GPIOF_PIN9) | \ - PIN_ASCR_DISABLED(GPIOF_PIN10) | \ - PIN_ASCR_DISABLED(GPIOF_PIN11) | \ - PIN_ASCR_DISABLED(GPIOF_PIN12) | \ - PIN_ASCR_DISABLED(GPIOF_PIN13) | \ - PIN_ASCR_DISABLED(GPIOF_PIN14) | \ - PIN_ASCR_DISABLED(GPIOF_PIN15)) -#define VAL_GPIOF_LOCKR (PIN_LOCKR_DISABLED(GPIOF_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN15)) /* * GPIOG setup: @@ -1296,38 +1098,6 @@ PIN_AFIO_AF(GPIOG_PIN13, 0U) | \ PIN_AFIO_AF(GPIOG_PIN14, 0U) | \ PIN_AFIO_AF(GPIOG_PIN15, 0U)) -#define VAL_GPIOG_ASCR (PIN_ASCR_DISABLED(GPIOG_PIN0) | \ - PIN_ASCR_DISABLED(GPIOG_PIN1) | \ - PIN_ASCR_DISABLED(GPIOG_PIN2) | \ - PIN_ASCR_DISABLED(GPIOG_PIN3) | \ - PIN_ASCR_DISABLED(GPIOG_PIN4) | \ - PIN_ASCR_DISABLED(GPIOG_USB_OVER_CURRENT) |\ - PIN_ASCR_DISABLED(GPIOG_USB_POWER_SWITCH_ON) |\ - PIN_ASCR_DISABLED(GPIOG_LPUART1_TX) | \ - PIN_ASCR_DISABLED(GPIOG_LPUART1_RX) | \ - PIN_ASCR_DISABLED(GPIOG_PIN9) | \ - PIN_ASCR_DISABLED(GPIOG_PIN10) | \ - PIN_ASCR_DISABLED(GPIOG_PIN11) | \ - PIN_ASCR_DISABLED(GPIOG_PIN12) | \ - PIN_ASCR_DISABLED(GPIOG_PIN13) | \ - PIN_ASCR_DISABLED(GPIOG_PIN14) | \ - PIN_ASCR_DISABLED(GPIOG_PIN15)) -#define VAL_GPIOG_LOCKR (PIN_LOCKR_DISABLED(GPIOG_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOG_USB_OVER_CURRENT) |\ - PIN_LOCKR_DISABLED(GPIOG_USB_POWER_SWITCH_ON) |\ - PIN_LOCKR_DISABLED(GPIOG_LPUART1_TX) | \ - PIN_LOCKR_DISABLED(GPIOG_LPUART1_RX) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN15)) /* * GPIOH setup: @@ -1445,38 +1215,6 @@ PIN_AFIO_AF(GPIOH_PIN13, 0U) | \ PIN_AFIO_AF(GPIOH_PIN14, 0U) | \ PIN_AFIO_AF(GPIOH_PIN15, 0U)) -#define VAL_GPIOH_ASCR (PIN_ASCR_DISABLED(GPIOH_PIN0) | \ - PIN_ASCR_DISABLED(GPIOH_PIN1) | \ - PIN_ASCR_DISABLED(GPIOH_PIN2) | \ - PIN_ASCR_DISABLED(GPIOH_PIN3) | \ - PIN_ASCR_DISABLED(GPIOH_PIN4) | \ - PIN_ASCR_DISABLED(GPIOH_PIN5) | \ - PIN_ASCR_DISABLED(GPIOH_PIN6) | \ - PIN_ASCR_DISABLED(GPIOH_PIN7) | \ - PIN_ASCR_DISABLED(GPIOH_PIN8) | \ - PIN_ASCR_DISABLED(GPIOH_PIN9) | \ - PIN_ASCR_DISABLED(GPIOH_PIN10) | \ - PIN_ASCR_DISABLED(GPIOH_PIN11) | \ - PIN_ASCR_DISABLED(GPIOH_PIN12) | \ - PIN_ASCR_DISABLED(GPIOH_PIN13) | \ - PIN_ASCR_DISABLED(GPIOH_PIN14) | \ - PIN_ASCR_DISABLED(GPIOH_PIN15)) -#define VAL_GPIOH_LOCKR (PIN_LOCKR_DISABLED(GPIOH_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN15)) /* * GPIOI setup: @@ -1594,38 +1332,6 @@ PIN_AFIO_AF(GPIOI_PIN13, 0U) | \ PIN_AFIO_AF(GPIOI_PIN14, 0U) | \ PIN_AFIO_AF(GPIOI_PIN15, 0U)) -#define VAL_GPIOI_ASCR (PIN_ASCR_DISABLED(GPIOI_PIN0) | \ - PIN_ASCR_DISABLED(GPIOI_PIN1) | \ - PIN_ASCR_DISABLED(GPIOI_PIN2) | \ - PIN_ASCR_DISABLED(GPIOI_PIN3) | \ - PIN_ASCR_DISABLED(GPIOI_PIN4) | \ - PIN_ASCR_DISABLED(GPIOI_PIN5) | \ - PIN_ASCR_DISABLED(GPIOI_PIN6) | \ - PIN_ASCR_DISABLED(GPIOI_PIN7) | \ - PIN_ASCR_DISABLED(GPIOI_PIN8) | \ - PIN_ASCR_DISABLED(GPIOI_PIN9) | \ - PIN_ASCR_DISABLED(GPIOI_PIN10) | \ - PIN_ASCR_DISABLED(GPIOI_PIN11) | \ - PIN_ASCR_DISABLED(GPIOI_PIN12) | \ - PIN_ASCR_DISABLED(GPIOI_PIN13) | \ - PIN_ASCR_DISABLED(GPIOI_PIN14) | \ - PIN_ASCR_DISABLED(GPIOI_PIN15)) -#define VAL_GPIOI_LOCKR (PIN_LOCKR_DISABLED(GPIOI_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN15)) /*===========================================================================*/ /* External declarations. */ diff --git a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.c b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.c index 177ec13c8..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.c +++ b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -45,8 +45,6 @@ typedef struct { uint32_t odr; uint32_t afrl; uint32_t afrh; - uint32_t ascr; - uint32_t lockr; } gpio_setup_t; /** @@ -94,58 +92,47 @@ typedef struct { static const gpio_config_t gpio_default_config = { #if STM32_HAS_GPIOA {VAL_GPIOA_MODER, VAL_GPIOA_OTYPER, VAL_GPIOA_OSPEEDR, VAL_GPIOA_PUPDR, - VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH, VAL_GPIOA_ASCR, - VAL_GPIOA_LOCKR}, + VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH}, #endif #if STM32_HAS_GPIOB {VAL_GPIOB_MODER, VAL_GPIOB_OTYPER, VAL_GPIOB_OSPEEDR, VAL_GPIOB_PUPDR, - VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH, VAL_GPIOB_ASCR, - VAL_GPIOB_LOCKR}, + VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH}, #endif #if STM32_HAS_GPIOC {VAL_GPIOC_MODER, VAL_GPIOC_OTYPER, VAL_GPIOC_OSPEEDR, VAL_GPIOC_PUPDR, - VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH, VAL_GPIOC_ASCR, - VAL_GPIOC_LOCKR}, + VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH}, #endif #if STM32_HAS_GPIOD {VAL_GPIOD_MODER, VAL_GPIOD_OTYPER, VAL_GPIOD_OSPEEDR, VAL_GPIOD_PUPDR, - VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH, VAL_GPIOD_ASCR, - VAL_GPIOD_LOCKR}, + VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH}, #endif #if STM32_HAS_GPIOE {VAL_GPIOE_MODER, VAL_GPIOE_OTYPER, VAL_GPIOE_OSPEEDR, VAL_GPIOE_PUPDR, - VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH, VAL_GPIOE_ASCR, - VAL_GPIOE_LOCKR}, + VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH}, #endif #if STM32_HAS_GPIOF {VAL_GPIOF_MODER, VAL_GPIOF_OTYPER, VAL_GPIOF_OSPEEDR, VAL_GPIOF_PUPDR, - VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH, VAL_GPIOF_ASCR, - VAL_GPIOF_LOCKR}, + VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH}, #endif #if STM32_HAS_GPIOG {VAL_GPIOG_MODER, VAL_GPIOG_OTYPER, VAL_GPIOG_OSPEEDR, VAL_GPIOG_PUPDR, - VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH, VAL_GPIOG_ASCR, - VAL_GPIOG_LOCKR}, + VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH}, #endif #if STM32_HAS_GPIOH {VAL_GPIOH_MODER, VAL_GPIOH_OTYPER, VAL_GPIOH_OSPEEDR, VAL_GPIOH_PUPDR, - VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH, VAL_GPIOH_ASCR, - VAL_GPIOH_LOCKR}, + VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH}, #endif #if STM32_HAS_GPIOI {VAL_GPIOI_MODER, VAL_GPIOI_OTYPER, VAL_GPIOI_OSPEEDR, VAL_GPIOI_PUPDR, - VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH, VAL_GPIOI_ASCR, - VAL_GPIOI_LOCKR}, + VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH}, #endif #if STM32_HAS_GPIOJ {VAL_GPIOJ_MODER, VAL_GPIOJ_OTYPER, VAL_GPIOJ_OSPEEDR, VAL_GPIOJ_PUPDR, - VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH, VAL_GPIOJ_ASCR, - VAL_GPIOJ_LOCKR}, + VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH}, #endif #if STM32_HAS_GPIOK {VAL_GPIOK_MODER, VAL_GPIOK_OTYPER, VAL_GPIOK_OSPEEDR, VAL_GPIOK_PUPDR, - VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH, VAL_GPIOK_ASCR, - VAL_GPIOK_LOCKR} + VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH} #endif }; @@ -156,22 +143,20 @@ static const gpio_config_t gpio_default_config = { static void gpio_init(stm32_gpio_t *gpiop, const gpio_setup_t *config) { gpiop->OTYPER = config->otyper; - gpiop->ASCR = config->ascr; gpiop->OSPEEDR = config->ospeedr; gpiop->PUPDR = config->pupdr; gpiop->ODR = config->odr; gpiop->AFRL = config->afrl; gpiop->AFRH = config->afrh; gpiop->MODER = config->moder; - gpiop->LOCKR = config->lockr; } static void stm32_gpio_init(void) { /* Enabling GPIO-related clocks, the mask comes from the registry header file.*/ - rccResetAHB2(STM32_GPIO_EN_MASK); - rccEnableAHB2(STM32_GPIO_EN_MASK, true); + rccResetAHB1(STM32_GPIO_EN_MASK); + rccEnableAHB1(STM32_GPIO_EN_MASK, true); /* Initializing all the defined GPIO ports.*/ #if STM32_HAS_GPIOA @@ -235,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h index b4cca1eba..cdf920f76 100644 --- a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h +++ b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -45,8 +45,6 @@ #define STM32_LSECLK 0U #endif -#define STM32_LSEDRV (3U << 3U) - #if !defined(STM32_HSECLK) #define STM32_HSECLK 0U #endif @@ -281,10 +279,6 @@ #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) -#define PIN_ASCR_DISABLED(n) (0U << (n)) -#define PIN_ASCR_ENABLED(n) (1U << (n)) -#define PIN_LOCKR_DISABLED(n) (0U << (n)) -#define PIN_LOCKR_ENABLED(n) (1U << (n)) /* * GPIOA setup: @@ -402,38 +396,6 @@ PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \ PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \ PIN_AFIO_AF(GPIOA_PIN15, 0U)) -#define VAL_GPIOA_ASCR (PIN_ASCR_DISABLED(GPIOA_PIN0) | \ - PIN_ASCR_DISABLED(GPIOA_PIN1) | \ - PIN_ASCR_DISABLED(GPIOA_PIN2) | \ - PIN_ASCR_DISABLED(GPIOA_PIN3) | \ - PIN_ASCR_DISABLED(GPIOA_PIN4) | \ - PIN_ASCR_DISABLED(GPIOA_PIN5) | \ - PIN_ASCR_DISABLED(GPIOA_PIN6) | \ - PIN_ASCR_DISABLED(GPIOA_PIN7) | \ - PIN_ASCR_DISABLED(GPIOA_USB_SOF) | \ - PIN_ASCR_DISABLED(GPIOA_USB_VBUS) | \ - PIN_ASCR_DISABLED(GPIOA_USB_ID) | \ - PIN_ASCR_DISABLED(GPIOA_USB_DM) | \ - PIN_ASCR_DISABLED(GPIOA_USB_DP) | \ - PIN_ASCR_DISABLED(GPIOA_SWDIO) | \ - PIN_ASCR_DISABLED(GPIOA_SWCLK) | \ - PIN_ASCR_DISABLED(GPIOA_PIN15)) -#define VAL_GPIOA_LOCKR (PIN_LOCKR_DISABLED(GPIOA_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_SOF) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_VBUS) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_ID) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_DM) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_DP) | \ - PIN_LOCKR_DISABLED(GPIOA_SWDIO) | \ - PIN_LOCKR_DISABLED(GPIOA_SWCLK) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN15)) /* * GPIOB setup: @@ -551,38 +513,6 @@ PIN_AFIO_AF(GPIOB_PIN13, 0U) | \ PIN_AFIO_AF(GPIOB_LED3, 0U) | \ PIN_AFIO_AF(GPIOB_PIN15, 0U)) -#define VAL_GPIOB_ASCR (PIN_ASCR_DISABLED(GPIOB_PIN0) | \ - PIN_ASCR_DISABLED(GPIOB_PIN1) | \ - PIN_ASCR_DISABLED(GPIOB_PIN2) | \ - PIN_ASCR_DISABLED(GPIOB_SWO) | \ - PIN_ASCR_DISABLED(GPIOB_PIN4) | \ - PIN_ASCR_DISABLED(GPIOB_PIN5) | \ - PIN_ASCR_DISABLED(GPIOB_PIN6) | \ - PIN_ASCR_DISABLED(GPIOB_LED2) | \ - PIN_ASCR_DISABLED(GPIOB_PIN8) | \ - PIN_ASCR_DISABLED(GPIOB_PIN9) | \ - PIN_ASCR_DISABLED(GPIOB_PIN10) | \ - PIN_ASCR_DISABLED(GPIOB_PIN11) | \ - PIN_ASCR_DISABLED(GPIOB_PIN12) | \ - PIN_ASCR_DISABLED(GPIOB_PIN13) | \ - PIN_ASCR_DISABLED(GPIOB_LED3) | \ - PIN_ASCR_DISABLED(GPIOB_PIN15)) -#define VAL_GPIOB_LOCKR (PIN_LOCKR_DISABLED(GPIOB_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOB_SWO) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOB_LED2) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOB_LED3) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN15)) /* * GPIOC setup: @@ -700,38 +630,6 @@ PIN_AFIO_AF(GPIOC_BUTTON, 0U) | \ PIN_AFIO_AF(GPIOC_PIN14, 0U) | \ PIN_AFIO_AF(GPIOC_PIN15, 0U)) -#define VAL_GPIOC_ASCR (PIN_ASCR_DISABLED(GPIOC_PIN0) | \ - PIN_ASCR_DISABLED(GPIOC_PIN1) | \ - PIN_ASCR_DISABLED(GPIOC_PIN2) | \ - PIN_ASCR_DISABLED(GPIOC_PIN3) | \ - PIN_ASCR_DISABLED(GPIOC_PIN4) | \ - PIN_ASCR_DISABLED(GPIOC_PIN5) | \ - PIN_ASCR_DISABLED(GPIOC_PIN6) | \ - PIN_ASCR_DISABLED(GPIOC_LED1) | \ - PIN_ASCR_DISABLED(GPIOC_PIN8) | \ - PIN_ASCR_DISABLED(GPIOC_PIN9) | \ - PIN_ASCR_DISABLED(GPIOC_PIN10) | \ - PIN_ASCR_DISABLED(GPIOC_PIN11) | \ - PIN_ASCR_DISABLED(GPIOC_PIN12) | \ - PIN_ASCR_DISABLED(GPIOC_BUTTON) | \ - PIN_ASCR_DISABLED(GPIOC_PIN14) | \ - PIN_ASCR_DISABLED(GPIOC_PIN15)) -#define VAL_GPIOC_LOCKR (PIN_LOCKR_DISABLED(GPIOC_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOC_LED1) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOC_BUTTON) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN15)) /* * GPIOD setup: @@ -849,38 +747,6 @@ PIN_AFIO_AF(GPIOD_PIN13, 0U) | \ PIN_AFIO_AF(GPIOD_PIN14, 0U) | \ PIN_AFIO_AF(GPIOD_PIN15, 0U)) -#define VAL_GPIOD_ASCR (PIN_ASCR_DISABLED(GPIOD_PIN0) | \ - PIN_ASCR_DISABLED(GPIOD_PIN1) | \ - PIN_ASCR_DISABLED(GPIOD_PIN2) | \ - PIN_ASCR_DISABLED(GPIOD_PIN3) | \ - PIN_ASCR_DISABLED(GPIOD_PIN4) | \ - PIN_ASCR_DISABLED(GPIOD_PIN5) | \ - PIN_ASCR_DISABLED(GPIOD_PIN6) | \ - PIN_ASCR_DISABLED(GPIOD_PIN7) | \ - PIN_ASCR_DISABLED(GPIOD_PIN8) | \ - PIN_ASCR_DISABLED(GPIOD_PIN9) | \ - PIN_ASCR_DISABLED(GPIOD_PIN10) | \ - PIN_ASCR_DISABLED(GPIOD_PIN11) | \ - PIN_ASCR_DISABLED(GPIOD_PIN12) | \ - PIN_ASCR_DISABLED(GPIOD_PIN13) | \ - PIN_ASCR_DISABLED(GPIOD_PIN14) | \ - PIN_ASCR_DISABLED(GPIOD_PIN15)) -#define VAL_GPIOD_LOCKR (PIN_LOCKR_DISABLED(GPIOD_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN15)) /* * GPIOE setup: @@ -998,38 +864,6 @@ PIN_AFIO_AF(GPIOE_PIN13, 0U) | \ PIN_AFIO_AF(GPIOE_PIN14, 0U) | \ PIN_AFIO_AF(GPIOE_PIN15, 0U)) -#define VAL_GPIOE_ASCR (PIN_ASCR_DISABLED(GPIOE_PIN0) | \ - PIN_ASCR_DISABLED(GPIOE_PIN1) | \ - PIN_ASCR_DISABLED(GPIOE_PIN2) | \ - PIN_ASCR_DISABLED(GPIOE_PIN3) | \ - PIN_ASCR_DISABLED(GPIOE_PIN4) | \ - PIN_ASCR_DISABLED(GPIOE_PIN5) | \ - PIN_ASCR_DISABLED(GPIOE_PIN6) | \ - PIN_ASCR_DISABLED(GPIOE_PIN7) | \ - PIN_ASCR_DISABLED(GPIOE_PIN8) | \ - PIN_ASCR_DISABLED(GPIOE_PIN9) | \ - PIN_ASCR_DISABLED(GPIOE_PIN10) | \ - PIN_ASCR_DISABLED(GPIOE_PIN11) | \ - PIN_ASCR_DISABLED(GPIOE_PIN12) | \ - PIN_ASCR_DISABLED(GPIOE_PIN13) | \ - PIN_ASCR_DISABLED(GPIOE_PIN14) | \ - PIN_ASCR_DISABLED(GPIOE_PIN15)) -#define VAL_GPIOE_LOCKR (PIN_LOCKR_DISABLED(GPIOE_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN15)) /* * GPIOF setup: @@ -1147,38 +981,6 @@ PIN_AFIO_AF(GPIOF_PIN13, 0U) | \ PIN_AFIO_AF(GPIOF_PIN14, 0U) | \ PIN_AFIO_AF(GPIOF_PIN15, 0U)) -#define VAL_GPIOF_ASCR (PIN_ASCR_DISABLED(GPIOF_PIN0) | \ - PIN_ASCR_DISABLED(GPIOF_PIN1) | \ - PIN_ASCR_DISABLED(GPIOF_PIN2) | \ - PIN_ASCR_DISABLED(GPIOF_PIN3) | \ - PIN_ASCR_DISABLED(GPIOF_PIN4) | \ - PIN_ASCR_DISABLED(GPIOF_PIN5) | \ - PIN_ASCR_DISABLED(GPIOF_PIN6) | \ - PIN_ASCR_DISABLED(GPIOF_PIN7) | \ - PIN_ASCR_DISABLED(GPIOF_PIN8) | \ - PIN_ASCR_DISABLED(GPIOF_PIN9) | \ - PIN_ASCR_DISABLED(GPIOF_PIN10) | \ - PIN_ASCR_DISABLED(GPIOF_PIN11) | \ - PIN_ASCR_DISABLED(GPIOF_PIN12) | \ - PIN_ASCR_DISABLED(GPIOF_PIN13) | \ - PIN_ASCR_DISABLED(GPIOF_PIN14) | \ - PIN_ASCR_DISABLED(GPIOF_PIN15)) -#define VAL_GPIOF_LOCKR (PIN_LOCKR_DISABLED(GPIOF_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN15)) /* * GPIOG setup: @@ -1296,38 +1098,6 @@ PIN_AFIO_AF(GPIOG_PIN13, 0U) | \ PIN_AFIO_AF(GPIOG_PIN14, 0U) | \ PIN_AFIO_AF(GPIOG_PIN15, 0U)) -#define VAL_GPIOG_ASCR (PIN_ASCR_DISABLED(GPIOG_PIN0) | \ - PIN_ASCR_DISABLED(GPIOG_PIN1) | \ - PIN_ASCR_DISABLED(GPIOG_PIN2) | \ - PIN_ASCR_DISABLED(GPIOG_PIN3) | \ - PIN_ASCR_DISABLED(GPIOG_PIN4) | \ - PIN_ASCR_DISABLED(GPIOG_USB_OVER_CURRENT) |\ - PIN_ASCR_DISABLED(GPIOG_USB_POWER_SWITCH_ON) |\ - PIN_ASCR_DISABLED(GPIOG_LPUART1_TX) | \ - PIN_ASCR_DISABLED(GPIOG_LPUART1_RX) | \ - PIN_ASCR_DISABLED(GPIOG_PIN9) | \ - PIN_ASCR_DISABLED(GPIOG_PIN10) | \ - PIN_ASCR_DISABLED(GPIOG_PIN11) | \ - PIN_ASCR_DISABLED(GPIOG_PIN12) | \ - PIN_ASCR_DISABLED(GPIOG_PIN13) | \ - PIN_ASCR_DISABLED(GPIOG_PIN14) | \ - PIN_ASCR_DISABLED(GPIOG_PIN15)) -#define VAL_GPIOG_LOCKR (PIN_LOCKR_DISABLED(GPIOG_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOG_USB_OVER_CURRENT) |\ - PIN_LOCKR_DISABLED(GPIOG_USB_POWER_SWITCH_ON) |\ - PIN_LOCKR_DISABLED(GPIOG_LPUART1_TX) | \ - PIN_LOCKR_DISABLED(GPIOG_LPUART1_RX) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN15)) /* * GPIOH setup: @@ -1445,38 +1215,6 @@ PIN_AFIO_AF(GPIOH_PIN13, 0U) | \ PIN_AFIO_AF(GPIOH_PIN14, 0U) | \ PIN_AFIO_AF(GPIOH_PIN15, 0U)) -#define VAL_GPIOH_ASCR (PIN_ASCR_DISABLED(GPIOH_PIN0) | \ - PIN_ASCR_DISABLED(GPIOH_PIN1) | \ - PIN_ASCR_DISABLED(GPIOH_PIN2) | \ - PIN_ASCR_DISABLED(GPIOH_PIN3) | \ - PIN_ASCR_DISABLED(GPIOH_PIN4) | \ - PIN_ASCR_DISABLED(GPIOH_PIN5) | \ - PIN_ASCR_DISABLED(GPIOH_PIN6) | \ - PIN_ASCR_DISABLED(GPIOH_PIN7) | \ - PIN_ASCR_DISABLED(GPIOH_PIN8) | \ - PIN_ASCR_DISABLED(GPIOH_PIN9) | \ - PIN_ASCR_DISABLED(GPIOH_PIN10) | \ - PIN_ASCR_DISABLED(GPIOH_PIN11) | \ - PIN_ASCR_DISABLED(GPIOH_PIN12) | \ - PIN_ASCR_DISABLED(GPIOH_PIN13) | \ - PIN_ASCR_DISABLED(GPIOH_PIN14) | \ - PIN_ASCR_DISABLED(GPIOH_PIN15)) -#define VAL_GPIOH_LOCKR (PIN_LOCKR_DISABLED(GPIOH_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN15)) /* * GPIOI setup: @@ -1594,38 +1332,6 @@ PIN_AFIO_AF(GPIOI_PIN13, 0U) | \ PIN_AFIO_AF(GPIOI_PIN14, 0U) | \ PIN_AFIO_AF(GPIOI_PIN15, 0U)) -#define VAL_GPIOI_ASCR (PIN_ASCR_DISABLED(GPIOI_PIN0) | \ - PIN_ASCR_DISABLED(GPIOI_PIN1) | \ - PIN_ASCR_DISABLED(GPIOI_PIN2) | \ - PIN_ASCR_DISABLED(GPIOI_PIN3) | \ - PIN_ASCR_DISABLED(GPIOI_PIN4) | \ - PIN_ASCR_DISABLED(GPIOI_PIN5) | \ - PIN_ASCR_DISABLED(GPIOI_PIN6) | \ - PIN_ASCR_DISABLED(GPIOI_PIN7) | \ - PIN_ASCR_DISABLED(GPIOI_PIN8) | \ - PIN_ASCR_DISABLED(GPIOI_PIN9) | \ - PIN_ASCR_DISABLED(GPIOI_PIN10) | \ - PIN_ASCR_DISABLED(GPIOI_PIN11) | \ - PIN_ASCR_DISABLED(GPIOI_PIN12) | \ - PIN_ASCR_DISABLED(GPIOI_PIN13) | \ - PIN_ASCR_DISABLED(GPIOI_PIN14) | \ - PIN_ASCR_DISABLED(GPIOI_PIN15)) -#define VAL_GPIOI_LOCKR (PIN_LOCKR_DISABLED(GPIOI_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN15)) /*===========================================================================*/ /* External declarations. */ diff --git a/os/hal/boards/ST_NUCLEO32_F031K6/board.c b/os/hal/boards/ST_NUCLEO32_F031K6/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO32_F031K6/board.c +++ b/os/hal/boards/ST_NUCLEO32_F031K6/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO32_F042K6/board.c b/os/hal/boards/ST_NUCLEO32_F042K6/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO32_F042K6/board.c +++ b/os/hal/boards/ST_NUCLEO32_F042K6/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO32_F303K8/board.c b/os/hal/boards/ST_NUCLEO32_F303K8/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO32_F303K8/board.c +++ b/os/hal/boards/ST_NUCLEO32_F303K8/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO32_L011K4/board.c b/os/hal/boards/ST_NUCLEO32_L011K4/board.c index bf7a62b39..fbea4c400 100644 --- a/os/hal/boards/ST_NUCLEO32_L011K4/board.c +++ b/os/hal/boards/ST_NUCLEO32_L011K4/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO32_L031K6/board.c b/os/hal/boards/ST_NUCLEO32_L031K6/board.c index bf7a62b39..fbea4c400 100644 --- a/os/hal/boards/ST_NUCLEO32_L031K6/board.c +++ b/os/hal/boards/ST_NUCLEO32_L031K6/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO32_L432KC/board.c b/os/hal/boards/ST_NUCLEO32_L432KC/board.c index c5776a150..cd16e432e 100644 --- a/os/hal/boards/ST_NUCLEO32_L432KC/board.c +++ b/os/hal/boards/ST_NUCLEO32_L432KC/board.c @@ -235,7 +235,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +245,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +257,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +267,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F030R8/board.c b/os/hal/boards/ST_NUCLEO64_F030R8/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F030R8/board.c +++ b/os/hal/boards/ST_NUCLEO64_F030R8/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F070RB/board.c b/os/hal/boards/ST_NUCLEO64_F070RB/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F070RB/board.c +++ b/os/hal/boards/ST_NUCLEO64_F070RB/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F072RB/board.c b/os/hal/boards/ST_NUCLEO64_F072RB/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F072RB/board.c +++ b/os/hal/boards/ST_NUCLEO64_F072RB/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F091RC/board.c b/os/hal/boards/ST_NUCLEO64_F091RC/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F091RC/board.c +++ b/os/hal/boards/ST_NUCLEO64_F091RC/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F302R8/board.c b/os/hal/boards/ST_NUCLEO64_F302R8/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F302R8/board.c +++ b/os/hal/boards/ST_NUCLEO64_F302R8/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F303RE/board.c b/os/hal/boards/ST_NUCLEO64_F303RE/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F303RE/board.c +++ b/os/hal/boards/ST_NUCLEO64_F303RE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F334R8/board.c b/os/hal/boards/ST_NUCLEO64_F334R8/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_F334R8/board.c +++ b/os/hal/boards/ST_NUCLEO64_F334R8/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F401RE/board.c b/os/hal/boards/ST_NUCLEO64_F401RE/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO64_F401RE/board.c +++ b/os/hal/boards/ST_NUCLEO64_F401RE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F410RB/board.c b/os/hal/boards/ST_NUCLEO64_F410RB/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO64_F410RB/board.c +++ b/os/hal/boards/ST_NUCLEO64_F410RB/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F411RE/board.c b/os/hal/boards/ST_NUCLEO64_F411RE/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO64_F411RE/board.c +++ b/os/hal/boards/ST_NUCLEO64_F411RE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_F446RE/board.c b/os/hal/boards/ST_NUCLEO64_F446RE/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_NUCLEO64_F446RE/board.c +++ b/os/hal/boards/ST_NUCLEO64_F446RE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_G071RB/board.c b/os/hal/boards/ST_NUCLEO64_G071RB/board.c index 15c4d29a8..fbea4c400 100644 --- a/os/hal/boards/ST_NUCLEO64_G071RB/board.c +++ b/os/hal/boards/ST_NUCLEO64_G071RB/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_G071RB/board.h b/os/hal/boards/ST_NUCLEO64_G071RB/board.h index 732d5fee1..b561f350c 100644 --- a/os/hal/boards/ST_NUCLEO64_G071RB/board.h +++ b/os/hal/boards/ST_NUCLEO64_G071RB/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_NUCLEO64_L053R8/board.c b/os/hal/boards/ST_NUCLEO64_L053R8/board.c index bf7a62b39..fbea4c400 100644 --- a/os/hal/boards/ST_NUCLEO64_L053R8/board.c +++ b/os/hal/boards/ST_NUCLEO64_L053R8/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_L073RZ/board.c b/os/hal/boards/ST_NUCLEO64_L073RZ/board.c index bf7a62b39..fbea4c400 100644 --- a/os/hal/boards/ST_NUCLEO64_L073RZ/board.c +++ b/os/hal/boards/ST_NUCLEO64_L073RZ/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_L152RE/board.c b/os/hal/boards/ST_NUCLEO64_L152RE/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_NUCLEO64_L152RE/board.c +++ b/os/hal/boards/ST_NUCLEO64_L152RE/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_NUCLEO64_L476RG/board.c b/os/hal/boards/ST_NUCLEO64_L476RG/board.c index c5776a150..cd16e432e 100644 --- a/os/hal/boards/ST_NUCLEO64_L476RG/board.c +++ b/os/hal/boards/ST_NUCLEO64_L476RG/board.c @@ -235,7 +235,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +245,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +257,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +267,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32373C_EVAL/board.c b/os/hal/boards/ST_STM32373C_EVAL/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32373C_EVAL/board.c +++ b/os/hal/boards/ST_STM32373C_EVAL/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F072B_DISCOVERY/board.c b/os/hal/boards/ST_STM32F072B_DISCOVERY/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32F072B_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F072B_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F0_DISCOVERY/board.c b/os/hal/boards/ST_STM32F0_DISCOVERY/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32F0_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F0_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F2_DISCOVERY/board.c b/os/hal/boards/ST_STM32F2_DISCOVERY/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_STM32F2_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F2_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F334_DISCOVERY/board.c b/os/hal/boards/ST_STM32F334_DISCOVERY/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32F334_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F334_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F3_DISCOVERY/board.c b/os/hal/boards/ST_STM32F3_DISCOVERY/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32F3_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F3_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F401C_DISCOVERY/board.c b/os/hal/boards/ST_STM32F401C_DISCOVERY/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_STM32F401C_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F401C_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F429I_DISCOVERY/board.c b/os/hal/boards/ST_STM32F429I_DISCOVERY/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_STM32F429I_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F429I_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F469I_DISCOVERY/board.c b/os/hal/boards/ST_STM32F469I_DISCOVERY/board.c index 5ee0873d7..e71a819b0 100644 --- a/os/hal/boards/ST_STM32F469I_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F469I_DISCOVERY/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F469I_DISCOVERY/board.h b/os/hal/boards/ST_STM32F469I_DISCOVERY/board.h index d115bea98..87d75342c 100644 --- a/os/hal/boards/ST_STM32F469I_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F469I_DISCOVERY/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_STM32F4_DISCOVERY/board.c b/os/hal/boards/ST_STM32F4_DISCOVERY/board.c index 428857763..e71a819b0 100644 --- a/os/hal/boards/ST_STM32F4_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F4_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c index 5048086ae..50f3ef761 100644 --- a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c @@ -218,9 +218,9 @@ void __early_init(void) { * @brief SDC card detection. */ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { - - (void)sdcp; - + + (void)sdcp; + return !palReadPad(GPIOC, GPIOC_SD_DETECT); } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c index b3924f0c0..e485912d7 100644 --- a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h index f880fd823..9e730eab0 100644 --- a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/os/hal/boards/ST_STM32L053_DISCOVERY/board.c b/os/hal/boards/ST_STM32L053_DISCOVERY/board.c index bf7a62b39..fbea4c400 100644 --- a/os/hal/boards/ST_STM32L053_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32L053_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32L476_DISCOVERY/board.c b/os/hal/boards/ST_STM32L476_DISCOVERY/board.c index c5776a150..cd16e432e 100644 --- a/os/hal/boards/ST_STM32L476_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32L476_DISCOVERY/board.c @@ -235,7 +235,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +245,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +257,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +267,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.c b/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.c index 177ec13c8..e71a819b0 100644 --- a/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.c @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -45,8 +45,6 @@ typedef struct { uint32_t odr; uint32_t afrl; uint32_t afrh; - uint32_t ascr; - uint32_t lockr; } gpio_setup_t; /** @@ -94,58 +92,47 @@ typedef struct { static const gpio_config_t gpio_default_config = { #if STM32_HAS_GPIOA {VAL_GPIOA_MODER, VAL_GPIOA_OTYPER, VAL_GPIOA_OSPEEDR, VAL_GPIOA_PUPDR, - VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH, VAL_GPIOA_ASCR, - VAL_GPIOA_LOCKR}, + VAL_GPIOA_ODR, VAL_GPIOA_AFRL, VAL_GPIOA_AFRH}, #endif #if STM32_HAS_GPIOB {VAL_GPIOB_MODER, VAL_GPIOB_OTYPER, VAL_GPIOB_OSPEEDR, VAL_GPIOB_PUPDR, - VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH, VAL_GPIOB_ASCR, - VAL_GPIOB_LOCKR}, + VAL_GPIOB_ODR, VAL_GPIOB_AFRL, VAL_GPIOB_AFRH}, #endif #if STM32_HAS_GPIOC {VAL_GPIOC_MODER, VAL_GPIOC_OTYPER, VAL_GPIOC_OSPEEDR, VAL_GPIOC_PUPDR, - VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH, VAL_GPIOC_ASCR, - VAL_GPIOC_LOCKR}, + VAL_GPIOC_ODR, VAL_GPIOC_AFRL, VAL_GPIOC_AFRH}, #endif #if STM32_HAS_GPIOD {VAL_GPIOD_MODER, VAL_GPIOD_OTYPER, VAL_GPIOD_OSPEEDR, VAL_GPIOD_PUPDR, - VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH, VAL_GPIOD_ASCR, - VAL_GPIOD_LOCKR}, + VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH}, #endif #if STM32_HAS_GPIOE {VAL_GPIOE_MODER, VAL_GPIOE_OTYPER, VAL_GPIOE_OSPEEDR, VAL_GPIOE_PUPDR, - VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH, VAL_GPIOE_ASCR, - VAL_GPIOE_LOCKR}, + VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH}, #endif #if STM32_HAS_GPIOF {VAL_GPIOF_MODER, VAL_GPIOF_OTYPER, VAL_GPIOF_OSPEEDR, VAL_GPIOF_PUPDR, - VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH, VAL_GPIOF_ASCR, - VAL_GPIOF_LOCKR}, + VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH}, #endif #if STM32_HAS_GPIOG {VAL_GPIOG_MODER, VAL_GPIOG_OTYPER, VAL_GPIOG_OSPEEDR, VAL_GPIOG_PUPDR, - VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH, VAL_GPIOG_ASCR, - VAL_GPIOG_LOCKR}, + VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH}, #endif #if STM32_HAS_GPIOH {VAL_GPIOH_MODER, VAL_GPIOH_OTYPER, VAL_GPIOH_OSPEEDR, VAL_GPIOH_PUPDR, - VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH, VAL_GPIOH_ASCR, - VAL_GPIOH_LOCKR}, + VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH}, #endif #if STM32_HAS_GPIOI {VAL_GPIOI_MODER, VAL_GPIOI_OTYPER, VAL_GPIOI_OSPEEDR, VAL_GPIOI_PUPDR, - VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH, VAL_GPIOI_ASCR, - VAL_GPIOI_LOCKR}, + VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH}, #endif #if STM32_HAS_GPIOJ {VAL_GPIOJ_MODER, VAL_GPIOJ_OTYPER, VAL_GPIOJ_OSPEEDR, VAL_GPIOJ_PUPDR, - VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH, VAL_GPIOJ_ASCR, - VAL_GPIOJ_LOCKR}, + VAL_GPIOJ_ODR, VAL_GPIOJ_AFRL, VAL_GPIOJ_AFRH}, #endif #if STM32_HAS_GPIOK {VAL_GPIOK_MODER, VAL_GPIOK_OTYPER, VAL_GPIOK_OSPEEDR, VAL_GPIOK_PUPDR, - VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH, VAL_GPIOK_ASCR, - VAL_GPIOK_LOCKR} + VAL_GPIOK_ODR, VAL_GPIOK_AFRL, VAL_GPIOK_AFRH} #endif }; @@ -156,22 +143,20 @@ static const gpio_config_t gpio_default_config = { static void gpio_init(stm32_gpio_t *gpiop, const gpio_setup_t *config) { gpiop->OTYPER = config->otyper; - gpiop->ASCR = config->ascr; gpiop->OSPEEDR = config->ospeedr; gpiop->PUPDR = config->pupdr; gpiop->ODR = config->odr; gpiop->AFRL = config->afrl; gpiop->AFRH = config->afrh; gpiop->MODER = config->moder; - gpiop->LOCKR = config->lockr; } static void stm32_gpio_init(void) { /* Enabling GPIO-related clocks, the mask comes from the registry header file.*/ - rccResetAHB2(STM32_GPIO_EN_MASK); - rccEnableAHB2(STM32_GPIO_EN_MASK, true); + rccResetAHB1(STM32_GPIO_EN_MASK); + rccEnableAHB1(STM32_GPIO_EN_MASK, true); /* Initializing all the defined GPIO ports.*/ #if STM32_HAS_GPIOA @@ -235,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -245,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -257,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -267,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) { diff --git a/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.h b/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.h index 15f5c0430..b8fcc436b 100644 --- a/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32L4R9I_DISCOVERY/board.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -43,8 +43,6 @@ #define STM32_LSECLK 32768U #endif -#define STM32_LSEDRV (3U << 3U) - #if !defined(STM32_HSECLK) #define STM32_HSECLK 16000000U #endif @@ -292,10 +290,6 @@ #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) -#define PIN_ASCR_DISABLED(n) (0U << (n)) -#define PIN_ASCR_ENABLED(n) (1U << (n)) -#define PIN_LOCKR_DISABLED(n) (0U << (n)) -#define PIN_LOCKR_ENABLED(n) (1U << (n)) /* * GPIOA setup: @@ -413,38 +407,6 @@ PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \ PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \ PIN_AFIO_AF(GPIOA_PIN15, 0U)) -#define VAL_GPIOA_ASCR (PIN_ASCR_DISABLED(GPIOA_PIN0) | \ - PIN_ASCR_DISABLED(GPIOA_PIN1) | \ - PIN_ASCR_DISABLED(GPIOA_STLINK_USART2_TX) |\ - PIN_ASCR_DISABLED(GPIOA_STLINK_USART2_RX) |\ - PIN_ASCR_DISABLED(GPIOA_PIN4) | \ - PIN_ASCR_DISABLED(GPIOA_PIN5) | \ - PIN_ASCR_DISABLED(GPIOA_PIN6) | \ - PIN_ASCR_DISABLED(GPIOA_PIN7) | \ - PIN_ASCR_DISABLED(GPIOA_PIN8) | \ - PIN_ASCR_DISABLED(GPIOA_USB_OTGFS_VBUS) |\ - PIN_ASCR_DISABLED(GPIOA_USB_OTGFS_ID) |\ - PIN_ASCR_DISABLED(GPIOA_USB_OTGFS_DM) |\ - PIN_ASCR_DISABLED(GPIOA_USB_OTGFS_DP) |\ - PIN_ASCR_DISABLED(GPIOA_SWDIO) | \ - PIN_ASCR_DISABLED(GPIOA_SWCLK) | \ - PIN_ASCR_DISABLED(GPIOA_PIN15)) -#define VAL_GPIOA_LOCKR (PIN_LOCKR_DISABLED(GPIOA_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOA_STLINK_USART2_TX) |\ - PIN_LOCKR_DISABLED(GPIOA_STLINK_USART2_RX) |\ - PIN_LOCKR_DISABLED(GPIOA_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOA_USB_OTGFS_VBUS) |\ - PIN_LOCKR_DISABLED(GPIOA_USB_OTGFS_ID) |\ - PIN_LOCKR_DISABLED(GPIOA_USB_OTGFS_DM) |\ - PIN_LOCKR_DISABLED(GPIOA_USB_OTGFS_DP) |\ - PIN_LOCKR_DISABLED(GPIOA_SWDIO) | \ - PIN_LOCKR_DISABLED(GPIOA_SWCLK) | \ - PIN_LOCKR_DISABLED(GPIOA_PIN15)) /* * GPIOB setup: @@ -562,38 +524,6 @@ PIN_AFIO_AF(GPIOB_PIN13, 0U) | \ PIN_AFIO_AF(GPIOB_PIN14, 0U) | \ PIN_AFIO_AF(GPIOB_PIN15, 0U)) -#define VAL_GPIOB_ASCR (PIN_ASCR_DISABLED(GPIOB_PIN0) | \ - PIN_ASCR_DISABLED(GPIOB_PIN1) | \ - PIN_ASCR_DISABLED(GPIOB_PIN2) | \ - PIN_ASCR_DISABLED(GPIOB_SWO) | \ - PIN_ASCR_DISABLED(GPIOB_PIN4) | \ - PIN_ASCR_DISABLED(GPIOB_PIN5) | \ - PIN_ASCR_DISABLED(GPIOB_PIN6) | \ - PIN_ASCR_DISABLED(GPIOB_PIN7) | \ - PIN_ASCR_DISABLED(GPIOB_PIN8) | \ - PIN_ASCR_DISABLED(GPIOB_PIN9) | \ - PIN_ASCR_DISABLED(GPIOB_PIN10) | \ - PIN_ASCR_DISABLED(GPIOB_PIN11) | \ - PIN_ASCR_DISABLED(GPIOB_PIN12) | \ - PIN_ASCR_DISABLED(GPIOB_PIN13) | \ - PIN_ASCR_DISABLED(GPIOB_PIN14) | \ - PIN_ASCR_DISABLED(GPIOB_PIN15)) -#define VAL_GPIOB_LOCKR (PIN_LOCKR_DISABLED(GPIOB_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOB_SWO) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOB_PIN15)) /* * GPIOC setup: @@ -711,38 +641,6 @@ PIN_AFIO_AF(GPIOC_JOY_SEL, 0U) | \ PIN_AFIO_AF(GPIOC_PIN14, 0U) | \ PIN_AFIO_AF(GPIOC_PIN15, 0U)) -#define VAL_GPIOC_ASCR (PIN_ASCR_DISABLED(GPIOC_PIN0) | \ - PIN_ASCR_DISABLED(GPIOC_PIN1) | \ - PIN_ASCR_DISABLED(GPIOC_PIN2) | \ - PIN_ASCR_DISABLED(GPIOC_PIN3) | \ - PIN_ASCR_DISABLED(GPIOC_PIN4) | \ - PIN_ASCR_DISABLED(GPIOC_PIN5) | \ - PIN_ASCR_DISABLED(GPIOC_PIN6) | \ - PIN_ASCR_DISABLED(GPIOC_PIN7) | \ - PIN_ASCR_DISABLED(GPIOC_SDMMC_1_D0) | \ - PIN_ASCR_DISABLED(GPIOC_SDMMC_1_D1) | \ - PIN_ASCR_DISABLED(GPIOC_SDMMC_1_D2) | \ - PIN_ASCR_DISABLED(GPIOC_SDMMC_1_D3) | \ - PIN_ASCR_DISABLED(GPIOC_SDMMC_1_CK) | \ - PIN_ASCR_DISABLED(GPIOC_JOY_SEL) | \ - PIN_ASCR_DISABLED(GPIOC_PIN14) | \ - PIN_ASCR_DISABLED(GPIOC_PIN15)) -#define VAL_GPIOC_LOCKR (PIN_LOCKR_DISABLED(GPIOC_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOC_SDMMC_1_D0) | \ - PIN_LOCKR_DISABLED(GPIOC_SDMMC_1_D1) | \ - PIN_LOCKR_DISABLED(GPIOC_SDMMC_1_D2) | \ - PIN_LOCKR_DISABLED(GPIOC_SDMMC_1_D3) | \ - PIN_LOCKR_DISABLED(GPIOC_SDMMC_1_CK) | \ - PIN_LOCKR_DISABLED(GPIOC_JOY_SEL) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOC_PIN15)) /* * GPIOD setup: @@ -860,38 +758,6 @@ PIN_AFIO_AF(GPIOD_PIN13, 0U) | \ PIN_AFIO_AF(GPIOD_PIN14, 0U) | \ PIN_AFIO_AF(GPIOD_PIN15, 0U)) -#define VAL_GPIOD_ASCR (PIN_ASCR_DISABLED(GPIOD_PIN0) | \ - PIN_ASCR_DISABLED(GPIOD_PIN1) | \ - PIN_ASCR_DISABLED(GPIOD_SDMMC_1_CMD) | \ - PIN_ASCR_DISABLED(GPIOD_PIN3) | \ - PIN_ASCR_DISABLED(GPIOD_PIN4) | \ - PIN_ASCR_DISABLED(GPIOD_PIN5) | \ - PIN_ASCR_DISABLED(GPIOD_PIN6) | \ - PIN_ASCR_DISABLED(GPIOD_PIN7) | \ - PIN_ASCR_DISABLED(GPIOD_PIN8) | \ - PIN_ASCR_DISABLED(GPIOD_PIN9) | \ - PIN_ASCR_DISABLED(GPIOD_PIN10) | \ - PIN_ASCR_DISABLED(GPIOD_PIN11) | \ - PIN_ASCR_DISABLED(GPIOD_PIN12) | \ - PIN_ASCR_DISABLED(GPIOD_PIN13) | \ - PIN_ASCR_DISABLED(GPIOD_PIN14) | \ - PIN_ASCR_DISABLED(GPIOD_PIN15)) -#define VAL_GPIOD_LOCKR (PIN_LOCKR_DISABLED(GPIOD_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOD_SDMMC_1_CMD) |\ - PIN_LOCKR_DISABLED(GPIOD_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOD_PIN15)) /* * GPIOE setup: @@ -1009,38 +875,6 @@ PIN_AFIO_AF(GPIOE_PIN13, 0U) | \ PIN_AFIO_AF(GPIOE_PIN14, 0U) | \ PIN_AFIO_AF(GPIOE_PIN15, 0U)) -#define VAL_GPIOE_ASCR (PIN_ASCR_DISABLED(GPIOE_PIN0) | \ - PIN_ASCR_DISABLED(GPIOE_PIN1) | \ - PIN_ASCR_DISABLED(GPIOE_PIN2) | \ - PIN_ASCR_DISABLED(GPIOE_PIN3) | \ - PIN_ASCR_DISABLED(GPIOE_PIN4) | \ - PIN_ASCR_DISABLED(GPIOE_PIN5) | \ - PIN_ASCR_DISABLED(GPIOE_PIN6) | \ - PIN_ASCR_DISABLED(GPIOE_PIN7) | \ - PIN_ASCR_DISABLED(GPIOE_PIN8) | \ - PIN_ASCR_DISABLED(GPIOE_PIN9) | \ - PIN_ASCR_DISABLED(GPIOE_PIN10) | \ - PIN_ASCR_DISABLED(GPIOE_PIN11) | \ - PIN_ASCR_DISABLED(GPIOE_PIN12) | \ - PIN_ASCR_DISABLED(GPIOE_PIN13) | \ - PIN_ASCR_DISABLED(GPIOE_PIN14) | \ - PIN_ASCR_DISABLED(GPIOE_PIN15)) -#define VAL_GPIOE_LOCKR (PIN_LOCKR_DISABLED(GPIOE_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOE_PIN15)) /* * GPIOF setup: @@ -1158,38 +992,6 @@ PIN_AFIO_AF(GPIOF_PIN13, 0U) | \ PIN_AFIO_AF(GPIOF_PIN14, 0U) | \ PIN_AFIO_AF(GPIOF_PIN15, 0U)) -#define VAL_GPIOF_ASCR (PIN_ASCR_DISABLED(GPIOF_PIN0) | \ - PIN_ASCR_DISABLED(GPIOF_PIN1) | \ - PIN_ASCR_DISABLED(GPIOF_PIN2) | \ - PIN_ASCR_DISABLED(GPIOF_PIN3) | \ - PIN_ASCR_DISABLED(GPIOF_PIN4) | \ - PIN_ASCR_DISABLED(GPIOF_PIN5) | \ - PIN_ASCR_DISABLED(GPIOF_PIN6) | \ - PIN_ASCR_DISABLED(GPIOF_PIN7) | \ - PIN_ASCR_DISABLED(GPIOF_PIN8) | \ - PIN_ASCR_DISABLED(GPIOF_PIN9) | \ - PIN_ASCR_DISABLED(GPIOF_PIN10) | \ - PIN_ASCR_DISABLED(GPIOF_PIN11) | \ - PIN_ASCR_DISABLED(GPIOF_PIN12) | \ - PIN_ASCR_DISABLED(GPIOF_PIN13) | \ - PIN_ASCR_DISABLED(GPIOF_PIN14) | \ - PIN_ASCR_DISABLED(GPIOF_PIN15)) -#define VAL_GPIOF_LOCKR (PIN_LOCKR_DISABLED(GPIOF_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN9) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN10) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOF_PIN15)) /* * GPIOG setup: @@ -1307,38 +1109,6 @@ PIN_AFIO_AF(GPIOG_PIN13, 0U) | \ PIN_AFIO_AF(GPIOG_PIN14, 0U) | \ PIN_AFIO_AF(GPIOG_OCTOSPIM_P2_DQS, 5U)) -#define VAL_GPIOG_ASCR (PIN_ASCR_DISABLED(GPIOG_PIN0) | \ - PIN_ASCR_DISABLED(GPIOG_PIN1) | \ - PIN_ASCR_DISABLED(GPIOG_PIN2) | \ - PIN_ASCR_DISABLED(GPIOG_PIN3) | \ - PIN_ASCR_DISABLED(GPIOG_PIN4) | \ - PIN_ASCR_DISABLED(GPIOG_PIN5) | \ - PIN_ASCR_DISABLED(GPIOG_PIN6) | \ - PIN_ASCR_DISABLED(GPIOG_PIN7) | \ - PIN_ASCR_DISABLED(GPIOG_PIN8) | \ - PIN_ASCR_DISABLED(GPIOG_OCTOSPIM_P2_IO6) |\ - PIN_ASCR_DISABLED(GPIOG_OCTOSPIM_P2_IO7) |\ - PIN_ASCR_DISABLED(GPIOG_PIN11) | \ - PIN_ASCR_DISABLED(GPIOG_OCTOSPIM_P2_NCS) |\ - PIN_ASCR_DISABLED(GPIOG_PIN13) | \ - PIN_ASCR_DISABLED(GPIOG_PIN14) | \ - PIN_ASCR_DISABLED(GPIOG_OCTOSPIM_P2_DQS)) -#define VAL_GPIOG_LOCKR (PIN_LOCKR_DISABLED(GPIOG_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOG_OCTOSPIM_P2_IO6) |\ - PIN_LOCKR_DISABLED(GPIOG_OCTOSPIM_P2_IO7) |\ - PIN_LOCKR_DISABLED(GPIOG_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOG_OCTOSPIM_P2_NCS) |\ - PIN_LOCKR_DISABLED(GPIOG_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOG_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOG_OCTOSPIM_P2_DQS)) /* * GPIOH setup: @@ -1456,38 +1226,6 @@ PIN_AFIO_AF(GPIOH_PIN13, 0U) | \ PIN_AFIO_AF(GPIOH_PIN14, 0U) | \ PIN_AFIO_AF(GPIOH_PIN15, 0U)) -#define VAL_GPIOH_ASCR (PIN_ASCR_DISABLED(GPIOH_OSC_IN) | \ - PIN_ASCR_DISABLED(GPIOH_OSC_OUT) | \ - PIN_ASCR_DISABLED(GPIOH_PIN2) | \ - PIN_ASCR_DISABLED(GPIOH_BOOT0) | \ - PIN_ASCR_DISABLED(GPIOH_LED) | \ - PIN_ASCR_DISABLED(GPIOH_PIN5) | \ - PIN_ASCR_DISABLED(GPIOH_PIN6) | \ - PIN_ASCR_DISABLED(GPIOH_PIN7) | \ - PIN_ASCR_DISABLED(GPIOH_OCTOSPIM_P2_IO3) |\ - PIN_ASCR_DISABLED(GPIOH_OCTOSPIM_P2_IO4) |\ - PIN_ASCR_DISABLED(GPIOH_OCTOSPIM_P2_IO5) |\ - PIN_ASCR_DISABLED(GPIOH_PIN11) | \ - PIN_ASCR_DISABLED(GPIOH_PIN12) | \ - PIN_ASCR_DISABLED(GPIOH_PIN13) | \ - PIN_ASCR_DISABLED(GPIOH_PIN14) | \ - PIN_ASCR_DISABLED(GPIOH_PIN15)) -#define VAL_GPIOH_LOCKR (PIN_LOCKR_DISABLED(GPIOH_OSC_IN) | \ - PIN_LOCKR_DISABLED(GPIOH_OSC_OUT) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOH_BOOT0) | \ - PIN_LOCKR_DISABLED(GPIOH_LED) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN6) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOH_OCTOSPIM_P2_IO3) |\ - PIN_LOCKR_DISABLED(GPIOH_OCTOSPIM_P2_IO4) |\ - PIN_LOCKR_DISABLED(GPIOH_OCTOSPIM_P2_IO5) |\ - PIN_LOCKR_DISABLED(GPIOH_PIN11) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOH_PIN15)) /* * GPIOI setup: @@ -1605,38 +1343,6 @@ PIN_AFIO_AF(GPIOI_PIN13, 0U) | \ PIN_AFIO_AF(GPIOI_PIN14, 0U) | \ PIN_AFIO_AF(GPIOI_PIN15, 0U)) -#define VAL_GPIOI_ASCR (PIN_ASCR_DISABLED(GPIOI_PIN0) | \ - PIN_ASCR_DISABLED(GPIOI_PIN1) | \ - PIN_ASCR_DISABLED(GPIOI_PIN2) | \ - PIN_ASCR_DISABLED(GPIOI_PIN3) | \ - PIN_ASCR_DISABLED(GPIOI_PIN4) | \ - PIN_ASCR_DISABLED(GPIOI_PIN5) | \ - PIN_ASCR_DISABLED(GPIOI_OCTOSPIM_P2_CLK) |\ - PIN_ASCR_DISABLED(GPIOI_PIN7) | \ - PIN_ASCR_DISABLED(GPIOI_PIN8) | \ - PIN_ASCR_DISABLED(GPIOI_OCTOSPIM_P2_IO2) |\ - PIN_ASCR_DISABLED(GPIOI_OCTOSPIM_P2_IO1) |\ - PIN_ASCR_DISABLED(GPIOI_OCTOSPIM_P2_IO0) |\ - PIN_ASCR_DISABLED(GPIOI_PIN12) | \ - PIN_ASCR_DISABLED(GPIOI_PIN13) | \ - PIN_ASCR_DISABLED(GPIOI_PIN14) | \ - PIN_ASCR_DISABLED(GPIOI_PIN15)) -#define VAL_GPIOI_LOCKR (PIN_LOCKR_DISABLED(GPIOI_PIN0) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN1) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN2) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN3) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN4) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN5) | \ - PIN_LOCKR_DISABLED(GPIOI_OCTOSPIM_P2_CLK) |\ - PIN_LOCKR_DISABLED(GPIOI_PIN7) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN8) | \ - PIN_LOCKR_DISABLED(GPIOI_OCTOSPIM_P2_IO2) |\ - PIN_LOCKR_DISABLED(GPIOI_OCTOSPIM_P2_IO1) |\ - PIN_LOCKR_DISABLED(GPIOI_OCTOSPIM_P2_IO0) |\ - PIN_LOCKR_DISABLED(GPIOI_PIN12) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN13) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN14) | \ - PIN_LOCKR_DISABLED(GPIOI_PIN15)) /*===========================================================================*/ /* External declarations. */ diff --git a/os/hal/boards/ST_STM32L_DISCOVERY/board.c b/os/hal/boards/ST_STM32L_DISCOVERY/board.c index da54370c1..29d73fe9f 100644 --- a/os/hal/boards/ST_STM32L_DISCOVERY/board.c +++ b/os/hal/boards/ST_STM32L_DISCOVERY/board.c @@ -220,7 +220,7 @@ void __early_init(void) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -230,7 +230,7 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) { (void)sdcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /* HAL_USE_SDC */ @@ -242,7 +242,7 @@ bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return true; } @@ -252,14 +252,14 @@ bool mmc_lld_is_card_inserted(MMCDriver *mmcp) { bool mmc_lld_is_write_protected(MMCDriver *mmcp) { (void)mmcp; - /* TODO: Fill the implementation.*/ + /* CHTODO: Fill the implementation.*/ return false; } #endif /** * @brief Board-specific initialization code. - * @todo Add your board-specific code, if any. + * @note You can add your board-specific code here. */ void boardInit(void) {