stm32: Change header include guards from STMHAL to STM32 to match dir.

This commit is contained in:
Damien George 2018-02-15 15:47:04 +11:00
parent e05fca4ef3
commit d966a33486
38 changed files with 114 additions and 114 deletions

View File

@ -23,11 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_ACCEL_H
#define MICROPY_INCLUDED_STMHAL_ACCEL_H
#ifndef MICROPY_INCLUDED_STM32_ACCEL_H
#define MICROPY_INCLUDED_STM32_ACCEL_H
extern const mp_obj_type_t pyb_accel_type;
void accel_init(void);
#endif // MICROPY_INCLUDED_STMHAL_ACCEL_H
#endif // MICROPY_INCLUDED_STM32_ACCEL_H

View File

@ -23,10 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_ADC_H
#define MICROPY_INCLUDED_STMHAL_ADC_H
#ifndef MICROPY_INCLUDED_STM32_ADC_H
#define MICROPY_INCLUDED_STM32_ADC_H
extern const mp_obj_type_t pyb_adc_type;
extern const mp_obj_type_t pyb_adc_all_type;
#endif // MICROPY_INCLUDED_STMHAL_ADC_H
#endif // MICROPY_INCLUDED_STM32_ADC_H

View File

@ -23,10 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_BUFHELPER_H
#define MICROPY_INCLUDED_STMHAL_BUFHELPER_H
#ifndef MICROPY_INCLUDED_STM32_BUFHELPER_H
#define MICROPY_INCLUDED_STM32_BUFHELPER_H
void pyb_buf_get_for_send(mp_obj_t o, mp_buffer_info_t *bufinfo, byte *tmp_data);
mp_obj_t pyb_buf_get_for_recv(mp_obj_t o, vstr_t *vstr);
#endif // MICROPY_INCLUDED_STMHAL_BUFHELPER_H
#endif // MICROPY_INCLUDED_STM32_BUFHELPER_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_CAN_H
#define MICROPY_INCLUDED_STMHAL_CAN_H
#ifndef MICROPY_INCLUDED_STM32_CAN_H
#define MICROPY_INCLUDED_STM32_CAN_H
#define PYB_CAN_1 (1)
#define PYB_CAN_2 (2)
@ -35,4 +35,4 @@ void can_init0(void);
void can_deinit(void);
void can_rx_irq_handler(uint can_id, uint fifo_id);
#endif // MICROPY_INCLUDED_STMHAL_CAN_H
#endif // MICROPY_INCLUDED_STM32_CAN_H

View File

@ -23,11 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_DAC_H
#define MICROPY_INCLUDED_STMHAL_DAC_H
#ifndef MICROPY_INCLUDED_STM32_DAC_H
#define MICROPY_INCLUDED_STM32_DAC_H
void dac_init(void);
extern const mp_obj_type_t pyb_dac_type;
#endif // MICROPY_INCLUDED_STMHAL_DAC_H
#endif // MICROPY_INCLUDED_STM32_DAC_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_DMA_H
#define MICROPY_INCLUDED_STMHAL_DMA_H
#ifndef MICROPY_INCLUDED_STM32_DMA_H
#define MICROPY_INCLUDED_STM32_DMA_H
typedef struct _dma_descr_t dma_descr_t;
@ -100,4 +100,4 @@ void dma_deinit(const dma_descr_t *dma_descr);
void dma_invalidate_channel(const dma_descr_t *dma_descr);
void dma_idle_handler(int controller);
#endif // MICROPY_INCLUDED_STMHAL_DMA_H
#endif // MICROPY_INCLUDED_STM32_DMA_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_EXTINT_H
#define MICROPY_INCLUDED_STMHAL_EXTINT_H
#ifndef MICROPY_INCLUDED_STM32_EXTINT_H
#define MICROPY_INCLUDED_STM32_EXTINT_H
// Vectors 0-15 are for regular pins
// Vectors 16-22 are for internal sources.
@ -64,4 +64,4 @@ void Handle_EXTI_Irq(uint32_t line);
extern const mp_obj_type_t extint_type;
#endif // MICROPY_INCLUDED_STMHAL_EXTINT_H
#endif // MICROPY_INCLUDED_STM32_EXTINT_H

