-
Notifications
You must be signed in to change notification settings - Fork 1k
CDC implementation #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDC implementation #344
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,8 +560,8 @@ uint32_t getTimerIrq(TIM_TypeDef* tim) | |
void TimerHandleDeinit(stimer_t *obj) | ||
{ | ||
if(obj != NULL) { | ||
HAL_TIM_Base_DeInit(&(obj->handle)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be fixed independently on this PR.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could include it, since @fpistm won't merge this right away. Can you write a patch? |
||
HAL_TIM_Base_Stop_IT(&(obj->handle)); | ||
HAL_TIM_Base_DeInit(&(obj->handle)); | ||
} | ||
} | ||
|
||
|
@@ -1015,6 +1015,18 @@ void attachIntHandle(stimer_t *obj, void (*irqHandle)(stimer_t *)) | |
obj->irqHandle = irqHandle; | ||
} | ||
|
||
/** | ||
* @brief Attached an interrupt handler | ||
* @param htim : TIM handle | ||
* @param irqHandle : interrupt handler | ||
* @retval none | ||
*/ | ||
void timer_attach_interrupt_handle(TIM_HandleTypeDef *htim, void (*irqHandle)(stimer_t *)) | ||
{ | ||
stimer_t *obj = get_timer_obj(htim); | ||
obj->irqHandle = irqHandle; | ||
} | ||
|
||
|
||
/******************************************************************************/ | ||
/* TIMx IRQ HANDLER */ | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <USBSerial.h> | ||
|
||
void setup() { | ||
// Default baudrate is set to 9600 | ||
SerialUSB.begin(); | ||
} | ||
|
||
void loop() { | ||
SerialUSB.println("Hello world!"); | ||
delay(1000); | ||
|
||
while(SerialUSB.available()) { | ||
char c = SerialUSB.read(); | ||
SerialUSB.print(c); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=USB Serial | ||
version=1.0.0 | ||
author=Wi6Labs | ||
maintainer=STMicroelectronics | ||
sentence=Provides USB CDC class. | ||
paragraph= | ||
category=Device Control | ||
url=https://github.com/stm32duino/Arduino_Core_STM32 | ||
architectures=stm32 |
Uh oh!
There was an error while loading. Please reload this page.