Include cleanup and style tweaks

This commit is contained in:
Scott Shawcroft 2019-04-16 10:19:07 -07:00
parent 0e03a321e4
commit 6132a05fd9
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
4 changed files with 5 additions and 8 deletions

View File

@ -567,7 +567,7 @@ extern const struct _mp_obj_module_t ustack_module;
ERRNO_MODULE \
FREQUENCYIO_MODULE \
GAMEPAD_MODULE \
GAMEPADSHIFT_MODULE \
GAMEPADSHIFT_MODULE \
I2CSLAVE_MODULE \
JSON_MODULE \
MATH_MODULE \

View File

@ -23,17 +23,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "shared-bindings/gamepad/GamePad.h"
#include "py/obj.h"
#include "py/runtime.h"
#include "py/mphal.h"
#include "py/gc.h"
#include "py/mpstate.h"
#include "shared-module/gamepad/__init__.h"
#include "shared-module/gamepad/GamePad.h"
#include "shared-bindings/gamepad/__init__.h"
#include "shared-bindings/digitalio/DigitalInOut.h"
#include "supervisor/shared/translate.h"
#include "GamePad.h"
#include "__init__.h"
//| .. currentmodule:: gamepad

View File

@ -28,10 +28,8 @@
#include "py/mphal.h"
#include "py/gc.h"
#include "py/mpstate.h"
#include "shared-bindings/gamepad/__init__.h"
#include "shared-bindings/gamepadshift/GamePadShift.h"
#include "shared-bindings/gamepadshift/__init__.h"
#include "shared-module/gamepadshift/GamePadShift.h"
#include "supervisor/shared/translate.h"
//| .. currentmodule:: gamepadshift

View File

@ -34,9 +34,9 @@
typedef struct {
mp_obj_base_t base;
digitalio_digitalinout_obj_t* pins[8];
volatile uint8_t last;
volatile uint8_t pressed;
uint8_t pulls;
volatile uint8_t last;
} gamepad_obj_t;
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H