View File

@ -23,11 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_FLASH_H
#define MICROPY_INCLUDED_STMHAL_FLASH_H
#ifndef MICROPY_INCLUDED_STM32_FLASH_H
#define MICROPY_INCLUDED_STM32_FLASH_H
uint32_t flash_get_sector_info(uint32_t addr, uint32_t *start_addr, uint32_t *size);
void flash_erase(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32);
void flash_write(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32);
#endif // MICROPY_INCLUDED_STMHAL_FLASH_H
#endif // MICROPY_INCLUDED_STM32_FLASH_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
#define MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
#ifndef MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H
#define MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H
static const uint8_t font_petme128_8x8[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 32=
@ -125,4 +125,4 @@ static const uint8_t font_petme128_8x8[] = {
0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55, // 127
};
#endif // MICROPY_INCLUDED_STMHAL_FONT_PETME128_8X8_H
#endif // MICROPY_INCLUDED_STM32_FONT_PETME128_8X8_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
#define MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
#ifndef MICROPY_INCLUDED_STM32_GCCOLLECT_H
#define MICROPY_INCLUDED_STM32_GCCOLLECT_H
// variables defining memory layout
// (these probably belong somewhere else...)
@ -40,4 +40,4 @@ extern uint32_t _heap_end;
extern uint32_t _estack;
extern uint32_t _ram_end;
#endif // MICROPY_INCLUDED_STMHAL_GCCOLLECT_H
#endif // MICROPY_INCLUDED_STM32_GCCOLLECT_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_I2C_H
#define MICROPY_INCLUDED_STMHAL_I2C_H
#ifndef MICROPY_INCLUDED_STM32_I2C_H
#define MICROPY_INCLUDED_STM32_I2C_H
#include "dma.h"
@ -52,4 +52,4 @@ uint32_t i2c_get_baudrate(I2C_InitTypeDef *init);
void i2c_ev_irq_handler(mp_uint_t i2c_id);
void i2c_er_irq_handler(mp_uint_t i2c_id);
#endif // MICROPY_INCLUDED_STMHAL_I2C_H
#endif // MICROPY_INCLUDED_STM32_I2C_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_IRQ_H
#define MICROPY_INCLUDED_STMHAL_IRQ_H
#ifndef MICROPY_INCLUDED_STM32_IRQ_H
#define MICROPY_INCLUDED_STM32_IRQ_H
// these states correspond to values from query_irq, enable_irq and disable_irq
#define IRQ_STATE_DISABLED (0x00000001)
@ -149,4 +149,4 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj);
#define IRQ_PRI_RTC_WKUP 15
#define IRQ_SUBPRI_RTC_WKUP 0
#endif // MICROPY_INCLUDED_STMHAL_IRQ_H
#endif // MICROPY_INCLUDED_STM32_IRQ_H

View File

