Skip to content

Commit d966a33

Browse files
committed
stm32: Change header include guards from STMHAL to STM32 to match dir.
1 parent e05fca4 commit d966a33

38 files changed

+114
-114
lines changed

ports/stm32/accel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_ACCEL_H
27-
#define MICROPY_INCLUDED_STMHAL_ACCEL_H
26+
#ifndef MICROPY_INCLUDED_STM32_ACCEL_H
27+
#define MICROPY_INCLUDED_STM32_ACCEL_H
2828

2929
extern const mp_obj_type_t pyb_accel_type;
3030

3131
void accel_init(void);
3232

33-
#endif // MICROPY_INCLUDED_STMHAL_ACCEL_H
33+
#endif // MICROPY_INCLUDED_STM32_ACCEL_H

ports/stm32/adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_ADC_H
27-
#define MICROPY_INCLUDED_STMHAL_ADC_H
26+
#ifndef MICROPY_INCLUDED_STM32_ADC_H
27+
#define MICROPY_INCLUDED_STM32_ADC_H
2828

2929
extern const mp_obj_type_t pyb_adc_type;
3030
extern const mp_obj_type_t pyb_adc_all_type;
3131

32-
#endif // MICROPY_INCLUDED_STMHAL_ADC_H
32+
#endif // MICROPY_INCLUDED_STM32_ADC_H

ports/stm32/bufhelper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_BUFHELPER_H
27-
#define MICROPY_INCLUDED_STMHAL_BUFHELPER_H
26+
#ifndef MICROPY_INCLUDED_STM32_BUFHELPER_H
27+
#define MICROPY_INCLUDED_STM32_BUFHELPER_H
2828

2929
void pyb_buf_get_for_send(mp_obj_t o, mp_buffer_info_t *bufinfo, byte *tmp_data);
3030
mp_obj_t pyb_buf_get_for_recv(mp_obj_t o, vstr_t *vstr);
3131

32-
#endif // MICROPY_INCLUDED_STMHAL_BUFHELPER_H
32+
#endif // MICROPY_INCLUDED_STM32_BUFHELPER_H

ports/stm32/can.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_CAN_H
27-
#define MICROPY_INCLUDED_STMHAL_CAN_H
26+
#ifndef MICROPY_INCLUDED_STM32_CAN_H
27+
#define MICROPY_INCLUDED_STM32_CAN_H
2828

2929
#define PYB_CAN_1 (1)
3030
#define PYB_CAN_2 (2)
@@ -35,4 +35,4 @@ void can_init0(void);
3535
void can_deinit(void);
3636
void can_rx_irq_handler(uint can_id, uint fifo_id);
3737

38-
#endif // MICROPY_INCLUDED_STMHAL_CAN_H
38+
#endif // MICROPY_INCLUDED_STM32_CAN_H

ports/stm32/dac.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_DAC_H
27-
#define MICROPY_INCLUDED_STMHAL_DAC_H
26+
#ifndef MICROPY_INCLUDED_STM32_DAC_H
27+
#define MICROPY_INCLUDED_STM32_DAC_H
2828

2929
void dac_init(void);
3030

3131
extern const mp_obj_type_t pyb_dac_type;
3232

33-
#endif // MICROPY_INCLUDED_STMHAL_DAC_H
33+
#endif // MICROPY_INCLUDED_STM32_DAC_H

ports/stm32/dma.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_DMA_H
27-
#define MICROPY_INCLUDED_STMHAL_DMA_H
26+
#ifndef MICROPY_INCLUDED_STM32_DMA_H
27+
#define MICROPY_INCLUDED_STM32_DMA_H
2828

2929
typedef struct _dma_descr_t dma_descr_t;
3030

@@ -100,4 +100,4 @@ void dma_deinit(const dma_descr_t *dma_descr);
100100
void dma_invalidate_channel(const dma_descr_t *dma_descr);
101101
void dma_idle_handler(int controller);
102102

103-
#endif // MICROPY_INCLUDED_STMHAL_DMA_H
103+
#endif // MICROPY_INCLUDED_STM32_DMA_H

ports/stm32/extint.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_EXTINT_H
27-
#define MICROPY_INCLUDED_STMHAL_EXTINT_H
26+
#ifndef MICROPY_INCLUDED_STM32_EXTINT_H
27+
#define MICROPY_INCLUDED_STM32_EXTINT_H
2828

2929
// Vectors 0-15 are for regular pins
3030
// Vectors 16-22 are for internal sources.
@@ -64,4 +64,4 @@ void Handle_EXTI_Irq(uint32_t line);
6464

6565
extern const mp_obj_type_t extint_type;
6666

67-
#endif // MICROPY_INCLUDED_STMHAL_EXTINT_H
67+
#endif // MICROPY_INCLUDED_STM32_EXTINT_H

ports/stm32/flash.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_FLASH_H
27-
#define MICROPY_INCLUDED_STMHAL_FLASH_H
26+
#ifndef MICROPY_INCLUDED_STM32_FLASH_H
27+
#define MICROPY_INCLUDED_STM32_FLASH_H
2828

2929
uint32_t flash_get_sector_info(uint32_t addr, uint32_t *start_addr, uint32_t *size);
3030
void flash_erase(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32);
3131
void flash_write(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32);
3232

33-
#endif // MICROPY_INCLUDED_STMHAL_FLASH_H
33+
#endif // MICROPY_INCLUDED_STM32_FLASH_H

ports/stm32/font_petme128_8x8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
27-
#define MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
26+
#ifndef MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H
27+
#define MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H
2828

2929
static const uint8_t font_petme128_8x8[] = {
3030
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 32=
@@ -125,4 +125,4 @@ static const uint8_t font_petme128_8x8[] = {
125125
0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55, // 127
126126
};
127127

128-
#endif // MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
128+
#endif // MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H

ports/stm32/gccollect.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26-
#ifndef MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
27-
#define MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
26+
#ifndef MICROPY_INCLUDED_STM32_GCCOLLECT_H
27+
#define MICROPY_INCLUDED_STM32_GCCOLLECT_H
2828

2929
// variables defining memory layout
3030
// (these probably belong somewhere else...)
@@ -40,4 +40,4 @@ extern uint32_t _heap_end;
4040
extern uint32_t _estack;
4141
extern uint32_t _ram_end;
4242

43-
#endif // MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
43+
#endif // MICROPY_INCLUDED_STM32_GCCOLLECT_H

0 commit comments

Comments
 (0)