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

ports/stm32/i2c.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_I2C_H
27-
#define MICROPY_INCLUDED_STMHAL_I2C_H
26+
#ifndef MICROPY_INCLUDED_STM32_I2C_H
27+
#define MICROPY_INCLUDED_STM32_I2C_H
2828

2929
#include "dma.h"
3030

@@ -52,4 +52,4 @@ uint32_t i2c_get_baudrate(I2C_InitTypeDef *init);
5252
void i2c_ev_irq_handler(mp_uint_t i2c_id);
5353
void i2c_er_irq_handler(mp_uint_t i2c_id);
5454

55-
#endif // MICROPY_INCLUDED_STMHAL_I2C_H
55+
#endif // MICROPY_INCLUDED_STM32_I2C_H

ports/stm32/irq.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_IRQ_H
27-
#define MICROPY_INCLUDED_STMHAL_IRQ_H
26+
#ifndef MICROPY_INCLUDED_STM32_IRQ_H
27+
#define MICROPY_INCLUDED_STM32_IRQ_H
2828

2929
// these states correspond to values from query_irq, enable_irq and disable_irq
3030
#define IRQ_STATE_DISABLED (0x00000001)
@@ -149,4 +149,4 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj);
149149
#define IRQ_PRI_RTC_WKUP 15
150150
#define IRQ_SUBPRI_RTC_WKUP 0
151151

152-
#endif // MICROPY_INCLUDED_STMHAL_IRQ_H
152+
#endif // MICROPY_INCLUDED_STM32_IRQ_H

ports/stm32/lcd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
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_LCD_H
27-
#define MICROPY_INCLUDED_STMHAL_LCD_H
26+
#ifndef MICROPY_INCLUDED_STM32_LCD_H
27+
#define MICROPY_INCLUDED_STM32_LCD_H
2828

2929
extern const mp_obj_type_t pyb_lcd_type;
3030

31-
#endif // MICROPY_INCLUDED_STMHAL_LCD_H
31+
#endif // MICROPY_INCLUDED_STM32_LCD_H

ports/stm32/led.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_LED_H
27-
#define MICROPY_INCLUDED_STMHAL_LED_H
26+
#ifndef MICROPY_INCLUDED_STM32_LED_H
27+
#define MICROPY_INCLUDED_STM32_LED_H
2828

2929
typedef enum {
3030
PYB_LED_RED = 1,
@@ -40,4 +40,4 @@ void led_debug(int value, int delay);
4040

4141
extern const mp_obj_type_t pyb_led_type;
4242

43-
#endif // MICROPY_INCLUDED_STMHAL_LED_H
43+
#endif // MICROPY_INCLUDED_STM32_LED_H

ports/stm32/modmachine.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_MODMACHINE_H
27-
#define MICROPY_INCLUDED_STMHAL_MODMACHINE_H
26+
#ifndef MICROPY_INCLUDED_STM32_MODMACHINE_H
27+
#define MICROPY_INCLUDED_STM32_MODMACHINE_H
2828

2929
#include "py/obj.h"
3030

@@ -39,4 +39,4 @@ MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(machine_freq_obj);
3939
MP_DECLARE_CONST_FUN_OBJ_0(machine_sleep_obj);
4040
MP_DECLARE_CONST_FUN_OBJ_0(machine_deepsleep_obj);
4141

42-
#endif // MICROPY_INCLUDED_STMHAL_MODMACHINE_H
42+
#endif // MICROPY_INCLUDED_STM32_MODMACHINE_H

ports/stm32/modnetwork.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_MODNETWORK_H
27-
#define MICROPY_INCLUDED_STMHAL_MODNETWORK_H
26+
#ifndef MICROPY_INCLUDED_STM32_MODNETWORK_H
27+
#define MICROPY_INCLUDED_STM32_MODNETWORK_H
2828

2929
#define MOD_NETWORK_IPADDR_BUF_SIZE (4)
3030

@@ -80,4 +80,4 @@ void mod_network_init(void);
8080
void mod_network_register_nic(mp_obj_t nic);
8181
mp_obj_t mod_network_find_nic(const uint8_t *ip);
8282

83-
#endif // MICROPY_INCLUDED_STMHAL_MODNETWORK_H
83+
#endif // MICROPY_INCLUDED_STM32_MODNETWORK_H

ports/stm32/pendsv.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_PENDSV_H
27-
#define MICROPY_INCLUDED_STMHAL_PENDSV_H
26+
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
27+
#define MICROPY_INCLUDED_STM32_PENDSV_H
2828

2929
void pendsv_init(void);
3030
void pendsv_kbd_intr(void);
@@ -33,4 +33,4 @@ void pendsv_kbd_intr(void);
3333
// prelude for this function
3434
void pendsv_isr_handler(void) __attribute__((naked));
3535

36-
#endif // MICROPY_INCLUDED_STMHAL_PENDSV_H
36+
#endif // MICROPY_INCLUDED_STM32_PENDSV_H

ports/stm32/pin.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_PIN_H
27-
#define MICROPY_INCLUDED_STMHAL_PIN_H
26+
#ifndef MICROPY_INCLUDED_STM32_PIN_H
27+
#define MICROPY_INCLUDED_STM32_PIN_H
2828

2929
// This file requires pin_defs_xxx.h (which has port specific enums and
3030
// defines, so we include it here. It should never be included directly
@@ -97,4 +97,4 @@ const pin_af_obj_t *pin_find_af(const pin_obj_t *pin, uint8_t fn, uint8_t unit);
9797
const pin_af_obj_t *pin_find_af_by_index(const pin_obj_t *pin, mp_uint_t af_idx);
9898
const pin_af_obj_t *pin_find_af_by_name(const pin_obj_t *pin, const char *name);
9999

100-
#endif // MICROPY_INCLUDED_STMHAL_PIN_H
100+
#endif // MICROPY_INCLUDED_STM32_PIN_H

ports/stm32/portmodules.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_PORTMODULES_H
27-
#define MICROPY_INCLUDED_STMHAL_PORTMODULES_H
26+
#ifndef MICROPY_INCLUDED_STM32_PORTMODULES_H
27+
#define MICROPY_INCLUDED_STM32_PORTMODULES_H
2828

2929
extern const mp_obj_module_t pyb_module;
3030
extern const mp_obj_module_t stm_module;
@@ -40,4 +40,4 @@ MP_DECLARE_CONST_FUN_OBJ_1(time_sleep_us_obj);
4040
MP_DECLARE_CONST_FUN_OBJ_0(mod_os_sync_obj);
4141
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mod_os_dupterm_obj);
4242

43-
#endif // MICROPY_INCLUDED_STMHAL_PORTMODULES_H
43+
#endif // MICROPY_INCLUDED_STM32_PORTMODULES_H

ports/stm32/pybthread.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_PYBTHREAD_H
27-
#define MICROPY_INCLUDED_STMHAL_PYBTHREAD_H
26+
#ifndef MICROPY_INCLUDED_STM32_PYBTHREAD_H
27+
#define MICROPY_INCLUDED_STM32_PYBTHREAD_H
2828

2929
typedef struct _pyb_thread_t {
3030
void *sp;
@@ -74,4 +74,4 @@ void pyb_mutex_init(pyb_mutex_t *m);
7474
int pyb_mutex_lock(pyb_mutex_t *m, int wait);
7575
void pyb_mutex_unlock(pyb_mutex_t *m);
7676

77-
#endif // MICROPY_INCLUDED_STMHAL_PYBTHREAD_H
77+
#endif // MICROPY_INCLUDED_STM32_PYBTHREAD_H

ports/stm32/rng.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
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_RNG_H
27-
#define MICROPY_INCLUDED_STMHAL_RNG_H
26+
#ifndef MICROPY_INCLUDED_STM32_RNG_H
27+
#define MICROPY_INCLUDED_STM32_RNG_H
2828

2929
#include "py/obj.h"
3030

3131
uint32_t rng_get(void);
3232

3333
MP_DECLARE_CONST_FUN_OBJ_0(pyb_rng_get_obj);
3434

35-
#endif // MICROPY_INCLUDED_STMHAL_RNG_H
35+
#endif // MICROPY_INCLUDED_STM32_RNG_H

ports/stm32/rtc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
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_RTC_H
27-
#define MICROPY_INCLUDED_STMHAL_RTC_H
26+
#ifndef MICROPY_INCLUDED_STM32_RTC_H
27+
#define MICROPY_INCLUDED_STM32_RTC_H
2828

2929
extern RTC_HandleTypeDef RTCHandle;
3030
extern const mp_obj_type_t pyb_rtc_type;
3131

3232
void rtc_init_start(bool force_init);
3333
void rtc_init_finalise(void);
3434

35-
#endif // MICROPY_INCLUDED_STMHAL_RTC_H
35+
#endif // MICROPY_INCLUDED_STM32_RTC_H

ports/stm32/sdcard.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_SDCARD_H
27-
#define MICROPY_INCLUDED_STMHAL_SDCARD_H
26+
#ifndef MICROPY_INCLUDED_STM32_SDCARD_H
27+
#define MICROPY_INCLUDED_STM32_SDCARD_H
2828

2929
// this is a fixed size and should not be changed
3030
#define SDCARD_BLOCK_SIZE (512)
@@ -45,4 +45,4 @@ extern const struct _mp_obj_base_t pyb_sdcard_obj;
4545
struct _fs_user_mount_t;
4646
void sdcard_init_vfs(struct _fs_user_mount_t *vfs, int part);
4747

48-
#endif // MICROPY_INCLUDED_STMHAL_SDCARD_H
48+
#endif // MICROPY_INCLUDED_STM32_SDCARD_H

ports/stm32/servo.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_SERVO_H
27-
#define MICROPY_INCLUDED_STMHAL_SERVO_H
26+
#ifndef MICROPY_INCLUDED_STM32_SERVO_H
27+
#define MICROPY_INCLUDED_STM32_SERVO_H
2828

2929
void servo_init(void);
3030
void servo_timer_irq_callback(void);
@@ -34,4 +34,4 @@ extern const mp_obj_type_t pyb_servo_type;
3434
MP_DECLARE_CONST_FUN_OBJ_2(pyb_servo_set_obj);
3535
MP_DECLARE_CONST_FUN_OBJ_2(pyb_pwm_set_obj);
3636

37-
#endif // MICROPY_INCLUDED_STMHAL_SERVO_H
37+
#endif // MICROPY_INCLUDED_STM32_SERVO_H

0 commit comments

Comments
 (0)