@ -23,9 +23,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_LCD_H
#define MICROPY_INCLUDED_STMHAL_LCD_H
#ifndef MICROPY_INCLUDED_STM32_LCD_H
#define MICROPY_INCLUDED_STM32_LCD_H
extern const mp_obj_type_t pyb_lcd_type;
#endif // MICROPY_INCLUDED_STMHAL_LCD_H
#endif // MICROPY_INCLUDED_STM32_LCD_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_LED_H
#define MICROPY_INCLUDED_STMHAL_LED_H
#ifndef MICROPY_INCLUDED_STM32_LED_H
#define MICROPY_INCLUDED_STM32_LED_H
typedef enum {
PYB_LED_RED = 1,
@ -40,4 +40,4 @@ void led_debug(int value, int delay);
extern const mp_obj_type_t pyb_led_type;
#endif // MICROPY_INCLUDED_STMHAL_LED_H
#endif // MICROPY_INCLUDED_STM32_LED_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_MODMACHINE_H
#define MICROPY_INCLUDED_STMHAL_MODMACHINE_H
#ifndef MICROPY_INCLUDED_STM32_MODMACHINE_H
#define MICROPY_INCLUDED_STM32_MODMACHINE_H
#include "py/obj.h"
@ -39,4 +39,4 @@ MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(machine_freq_obj);
MP_DECLARE_CONST_FUN_OBJ_0(machine_sleep_obj);
MP_DECLARE_CONST_FUN_OBJ_0(machine_deepsleep_obj);
#endif // MICROPY_INCLUDED_STMHAL_MODMACHINE_H
#endif // MICROPY_INCLUDED_STM32_MODMACHINE_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_MODNETWORK_H
#define MICROPY_INCLUDED_STMHAL_MODNETWORK_H
#ifndef MICROPY_INCLUDED_STM32_MODNETWORK_H
#define MICROPY_INCLUDED_STM32_MODNETWORK_H
#define MOD_NETWORK_IPADDR_BUF_SIZE (4)
@ -80,4 +80,4 @@ void mod_network_init(void);
void mod_network_register_nic(mp_obj_t nic);
mp_obj_t mod_network_find_nic(const uint8_t *ip);
#endif // MICROPY_INCLUDED_STMHAL_MODNETWORK_H
#endif // MICROPY_INCLUDED_STM32_MODNETWORK_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_PENDSV_H
#define MICROPY_INCLUDED_STMHAL_PENDSV_H
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
#define MICROPY_INCLUDED_STM32_PENDSV_H
void pendsv_init(void);
void pendsv_kbd_intr(void);
@ -33,4 +33,4 @@ void pendsv_kbd_intr(void);
// prelude for this function
void pendsv_isr_handler(void) __attribute__((naked));
#endif // MICROPY_INCLUDED_STMHAL_PENDSV_H
#endif // MICROPY_INCLUDED_STM32_PENDSV_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_PIN_H
#define MICROPY_INCLUDED_STMHAL_PIN_H
#ifndef MICROPY_INCLUDED_STM32_PIN_H
#define MICROPY_INCLUDED_STM32_PIN_H
// This file requires pin_defs_xxx.h (which has port specific enums and
// 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);
const pin_af_obj_t *pin_find_af_by_index(const pin_obj_t *pin, mp_uint_t af_idx);
const pin_af_obj_t *pin_find_af_by_name(const pin_obj_t *pin, const char *name);
#endif // MICROPY_INCLUDED_STMHAL_PIN_H
#endif // MICROPY_INCLUDED_STM32_PIN_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_PORTMODULES_H
#define MICROPY_INCLUDED_STMHAL_PORTMODULES_H
#ifndef MICROPY_INCLUDED_STM32_PORTMODULES_H
#define MICROPY_INCLUDED_STM32_PORTMODULES_H
extern const mp_obj_module_t pyb_module;
extern const mp_obj_module_t stm_module;
@ -40,4 +40,4 @@ MP_DECLARE_CONST_FUN_OBJ_1(time_sleep_us_obj);
MP_DECLARE_CONST_FUN_OBJ_0(mod_os_sync_obj);
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mod_os_dupterm_obj);
#endif // MICROPY_INCLUDED_STMHAL_PORTMODULES_H
#endif // MICROPY_INCLUDED_STM32_PORTMODULES_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_PYBTHREAD_H
#define MICROPY_INCLUDED_STMHAL_PYBTHREAD_H
#ifndef MICROPY_INCLUDED_STM32_PYBTHREAD_H
#define MICROPY_INCLUDED_STM32_PYBTHREAD_H
typedef struct _pyb_thread_t {
void *sp;
@ -74,4 +74,4 @@ void pyb_mutex_init(pyb_mutex_t *m);
int pyb_mutex_lock(pyb_mutex_t *m, int wait);
void pyb_mutex_unlock(pyb_mutex_t *m);
#endif // MICROPY_INCLUDED_STMHAL_PYBTHREAD_H
#endif // MICROPY_INCLUDED_STM32_PYBTHREAD_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_RNG_H
#define MICROPY_INCLUDED_STMHAL_RNG_H
#ifndef MICROPY_INCLUDED_STM32_RNG_H
#define MICROPY_INCLUDED_STM32_RNG_H
#include "py/obj.h"
@ -32,4 +32,4 @@ uint32_t rng_get(void);
MP_DECLARE_CONST_FUN_OBJ_0(pyb_rng_get_obj);
#endif // MICROPY_INCLUDED_STMHAL_RNG_H
#endif // MICROPY_INCLUDED_STM32_RNG_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_RTC_H
#define MICROPY_INCLUDED_STMHAL_RTC_H
#ifndef MICROPY_INCLUDED_STM32_RTC_H
#define MICROPY_INCLUDED_STM32_RTC_H
extern RTC_HandleTypeDef RTCHandle;
extern const mp_obj_type_t pyb_rtc_type;
@ -32,4 +32,4 @@ extern const mp_obj_type_t pyb_rtc_type;
void rtc_init_start(bool force_init);
void rtc_init_finalise(void);
#endif // MICROPY_INCLUDED_STMHAL_RTC_H
#endif // MICROPY_INCLUDED_STM32_RTC_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_SDCARD_H
#define MICROPY_INCLUDED_STMHAL_SDCARD_H
#ifndef MICROPY_INCLUDED_STM32_SDCARD_H
#define MICROPY_INCLUDED_STM32_SDCARD_H
// this is a fixed size and should not be changed
#define SDCARD_BLOCK_SIZE (512)
@ -45,4 +45,4 @@ extern const struct _mp_obj_base_t pyb_sdcard_obj;
struct _fs_user_mount_t;
void sdcard_init_vfs(struct _fs_user_mount_t *vfs, int part);
#endif // MICROPY_INCLUDED_STMHAL_SDCARD_H
#endif // MICROPY_INCLUDED_STM32_SDCARD_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_SERVO_H
#define MICROPY_INCLUDED_STMHAL_SERVO_H
#ifndef MICROPY_INCLUDED_STM32_SERVO_H
#define MICROPY_INCLUDED_STM32_SERVO_H
void servo_init(void);
void servo_timer_irq_callback(void);
@ -34,4 +34,4 @@ extern const mp_obj_type_t pyb_servo_type;
MP_DECLARE_CONST_FUN_OBJ_2(pyb_servo_set_obj);
MP_DECLARE_CONST_FUN_OBJ_2(pyb_pwm_set_obj);
#endif // MICROPY_INCLUDED_STMHAL_SERVO_H
#endif // MICROPY_INCLUDED_STM32_SERVO_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_SPI_H
#define MICROPY_INCLUDED_STMHAL_SPI_H
#ifndef MICROPY_INCLUDED_STM32_SPI_H
#define MICROPY_INCLUDED_STM32_SPI_H
#include "dma.h"
@ -51,4 +51,4 @@ void spi_init0(void);
void spi_init(const spi_t *spi, bool enable_nss_pin);
const spi_t *spi_from_mp_obj(mp_obj_t o);
#endif // MICROPY_INCLUDED_STMHAL_SPI_H
#endif // MICROPY_INCLUDED_STM32_SPI_H

View File

@ -25,8 +25,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_STM32_IT_H
#define MICROPY_INCLUDED_STMHAL_STM32_IT_H
#ifndef MICROPY_INCLUDED_STM32_STM32_IT_H
#define MICROPY_INCLUDED_STM32_STM32_IT_H
/**
******************************************************************************
@ -79,4 +79,4 @@ void SysTick_Handler(void);
void OTG_FS_IRQHandler(void);
void OTG_HS_IRQHandler(void);
#endif // MICROPY_INCLUDED_STMHAL_STM32_IT_H
#endif // MICROPY_INCLUDED_STM32_STM32_IT_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_STORAGE_H
#define MICROPY_INCLUDED_STMHAL_STORAGE_H
#ifndef MICROPY_INCLUDED_STM32_STORAGE_H
#define MICROPY_INCLUDED_STM32_STORAGE_H
#define FLASH_BLOCK_SIZE (512)
@ -59,4 +59,4 @@ extern const struct _mp_obj_type_t pyb_flash_type;
struct _fs_user_mount_t;
void pyb_flash_init_vfs(struct _fs_user_mount_t *vfs);
#endif // MICROPY_INCLUDED_STMHAL_STORAGE_H
#endif // MICROPY_INCLUDED_STM32_STORAGE_H

View File

@ -23,10 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_SYSTICK_H
#define MICROPY_INCLUDED_STMHAL_SYSTICK_H
#ifndef MICROPY_INCLUDED_STM32_SYSTICK_H
#define MICROPY_INCLUDED_STM32_SYSTICK_H
void sys_tick_wait_at_least(uint32_t stc, uint32_t delay_ms);
bool sys_tick_has_passed(uint32_t stc, uint32_t delay_ms);
#endif // MICROPY_INCLUDED_STMHAL_SYSTICK_H
#endif // MICROPY_INCLUDED_STM32_SYSTICK_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_TIMER_H
#define MICROPY_INCLUDED_STMHAL_TIMER_H
#ifndef MICROPY_INCLUDED_STM32_TIMER_H
#define MICROPY_INCLUDED_STM32_TIMER_H
extern TIM_HandleTypeDef TIM5_Handle;
@ -39,4 +39,4 @@ void timer_irq_handler(uint tim_id);
TIM_HandleTypeDef *pyb_timer_get_handle(mp_obj_t timer);
#endif // MICROPY_INCLUDED_STMHAL_TIMER_H
#endif // MICROPY_INCLUDED_STM32_TIMER_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_UART_H
#define MICROPY_INCLUDED_STMHAL_UART_H
#ifndef MICROPY_INCLUDED_STM32_UART_H
#define MICROPY_INCLUDED_STM32_UART_H
typedef enum {
PYB_UART_NONE = 0,
@ -49,4 +49,4 @@ mp_uint_t uart_rx_any(pyb_uart_obj_t *uart_obj);
int uart_rx_char(pyb_uart_obj_t *uart_obj);
void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len);
#endif // MICROPY_INCLUDED_STMHAL_UART_H
#endif // MICROPY_INCLUDED_STM32_UART_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_USB_H
#define MICROPY_INCLUDED_STMHAL_USB_H
#ifndef MICROPY_INCLUDED_STM32_USB_H
#define MICROPY_INCLUDED_STM32_USB_H
#include "usbd_cdc_msc_hid0.h"
@ -69,4 +69,4 @@ void pyb_usb_host_init(void);
void pyb_usb_host_process(void);
uint pyb_usb_host_get_keyboard(void);
#endif // MICROPY_INCLUDED_STMHAL_USB_H
#endif // MICROPY_INCLUDED_STM32_USB_H

View File

@ -1,8 +1,8 @@
/*
* This file is part of the MicroPython project, http://micropython.org/
*/
#ifndef MICROPY_INCLUDED_STMHAL_USBD_CDC_INTERFACE_H
#define MICROPY_INCLUDED_STMHAL_USBD_CDC_INTERFACE_H
#ifndef MICROPY_INCLUDED_STM32_USBD_CDC_INTERFACE_H
#define MICROPY_INCLUDED_STM32_USBD_CDC_INTERFACE_H
/**
******************************************************************************
@ -63,4 +63,4 @@ void usbd_cdc_tx_always(usbd_cdc_itf_t *cdc, const uint8_t *buf, uint32_t len);
int usbd_cdc_rx_num(usbd_cdc_itf_t *cdc);
int usbd_cdc_rx(usbd_cdc_itf_t *cdc, uint8_t *buf, uint32_t len, uint32_t timeout);
#endif // MICROPY_INCLUDED_STMHAL_USBD_CDC_INTERFACE_H
#endif // MICROPY_INCLUDED_STM32_USBD_CDC_INTERFACE_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_USBD_DESC_H
#define MICROPY_INCLUDED_STMHAL_USBD_DESC_H
#ifndef MICROPY_INCLUDED_STM32_USBD_DESC_H
#define MICROPY_INCLUDED_STM32_USBD_DESC_H
#include "usbd_cdc_msc_hid.h"
@ -32,4 +32,4 @@ extern const USBD_DescriptorsTypeDef USBD_Descriptors;
void USBD_SetVIDPIDRelease(usbd_cdc_msc_hid_state_t *usbd, uint16_t vid, uint16_t pid, uint16_t device_release_num, int cdc_only);
#endif // MICROPY_INCLUDED_STMHAL_USBD_DESC_H
#endif // MICROPY_INCLUDED_STM32_USBD_DESC_H

View File

@ -1,8 +1,8 @@
/*
* This file is part of the MicroPython project, http://micropython.org/
*/
#ifndef MICROPY_INCLUDED_STMHAL_USBD_HID_INTERFACE_H
#define MICROPY_INCLUDED_STMHAL_USBD_HID_INTERFACE_H
#ifndef MICROPY_INCLUDED_STM32_USBD_HID_INTERFACE_H
#define MICROPY_INCLUDED_STM32_USBD_HID_INTERFACE_H
#include "usbd_cdc_msc_hid.h"
@ -18,4 +18,4 @@ typedef struct _usbd_hid_itf_t {
int usbd_hid_rx_num(usbd_hid_itf_t *hid);
int usbd_hid_rx(usbd_hid_itf_t *hid, size_t len, uint8_t *buf, uint32_t timeout);
#endif // MICROPY_INCLUDED_STMHAL_USBD_HID_INTERFACE_H
#endif // MICROPY_INCLUDED_STM32_USBD_HID_INTERFACE_H

View File

@ -23,10 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_USBD_MSC_STORAGE_H
#define MICROPY_INCLUDED_STMHAL_USBD_MSC_STORAGE_H
#ifndef MICROPY_INCLUDED_STM32_USBD_MSC_STORAGE_H
#define MICROPY_INCLUDED_STM32_USBD_MSC_STORAGE_H
extern const USBD_StorageTypeDef USBD_FLASH_STORAGE_fops;
extern const USBD_StorageTypeDef USBD_SDCARD_STORAGE_fops;
#endif // MICROPY_INCLUDED_STMHAL_USBD_MSC_STORAGE_H
#endif // MICROPY_INCLUDED_STM32_USBD_MSC_STORAGE_H

View File

@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H
#define MICROPY_INCLUDED_STMHAL_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H
#ifndef MICROPY_INCLUDED_STM32_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H
#define MICROPY_INCLUDED_STM32_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H
// these are exports for the CDC/MSC/HID interface that are independent
// from any other definitions/declarations
@ -49,4 +49,4 @@ typedef struct _USBD_HID_ModeInfoTypeDef {
const uint8_t *report_desc;
} USBD_HID_ModeInfoTypeDef;
#endif // MICROPY_INCLUDED_STMHAL_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H
#endif // MICROPY_INCLUDED_STM32_USBDEV_CLASS_INC_USBD_CDC_MSC_HID0_H

View File

@ -23,12 +23,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_USRSW_H
#define MICROPY_INCLUDED_STMHAL_USRSW_H
#ifndef MICROPY_INCLUDED_STM32_USRSW_H
#define MICROPY_INCLUDED_STM32_USRSW_H
void switch_init0(void);
int switch_get(void);
extern const mp_obj_type_t pyb_switch_type;
#endif // MICROPY_INCLUDED_STMHAL_USRSW_H
#endif // MICROPY_INCLUDED_STM32_USRSW_H

View File

@ -23,9 +23,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STMHAL_WDT_H
#define MICROPY_INCLUDED_STMHAL_WDT_H
#ifndef MICROPY_INCLUDED_STM32_WDT_H
#define MICROPY_INCLUDED_STM32_WDT_H
extern const mp_obj_type_t pyb_wdt_type;
#endif // MICROPY_INCLUDED_STMHAL_WDT_H
#endif // MICROPY_INCLUDED_STM32_WDT_H