Skip to content
Permalink
Machine-UART
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef MICROPY_INCLUDED_PSOC6_MODMACHINE_H
#define MICROPY_INCLUDED_PSOC6_MODMACHINE_H
// micropython includes
#include "py/obj.h"
extern const mp_obj_type_t machine_i2c_type;
extern const mp_obj_type_t machine_i2c_slave_type;
extern const mp_obj_type_t machine_pin_type;
extern const mp_obj_type_t machine_rtc_type;
extern const mp_obj_type_t machine_pwm_type;
extern const mp_obj_type_t machine_spi_type;
extern const mp_obj_type_t machine_timer_type;
extern const mp_obj_type_t machine_adc_type;
extern const mp_obj_type_t machine_wdt_type;
extern const mp_obj_type_t machine_adcblock_type;
extern const mp_obj_type_t machine_i2s_type;
extern const mp_obj_type_t machine_uart_type;
// Add all mod machine deinits
void mod_pin_phy_deinit(void);
void mod_pin_deinit(void);
void mod_adc_deinit(void);
void mod_adcblock_deinit(void);
void mod_i2c_deinit(void);
void mod_pwm_deinit(void);
void mod_rtc_deinit(void);
void mod_spi_deinit(void);
void mod_timer_deinit(void);
void mod_wdt_deinit(void);
/* Note: the static functions' prototypes in the .c file cannot be declared here
since they are static. The static type in those functions come from MPY hence
should stay that way. */
// functions to be called from other .c files. Hence they are not static.
void machine_init(void);
void machine_deinit(void);
#endif // MICROPY_INCLUDED_PSOC6_MODMACHINE_H