Move the opening braces of some functions onto their own lines

This commit is contained in:
Eric Tang
2017-08-08 16:20:48 -07:00
parent 17fd91c203
commit 2b97758ad2
4 changed files with 32 additions and 16 deletions

View File

@@ -16,7 +16,8 @@
// Functions for setting error statuses
void setError(uint8_t error) {
void setError(uint8_t error)
{
GenericHidOutBuffer[0] = error;
}
@@ -37,7 +38,8 @@ void SetResponseWord(uint16_t response)
// Per command protocol command handlers
void getSystemProperty(void) {
void getSystemProperty(void)
{
uint8_t propertyId = GenericHidInBuffer[1];
switch (propertyId) {
@@ -65,7 +67,8 @@ void getSystemProperty(void) {
}
}
void reenumerate(void) {
void reenumerate(void)
{
Wormhole.magicNumber = WORMHOLE_MAGIC_NUMBER;
Wormhole.enumerationMode = GenericHidInBuffer[1];
SCB->AIRCR = 0x5FA<<SCB_AIRCR_VECTKEY_Pos | SCB_AIRCR_SYSRESETREQ_Msk; // Reset the MCU.