mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-26 15:58:06 +00:00
change setup
This commit is contained in:
parent
5f8e4b1223
commit
f21124a304
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
//! Hardware Abstraction Layer (HAL) for the nRF52840 Development Kit
|
//! Board Support Crate (BSC) for the nRF52840 Development Kit
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(warnings)]
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
use core::{
|
use core::{
|
||||||
|
@ -13,9 +12,12 @@ use core::{
|
||||||
|
|
||||||
use cortex_m::asm;
|
use cortex_m::asm;
|
||||||
use embedded_hal::digital::v2::{OutputPin as _, StatefulOutputPin};
|
use embedded_hal::digital::v2::{OutputPin as _, StatefulOutputPin};
|
||||||
|
use nrf52840_hal as hal;
|
||||||
pub use hal::pac::{
|
pub use hal::pac::{
|
||||||
UARTE1, uarte0::{
|
UARTE1, uarte0::{
|
||||||
baudrate::BAUDRATE_A as Baudrate, config::PARITY_A as Parity}};
|
baudrate::BAUDRATE_A as Baudrate, config::PARITY_A as Parity}};
|
||||||
|
|
||||||
|
|
||||||
use hal::{
|
use hal::{
|
||||||
gpio::{p0, Level, Output, Input, PullUp, Pin, Port, PushPull},
|
gpio::{p0, Level, Output, Input, PullUp, Pin, Port, PushPull},
|
||||||
timer::OneShot, prelude::InputPin,
|
timer::OneShot, prelude::InputPin,
|
||||||
|
|
Loading…
Reference in a new issue