Include cleanup and style tweaks

crypto-aes
Scott Shawcroft 4 years ago
parent 0e03a321e4
commit 6132a05fd9
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
  1. 2
      py/circuitpy_mpconfig.h
  2. 7
      shared-bindings/gamepad/GamePad.c
  3. 2
      shared-bindings/gamepadshift/GamePadShift.c
  4. 2
      shared-module/gamepad/GamePad.h

@ -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 \

@ -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

@ -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

@ -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

Loading…
Cancel
Save