Permalink
Cannot retrieve contributors at this time
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?
micropython/ports/psoc6/modmachine.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (34 sloc)
1.33 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |