74
74
//!
75
75
//! @brief This function initializes the hw/sw resources required to drive the SD_MMC_SPI.
76
76
//!/
77
- extern void sd_mmc_spi_mem_init (void );
77
+ void sd_mmc_spi_mem_init ();
78
78
79
79
//!
80
80
//! @brief This function tests the state of the SD_MMC memory and sends it to the Host.
@@ -87,7 +87,7 @@ extern void sd_mmc_spi_mem_init(void);
87
87
//! Media not present -> CTRL_NO_PRESENT
88
88
//! Media has changed -> CTRL_BUSY
89
89
//!/
90
- extern Ctrl_status sd_mmc_spi_test_unit_ready (void );
90
+ Ctrl_status sd_mmc_spi_test_unit_ready ();
91
91
92
92
//!
93
93
//! @brief This function gives the address of the last valid sector.
@@ -98,7 +98,7 @@ extern Ctrl_status sd_mmc_spi_test_unit_ready(void);
98
98
//! Media ready -> CTRL_GOOD
99
99
//! Media not present -> CTRL_NO_PRESENT
100
100
//!/
101
- extern Ctrl_status sd_mmc_spi_read_capacity (uint32_t * nb_sector );
101
+ Ctrl_status sd_mmc_spi_read_capacity (uint32_t * nb_sector );
102
102
103
103
/*! \brief Unload/Load the SD/MMC card selected
104
104
*
@@ -109,7 +109,7 @@ extern Ctrl_status sd_mmc_spi_read_capacity(uint32_t *nb_sector);
109
109
*
110
110
* \return \c true if unload/load done success.
111
111
*/
112
- extern bool sd_mmc_spi_unload (bool unload );
112
+ bool sd_mmc_spi_unload (bool unload );
113
113
114
114
//!
115
115
//! @brief This function returns the write protected status of the memory.
@@ -120,14 +120,14 @@ extern bool sd_mmc_spi_unload(bool unload);
120
120
//!
121
121
//! @return false -> the memory is not write-protected (always)
122
122
//!/
123
- extern bool sd_mmc_spi_wr_protect (void );
123
+ bool sd_mmc_spi_wr_protect ();
124
124
125
125
//!
126
126
//! @brief This function tells if the memory has been removed or not.
127
127
//!
128
128
//! @return false -> The memory isn't removed
129
129
//!
130
- extern bool sd_mmc_spi_removal (void );
130
+ bool sd_mmc_spi_removal ();
131
131
132
132
//---- ACCESS DATA FUNCTIONS ----
133
133
@@ -147,7 +147,7 @@ extern bool sd_mmc_spi_removal(void);
147
147
//! It is ready -> CTRL_GOOD
148
148
//! A error occur -> CTRL_FAIL
149
149
//!
150
- extern Ctrl_status sd_mmc_spi_usb_read_10 (uint32_t addr , uint16_t nb_sector );
150
+ Ctrl_status sd_mmc_spi_usb_read_10 (uint32_t addr , uint16_t nb_sector );
151
151
152
152
//! This function initializes the SD/MMC memory for a write operation
153
153
//!
@@ -161,7 +161,7 @@ extern Ctrl_status sd_mmc_spi_usb_read_10(uint32_t addr, uint16_t nb_sector);
161
161
//! It is ready -> CTRL_GOOD
162
162
//! An error occurs -> CTRL_FAIL
163
163
//!
164
- extern Ctrl_status sd_mmc_spi_usb_write_10 (uint32_t addr , uint16_t nb_sector );
164
+ Ctrl_status sd_mmc_spi_usb_write_10 (uint32_t addr , uint16_t nb_sector );
165
165
166
166
#endif // #if ACCESS_USB == true
167
167
0 commit comments