|
@@ -22,6 +22,7 @@
|
|
|
/* Private includes ----------------------------------------------------------*/
|
|
/* Private includes ----------------------------------------------------------*/
|
|
|
/* USER CODE BEGIN Includes */
|
|
/* USER CODE BEGIN Includes */
|
|
|
#include "nbus_app.h"
|
|
#include "nbus_app.h"
|
|
|
|
|
+#include "app_dummy.h"
|
|
|
/* USER CODE END Includes */
|
|
/* USER CODE END Includes */
|
|
|
|
|
|
|
|
/* Private typedef -----------------------------------------------------------*/
|
|
/* Private typedef -----------------------------------------------------------*/
|
|
@@ -107,6 +108,7 @@ int main(void)
|
|
|
McuPin_typeDef Led;
|
|
McuPin_typeDef Led;
|
|
|
Led.port = LD3_GPIO_Port;
|
|
Led.port = LD3_GPIO_Port;
|
|
|
Led.pin = LD3_Pin;
|
|
Led.pin = LD3_Pin;
|
|
|
|
|
+
|
|
|
Peripheral_typeDef periph;
|
|
Peripheral_typeDef periph;
|
|
|
periph.huart = &huart2;
|
|
periph.huart = &huart2;
|
|
|
periph.uart_timer = &htim22;
|
|
periph.uart_timer = &htim22;
|
|
@@ -115,7 +117,10 @@ int main(void)
|
|
|
periph.led = &Led;
|
|
periph.led = &Led;
|
|
|
periph.rtc = &hrtc;
|
|
periph.rtc = &hrtc;
|
|
|
|
|
|
|
|
- nbus_init(&periph);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ nBusAppInterface_t *dummy = getDummyDriver();
|
|
|
|
|
+ nbus_init(&periph, dummy);
|
|
|
|
|
+ nbus_init_app(periph.adc, NULL);
|
|
|
nbus_stack();
|
|
nbus_stack();
|
|
|
|
|
|
|
|
/* USER CODE END 2 */
|
|
/* USER CODE END 2 */
|