Skip to content
Snippets Groups Projects
Commit e69f3398 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

USB init, reset and verify after programming

parent 23f7873a
No related branches found
No related tags found
No related merge requests found
*.elf
*.hex
*.o
*.a
*.d
# IDA Pro
*.id0
*.id1
*.nam
*.til
*.idb
......@@ -69,7 +69,7 @@ clean:
# Install with OpenOCD. (No code protection!)
install: $(TARGET).hex
openocd -f openocd.cfg -c "program $(TARGET).hex"
openocd -f openocd.cfg -c "program $(TARGET).hex verify reset"
objdump: $(TARGET).elf
$(OBJDUMP) -d $<
......
......@@ -21,8 +21,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "usb_dev.h"
extern "C" int main()
{
usb_init();
while (1) {
}
}
......@@ -38,7 +38,6 @@ extern "C" {
#endif
void usb_init(void);
void usb_init_serialnumber(void);
void usb_isr(void);
extern volatile uint8_t usb_configuration;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment