Skip to content

Commit

Permalink
added working joycon reader
Browse files Browse the repository at this point in the history
  • Loading branch information
dekuNukem committed Mar 21, 2017
1 parent 0a0b2c0 commit 87eaa85
Show file tree
Hide file tree
Showing 505 changed files with 119,278 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions joycon_reader/Inc/joycon_cmd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef __JOYCON_CMD_H
#define __JOYCON_CMD_H

#ifdef __cplusplus
extern "C" {
#endif

#include "stm32f0xx_hal.h"
#include "main.h"
#include "helpers.h"
#include "shared.h"

#define NSTX_ENABLE() HAL_GPIO_WritePin(FC_NS_TX_EN_GPIO_Port, FC_NS_TX_EN_Pin, GPIO_PIN_RESET)
#define NSTX_DISABLE() HAL_GPIO_WritePin(FC_NS_TX_EN_GPIO_Port, FC_NS_TX_EN_Pin, GPIO_PIN_SET)

#define JCTX_ENABLE() HAL_GPIO_WritePin(FC_JC_TX_EN_GPIO_Port, FC_JC_TX_EN_Pin, GPIO_PIN_SET)
#define JCTX_DISABLE() HAL_GPIO_WritePin(FC_JC_TX_EN_GPIO_Port, FC_JC_TX_EN_Pin, GPIO_PIN_RESET)

#define UART_WAITING 0
#define UART_RECEIVED 1

void attach(void);
void read_joycon(void);

#ifdef __cplusplus
}
#endif

#endif


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
982 changes: 982 additions & 0 deletions joycon_reader/MDK-ARM/startup_stm32f072xb.lst

Large diffs are not rendered by default.

File renamed without changes.
Loading

0 comments on commit 87eaa85

Please sign in to comment.