aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/OLIMEX_STM32_P107/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/OLIMEX_STM32_P107/board.c')
-rw-r--r--os/hal/boards/OLIMEX_STM32_P107/board.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/boards/OLIMEX_STM32_P107/board.c b/os/hal/boards/OLIMEX_STM32_P107/board.c
index 3e27c82e3..e2acd00c3 100644
--- a/os/hal/boards/OLIMEX_STM32_P107/board.c
+++ b/os/hal/boards/OLIMEX_STM32_P107/board.c
@@ -46,20 +46,20 @@ void __early_init(void) {
/*
* Card detection through the card internal pull-up on D3.
*/
-bool_t mmc_lld_is_card_inserted(MMCDriver *mmcp) {
- static bool_t last_status = FALSE;
+bool mmc_lld_is_card_inserted(MMCDriver *mmcp) {
+ static bool last_status = FALSE;
(void)mmcp;
if ((palReadLatch(GPIOA) & PAL_PORT_BIT(GPIOA_SPI3_CS_MMC)) == 0)
return last_status;
- return last_status = (bool_t)palReadPad(GPIOA, GPIOA_SPI3_CS_MMC);
+ return last_status = (bool)palReadPad(GPIOA, GPIOA_SPI3_CS_MMC);
}
/*
* Card write protection detection is not possible, the card is always
* reported as not protected.
*/
-bool_t mmc_lld_is_write_protected(MMCDriver *mmcp) {
+bool mmc_lld_is_write_protected(MMCDriver *mmcp) {
(void)mmcp;
return FALSE;