Apply review fixes:

* fix formatting
* fix copyrights
* fix CIRCUITPYTHON_GAMEPAD guards
* add CIRCUITPYTHON_PEW guards to reset
* fix module list order
This commit is contained in:
Radomir Dopieralski 2019-03-01 16:05:15 +01:00
parent 8e50aeb06f
commit 89b2788d11
10 changed files with 13 additions and 12 deletions

View File

@ -26,8 +26,7 @@
#include "boards/board.h" #include "boards/board.h"
void board_init(void) void board_init(void) {
{
} }
bool board_requests_safe_mode(void) { bool board_requests_safe_mode(void) {

View File

@ -68,7 +68,7 @@
#include "tusb.h" #include "tusb.h"
#ifdef CIRCUITPY_GAMEPAD_TICKS #if CIRCUITPY_GAMEPAD
#include "shared-module/gamepad/__init__.h" #include "shared-module/gamepad/__init__.h"
#endif #endif
#include "shared-module/_pew/PewPew.h" #include "shared-module/_pew/PewPew.h"
@ -223,10 +223,12 @@ void reset_port(void) {
reset_gclks(); reset_gclks();
#ifdef CIRCUITPY_GAMEPAD_TICKS #if CIRCUITPY_GAMEPAD
gamepad_reset(); gamepad_reset();
#endif #endif
#ifdef CIRCUITPY_PEW
pew_reset(); pew_reset();
#endif
reset_event_system(); reset_event_system();

View File

@ -528,6 +528,7 @@ extern const struct _mp_obj_module_t pew_module;
NETWORK_MODULE \ NETWORK_MODULE \
SOCKET_MODULE \ SOCKET_MODULE \
WIZNET_MODULE \ WIZNET_MODULE \
PEW_MODULE \
PIXELBUF_MODULE \ PIXELBUF_MODULE \
PULSEIO_MODULE \ PULSEIO_MODULE \
RANDOM_MODULE \ RANDOM_MODULE \
@ -543,7 +544,6 @@ extern const struct _mp_obj_module_t pew_module;
USB_HID_MODULE \ USB_HID_MODULE \
USB_MIDI_MODULE \ USB_MIDI_MODULE \
USTACK_MODULE \ USTACK_MODULE \
PEW_MODULE \
// If weak links are enabled, just include strong links in the main list of modules, // If weak links are enabled, just include strong links in the main list of modules,
// and also include the underscore alternate names. // and also include the underscore alternate names.

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Radomir Dopieralski for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
* *
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2016 Scott Shawcroft for Adafruit Industries * Copyright (c) 2019 Radomir Dopieralski
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal